@cubone/react-file-manager 1.12.0 → 1.13.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.
@@ -17,15 +17,15 @@ var tn;
17
17
  function sr() {
18
18
  if (tn) return ot;
19
19
  tn = 1;
20
- var e = Ae, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function s(d, h, p) {
20
+ var e = Ae, a = Symbol.for("react.element"), o = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function c(p, h, d) {
22
22
  var m, b = {}, w = null, V = null;
23
- p !== void 0 && (w = "" + p), h.key !== void 0 && (w = "" + h.key), h.ref !== void 0 && (V = h.ref);
24
- for (m in h) a.call(h, m) && !l.hasOwnProperty(m) && (b[m] = h[m]);
25
- if (d && d.defaultProps) for (m in h = d.defaultProps, h) b[m] === void 0 && (b[m] = h[m]);
26
- return { $$typeof: r, type: d, key: w, ref: V, props: b, _owner: i.current };
23
+ d !== void 0 && (w = "" + d), h.key !== void 0 && (w = "" + h.key), h.ref !== void 0 && (V = h.ref);
24
+ for (m in h) r.call(h, m) && !s.hasOwnProperty(m) && (b[m] = h[m]);
25
+ if (p && p.defaultProps) for (m in h = p.defaultProps, h) b[m] === void 0 && (b[m] = h[m]);
26
+ return { $$typeof: a, type: p, key: w, ref: V, props: b, _owner: i.current };
27
27
  }
28
- return ot.Fragment = o, ot.jsx = s, ot.jsxs = s, ot;
28
+ return ot.Fragment = o, ot.jsx = c, ot.jsxs = c, ot;
29
29
  }
30
30
  var it = {};
31
31
  /**
@@ -40,7 +40,7 @@ var it = {};
40
40
  var nn;
41
41
  function cr() {
42
42
  return nn || (nn = 1, process.env.NODE_ENV !== "production" && function() {
43
- var e = Ae, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), d = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), O = Symbol.iterator, N = "@@iterator";
43
+ var e = Ae, a = Symbol.for("react.element"), o = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), p = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), O = Symbol.iterator, N = "@@iterator";
44
44
  function B(u) {
45
45
  if (u === null || typeof u != "object")
46
46
  return null;
@@ -65,10 +65,10 @@ function cr() {
65
65
  ye.unshift("Warning: " + H), Function.prototype.apply.call(console[u], console, ye);
66
66
  }
67
67
  }
68
- var C = !1, c = !1, y = !1, R = !1, T = !1, Y;
68
+ var C = !1, l = !1, y = !1, R = !1, T = !1, Y;
69
69
  Y = Symbol.for("react.module.reference");
70
70
  function $(u) {
71
- return !!(typeof u == "string" || typeof u == "function" || u === a || u === l || T || u === i || u === p || u === m || R || u === V || C || c || y || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === b || u.$$typeof === s || u.$$typeof === d || u.$$typeof === h || // This needs to include all possible module reference object
71
+ return !!(typeof u == "string" || typeof u == "function" || u === r || u === s || T || u === i || u === d || u === m || R || u === V || C || l || y || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === b || u.$$typeof === c || u.$$typeof === p || u.$$typeof === h || // 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.
@@ -92,25 +92,25 @@ function cr() {
92
92
  if (typeof u == "string")
93
93
  return u;
94
94
  switch (u) {
95
- case a:
95
+ case r:
96
96
  return "Fragment";
97
97
  case o:
98
98
  return "Portal";
99
- case l:
99
+ case s:
100
100
  return "Profiler";
101
101
  case i:
102
102
  return "StrictMode";
103
- case p:
103
+ case d:
104
104
  return "Suspense";
105
105
  case m:
106
106
  return "SuspenseList";
107
107
  }
108
108
  if (typeof u == "object")
109
109
  switch (u.$$typeof) {
110
- case d:
110
+ case p:
111
111
  var H = u;
112
112
  return G(H) + ".Consumer";
113
- case s:
113
+ case c:
114
114
  var X = u;
115
115
  return G(X._context) + ".Provider";
116
116
  case h:
@@ -129,14 +129,14 @@ function cr() {
129
129
  }
130
130
  return null;
131
131
  }
132
- var te = Object.assign, ue = 0, ne, oe, pe, ge, S, q, x;
132
+ var te = Object.assign, ue = 0, ne, oe, he, ge, S, q, x;
133
133
  function A() {
134
134
  }
135
135
  A.__reactDisabledLog = !0;
136
136
  function L() {
137
137
  {
138
138
  if (ue === 0) {
139
- ne = console.log, oe = console.info, pe = console.warn, ge = console.error, S = console.group, q = console.groupCollapsed, x = console.groupEnd;
139
+ ne = console.log, oe = console.info, he = console.warn, ge = console.error, S = console.group, q = console.groupCollapsed, x = console.groupEnd;
140
140
  var u = {
141
141
  configurable: !0,
142
142
  enumerable: !0,
@@ -172,7 +172,7 @@ function cr() {
172
172
  value: oe
173
173
  }),
174
174
  warn: te({}, u, {
175
- value: pe
175
+ value: he
176
176
  }),
177
177
  error: te({}, u, {
178
178
  value: ge
@@ -296,7 +296,7 @@ function cr() {
296
296
  if (typeof u == "string")
297
297
  return g(u);
298
298
  switch (u) {
299
- case p:
299
+ case d:
300
300
  return g("Suspense");
301
301
  case m:
302
302
  return g("SuspenseList");
@@ -422,7 +422,7 @@ function cr() {
422
422
  var At = function(u, H, X, ee, fe, ye, n) {
423
423
  var v = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
- $$typeof: r,
425
+ $$typeof: a,
426
426
  // Built-in properties that belong on the element
427
427
  type: u,
428
428
  key: H,
@@ -477,7 +477,7 @@ function cr() {
477
477
  var tt;
478
478
  tt = !1;
479
479
  function nt(u) {
480
- return typeof u == "object" && u !== null && u.$$typeof === r;
480
+ return typeof u == "object" && u !== null && u.$$typeof === a;
481
481
  }
482
482
  function Ke() {
483
483
  {
@@ -586,7 +586,7 @@ Check the top-level render call using <` + X + ">.");
586
586
  var P = Me();
587
587
  P ? v += P : v += Ke();
588
588
  var z;
589
- u === null ? z = "null" : Ue(u) ? z = "array" : u !== void 0 && u.$$typeof === r ? (z = "<" + (J(u.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof u, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
589
+ u === null ? z = "null" : Ue(u) ? z = "array" : u !== void 0 && u.$$typeof === a ? (z = "<" + (J(u.type) || "Unknown") + " />", v = " Did you accidentally export a JSX literal instead of a component?") : z = typeof u, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, v);
590
590
  }
591
591
  var U = Ft(u, H, X, fe, ye);
592
592
  if (U == null)
@@ -618,7 +618,7 @@ React keys must be passed directly to JSX without using spread:
618
618
  <%s key={someKey} {...props} />`, Pe, ae, Se, ae), mt[ae + Pe] = !0;
619
619
  }
620
620
  }
621
- return u === a ? vt(U) : zt(U), U;
621
+ return u === r ? vt(U) : zt(U), U;
622
622
  }
623
623
  }
624
624
  function yt(u, H, X) {
@@ -628,76 +628,76 @@ React keys must be passed directly to JSX without using spread:
628
628
  return at(u, H, X, !1);
629
629
  }
630
630
  var Ht = gt, bt = yt;
631
- it.Fragment = a, it.jsx = Ht, it.jsxs = bt;
631
+ it.Fragment = r, it.jsx = Ht, it.jsxs = bt;
632
632
  }()), it;
633
633
  }
634
634
  process.env.NODE_ENV === "production" ? qt.exports = sr() : qt.exports = cr();
635
635
  var t = qt.exports, kn = { exports: {} };
636
- (function(e, r) {
637
- (function(a, i) {
636
+ (function(e, a) {
637
+ (function(r, i) {
638
638
  e.exports = i();
639
639
  })(typeof self < "u" ? self : Mn, function() {
640
640
  return (
641
641
  /******/
642
642
  function(o) {
643
- var a = {};
644
- function i(l) {
645
- if (a[l])
646
- return a[l].exports;
647
- var s = a[l] = {
643
+ var r = {};
644
+ function i(s) {
645
+ if (r[s])
646
+ return r[s].exports;
647
+ var c = r[s] = {
648
648
  /******/
649
- i: l,
649
+ i: s,
650
650
  /******/
651
651
  l: !1,
652
652
  /******/
653
653
  exports: {}
654
654
  /******/
655
655
  };
656
- return o[l].call(s.exports, s, s.exports, i), s.l = !0, s.exports;
656
+ return o[s].call(c.exports, c, c.exports, i), c.l = !0, c.exports;
657
657
  }
658
- return i.m = o, i.c = a, i.d = function(l, s, d) {
659
- i.o(l, s) || Object.defineProperty(l, s, {
658
+ return i.m = o, i.c = r, i.d = function(s, c, p) {
659
+ i.o(s, c) || Object.defineProperty(s, c, {
660
660
  /******/
661
661
  configurable: !1,
662
662
  /******/
663
663
  enumerable: !0,
664
664
  /******/
665
- get: d
665
+ get: p
666
666
  /******/
667
667
  });
668
- }, i.n = function(l) {
669
- var s = l && l.__esModule ? (
668
+ }, i.n = function(s) {
669
+ var c = s && s.__esModule ? (
670
670
  /******/
671
671
  function() {
672
- return l.default;
672
+ return s.default;
673
673
  }
674
674
  ) : (
675
675
  /******/
676
676
  function() {
677
- return l;
677
+ return s;
678
678
  }
679
679
  );
680
- return i.d(s, "a", s), s;
681
- }, i.o = function(l, s) {
682
- return Object.prototype.hasOwnProperty.call(l, s);
680
+ return i.d(c, "a", c), c;
681
+ }, i.o = function(s, c) {
682
+ return Object.prototype.hasOwnProperty.call(s, c);
683
683
  }, i.p = "/", i(i.s = 7);
684
684
  }([
685
685
  /* 0 */
686
686
  /***/
687
- function(o, a, i) {
688
- var l = function(h) {
687
+ function(o, r, i) {
688
+ var s = function(h) {
689
689
  };
690
- process.env.NODE_ENV !== "production" && (l = function(h) {
690
+ process.env.NODE_ENV !== "production" && (s = function(h) {
691
691
  if (h === void 0)
692
692
  throw new Error("invariant requires an error message argument");
693
693
  });
694
- function s(d, h, p, m, b, w, V, O) {
695
- if (l(h), !d) {
694
+ function c(p, h, d, m, b, w, V, O) {
695
+ if (s(h), !p) {
696
696
  var N;
697
697
  if (h === void 0)
698
698
  N = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
699
699
  else {
700
- var B = [p, m, b, w, V, O], D = 0;
700
+ var B = [d, m, b, w, V, O], D = 0;
701
701
  N = new Error(h.replace(/%s/g, function() {
702
702
  return B[D++];
703
703
  })), N.name = "Invariant Violation";
@@ -705,39 +705,39 @@ var t = qt.exports, kn = { exports: {} };
705
705
  throw N.framesToPop = 1, N;
706
706
  }
707
707
  }
708
- o.exports = s;
708
+ o.exports = c;
709
709
  },
710
710
  /* 1 */
711
711
  /***/
712
- function(o, a, i) {
713
- function l(d) {
712
+ function(o, r, i) {
713
+ function s(p) {
714
714
  return function() {
715
- return d;
715
+ return p;
716
716
  };
717
717
  }
718
- var s = function() {
718
+ var c = function() {
719
719
  };
720
- s.thatReturns = l, s.thatReturnsFalse = l(!1), s.thatReturnsTrue = l(!0), s.thatReturnsNull = l(null), s.thatReturnsThis = function() {
720
+ c.thatReturns = s, c.thatReturnsFalse = s(!1), c.thatReturnsTrue = s(!0), c.thatReturnsNull = s(null), c.thatReturnsThis = function() {
721
721
  return this;
722
- }, s.thatReturnsArgument = function(d) {
723
- return d;
724
- }, o.exports = s;
722
+ }, c.thatReturnsArgument = function(p) {
723
+ return p;
724
+ }, o.exports = c;
725
725
  },
726
726
  /* 2 */
727
727
  /***/
728
- function(o, a, i) {
728
+ function(o, r, i) {
729
729
  /*
730
730
  object-assign
731
731
  (c) Sindre Sorhus
732
732
  @license MIT
733
733
  */
734
- var l = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
734
+ var s = Object.getOwnPropertySymbols, c = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
735
735
  function h(m) {
736
736
  if (m == null)
737
737
  throw new TypeError("Object.assign cannot be called with null or undefined");
738
738
  return Object(m);
739
739
  }
740
- function p() {
740
+ function d() {
741
741
  try {
742
742
  if (!Object.assign)
743
743
  return !1;
@@ -759,15 +759,15 @@ var t = qt.exports, kn = { exports: {} };
759
759
  return !1;
760
760
  }
761
761
  }
762
- o.exports = p() ? Object.assign : function(m, b) {
762
+ o.exports = d() ? Object.assign : function(m, b) {
763
763
  for (var w, V = h(m), O, N = 1; N < arguments.length; N++) {
764
764
  w = Object(arguments[N]);
765
765
  for (var B in w)
766
- s.call(w, B) && (V[B] = w[B]);
767
- if (l) {
768
- O = l(w);
766
+ c.call(w, B) && (V[B] = w[B]);
767
+ if (s) {
768
+ O = s(w);
769
769
  for (var D = 0; D < O.length; D++)
770
- d.call(w, O[D]) && (V[O[D]] = w[O[D]]);
770
+ p.call(w, O[D]) && (V[O[D]] = w[O[D]]);
771
771
  }
772
772
  }
773
773
  return V;
@@ -775,13 +775,13 @@ var t = qt.exports, kn = { exports: {} };
775
775
  },
776
776
  /* 3 */
777
777
  /***/
778
- function(o, a, i) {
779
- var l = i(1), s = l;
778
+ function(o, r, i) {
779
+ var s = i(1), c = s;
780
780
  if (process.env.NODE_ENV !== "production") {
781
- var d = function(p) {
781
+ var p = function(d) {
782
782
  for (var m = arguments.length, b = Array(m > 1 ? m - 1 : 0), w = 1; w < m; w++)
783
783
  b[w - 1] = arguments[w];
784
- var V = 0, O = "Warning: " + p.replace(/%s/g, function() {
784
+ var V = 0, O = "Warning: " + d.replace(/%s/g, function() {
785
785
  return b[V++];
786
786
  });
787
787
  typeof console < "u" && console.error(O);
@@ -790,123 +790,123 @@ var t = qt.exports, kn = { exports: {} };
790
790
  } catch {
791
791
  }
792
792
  };
793
- s = function(p, m) {
793
+ c = function(d, m) {
794
794
  if (m === void 0)
795
795
  throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
796
- if (m.indexOf("Failed Composite propType: ") !== 0 && !p) {
796
+ if (m.indexOf("Failed Composite propType: ") !== 0 && !d) {
797
797
  for (var b = arguments.length, w = Array(b > 2 ? b - 2 : 0), V = 2; V < b; V++)
798
798
  w[V - 2] = arguments[V];
799
- d.apply(void 0, [m].concat(w));
799
+ p.apply(void 0, [m].concat(w));
800
800
  }
801
801
  };
802
802
  }
803
- o.exports = s;
803
+ o.exports = c;
804
804
  },
805
805
  /* 4 */
806
806
  /***/
807
- function(o, a, i) {
808
- var l = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
809
- o.exports = l;
807
+ function(o, r, i) {
808
+ var s = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
809
+ o.exports = s;
810
810
  },
811
811
  /* 5 */
812
812
  /***/
813
- function(o, a, i) {
814
- var l = {};
815
- process.env.NODE_ENV !== "production" && Object.freeze(l), o.exports = l;
813
+ function(o, r, i) {
814
+ var s = {};
815
+ process.env.NODE_ENV !== "production" && Object.freeze(s), o.exports = s;
816
816
  },
817
817
  /* 6 */
818
818
  /***/
819
- function(o, a, i) {
819
+ function(o, r, i) {
820
820
  if (process.env.NODE_ENV !== "production")
821
- var l = i(0), s = i(3), d = i(4), h = {};
822
- function p(m, b, w, V, O) {
821
+ var s = i(0), c = i(3), p = i(4), h = {};
822
+ function d(m, b, w, V, O) {
823
823
  if (process.env.NODE_ENV !== "production") {
824
824
  for (var N in m)
825
825
  if (m.hasOwnProperty(N)) {
826
826
  var B;
827
827
  try {
828
- l(typeof m[N] == "function", "%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.", V || "React class", w, N, typeof m[N]), B = m[N](b, N, V, w, null, d);
828
+ s(typeof m[N] == "function", "%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.", V || "React class", w, N, typeof m[N]), B = m[N](b, N, V, w, null, p);
829
829
  } catch (I) {
830
830
  B = I;
831
831
  }
832
- if (s(!B || B instanceof Error, "%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).", V || "React class", w, N, typeof B), B instanceof Error && !(B.message in h)) {
832
+ if (c(!B || B instanceof Error, "%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).", V || "React class", w, N, typeof B), B instanceof Error && !(B.message in h)) {
833
833
  h[B.message] = !0;
834
834
  var D = O ? O() : "";
835
- s(!1, "Failed %s type: %s%s", w, B.message, D ?? "");
835
+ c(!1, "Failed %s type: %s%s", w, B.message, D ?? "");
836
836
  }
837
837
  }
838
838
  }
839
839
  }
840
- o.exports = p;
840
+ o.exports = d;
841
841
  },
842
842
  /* 7 */
843
843
  /***/
844
- function(o, a, i) {
845
- Object.defineProperty(a, "__esModule", {
844
+ function(o, r, i) {
845
+ Object.defineProperty(r, "__esModule", {
846
846
  value: !0
847
847
  });
848
- var l = Object.assign || function(C) {
849
- for (var c = 1; c < arguments.length; c++) {
850
- var y = arguments[c];
848
+ var s = Object.assign || function(C) {
849
+ for (var l = 1; l < arguments.length; l++) {
850
+ var y = arguments[l];
851
851
  for (var R in y)
852
852
  Object.prototype.hasOwnProperty.call(y, R) && (C[R] = y[R]);
853
853
  }
854
854
  return C;
855
- }, s = /* @__PURE__ */ function() {
856
- function C(c, y) {
855
+ }, c = /* @__PURE__ */ function() {
856
+ function C(l, y) {
857
857
  for (var R = 0; R < y.length; R++) {
858
858
  var T = y[R];
859
- T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(c, T.key, T);
859
+ T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(l, T.key, T);
860
860
  }
861
861
  }
862
- return function(c, y, R) {
863
- return y && C(c.prototype, y), R && C(c, R), c;
862
+ return function(l, y, R) {
863
+ return y && C(l.prototype, y), R && C(l, R), l;
864
864
  };
865
- }(), d = i(8), h = O(d), p = i(11), m = O(p), b = i(14), w = V(b);
865
+ }(), p = i(8), h = O(p), d = i(11), m = O(d), b = i(14), w = V(b);
866
866
  function V(C) {
867
867
  if (C && C.__esModule)
868
868
  return C;
869
- var c = {};
869
+ var l = {};
870
870
  if (C != null)
871
871
  for (var y in C)
872
- Object.prototype.hasOwnProperty.call(C, y) && (c[y] = C[y]);
873
- return c.default = C, c;
872
+ Object.prototype.hasOwnProperty.call(C, y) && (l[y] = C[y]);
873
+ return l.default = C, l;
874
874
  }
875
875
  function O(C) {
876
876
  return C && C.__esModule ? C : { default: C };
877
877
  }
878
- function N(C, c) {
878
+ function N(C, l) {
879
879
  var y = {};
880
880
  for (var R in C)
881
- c.indexOf(R) >= 0 || Object.prototype.hasOwnProperty.call(C, R) && (y[R] = C[R]);
881
+ l.indexOf(R) >= 0 || Object.prototype.hasOwnProperty.call(C, R) && (y[R] = C[R]);
882
882
  return y;
883
883
  }
884
- function B(C, c) {
885
- if (!(C instanceof c))
884
+ function B(C, l) {
885
+ if (!(C instanceof l))
886
886
  throw new TypeError("Cannot call a class as a function");
887
887
  }
888
- function D(C, c) {
888
+ function D(C, l) {
889
889
  if (!C)
890
890
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
891
- return c && (typeof c == "object" || typeof c == "function") ? c : C;
891
+ return l && (typeof l == "object" || typeof l == "function") ? l : C;
892
892
  }
893
- function I(C, c) {
894
- if (typeof c != "function" && c !== null)
895
- throw new TypeError("Super expression must either be null or a function, not " + typeof c);
896
- C.prototype = Object.create(c && c.prototype, { constructor: { value: C, enumerable: !1, writable: !0, configurable: !0 } }), c && (Object.setPrototypeOf ? Object.setPrototypeOf(C, c) : C.__proto__ = c);
893
+ function I(C, l) {
894
+ if (typeof l != "function" && l !== null)
895
+ throw new TypeError("Super expression must either be null or a function, not " + typeof l);
896
+ C.prototype = Object.create(l && l.prototype, { constructor: { value: C, enumerable: !1, writable: !0, configurable: !0 } }), l && (Object.setPrototypeOf ? Object.setPrototypeOf(C, l) : C.__proto__ = l);
897
897
  }
898
898
  var F = function(C) {
899
- I(c, C);
900
- function c() {
899
+ I(l, C);
900
+ function l() {
901
901
  var y, R, T, Y;
902
- B(this, c);
902
+ B(this, l);
903
903
  for (var $ = arguments.length, _ = Array($), G = 0; G < $; G++)
904
904
  _[G] = arguments[G];
905
- return Y = (R = (T = D(this, (y = c.__proto__ || Object.getPrototypeOf(c)).call.apply(y, [this].concat(_))), T), T.state = {
905
+ return Y = (R = (T = D(this, (y = l.__proto__ || Object.getPrototypeOf(l)).call.apply(y, [this].concat(_))), T), T.state = {
906
906
  delayed: T.props.delay > 0
907
907
  }, R), D(T, Y);
908
908
  }
909
- return s(c, [{
909
+ return c(l, [{
910
910
  key: "componentDidMount",
911
911
  value: function() {
912
912
  var R = this, T = this.props.delay, Y = this.state.delayed;
@@ -932,13 +932,13 @@ var t = qt.exports, kn = { exports: {} };
932
932
  height: $,
933
933
  width: _
934
934
  };
935
- return h.default.createElement("div", l({
935
+ return h.default.createElement("div", s({
936
936
  style: ue,
937
937
  dangerouslySetInnerHTML: { __html: te }
938
938
  }, G));
939
939
  }
940
- }]), c;
941
- }(d.Component);
940
+ }]), l;
941
+ }(p.Component);
942
942
  F.propTypes = {
943
943
  color: m.default.string,
944
944
  delay: m.default.number,
@@ -951,16 +951,16 @@ var t = qt.exports, kn = { exports: {} };
951
951
  type: "balls",
952
952
  height: 64,
953
953
  width: 64
954
- }, a.default = F;
954
+ }, r.default = F;
955
955
  },
956
956
  /* 8 */
957
957
  /***/
958
- function(o, a, i) {
958
+ function(o, r, i) {
959
959
  process.env.NODE_ENV === "production" ? o.exports = i(9) : o.exports = i(10);
960
960
  },
961
961
  /* 9 */
962
962
  /***/
963
- function(o, a, i) {
963
+ function(o, r, i) {
964
964
  /** @license React v16.3.2
965
965
  * react.production.min.js
966
966
  *
@@ -969,10 +969,10 @@ var t = qt.exports, kn = { exports: {} };
969
969
  * This source code is licensed under the MIT license found in the
970
970
  * LICENSE file in the root directory of this source tree.
971
971
  */
972
- var l = i(2), s = i(0), d = i(5), h = i(1), p = typeof Symbol == "function" && Symbol.for, m = p ? Symbol.for("react.element") : 60103, b = p ? Symbol.for("react.portal") : 60106, w = p ? Symbol.for("react.fragment") : 60107, V = p ? Symbol.for("react.strict_mode") : 60108, O = p ? Symbol.for("react.provider") : 60109, N = p ? Symbol.for("react.context") : 60110, B = p ? Symbol.for("react.async_mode") : 60111, D = p ? Symbol.for("react.forward_ref") : 60112, I = typeof Symbol == "function" && Symbol.iterator;
972
+ var s = i(2), c = i(0), p = i(5), h = i(1), d = typeof Symbol == "function" && Symbol.for, m = d ? Symbol.for("react.element") : 60103, b = d ? Symbol.for("react.portal") : 60106, w = d ? Symbol.for("react.fragment") : 60107, V = d ? Symbol.for("react.strict_mode") : 60108, O = d ? Symbol.for("react.provider") : 60109, N = d ? Symbol.for("react.context") : 60110, B = d ? Symbol.for("react.async_mode") : 60111, D = d ? Symbol.for("react.forward_ref") : 60112, I = typeof Symbol == "function" && Symbol.iterator;
973
973
  function F(f) {
974
974
  for (var g = arguments.length - 1, k = "http://reactjs.org/docs/error-decoder.html?invariant=" + f, E = 0; E < g; E++) k += "&args[]=" + encodeURIComponent(arguments[E + 1]);
975
- s(!1, "Minified React error #" + f + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", k);
975
+ c(!1, "Minified React error #" + f + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", k);
976
976
  }
977
977
  var C = { isMounted: function() {
978
978
  return !1;
@@ -980,22 +980,22 @@ var t = qt.exports, kn = { exports: {} };
980
980
  }, enqueueReplaceState: function() {
981
981
  }, enqueueSetState: function() {
982
982
  } };
983
- function c(f, g, k) {
984
- this.props = f, this.context = g, this.refs = d, this.updater = k || C;
983
+ function l(f, g, k) {
984
+ this.props = f, this.context = g, this.refs = p, this.updater = k || C;
985
985
  }
986
- c.prototype.isReactComponent = {}, c.prototype.setState = function(f, g) {
986
+ l.prototype.isReactComponent = {}, l.prototype.setState = function(f, g) {
987
987
  typeof f != "object" && typeof f != "function" && f != null && F("85"), this.updater.enqueueSetState(this, f, g, "setState");
988
- }, c.prototype.forceUpdate = function(f) {
988
+ }, l.prototype.forceUpdate = function(f) {
989
989
  this.updater.enqueueForceUpdate(this, f, "forceUpdate");
990
990
  };
991
991
  function y() {
992
992
  }
993
- y.prototype = c.prototype;
993
+ y.prototype = l.prototype;
994
994
  function R(f, g, k) {
995
- this.props = f, this.context = g, this.refs = d, this.updater = k || C;
995
+ this.props = f, this.context = g, this.refs = p, this.updater = k || C;
996
996
  }
997
997
  var T = R.prototype = new y();
998
- T.constructor = R, l(T, c.prototype), T.isPureReactComponent = !0;
998
+ T.constructor = R, s(T, l.prototype), T.isPureReactComponent = !0;
999
999
  var Y = { current: null }, $ = Object.prototype.hasOwnProperty, _ = { key: !0, ref: !0, __self: !0, __source: !0 };
1000
1000
  function G(f, g, k) {
1001
1001
  var E = void 0, W = {}, j = null, ie = null;
@@ -1026,7 +1026,7 @@ var t = qt.exports, kn = { exports: {} };
1026
1026
  }
1027
1027
  return { result: f, keyPrefix: g, func: k, context: E, count: 0 };
1028
1028
  }
1029
- function pe(f) {
1029
+ function he(f) {
1030
1030
  f.result = null, f.keyPrefix = null, f.func = null, f.context = null, f.count = 0, 10 > ne.length && ne.push(f);
1031
1031
  }
1032
1032
  function ge(f, g, k, E) {
@@ -1068,7 +1068,7 @@ var t = qt.exports, kn = { exports: {} };
1068
1068
  }
1069
1069
  function A(f, g, k, E, W) {
1070
1070
  var j = "";
1071
- k != null && (j = ("" + k).replace(ue, "$&/") + "/"), g = oe(g, j, E, W), f == null || ge(f, "", x, g), pe(g);
1071
+ k != null && (j = ("" + k).replace(ue, "$&/") + "/"), g = oe(g, j, E, W), f == null || ge(f, "", x, g), he(g);
1072
1072
  }
1073
1073
  var L = { Children: { map: function(f, g, k) {
1074
1074
  if (f == null) return f;
@@ -1076,7 +1076,7 @@ var t = qt.exports, kn = { exports: {} };
1076
1076
  return A(f, E, null, g, k), E;
1077
1077
  }, forEach: function(f, g, k) {
1078
1078
  if (f == null) return f;
1079
- g = oe(null, null, g, k), f == null || ge(f, "", q, g), pe(g);
1079
+ g = oe(null, null, g, k), f == null || ge(f, "", q, g), he(g);
1080
1080
  }, count: function(f) {
1081
1081
  return f == null ? 0 : ge(f, "", h.thatReturnsNull, null);
1082
1082
  }, toArray: function(f) {
@@ -1086,7 +1086,7 @@ var t = qt.exports, kn = { exports: {} };
1086
1086
  return J(f) || F("143"), f;
1087
1087
  } }, createRef: function() {
1088
1088
  return { current: null };
1089
- }, Component: c, PureComponent: R, createContext: function(f, g) {
1089
+ }, Component: l, PureComponent: R, createContext: function(f, g) {
1090
1090
  return g === void 0 && (g = null), f = {
1091
1091
  $$typeof: N,
1092
1092
  _calculateChangedBits: g,
@@ -1100,7 +1100,7 @@ var t = qt.exports, kn = { exports: {} };
1100
1100
  return { $$typeof: D, render: f };
1101
1101
  }, Fragment: w, StrictMode: V, unstable_AsyncMode: B, createElement: G, cloneElement: function(f, g, k) {
1102
1102
  f == null && F("267", f);
1103
- var E = void 0, W = l({}, f.props), j = f.key, ie = f.ref, ce = f._owner;
1103
+ var E = void 0, W = s({}, f.props), j = f.key, ie = f.ref, ce = f._owner;
1104
1104
  if (g != null) {
1105
1105
  g.ref !== void 0 && (ie = g.ref, ce = Y.current), g.key !== void 0 && (j = "" + g.key);
1106
1106
  var Q = void 0;
@@ -1117,12 +1117,12 @@ var t = qt.exports, kn = { exports: {} };
1117
1117
  }, createFactory: function(f) {
1118
1118
  var g = G.bind(null, f);
1119
1119
  return g.type = f, g;
1120
- }, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: Y, assign: l } }, K = Object.freeze({ default: L }), M = K && L || K;
1120
+ }, isValidElement: J, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: Y, assign: s } }, K = Object.freeze({ default: L }), M = K && L || K;
1121
1121
  o.exports = M.default ? M.default : M;
1122
1122
  },
1123
1123
  /* 10 */
1124
1124
  /***/
1125
- function(o, a, i) {
1125
+ function(o, r, i) {
1126
1126
  /** @license React v16.3.2
1127
1127
  * react.development.js
1128
1128
  *
@@ -1132,7 +1132,7 @@ var t = qt.exports, kn = { exports: {} };
1132
1132
  * LICENSE file in the root directory of this source tree.
1133
1133
  */
1134
1134
  process.env.NODE_ENV !== "production" && function() {
1135
- var l = i(2), s = i(0), d = i(5), h = i(3), p = i(1), m = i(6), b = "16.3.2", w = typeof Symbol == "function" && Symbol.for, V = w ? Symbol.for("react.element") : 60103, O = w ? Symbol.for("react.call") : 60104, N = w ? Symbol.for("react.return") : 60105, B = w ? Symbol.for("react.portal") : 60106, D = w ? Symbol.for("react.fragment") : 60107, I = w ? Symbol.for("react.strict_mode") : 60108, F = w ? Symbol.for("react.provider") : 60109, C = w ? Symbol.for("react.context") : 60110, c = w ? Symbol.for("react.async_mode") : 60111, y = w ? Symbol.for("react.forward_ref") : 60112, R = typeof Symbol == "function" && Symbol.iterator, T = "@@iterator";
1135
+ var s = i(2), c = i(0), p = i(5), h = i(3), d = i(1), m = i(6), b = "16.3.2", w = typeof Symbol == "function" && Symbol.for, V = w ? Symbol.for("react.element") : 60103, O = w ? Symbol.for("react.call") : 60104, N = w ? Symbol.for("react.return") : 60105, B = w ? Symbol.for("react.portal") : 60106, D = w ? Symbol.for("react.fragment") : 60107, I = w ? Symbol.for("react.strict_mode") : 60108, F = w ? Symbol.for("react.provider") : 60109, C = w ? Symbol.for("react.context") : 60110, l = w ? Symbol.for("react.async_mode") : 60111, y = w ? Symbol.for("react.forward_ref") : 60112, R = typeof Symbol == "function" && Symbol.iterator, T = "@@iterator";
1136
1136
  function Y(n) {
1137
1137
  if (n === null || typeof n > "u")
1138
1138
  return null;
@@ -1235,10 +1235,10 @@ var t = qt.exports, kn = { exports: {} };
1235
1235
  }
1236
1236
  };
1237
1237
  function ne(n, v, P) {
1238
- this.props = n, this.context = v, this.refs = d, this.updater = P || ue;
1238
+ this.props = n, this.context = v, this.refs = p, this.updater = P || ue;
1239
1239
  }
1240
1240
  ne.prototype.isReactComponent = {}, ne.prototype.setState = function(n, v) {
1241
- typeof n == "object" || typeof n == "function" || n == null || s(!1, "setState(...): takes an object of state variables to update or a function which returns an object of state variables."), this.updater.enqueueSetState(this, n, v, "setState");
1241
+ typeof n == "object" || typeof n == "function" || n == null || c(!1, "setState(...): takes an object of state variables to update or a function which returns an object of state variables."), this.updater.enqueueSetState(this, n, v, "setState");
1242
1242
  }, ne.prototype.forceUpdate = function(n) {
1243
1243
  this.updater.enqueueForceUpdate(this, n, "forceUpdate");
1244
1244
  };
@@ -1246,7 +1246,7 @@ var t = qt.exports, kn = { exports: {} };
1246
1246
  var oe = {
1247
1247
  isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
1248
1248
  replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
1249
- }, pe = function(n, v) {
1249
+ }, he = function(n, v) {
1250
1250
  Object.defineProperty(ne.prototype, n, {
1251
1251
  get: function() {
1252
1252
  G(!1, "%s(...) is deprecated in plain JavaScript React classes. %s", v[0], v[1]);
@@ -1254,16 +1254,16 @@ var t = qt.exports, kn = { exports: {} };
1254
1254
  });
1255
1255
  };
1256
1256
  for (var ge in oe)
1257
- oe.hasOwnProperty(ge) && pe(ge, oe[ge]);
1257
+ oe.hasOwnProperty(ge) && he(ge, oe[ge]);
1258
1258
  }
1259
1259
  function S() {
1260
1260
  }
1261
1261
  S.prototype = ne.prototype;
1262
1262
  function q(n, v, P) {
1263
- this.props = n, this.context = v, this.refs = d, this.updater = P || ue;
1263
+ this.props = n, this.context = v, this.refs = p, this.updater = P || ue;
1264
1264
  }
1265
1265
  var x = q.prototype = new S();
1266
- x.constructor = q, l(x, ne.prototype), x.isPureReactComponent = !0;
1266
+ x.constructor = q, s(x, ne.prototype), x.isPureReactComponent = !0;
1267
1267
  function A() {
1268
1268
  var n = {
1269
1269
  current: null
@@ -1376,8 +1376,8 @@ var t = qt.exports, kn = { exports: {} };
1376
1376
  return P;
1377
1377
  }
1378
1378
  function de(n, v, P) {
1379
- n == null && s(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", n);
1380
- var z = void 0, U = l({}, n.props), se = n.key, le = n.ref, ae = n._self, be = n._source, Pe = n._owner;
1379
+ n == null && c(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", n);
1380
+ var z = void 0, U = s({}, n.props), se = n.key, le = n.ref, ae = n._self, be = n._source, Pe = n._owner;
1381
1381
  if (v != null) {
1382
1382
  k(v) && (le = v.ref, Pe = L.current), E(v) && (se = "" + v.key);
1383
1383
  var Se = void 0;
@@ -1475,7 +1475,7 @@ var t = qt.exports, kn = { exports: {} };
1475
1475
  var Qt = "";
1476
1476
  Qt = " If you meant to render a collection of children, use an array instead." + we.getStackAddendum();
1477
1477
  var en = "" + n;
1478
- s(!1, "Objects are not valid as a React child (found: %s).%s", en === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : en, Qt);
1478
+ c(!1, "Objects are not valid as a React child (found: %s).%s", en === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : en, Qt);
1479
1479
  }
1480
1480
  }
1481
1481
  return be;
@@ -1498,7 +1498,7 @@ var t = qt.exports, kn = { exports: {} };
1498
1498
  }
1499
1499
  function Nt(n, v, P) {
1500
1500
  var z = n.result, U = n.keyPrefix, se = n.func, le = n.context, ae = se.call(le, v, n.count++);
1501
- Array.isArray(ae) ? Qe(ae, z, P, p.thatReturnsArgument) : ae != null && (Ce(ae) && (ae = Q(
1501
+ Array.isArray(ae) ? Qe(ae, z, P, d.thatReturnsArgument) : ae != null && (Ce(ae) && (ae = Q(
1502
1502
  ae,
1503
1503
  // Keep both the (mapped) and old keys if they differ, just as
1504
1504
  // traverseAllChildren used to do for objects as children
@@ -1518,14 +1518,14 @@ var t = qt.exports, kn = { exports: {} };
1518
1518
  return Qe(n, z, null, v, P), z;
1519
1519
  }
1520
1520
  function At(n, v) {
1521
- return qe(n, p.thatReturnsNull, null);
1521
+ return qe(n, d.thatReturnsNull, null);
1522
1522
  }
1523
1523
  function Ft(n) {
1524
1524
  var v = [];
1525
- return Qe(n, v, null, p.thatReturnsArgument), v;
1525
+ return Qe(n, v, null, d.thatReturnsArgument), v;
1526
1526
  }
1527
1527
  function et(n) {
1528
- return Ce(n) || s(!1, "React.Children.only expected to receive a single React element child."), n;
1528
+ return Ce(n) || c(!1, "React.Children.only expected to receive a single React element child."), n;
1529
1529
  }
1530
1530
  function pt(n, v) {
1531
1531
  v === void 0 ? v = null : v === null || typeof v == "function" || h(!1, "createContext: Expected the optional second argument to be a function. Instead received: %s", v);
@@ -1556,7 +1556,7 @@ var t = qt.exports, kn = { exports: {} };
1556
1556
  };
1557
1557
  function nt(n) {
1558
1558
  return typeof n == "string" || typeof n == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1559
- n === D || n === c || n === I || typeof n == "object" && n !== null && (n.$$typeof === F || n.$$typeof === C || n.$$typeof === y);
1559
+ n === D || n === l || n === I || typeof n == "object" && n !== null && (n.$$typeof === F || n.$$typeof === C || n.$$typeof === y);
1560
1560
  }
1561
1561
  function Ke(n) {
1562
1562
  var v = n.type;
@@ -1720,7 +1720,7 @@ Check the top-level render call using <` + P + ">.");
1720
1720
  forwardRef: Ve,
1721
1721
  Fragment: D,
1722
1722
  StrictMode: I,
1723
- unstable_AsyncMode: c,
1723
+ unstable_AsyncMode: l,
1724
1724
  createElement: bt,
1725
1725
  cloneElement: H,
1726
1726
  createFactory: u,
@@ -1729,10 +1729,10 @@ Check the top-level render call using <` + P + ">.");
1729
1729
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
1730
1730
  ReactCurrentOwner: L,
1731
1731
  // Used by renderers to avoid bundling object-assign twice in UMD bundles:
1732
- assign: l
1732
+ assign: s
1733
1733
  }
1734
1734
  };
1735
- l(X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
1735
+ s(X.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
1736
1736
  // These should not be included in production.
1737
1737
  ReactDebugCurrentFrame: we,
1738
1738
  // Shim for React DOM 16.0.0 which still destructured (but not used) this.
@@ -1747,19 +1747,19 @@ Check the top-level render call using <` + P + ">.");
1747
1747
  },
1748
1748
  /* 11 */
1749
1749
  /***/
1750
- function(o, a, i) {
1750
+ function(o, r, i) {
1751
1751
  if (process.env.NODE_ENV !== "production") {
1752
- var l = typeof Symbol == "function" && Symbol.for && Symbol.for("react.element") || 60103, s = function(h) {
1753
- return typeof h == "object" && h !== null && h.$$typeof === l;
1754
- }, d = !0;
1755
- o.exports = i(12)(s, d);
1752
+ var s = typeof Symbol == "function" && Symbol.for && Symbol.for("react.element") || 60103, c = function(h) {
1753
+ return typeof h == "object" && h !== null && h.$$typeof === s;
1754
+ }, p = !0;
1755
+ o.exports = i(12)(c, p);
1756
1756
  } else
1757
1757
  o.exports = i(13)();
1758
1758
  },
1759
1759
  /* 12 */
1760
1760
  /***/
1761
- function(o, a, i) {
1762
- var l = i(1), s = i(0), d = i(3), h = i(2), p = i(4), m = i(6);
1761
+ function(o, r, i) {
1762
+ var s = i(1), c = i(0), p = i(3), h = i(2), d = i(4), m = i(6);
1763
1763
  o.exports = function(b, w) {
1764
1764
  var V = typeof Symbol == "function" && Symbol.iterator, O = "@@iterator";
1765
1765
  function N(x) {
@@ -1768,13 +1768,13 @@ Check the top-level render call using <` + P + ">.");
1768
1768
  return A;
1769
1769
  }
1770
1770
  var B = "<<anonymous>>", D = {
1771
- array: c("array"),
1772
- bool: c("boolean"),
1773
- func: c("function"),
1774
- number: c("number"),
1775
- object: c("object"),
1776
- string: c("string"),
1777
- symbol: c("symbol"),
1771
+ array: l("array"),
1772
+ bool: l("boolean"),
1773
+ func: l("function"),
1774
+ number: l("number"),
1775
+ object: l("object"),
1776
+ string: l("string"),
1777
+ symbol: l("symbol"),
1778
1778
  any: y(),
1779
1779
  arrayOf: R,
1780
1780
  element: T(),
@@ -1797,16 +1797,16 @@ Check the top-level render call using <` + P + ">.");
1797
1797
  if (process.env.NODE_ENV !== "production")
1798
1798
  var A = {}, L = 0;
1799
1799
  function K(f, g, k, E, W, j, ie) {
1800
- if (E = E || B, j = j || k, ie !== p) {
1800
+ if (E = E || B, j = j || k, ie !== d) {
1801
1801
  if (w)
1802
- s(
1802
+ c(
1803
1803
  !1,
1804
1804
  "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"
1805
1805
  );
1806
1806
  else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1807
1807
  var ce = E + ":" + k;
1808
1808
  !A[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
1809
- L < 3 && (d(
1809
+ L < 3 && (p(
1810
1810
  !1,
1811
1811
  "You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. 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.",
1812
1812
  j,
@@ -1819,9 +1819,9 @@ Check the top-level render call using <` + P + ">.");
1819
1819
  var M = K.bind(null, !1);
1820
1820
  return M.isRequired = K.bind(null, !0), M;
1821
1821
  }
1822
- function c(x) {
1822
+ function l(x) {
1823
1823
  function A(L, K, M, f, g, k) {
1824
- var E = L[K], W = pe(E);
1824
+ var E = L[K], W = he(E);
1825
1825
  if (W !== x) {
1826
1826
  var j = ge(E);
1827
1827
  return new F("Invalid " + f + " `" + g + "` of type " + ("`" + j + "` supplied to `" + M + "`, expected ") + ("`" + x + "`."));
@@ -1831,7 +1831,7 @@ Check the top-level render call using <` + P + ">.");
1831
1831
  return C(A);
1832
1832
  }
1833
1833
  function y() {
1834
- return C(l.thatReturnsNull);
1834
+ return C(s.thatReturnsNull);
1835
1835
  }
1836
1836
  function R(x) {
1837
1837
  function A(L, K, M, f, g) {
@@ -1839,11 +1839,11 @@ Check the top-level render call using <` + P + ">.");
1839
1839
  return new F("Property `" + g + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
1840
1840
  var k = L[K];
1841
1841
  if (!Array.isArray(k)) {
1842
- var E = pe(k);
1842
+ var E = he(k);
1843
1843
  return new F("Invalid " + f + " `" + g + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected an array."));
1844
1844
  }
1845
1845
  for (var W = 0; W < k.length; W++) {
1846
- var j = x(k, W, M, f, g + "[" + W + "]", p);
1846
+ var j = x(k, W, M, f, g + "[" + W + "]", d);
1847
1847
  if (j instanceof Error)
1848
1848
  return j;
1849
1849
  }
@@ -1855,7 +1855,7 @@ Check the top-level render call using <` + P + ">.");
1855
1855
  function x(A, L, K, M, f) {
1856
1856
  var g = A[L];
1857
1857
  if (!b(g)) {
1858
- var k = pe(g);
1858
+ var k = he(g);
1859
1859
  return new F("Invalid " + M + " `" + f + "` of type " + ("`" + k + "` supplied to `" + K + "`, expected a single ReactElement."));
1860
1860
  }
1861
1861
  return null;
@@ -1874,7 +1874,7 @@ Check the top-level render call using <` + P + ">.");
1874
1874
  }
1875
1875
  function $(x) {
1876
1876
  if (!Array.isArray(x))
1877
- return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOf, expected an instance of array."), l.thatReturnsNull;
1877
+ return process.env.NODE_ENV !== "production" && p(!1, "Invalid argument supplied to oneOf, expected an instance of array."), s.thatReturnsNull;
1878
1878
  function A(L, K, M, f, g) {
1879
1879
  for (var k = L[K], E = 0; E < x.length; E++)
1880
1880
  if (I(k, x[E]))
@@ -1888,12 +1888,12 @@ Check the top-level render call using <` + P + ">.");
1888
1888
  function A(L, K, M, f, g) {
1889
1889
  if (typeof x != "function")
1890
1890
  return new F("Property `" + g + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
1891
- var k = L[K], E = pe(k);
1891
+ var k = L[K], E = he(k);
1892
1892
  if (E !== "object")
1893
1893
  return new F("Invalid " + f + " `" + g + "` of type " + ("`" + E + "` supplied to `" + M + "`, expected an object."));
1894
1894
  for (var W in k)
1895
1895
  if (k.hasOwnProperty(W)) {
1896
- var j = x(k, W, M, f, g + "." + W, p);
1896
+ var j = x(k, W, M, f, g + "." + W, d);
1897
1897
  if (j instanceof Error)
1898
1898
  return j;
1899
1899
  }
@@ -1903,21 +1903,21 @@ Check the top-level render call using <` + P + ">.");
1903
1903
  }
1904
1904
  function G(x) {
1905
1905
  if (!Array.isArray(x))
1906
- return process.env.NODE_ENV !== "production" && d(!1, "Invalid argument supplied to oneOfType, expected an instance of array."), l.thatReturnsNull;
1906
+ return process.env.NODE_ENV !== "production" && p(!1, "Invalid argument supplied to oneOfType, expected an instance of array."), s.thatReturnsNull;
1907
1907
  for (var A = 0; A < x.length; A++) {
1908
1908
  var L = x[A];
1909
1909
  if (typeof L != "function")
1910
- return d(
1910
+ return p(
1911
1911
  !1,
1912
1912
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",
1913
1913
  S(L),
1914
1914
  A
1915
- ), l.thatReturnsNull;
1915
+ ), s.thatReturnsNull;
1916
1916
  }
1917
1917
  function K(M, f, g, k, E) {
1918
1918
  for (var W = 0; W < x.length; W++) {
1919
1919
  var j = x[W];
1920
- if (j(M, f, g, k, E, p) == null)
1920
+ if (j(M, f, g, k, E, d) == null)
1921
1921
  return null;
1922
1922
  }
1923
1923
  return new F("Invalid " + k + " `" + E + "` supplied to " + ("`" + g + "`."));
@@ -1932,13 +1932,13 @@ Check the top-level render call using <` + P + ">.");
1932
1932
  }
1933
1933
  function te(x) {
1934
1934
  function A(L, K, M, f, g) {
1935
- var k = L[K], E = pe(k);
1935
+ var k = L[K], E = he(k);
1936
1936
  if (E !== "object")
1937
1937
  return new F("Invalid " + f + " `" + g + "` of type `" + E + "` " + ("supplied to `" + M + "`, expected `object`."));
1938
1938
  for (var W in x) {
1939
1939
  var j = x[W];
1940
1940
  if (j) {
1941
- var ie = j(k, W, M, f, g + "." + W, p);
1941
+ var ie = j(k, W, M, f, g + "." + W, d);
1942
1942
  if (ie)
1943
1943
  return ie;
1944
1944
  }
@@ -1949,7 +1949,7 @@ Check the top-level render call using <` + P + ">.");
1949
1949
  }
1950
1950
  function ue(x) {
1951
1951
  function A(L, K, M, f, g) {
1952
- var k = L[K], E = pe(k);
1952
+ var k = L[K], E = he(k);
1953
1953
  if (E !== "object")
1954
1954
  return new F("Invalid " + f + " `" + g + "` of type `" + E + "` " + ("supplied to `" + M + "`, expected `object`."));
1955
1955
  var W = h({}, L[K], x);
@@ -1960,7 +1960,7 @@ Check the top-level render call using <` + P + ">.");
1960
1960
  "Invalid " + f + " `" + g + "` key `" + j + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[K], null, " ") + `
1961
1961
  Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
1962
1962
  );
1963
- var ce = ie(k, j, M, f, g + "." + j, p);
1963
+ var ce = ie(k, j, M, f, g + "." + j, d);
1964
1964
  if (ce)
1965
1965
  return ce;
1966
1966
  }
@@ -2004,14 +2004,14 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2004
2004
  function oe(x, A) {
2005
2005
  return x === "symbol" || A["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && A instanceof Symbol;
2006
2006
  }
2007
- function pe(x) {
2007
+ function he(x) {
2008
2008
  var A = typeof x;
2009
2009
  return Array.isArray(x) ? "array" : x instanceof RegExp ? "object" : oe(A, x) ? "symbol" : A;
2010
2010
  }
2011
2011
  function ge(x) {
2012
2012
  if (typeof x > "u" || x === null)
2013
2013
  return "" + x;
2014
- var A = pe(x);
2014
+ var A = he(x);
2015
2015
  if (A === "object") {
2016
2016
  if (x instanceof Date)
2017
2017
  return "date";
@@ -2042,17 +2042,17 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2042
2042
  },
2043
2043
  /* 13 */
2044
2044
  /***/
2045
- function(o, a, i) {
2046
- var l = i(1), s = i(0), d = i(4);
2045
+ function(o, r, i) {
2046
+ var s = i(1), c = i(0), p = i(4);
2047
2047
  o.exports = function() {
2048
2048
  function h(b, w, V, O, N, B) {
2049
- B !== d && s(
2049
+ B !== p && c(
2050
2050
  !1,
2051
2051
  "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"
2052
2052
  );
2053
2053
  }
2054
2054
  h.isRequired = h;
2055
- function p() {
2055
+ function d() {
2056
2056
  return h;
2057
2057
  }
2058
2058
  var m = {
@@ -2064,83 +2064,83 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2064
2064
  string: h,
2065
2065
  symbol: h,
2066
2066
  any: h,
2067
- arrayOf: p,
2067
+ arrayOf: d,
2068
2068
  element: h,
2069
- instanceOf: p,
2069
+ instanceOf: d,
2070
2070
  node: h,
2071
- objectOf: p,
2072
- oneOf: p,
2073
- oneOfType: p,
2074
- shape: p,
2075
- exact: p
2071
+ objectOf: d,
2072
+ oneOf: d,
2073
+ oneOfType: d,
2074
+ shape: d,
2075
+ exact: d
2076
2076
  };
2077
- return m.checkPropTypes = l, m.PropTypes = m, m;
2077
+ return m.checkPropTypes = s, m.PropTypes = m, m;
2078
2078
  };
2079
2079
  },
2080
2080
  /* 14 */
2081
2081
  /***/
2082
- function(o, a, i) {
2083
- Object.defineProperty(a, "__esModule", {
2082
+ function(o, r, i) {
2083
+ Object.defineProperty(r, "__esModule", {
2084
2084
  value: !0
2085
2085
  });
2086
- var l = i(15);
2087
- Object.defineProperty(a, "blank", {
2086
+ var s = i(15);
2087
+ Object.defineProperty(r, "blank", {
2088
2088
  enumerable: !0,
2089
2089
  get: function() {
2090
- return O(l).default;
2090
+ return O(s).default;
2091
2091
  }
2092
2092
  });
2093
- var s = i(16);
2094
- Object.defineProperty(a, "balls", {
2093
+ var c = i(16);
2094
+ Object.defineProperty(r, "balls", {
2095
2095
  enumerable: !0,
2096
2096
  get: function() {
2097
- return O(s).default;
2097
+ return O(c).default;
2098
2098
  }
2099
2099
  });
2100
- var d = i(17);
2101
- Object.defineProperty(a, "bars", {
2100
+ var p = i(17);
2101
+ Object.defineProperty(r, "bars", {
2102
2102
  enumerable: !0,
2103
2103
  get: function() {
2104
- return O(d).default;
2104
+ return O(p).default;
2105
2105
  }
2106
2106
  });
2107
2107
  var h = i(18);
2108
- Object.defineProperty(a, "bubbles", {
2108
+ Object.defineProperty(r, "bubbles", {
2109
2109
  enumerable: !0,
2110
2110
  get: function() {
2111
2111
  return O(h).default;
2112
2112
  }
2113
2113
  });
2114
- var p = i(19);
2115
- Object.defineProperty(a, "cubes", {
2114
+ var d = i(19);
2115
+ Object.defineProperty(r, "cubes", {
2116
2116
  enumerable: !0,
2117
2117
  get: function() {
2118
- return O(p).default;
2118
+ return O(d).default;
2119
2119
  }
2120
2120
  });
2121
2121
  var m = i(20);
2122
- Object.defineProperty(a, "cylon", {
2122
+ Object.defineProperty(r, "cylon", {
2123
2123
  enumerable: !0,
2124
2124
  get: function() {
2125
2125
  return O(m).default;
2126
2126
  }
2127
2127
  });
2128
2128
  var b = i(21);
2129
- Object.defineProperty(a, "spin", {
2129
+ Object.defineProperty(r, "spin", {
2130
2130
  enumerable: !0,
2131
2131
  get: function() {
2132
2132
  return O(b).default;
2133
2133
  }
2134
2134
  });
2135
2135
  var w = i(22);
2136
- Object.defineProperty(a, "spinningBubbles", {
2136
+ Object.defineProperty(r, "spinningBubbles", {
2137
2137
  enumerable: !0,
2138
2138
  get: function() {
2139
2139
  return O(w).default;
2140
2140
  }
2141
2141
  });
2142
2142
  var V = i(23);
2143
- Object.defineProperty(a, "spokes", {
2143
+ Object.defineProperty(r, "spokes", {
2144
2144
  enumerable: !0,
2145
2145
  get: function() {
2146
2146
  return O(V).default;
@@ -2152,13 +2152,13 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2152
2152
  },
2153
2153
  /* 15 */
2154
2154
  /***/
2155
- function(o, a) {
2155
+ function(o, r) {
2156
2156
  o.exports = `<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
2157
2157
  `;
2158
2158
  },
2159
2159
  /* 16 */
2160
2160
  /***/
2161
- function(o, a) {
2161
+ function(o, r) {
2162
2162
  o.exports = `<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2163
2163
  <path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
2164
2164
  <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
@@ -2177,7 +2177,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2177
2177
  },
2178
2178
  /* 17 */
2179
2179
  /***/
2180
- function(o, a) {
2180
+ function(o, r) {
2181
2181
  o.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2182
2182
  <path transform="translate(2)" d="M0 12 V20 H4 V12z">
2183
2183
  <animate attributeName="d" values="M0 12 V20 H4 V12z; M0 4 V28 H4 V4z; M0 12 V20 H4 V12z; M0 12 V20 H4 V12z" dur="1.2s" repeatCount="indefinite" begin="0" keytimes="0;.2;.5;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.8 0.4 0.8" calcMode="spline" />
@@ -2199,7 +2199,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2199
2199
  },
2200
2200
  /* 18 */
2201
2201
  /***/
2202
- function(o, a) {
2202
+ function(o, r) {
2203
2203
  o.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2204
2204
  <circle transform="translate(8 0)" cx="0" cy="16" r="0">
2205
2205
  <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"
@@ -2218,7 +2218,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2218
2218
  },
2219
2219
  /* 19 */
2220
2220
  /***/
2221
- function(o, a) {
2221
+ function(o, r) {
2222
2222
  o.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2223
2223
  <path transform="translate(-8 0)" d="M0 12 V20 H8 V12z">
2224
2224
  <animateTransform attributeName="transform" type="translate" values="-8 0; 2 0; 2 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.25;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
@@ -2237,7 +2237,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2237
2237
  },
2238
2238
  /* 20 */
2239
2239
  /***/
2240
- function(o, a) {
2240
+ function(o, r) {
2241
2241
  o.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2242
2242
  <path transform="translate(0 0)" d="M0 12 V20 H4 V12z">
2243
2243
  <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0" repeatCount="indefinite" keytimes="0;0.3;0.6;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
@@ -2253,7 +2253,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2253
2253
  },
2254
2254
  /* 21 */
2255
2255
  /***/
2256
- function(o, a) {
2256
+ function(o, r) {
2257
2257
  o.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2258
2258
  <path opacity=".25" d="M16 0 A16 16 0 0 0 16 32 A16 16 0 0 0 16 0 M16 4 A12 12 0 0 1 16 28 A12 12 0 0 1 16 4"/>
2259
2259
  <path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
@@ -2264,7 +2264,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2264
2264
  },
2265
2265
  /* 22 */
2266
2266
  /***/
2267
- function(o, a) {
2267
+ function(o, r) {
2268
2268
  o.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2269
2269
  <circle cx="16" cy="3" r="0">
2270
2270
  <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" calcMode="spline" />
@@ -2298,7 +2298,7 @@ Valid keys: ` + JSON.stringify(Object.keys(x), null, " ")
2298
2298
  },
2299
2299
  /* 23 */
2300
2300
  /***/
2301
- function(o, a) {
2301
+ function(o, r) {
2302
2302
  o.exports = `<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2303
2303
  <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
2304
2304
  <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>
@@ -2344,106 +2344,106 @@ var An = {
2344
2344
  style: void 0,
2345
2345
  attr: void 0
2346
2346
  }, rn = Ae.createContext && /* @__PURE__ */ Ae.createContext(An), ur = ["attr", "size", "title"];
2347
- function fr(e, r) {
2347
+ function fr(e, a) {
2348
2348
  if (e == null) return {};
2349
- var o = dr(e, r), a, i;
2349
+ var o = dr(e, a), r, i;
2350
2350
  if (Object.getOwnPropertySymbols) {
2351
- var l = Object.getOwnPropertySymbols(e);
2352
- for (i = 0; i < l.length; i++)
2353
- a = l[i], !(r.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(e, a) && (o[a] = e[a]);
2351
+ var s = Object.getOwnPropertySymbols(e);
2352
+ for (i = 0; i < s.length; i++)
2353
+ r = s[i], !(a.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
2354
2354
  }
2355
2355
  return o;
2356
2356
  }
2357
- function dr(e, r) {
2357
+ function dr(e, a) {
2358
2358
  if (e == null) return {};
2359
2359
  var o = {};
2360
- for (var a in e)
2361
- if (Object.prototype.hasOwnProperty.call(e, a)) {
2362
- if (r.indexOf(a) >= 0) continue;
2363
- o[a] = e[a];
2360
+ for (var r in e)
2361
+ if (Object.prototype.hasOwnProperty.call(e, r)) {
2362
+ if (a.indexOf(r) >= 0) continue;
2363
+ o[r] = e[r];
2364
2364
  }
2365
2365
  return o;
2366
2366
  }
2367
2367
  function Ct() {
2368
2368
  return Ct = Object.assign ? Object.assign.bind() : function(e) {
2369
- for (var r = 1; r < arguments.length; r++) {
2370
- var o = arguments[r];
2371
- for (var a in o)
2372
- Object.prototype.hasOwnProperty.call(o, a) && (e[a] = o[a]);
2369
+ for (var a = 1; a < arguments.length; a++) {
2370
+ var o = arguments[a];
2371
+ for (var r in o)
2372
+ Object.prototype.hasOwnProperty.call(o, r) && (e[r] = o[r]);
2373
2373
  }
2374
2374
  return e;
2375
2375
  }, Ct.apply(this, arguments);
2376
2376
  }
2377
- function an(e, r) {
2377
+ function an(e, a) {
2378
2378
  var o = Object.keys(e);
2379
2379
  if (Object.getOwnPropertySymbols) {
2380
- var a = Object.getOwnPropertySymbols(e);
2381
- r && (a = a.filter(function(i) {
2380
+ var r = Object.getOwnPropertySymbols(e);
2381
+ a && (r = r.filter(function(i) {
2382
2382
  return Object.getOwnPropertyDescriptor(e, i).enumerable;
2383
- })), o.push.apply(o, a);
2383
+ })), o.push.apply(o, r);
2384
2384
  }
2385
2385
  return o;
2386
2386
  }
2387
2387
  function wt(e) {
2388
- for (var r = 1; r < arguments.length; r++) {
2389
- var o = arguments[r] != null ? arguments[r] : {};
2390
- r % 2 ? an(Object(o), !0).forEach(function(a) {
2391
- pr(e, a, o[a]);
2392
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : an(Object(o)).forEach(function(a) {
2393
- Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(o, a));
2388
+ for (var a = 1; a < arguments.length; a++) {
2389
+ var o = arguments[a] != null ? arguments[a] : {};
2390
+ a % 2 ? an(Object(o), !0).forEach(function(r) {
2391
+ pr(e, r, o[r]);
2392
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(o)) : an(Object(o)).forEach(function(r) {
2393
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(o, r));
2394
2394
  });
2395
2395
  }
2396
2396
  return e;
2397
2397
  }
2398
- function pr(e, r, o) {
2399
- return r = hr(r), r in e ? Object.defineProperty(e, r, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = o, e;
2398
+ function pr(e, a, o) {
2399
+ return a = hr(a), a in e ? Object.defineProperty(e, a, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = o, e;
2400
2400
  }
2401
2401
  function hr(e) {
2402
- var r = vr(e, "string");
2403
- return typeof r == "symbol" ? r : r + "";
2402
+ var a = vr(e, "string");
2403
+ return typeof a == "symbol" ? a : a + "";
2404
2404
  }
2405
- function vr(e, r) {
2405
+ function vr(e, a) {
2406
2406
  if (typeof e != "object" || !e) return e;
2407
2407
  var o = e[Symbol.toPrimitive];
2408
2408
  if (o !== void 0) {
2409
- var a = o.call(e, r || "default");
2410
- if (typeof a != "object") return a;
2409
+ var r = o.call(e, a || "default");
2410
+ if (typeof r != "object") return r;
2411
2411
  throw new TypeError("@@toPrimitive must return a primitive value.");
2412
2412
  }
2413
- return (r === "string" ? String : Number)(e);
2413
+ return (a === "string" ? String : Number)(e);
2414
2414
  }
2415
2415
  function Fn(e) {
2416
- return e && e.map((r, o) => /* @__PURE__ */ Ae.createElement(r.tag, wt({
2416
+ return e && e.map((a, o) => /* @__PURE__ */ Ae.createElement(a.tag, wt({
2417
2417
  key: o
2418
- }, r.attr), Fn(r.child)));
2418
+ }, a.attr), Fn(a.child)));
2419
2419
  }
2420
2420
  function re(e) {
2421
- return (r) => /* @__PURE__ */ Ae.createElement(mr, Ct({
2421
+ return (a) => /* @__PURE__ */ Ae.createElement(mr, Ct({
2422
2422
  attr: wt({}, e.attr)
2423
- }, r), Fn(e.child));
2423
+ }, a), Fn(e.child));
2424
2424
  }
2425
2425
  function mr(e) {
2426
- var r = (o) => {
2426
+ var a = (o) => {
2427
2427
  var {
2428
- attr: a,
2428
+ attr: r,
2429
2429
  size: i,
2430
- title: l
2431
- } = e, s = fr(e, ur), d = i || o.size || "1em", h;
2430
+ title: s
2431
+ } = e, c = fr(e, ur), p = i || o.size || "1em", h;
2432
2432
  return o.className && (h = o.className), e.className && (h = (h ? h + " " : "") + e.className), /* @__PURE__ */ Ae.createElement("svg", Ct({
2433
2433
  stroke: "currentColor",
2434
2434
  fill: "currentColor",
2435
2435
  strokeWidth: "0"
2436
- }, o.attr, a, s, {
2436
+ }, o.attr, r, c, {
2437
2437
  className: h,
2438
2438
  style: wt(wt({
2439
2439
  color: e.color || o.color
2440
2440
  }, o.style), e.style),
2441
- height: d,
2442
- width: d,
2441
+ height: p,
2442
+ width: p,
2443
2443
  xmlns: "http://www.w3.org/2000/svg"
2444
- }), l && /* @__PURE__ */ Ae.createElement("title", null, l), e.children);
2444
+ }), s && /* @__PURE__ */ Ae.createElement("title", null, s), e.children);
2445
2445
  };
2446
- return rn !== void 0 ? /* @__PURE__ */ Ae.createElement(rn.Consumer, null, (o) => r(o)) : r(An);
2446
+ return rn !== void 0 ? /* @__PURE__ */ Ae.createElement(rn.Consumer, null, (o) => a(o)) : a(An);
2447
2447
  }
2448
2448
  function zn(e) {
2449
2449
  return re({ 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);
@@ -2549,23 +2549,23 @@ function Kt(e) {
2549
2549
  }
2550
2550
  const lt = (e = () => {
2551
2551
  }) => {
2552
- const [r, o] = Z(!1), a = ke(null), i = (l) => {
2553
- var s;
2554
- (s = a.current) != null && s.contains(l.target) ? o(!1) : (o(!0), e(l, a));
2552
+ const [a, o] = Z(!1), r = ke(null), i = (s) => {
2553
+ var c;
2554
+ (c = r.current) != null && c.contains(s.target) ? o(!1) : (o(!0), e(s, r));
2555
2555
  };
2556
2556
  return xe(() => (document.addEventListener("click", i, !0), document.addEventListener("mousedown", i, !0), () => {
2557
2557
  document.removeEventListener("click", i, !0), document.removeEventListener("mousedown", i, !0);
2558
- }), []), { ref: a, isClicked: r, setIsClicked: o };
2559
- }, Un = st(), Sr = ({ children: e, layout: r }) => {
2560
- const [o, a] = Z(() => i(r));
2561
- function i(l) {
2562
- return ["list", "grid"].includes(l) ? l : "grid";
2558
+ }), []), { ref: r, isClicked: a, setIsClicked: o };
2559
+ }, Un = st(), Sr = ({ children: e, layout: a }) => {
2560
+ const [o, r] = Z(() => i(a));
2561
+ function i(s) {
2562
+ return ["list", "grid"].includes(s) ? s : "grid";
2563
2563
  }
2564
- return /* @__PURE__ */ t.jsx(Un.Provider, { value: { activeLayout: o, setActiveLayout: a }, children: e });
2565
- }, De = () => ct(Un), Mr = ({ setShowToggleViewMenu: e, onLayoutChange: r }) => {
2564
+ return /* @__PURE__ */ t.jsx(Un.Provider, { value: { activeLayout: o, setActiveLayout: r }, children: e });
2565
+ }, De = () => ct(Un), Mr = ({ setShowToggleViewMenu: e, onLayoutChange: a }) => {
2566
2566
  const o = lt(() => {
2567
2567
  e(!1);
2568
- }), { activeLayout: a, setActiveLayout: i } = De(), l = [
2568
+ }), { activeLayout: r, setActiveLayout: i } = De(), s = [
2569
2569
  {
2570
2570
  key: "grid",
2571
2571
  name: "Grid",
@@ -2576,85 +2576,87 @@ const lt = (e = () => {
2576
2576
  name: "List",
2577
2577
  icon: /* @__PURE__ */ t.jsx(jt, { size: 18 })
2578
2578
  }
2579
- ], s = (d) => {
2580
- i(d), r(d), e(!1);
2579
+ ], c = (p) => {
2580
+ i(p), a(p), e(!1);
2581
2581
  };
2582
- return /* @__PURE__ */ t.jsx("div", { ref: o.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: l.map((d) => /* @__PURE__ */ t.jsxs(
2582
+ return /* @__PURE__ */ t.jsx("div", { ref: o.ref, className: "toggle-view", role: "dropdown", children: /* @__PURE__ */ t.jsx("ul", { role: "menu", "aria-orientation": "vertical", children: s.map((p) => /* @__PURE__ */ t.jsxs(
2583
2583
  "li",
2584
2584
  {
2585
2585
  role: "menuitem",
2586
- onClick: () => s(d.key),
2587
- onKeyDown: () => s(d.key),
2586
+ onClick: () => c(p.key),
2587
+ onKeyDown: () => c(p.key),
2588
2588
  children: [
2589
- /* @__PURE__ */ t.jsx("span", { children: d.key === a && /* @__PURE__ */ t.jsx(Wn, { size: 13 }) }),
2590
- /* @__PURE__ */ t.jsx("span", { children: d.icon }),
2591
- /* @__PURE__ */ t.jsx("span", { children: d.name })
2589
+ /* @__PURE__ */ t.jsx("span", { children: p.key === r && /* @__PURE__ */ t.jsx(Wn, { size: 13 }) }),
2590
+ /* @__PURE__ */ t.jsx("span", { children: p.icon }),
2591
+ /* @__PURE__ */ t.jsx("span", { children: p.name })
2592
2592
  ]
2593
2593
  },
2594
- d.key
2594
+ p.key
2595
2595
  )) }) });
2596
- }, Yn = st(), kr = ({ children: e, filesData: r, onError: o }) => {
2597
- const [a, i] = Z([]);
2596
+ }, Yn = st(), kr = ({ children: e, filesData: a, onError: o }) => {
2597
+ const [r, i] = Z([]);
2598
2598
  xe(() => {
2599
- i(r);
2600
- }, [r]);
2601
- const l = (s) => s.isDirectory ? a.filter((d) => d.path === `${s.path}/${d.name}`) : [];
2602
- return /* @__PURE__ */ t.jsx(Yn.Provider, { value: { files: a, setFiles: i, getChildren: l, onError: o }, children: e });
2603
- }, Rt = () => ct(Yn), qn = st(), Nr = ({ children: e }) => {
2604
- const [r, o] = Z(""), [a, i] = Z(null), [l, s] = Z([]), { files: d } = Rt();
2599
+ i(a);
2600
+ }, [a]);
2601
+ const s = (c) => c.isDirectory ? r.filter((p) => p.path === `${c.path}/${p.name}`) : [];
2602
+ return /* @__PURE__ */ t.jsx(Yn.Provider, { value: { files: r, setFiles: i, getChildren: s, onError: o }, children: e });
2603
+ }, Rt = () => ct(Yn), qn = st(), Nr = ({ children: e, initialPath: a }) => {
2604
+ const { files: o } = Rt(), r = ke(!1), [i, s] = Z(""), [c, p] = Z(null), [h, d] = Z([]);
2605
2605
  return xe(() => {
2606
- Array.isArray(d) && d.length > 0 && (s(() => d.filter((h) => h.path === `${r}/${h.name}`)), i(() => d.find((h) => h.path === r) ?? null));
2607
- }, [d, r]), /* @__PURE__ */ t.jsx(
2606
+ Array.isArray(o) && o.length > 0 && (d(() => o.filter((m) => m.path === `${i}/${m.name}`)), p(() => o.find((m) => m.path === i) ?? null));
2607
+ }, [o, i]), xe(() => {
2608
+ r.current || (s(o.some((m) => m.path === a) ? a : ""), r.current = !0);
2609
+ }, [a, o]), /* @__PURE__ */ t.jsx(
2608
2610
  qn.Provider,
2609
2611
  {
2610
2612
  value: {
2611
- currentPath: r,
2612
- setCurrentPath: o,
2613
- currentFolder: a,
2614
- setCurrentFolder: i,
2615
- currentPathFiles: l,
2616
- setCurrentPathFiles: s
2613
+ currentPath: i,
2614
+ setCurrentPath: s,
2615
+ currentFolder: c,
2616
+ setCurrentFolder: p,
2617
+ currentPathFiles: h,
2618
+ setCurrentPathFiles: d
2617
2619
  },
2618
2620
  children: e
2619
2621
  }
2620
2622
  );
2621
- }, Ne = () => ct(qn), Be = (e, r, ...o) => {
2623
+ }, Ne = () => ct(qn), Be = (e, a, ...o) => {
2622
2624
  try {
2623
2625
  if (typeof e == "function")
2624
2626
  e(...o);
2625
2627
  else
2626
2628
  throw new Error(
2627
- `<FileManager /> Missing prop: Callback function "${r}" is required.`
2629
+ `<FileManager /> Missing prop: Callback function "${a}" is required.`
2628
2630
  );
2629
- } catch (a) {
2630
- console.error(a.message);
2631
+ } catch (r) {
2632
+ console.error(r.message);
2631
2633
  }
2632
- }, Kn = st(), _r = ({ children: e, onDownload: r }) => {
2633
- const [o, a] = Z([]), i = () => {
2634
- Be(r, "onDownload", o);
2634
+ }, Kn = st(), _r = ({ children: e, onDownload: a }) => {
2635
+ const [o, r] = Z([]), i = () => {
2636
+ Be(a, "onDownload", o);
2635
2637
  };
2636
- return /* @__PURE__ */ t.jsx(Kn.Provider, { value: { selectedFiles: o, setSelectedFiles: a, handleDownload: i }, children: e });
2637
- }, ze = () => ct(Kn), Xn = st(), Ar = ({ children: e, onPaste: r }) => {
2638
- const [o, a] = Z(null), { selectedFiles: i, setSelectedFiles: l } = ze(), s = (h) => {
2639
- a({
2638
+ return /* @__PURE__ */ t.jsx(Kn.Provider, { value: { selectedFiles: o, setSelectedFiles: r, handleDownload: i }, children: e });
2639
+ }, ze = () => ct(Kn), Xn = st(), Ar = ({ children: e, onPaste: a }) => {
2640
+ const [o, r] = Z(null), { selectedFiles: i, setSelectedFiles: s } = ze(), c = (h) => {
2641
+ r({
2640
2642
  files: i,
2641
2643
  isMoving: h
2642
2644
  });
2643
- }, d = (h) => {
2645
+ }, p = (h) => {
2644
2646
  if (h && !h.isDirectory) return;
2645
- const p = o.files, m = o.isMoving ? "move" : "copy";
2646
- Be(r, "onPaste", p, h, m), o.isMoving && a(null), l([]);
2647
+ const d = o.files, m = o.isMoving ? "move" : "copy";
2648
+ Be(a, "onPaste", d, h, m), o.isMoving && r(null), s([]);
2647
2649
  };
2648
- return /* @__PURE__ */ t.jsx(Xn.Provider, { value: { clipBoard: o, setClipBoard: a, handleCutCopy: s, handlePasting: d }, children: e });
2650
+ return /* @__PURE__ */ t.jsx(Xn.Provider, { value: { clipBoard: o, setClipBoard: r, handleCutCopy: c, handlePasting: p }, children: e });
2649
2651
  }, Tt = () => ct(Xn), Fr = ({
2650
2652
  allowCreateFolder: e = !0,
2651
- allowUploadFile: r = !0,
2653
+ allowUploadFile: a = !0,
2652
2654
  onLayoutChange: o,
2653
- onRefresh: a,
2655
+ onRefresh: r,
2654
2656
  triggerAction: i
2655
2657
  }) => {
2656
2658
  var C;
2657
- const [l, s] = Z(!1), { currentFolder: d } = Ne(), { selectedFiles: h, setSelectedFiles: p, handleDownload: m } = ze(), { clipBoard: b, setClipBoard: w, handleCutCopy: V, handlePasting: O } = Tt(), { activeLayout: N } = De(), B = [
2659
+ const [s, c] = Z(!1), { currentFolder: p } = Ne(), { selectedFiles: h, setSelectedFiles: d, handleDownload: m } = ze(), { clipBoard: b, setClipBoard: w, handleCutCopy: V, handlePasting: O } = Tt(), { activeLayout: N } = De(), B = [
2658
2660
  {
2659
2661
  icon: /* @__PURE__ */ t.jsx(Hn, { size: 17, strokeWidth: 0.3 }),
2660
2662
  text: "New folder",
@@ -2664,7 +2666,7 @@ const lt = (e = () => {
2664
2666
  {
2665
2667
  icon: /* @__PURE__ */ t.jsx($n, { size: 18 }),
2666
2668
  text: "Upload",
2667
- permission: r,
2669
+ permission: a,
2668
2670
  onClick: () => i.show("uploadFile")
2669
2671
  },
2670
2672
  {
@@ -2677,21 +2679,21 @@ const lt = (e = () => {
2677
2679
  {
2678
2680
  icon: N === "grid" ? /* @__PURE__ */ t.jsx(Vn, { size: 16 }) : /* @__PURE__ */ t.jsx(jt, { size: 16 }),
2679
2681
  title: "Change View",
2680
- onClick: () => s((c) => !c)
2682
+ onClick: () => c((l) => !l)
2681
2683
  },
2682
2684
  {
2683
2685
  icon: /* @__PURE__ */ t.jsx(Ln, { size: 16 }),
2684
2686
  title: "Refresh",
2685
2687
  onClick: () => {
2686
- Be(a, "onRefresh"), w(null);
2688
+ Be(r, "onRefresh"), w(null);
2687
2689
  }
2688
2690
  }
2689
2691
  ];
2690
2692
  function I() {
2691
- O(d);
2693
+ O(p);
2692
2694
  }
2693
2695
  const F = () => {
2694
- m(), p([]);
2696
+ m(), d([]);
2695
2697
  };
2696
2698
  return h.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "toolbar file-selected", children: /* @__PURE__ */ t.jsxs("div", { className: "file-action-container", children: [
2697
2699
  /* @__PURE__ */ t.jsxs("div", { children: [
@@ -2746,7 +2748,7 @@ const lt = (e = () => {
2746
2748
  {
2747
2749
  className: "item-action file-action",
2748
2750
  title: "Clear selection",
2749
- onClick: () => p([]),
2751
+ onClick: () => d([]),
2750
2752
  children: [
2751
2753
  /* @__PURE__ */ t.jsxs("span", { children: [
2752
2754
  h.length,
@@ -2759,19 +2761,19 @@ const lt = (e = () => {
2759
2761
  }
2760
2762
  )
2761
2763
  ] }) }) : /* @__PURE__ */ t.jsx("div", { className: "toolbar", children: /* @__PURE__ */ t.jsxs("div", { className: "fm-toolbar", children: [
2762
- /* @__PURE__ */ t.jsx("div", { children: B.filter((c) => c.permission).map((c, y) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: c.onClick, children: [
2763
- c.icon,
2764
- /* @__PURE__ */ t.jsx("span", { children: c.text })
2764
+ /* @__PURE__ */ t.jsx("div", { children: B.filter((l) => l.permission).map((l, y) => /* @__PURE__ */ t.jsxs("button", { className: "item-action", onClick: l.onClick, children: [
2765
+ l.icon,
2766
+ /* @__PURE__ */ t.jsx("span", { children: l.text })
2765
2767
  ] }, y)) }),
2766
2768
  /* @__PURE__ */ t.jsxs("div", { children: [
2767
- D.map((c, y) => /* @__PURE__ */ t.jsxs("div", { className: "toolbar-left-items", children: [
2768
- /* @__PURE__ */ t.jsx("button", { className: "item-action icon-only", title: c.title, onClick: c.onClick, children: c.icon }),
2769
+ D.map((l, y) => /* @__PURE__ */ t.jsxs("div", { className: "toolbar-left-items", children: [
2770
+ /* @__PURE__ */ t.jsx("button", { className: "item-action icon-only", title: l.title, onClick: l.onClick, children: l.icon }),
2769
2771
  y !== D.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "item-separator" })
2770
2772
  ] }, y)),
2771
- l && /* @__PURE__ */ t.jsx(
2773
+ s && /* @__PURE__ */ t.jsx(
2772
2774
  Mr,
2773
2775
  {
2774
- setShowToggleViewMenu: s,
2776
+ setShowToggleViewMenu: c,
2775
2777
  onLayoutChange: o
2776
2778
  }
2777
2779
  )
@@ -2779,97 +2781,97 @@ const lt = (e = () => {
2779
2781
  ] }) });
2780
2782
  };
2781
2783
  var Gn = { exports: {} };
2782
- (function(e, r) {
2783
- (function(o, a) {
2784
- e.exports = a(Ae);
2784
+ (function(e, a) {
2785
+ (function(o, r) {
2786
+ e.exports = r(Ae);
2785
2787
  })(Mn, function(o) {
2786
- return function(a) {
2788
+ return function(r) {
2787
2789
  var i = {};
2788
- function l(s) {
2789
- if (i[s]) return i[s].exports;
2790
- var d = i[s] = { i: s, l: !1, exports: {} };
2791
- return a[s].call(d.exports, d, d.exports, l), d.l = !0, d.exports;
2790
+ function s(c) {
2791
+ if (i[c]) return i[c].exports;
2792
+ var p = i[c] = { i: c, l: !1, exports: {} };
2793
+ return r[c].call(p.exports, p, p.exports, s), p.l = !0, p.exports;
2792
2794
  }
2793
- return l.m = a, l.c = i, l.d = function(s, d, h) {
2794
- l.o(s, d) || Object.defineProperty(s, d, { enumerable: !0, get: h });
2795
- }, l.r = function(s) {
2796
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
2797
- }, l.t = function(s, d) {
2798
- if (1 & d && (s = l(s)), 8 & d || 4 & d && typeof s == "object" && s && s.__esModule) return s;
2795
+ return s.m = r, s.c = i, s.d = function(c, p, h) {
2796
+ s.o(c, p) || Object.defineProperty(c, p, { enumerable: !0, get: h });
2797
+ }, s.r = function(c) {
2798
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(c, "__esModule", { value: !0 });
2799
+ }, s.t = function(c, p) {
2800
+ if (1 & p && (c = s(c)), 8 & p || 4 & p && typeof c == "object" && c && c.__esModule) return c;
2799
2801
  var h = /* @__PURE__ */ Object.create(null);
2800
- if (l.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: s }), 2 & d && typeof s != "string") for (var p in s) l.d(h, p, (function(m) {
2801
- return s[m];
2802
- }).bind(null, p));
2802
+ if (s.r(h), Object.defineProperty(h, "default", { enumerable: !0, value: c }), 2 & p && typeof c != "string") for (var d in c) s.d(h, d, (function(m) {
2803
+ return c[m];
2804
+ }).bind(null, d));
2803
2805
  return h;
2804
- }, l.n = function(s) {
2805
- var d = s && s.__esModule ? function() {
2806
- return s.default;
2806
+ }, s.n = function(c) {
2807
+ var p = c && c.__esModule ? function() {
2808
+ return c.default;
2807
2809
  } : function() {
2808
- return s;
2810
+ return c;
2809
2811
  };
2810
- return l.d(d, "a", d), d;
2811
- }, l.o = function(s, d) {
2812
- return Object.prototype.hasOwnProperty.call(s, d);
2813
- }, l.p = "", l(l.s = 4);
2814
- }([function(a, i, l) {
2815
- a.exports = l(2)();
2816
- }, function(a, i) {
2817
- a.exports = o;
2818
- }, function(a, i, l) {
2819
- var s = l(3);
2820
- function d() {
2812
+ return s.d(p, "a", p), p;
2813
+ }, s.o = function(c, p) {
2814
+ return Object.prototype.hasOwnProperty.call(c, p);
2815
+ }, s.p = "", s(s.s = 4);
2816
+ }([function(r, i, s) {
2817
+ r.exports = s(2)();
2818
+ }, function(r, i) {
2819
+ r.exports = o;
2820
+ }, function(r, i, s) {
2821
+ var c = s(3);
2822
+ function p() {
2821
2823
  }
2822
2824
  function h() {
2823
2825
  }
2824
- h.resetWarningCache = d, a.exports = function() {
2825
- function p(w, V, O, N, B, D) {
2826
- if (D !== s) {
2826
+ h.resetWarningCache = p, r.exports = function() {
2827
+ function d(w, V, O, N, B, D) {
2828
+ if (D !== c) {
2827
2829
  var I = new Error("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");
2828
2830
  throw I.name = "Invariant Violation", I;
2829
2831
  }
2830
2832
  }
2831
2833
  function m() {
2832
- return p;
2834
+ return d;
2833
2835
  }
2834
- p.isRequired = p;
2835
- var b = { array: p, bigint: p, bool: p, func: p, number: p, object: p, string: p, symbol: p, any: p, arrayOf: m, element: p, elementType: p, instanceOf: m, node: p, objectOf: m, oneOf: m, oneOfType: m, shape: m, exact: m, checkPropTypes: h, resetWarningCache: d };
2836
+ d.isRequired = d;
2837
+ var b = { array: d, bigint: d, bool: d, func: d, number: d, object: d, string: d, symbol: d, any: d, arrayOf: m, element: d, elementType: d, instanceOf: m, node: d, objectOf: m, oneOf: m, oneOfType: m, shape: m, exact: m, checkPropTypes: h, resetWarningCache: p };
2836
2838
  return b.PropTypes = b, b;
2837
2839
  };
2838
- }, function(a, i, l) {
2839
- a.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2840
- }, function(a, i, l) {
2841
- l.r(i);
2842
- var s = l(1), d = l.n(s), h = l(0), p = l.n(h), m = function(c) {
2843
- return c !== 0;
2840
+ }, function(r, i, s) {
2841
+ r.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2842
+ }, function(r, i, s) {
2843
+ s.r(i);
2844
+ var c = s(1), p = s.n(c), h = s(0), d = s.n(h), m = function(l) {
2845
+ return l !== 0;
2844
2846
  };
2845
2847
  function b() {
2846
- return (b = Object.assign ? Object.assign.bind() : function(c) {
2848
+ return (b = Object.assign ? Object.assign.bind() : function(l) {
2847
2849
  for (var y = 1; y < arguments.length; y++) {
2848
2850
  var R = arguments[y];
2849
- for (var T in R) Object.prototype.hasOwnProperty.call(R, T) && (c[T] = R[T]);
2851
+ for (var T in R) Object.prototype.hasOwnProperty.call(R, T) && (l[T] = R[T]);
2850
2852
  }
2851
- return c;
2853
+ return l;
2852
2854
  }).apply(this, arguments);
2853
2855
  }
2854
- function w(c) {
2856
+ function w(l) {
2855
2857
  return (w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(y) {
2856
2858
  return typeof y;
2857
2859
  } : function(y) {
2858
2860
  return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
2859
- })(c);
2861
+ })(l);
2860
2862
  }
2861
- function V(c, y) {
2863
+ function V(l, y) {
2862
2864
  for (var R = 0; R < y.length; R++) {
2863
2865
  var T = y[R];
2864
- T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(c, T.key, T);
2866
+ T.enumerable = T.enumerable || !1, T.configurable = !0, "value" in T && (T.writable = !0), Object.defineProperty(l, T.key, T);
2865
2867
  }
2866
2868
  }
2867
- function O(c, y) {
2869
+ function O(l, y) {
2868
2870
  return (O = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(R, T) {
2869
2871
  return R.__proto__ = T, R;
2870
- })(c, y);
2872
+ })(l, y);
2871
2873
  }
2872
- function N(c) {
2874
+ function N(l) {
2873
2875
  var y = function() {
2874
2876
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
2875
2877
  if (typeof Proxy == "function") return !0;
@@ -2881,7 +2883,7 @@ var Gn = { exports: {} };
2881
2883
  }
2882
2884
  }();
2883
2885
  return function() {
2884
- var R, T = I(c);
2886
+ var R, T = I(l);
2885
2887
  if (y) {
2886
2888
  var Y = I(this).constructor;
2887
2889
  R = Reflect.construct(T, arguments, Y);
@@ -2889,28 +2891,28 @@ var Gn = { exports: {} };
2889
2891
  return B(this, R);
2890
2892
  };
2891
2893
  }
2892
- function B(c, y) {
2894
+ function B(l, y) {
2893
2895
  if (y && (w(y) === "object" || typeof y == "function")) return y;
2894
2896
  if (y !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2895
- return D(c);
2897
+ return D(l);
2896
2898
  }
2897
- function D(c) {
2898
- if (c === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2899
- return c;
2899
+ function D(l) {
2900
+ if (l === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2901
+ return l;
2900
2902
  }
2901
- function I(c) {
2903
+ function I(l) {
2902
2904
  return (I = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(y) {
2903
2905
  return y.__proto__ || Object.getPrototypeOf(y);
2904
- })(c);
2906
+ })(l);
2905
2907
  }
2906
- function F(c, y, R) {
2907
- return y in c ? Object.defineProperty(c, y, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : c[y] = R, c;
2908
+ function F(l, y, R) {
2909
+ return y in l ? Object.defineProperty(l, y, { value: R, enumerable: !0, configurable: !0, writable: !0 }) : l[y] = R, l;
2908
2910
  }
2909
- var C = function(c) {
2911
+ var C = function(l) {
2910
2912
  (function($, _) {
2911
2913
  if (typeof _ != "function" && _ !== null) throw new TypeError("Super expression must either be null or a function");
2912
2914
  $.prototype = Object.create(_ && _.prototype, { constructor: { value: $, writable: !0, configurable: !0 } }), Object.defineProperty($, "prototype", { writable: !1 }), _ && O($, _);
2913
- })(Y, c);
2915
+ })(Y, l);
2914
2916
  var y, R, T = N(Y);
2915
2917
  function Y($) {
2916
2918
  var _;
@@ -2944,7 +2946,7 @@ var Gn = { exports: {} };
2944
2946
  if (!_) return null;
2945
2947
  switch (w(_)) {
2946
2948
  case "string":
2947
- return d.a.createElement("span", { className: "".concat(G, "__trigger-sibling") }, _);
2949
+ return p.a.createElement("span", { className: "".concat(G, "__trigger-sibling") }, _);
2948
2950
  case "function":
2949
2951
  return _();
2950
2952
  case "object":
@@ -2953,14 +2955,14 @@ var Gn = { exports: {} };
2953
2955
  return null;
2954
2956
  }
2955
2957
  } }, { key: "render", value: function() {
2956
- var $ = this, _ = { height: this.state.height, WebkitTransition: this.state.transition, msTransition: this.state.transition, transition: this.state.transition, overflow: this.state.overflow }, G = this.state.isClosed ? "is-closed" : "is-open", J = this.props.triggerDisabled ? "is-disabled" : "", te = this.state.isClosed === !1 && this.props.triggerWhenOpen !== void 0 ? this.props.triggerWhenOpen : this.props.trigger, ue = this.props.contentContainerTagName, ne = this.props.triggerTagName, oe = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, pe = this.props, ge = pe.classParentString, S = pe.contentOuterClassName, q = pe.contentInnerClassName, x = "".concat(ge, "__trigger ").concat(G, " ").concat(J, " ").concat(this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName), A = "".concat(ge, " ").concat(this.state.isClosed ? this.props.className : this.props.openedClassName), L = "".concat(ge, "__contentOuter ").concat(S), K = "".concat(ge, "__contentInner ").concat(q);
2957
- return d.a.createElement(ue, b({ className: A.trim() }, this.props.containerElementProps), d.a.createElement(ne, b({ id: this.triggerId, className: x.trim(), onClick: this.handleTriggerClick, style: this.props.triggerStyle && this.props.triggerStyle, onKeyPress: function(M) {
2958
+ var $ = this, _ = { height: this.state.height, WebkitTransition: this.state.transition, msTransition: this.state.transition, transition: this.state.transition, overflow: this.state.overflow }, G = this.state.isClosed ? "is-closed" : "is-open", J = this.props.triggerDisabled ? "is-disabled" : "", te = this.state.isClosed === !1 && this.props.triggerWhenOpen !== void 0 ? this.props.triggerWhenOpen : this.props.trigger, ue = this.props.contentContainerTagName, ne = this.props.triggerTagName, oe = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, he = this.props, ge = he.classParentString, S = he.contentOuterClassName, q = he.contentInnerClassName, x = "".concat(ge, "__trigger ").concat(G, " ").concat(J, " ").concat(this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName), A = "".concat(ge, " ").concat(this.state.isClosed ? this.props.className : this.props.openedClassName), L = "".concat(ge, "__contentOuter ").concat(S), K = "".concat(ge, "__contentInner ").concat(q);
2959
+ return p.a.createElement(ue, b({ className: A.trim() }, this.props.containerElementProps), p.a.createElement(ne, b({ id: this.triggerId, className: x.trim(), onClick: this.handleTriggerClick, style: this.props.triggerStyle && this.props.triggerStyle, onKeyPress: function(M) {
2958
2960
  var f = M.key;
2959
2961
  (f === " " && $.props.triggerTagName.toLowerCase() !== "button" || f === "Enter") && $.handleTriggerClick(M);
2960
- }, tabIndex: this.props.tabIndex && this.props.tabIndex, "aria-expanded": !this.state.isClosed, "aria-disabled": this.props.triggerDisabled, "aria-controls": this.contentId, role: "button" }, this.props.triggerElementProps), te), this.renderNonClickableTriggerElement(), d.a.createElement("div", { id: this.contentId, className: L.trim(), style: _, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, d.a.createElement("div", { className: K.trim() }, oe)));
2962
+ }, tabIndex: this.props.tabIndex && this.props.tabIndex, "aria-expanded": !this.state.isClosed, "aria-disabled": this.props.triggerDisabled, "aria-controls": this.contentId, role: "button" }, this.props.triggerElementProps), te), this.renderNonClickableTriggerElement(), p.a.createElement("div", { id: this.contentId, className: L.trim(), style: _, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, p.a.createElement("div", { className: K.trim() }, oe)));
2961
2963
  } }]) && V(y.prototype, R), Object.defineProperty(y, "prototype", { writable: !1 }), Y;
2962
- }(s.Component);
2963
- C.propTypes = { transitionTime: p.a.number, transitionCloseTime: p.a.number, triggerTagName: p.a.string, easing: p.a.string, open: p.a.bool, containerElementProps: p.a.object, triggerElementProps: p.a.object, contentElementId: p.a.string, classParentString: p.a.string, className: p.a.string, openedClassName: p.a.string, triggerStyle: p.a.object, triggerClassName: p.a.string, triggerOpenedClassName: p.a.string, contentOuterClassName: p.a.string, contentInnerClassName: p.a.string, accordionPosition: p.a.oneOfType([p.a.string, p.a.number]), handleTriggerClick: p.a.func, onOpen: p.a.func, onClose: p.a.func, onOpening: p.a.func, onClosing: p.a.func, onTriggerOpening: p.a.func, onTriggerClosing: p.a.func, trigger: p.a.oneOfType([p.a.string, p.a.element]), triggerWhenOpen: p.a.oneOfType([p.a.string, p.a.element]), triggerDisabled: p.a.bool, lazyRender: p.a.bool, overflowWhenOpen: p.a.oneOf(["hidden", "visible", "auto", "scroll", "inherit", "initial", "unset"]), contentHiddenWhenClosed: p.a.bool, triggerSibling: p.a.oneOfType([p.a.string, p.a.element, p.a.func]), tabIndex: p.a.number, contentContainerTagName: p.a.string, children: p.a.oneOfType([p.a.string, p.a.element]) }, C.defaultProps = { transitionTime: 400, transitionCloseTime: null, triggerTagName: "span", easing: "linear", open: !1, classParentString: "Collapsible", triggerDisabled: !1, lazyRender: !1, overflowWhenOpen: "hidden", contentHiddenWhenClosed: !1, openedClassName: "", triggerStyle: null, triggerClassName: "", triggerOpenedClassName: "", contentOuterClassName: "", contentInnerClassName: "", className: "", triggerSibling: null, onOpen: function() {
2964
+ }(c.Component);
2965
+ C.propTypes = { transitionTime: d.a.number, transitionCloseTime: d.a.number, triggerTagName: d.a.string, easing: d.a.string, open: d.a.bool, containerElementProps: d.a.object, triggerElementProps: d.a.object, contentElementId: d.a.string, classParentString: d.a.string, className: d.a.string, openedClassName: d.a.string, triggerStyle: d.a.object, triggerClassName: d.a.string, triggerOpenedClassName: d.a.string, contentOuterClassName: d.a.string, contentInnerClassName: d.a.string, accordionPosition: d.a.oneOfType([d.a.string, d.a.number]), handleTriggerClick: d.a.func, onOpen: d.a.func, onClose: d.a.func, onOpening: d.a.func, onClosing: d.a.func, onTriggerOpening: d.a.func, onTriggerClosing: d.a.func, trigger: d.a.oneOfType([d.a.string, d.a.element]), triggerWhenOpen: d.a.oneOfType([d.a.string, d.a.element]), triggerDisabled: d.a.bool, lazyRender: d.a.bool, overflowWhenOpen: d.a.oneOf(["hidden", "visible", "auto", "scroll", "inherit", "initial", "unset"]), contentHiddenWhenClosed: d.a.bool, triggerSibling: d.a.oneOfType([d.a.string, d.a.element, d.a.func]), tabIndex: d.a.number, contentContainerTagName: d.a.string, children: d.a.oneOfType([d.a.string, d.a.element]) }, C.defaultProps = { transitionTime: 400, transitionCloseTime: null, triggerTagName: "span", easing: "linear", open: !1, classParentString: "Collapsible", triggerDisabled: !1, lazyRender: !1, overflowWhenOpen: "hidden", contentHiddenWhenClosed: !1, openedClassName: "", triggerStyle: null, triggerClassName: "", triggerOpenedClassName: "", contentOuterClassName: "", contentInnerClassName: "", className: "", triggerSibling: null, onOpen: function() {
2964
2966
  }, onClose: function() {
2965
2967
  }, onOpening: function() {
2966
2968
  }, onClosing: function() {
@@ -2985,96 +2987,96 @@ function hn(e) {
2985
2987
  return re({ 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);
2986
2988
  }
2987
2989
  const Jn = ({ folder: e }) => {
2988
- const [r, o] = Z(!1), [a, i] = Z(!1), { currentPath: l, setCurrentPath: s } = Ne(), d = () => {
2989
- i(!0), s(e.path);
2990
- }, h = (p) => {
2991
- p.stopPropagation(), o((m) => !m);
2990
+ const [a, o] = Z(!1), [r, i] = Z(!1), { currentPath: s, setCurrentPath: c } = Ne(), p = () => {
2991
+ i(!0), c(e.path);
2992
+ }, h = (d) => {
2993
+ d.stopPropagation(), o((m) => !m);
2992
2994
  };
2993
2995
  return xe(() => {
2994
- i(l === e.path);
2995
- const p = l.split("/");
2996
- p.pop(), p.join("/") === e.path && o(!0);
2997
- }, [l]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2996
+ i(s === e.path);
2997
+ const d = s.split("/");
2998
+ d.pop(), d.join("/") === e.path && o(!0);
2999
+ }, [s]), e.subDirectories.length > 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
2998
3000
  /* @__PURE__ */ t.jsxs(
2999
3001
  "div",
3000
3002
  {
3001
- className: `sb-folders-list-item ${a ? "active-list-item" : ""}`,
3002
- onClick: d,
3003
+ className: `sb-folders-list-item ${r ? "active-list-item" : ""}`,
3004
+ onClick: p,
3003
3005
  children: [
3004
3006
  /* @__PURE__ */ t.jsx("span", { onClick: h, children: /* @__PURE__ */ t.jsx(
3005
3007
  br,
3006
3008
  {
3007
3009
  size: 20,
3008
- className: `${r ? "folder-rotate-down" : "folder-rotate-right"}`
3010
+ className: `${a ? "folder-rotate-down" : "folder-rotate-right"}`
3009
3011
  }
3010
3012
  ) }),
3011
3013
  /* @__PURE__ */ t.jsxs("div", { className: "sb-folder-details", children: [
3012
- r || a ? /* @__PURE__ */ t.jsx(pn, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(hn, { size: 17, className: "folder-close-icon" }),
3014
+ a || r ? /* @__PURE__ */ t.jsx(pn, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(hn, { size: 17, className: "folder-close-icon" }),
3013
3015
  /* @__PURE__ */ t.jsx("span", { className: "sb-folder-name", title: e.name, children: e.name })
3014
3016
  ] })
3015
3017
  ]
3016
3018
  }
3017
3019
  ),
3018
- /* @__PURE__ */ t.jsx(Hr, { open: r, children: /* @__PURE__ */ t.jsx("div", { className: "folder-collapsible", children: e.subDirectories.map((p, m) => /* @__PURE__ */ t.jsx(Jn, { folder: p }, m)) }) })
3020
+ /* @__PURE__ */ t.jsx(Hr, { open: a, children: /* @__PURE__ */ t.jsx("div", { className: "folder-collapsible", children: e.subDirectories.map((d, m) => /* @__PURE__ */ t.jsx(Jn, { folder: d }, m)) }) })
3019
3021
  ] }) : /* @__PURE__ */ t.jsxs(
3020
3022
  "div",
3021
3023
  {
3022
- className: `sb-folders-list-item ${a ? "active-list-item" : ""}`,
3023
- onClick: d,
3024
+ className: `sb-folders-list-item ${r ? "active-list-item" : ""}`,
3025
+ onClick: p,
3024
3026
  children: [
3025
3027
  /* @__PURE__ */ t.jsx("span", { className: "non-expanable" }),
3026
3028
  /* @__PURE__ */ t.jsxs("div", { className: "sb-folder-details", children: [
3027
- a ? /* @__PURE__ */ t.jsx(pn, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(hn, { size: 17, className: "folder-close-icon" }),
3029
+ r ? /* @__PURE__ */ t.jsx(pn, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ t.jsx(hn, { size: 17, className: "folder-close-icon" }),
3028
3030
  /* @__PURE__ */ t.jsx("span", { className: "sb-folder-name", title: e.name, children: e.name })
3029
3031
  ] })
3030
3032
  ]
3031
3033
  }
3032
3034
  );
3033
3035
  }, Lr = (e) => e == null ? void 0 : e.split("/").slice(0, -1).join("/"), Ir = () => {
3034
- const [e, r] = Z([]), { files: o } = Rt(), a = (i, l) => {
3035
- var s;
3036
- return l[i] ? (s = l[i]) == null ? void 0 : s.map((d) => ({
3037
- ...d,
3038
- subDirectories: a(d.path, l)
3036
+ const [e, a] = Z([]), { files: o } = Rt(), r = (i, s) => {
3037
+ var c;
3038
+ return s[i] ? (c = s[i]) == null ? void 0 : c.map((p) => ({
3039
+ ...p,
3040
+ subDirectories: r(p.path, s)
3039
3041
  })) : [];
3040
3042
  };
3041
3043
  return xe(() => {
3042
3044
  if (Array.isArray(o)) {
3043
- const i = o.filter((s) => s.isDirectory), l = Object.groupBy(i, ({ path: s }) => Lr(s));
3044
- r(() => a("", l));
3045
+ const i = o.filter((c) => c.isDirectory), s = Object.groupBy(i, ({ path: c }) => Lr(c));
3046
+ a(() => r("", s));
3045
3047
  }
3046
- }, [o]), /* @__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((i, l) => /* @__PURE__ */ t.jsx(Jn, { folder: i }, l)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
3048
+ }, [o]), /* @__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((i, s) => /* @__PURE__ */ t.jsx(Jn, { folder: i }, s)) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
3047
3049
  }, $r = () => {
3048
- const [e, r] = Z([]), [o, a] = Z([]), [i, l] = Z([]), [s, d] = Z(!1), { currentPath: h, setCurrentPath: p } = Ne(), m = ke(null), b = ke([]), w = ke(null), V = lt(() => {
3049
- d(!1);
3050
+ const [e, a] = Z([]), [o, r] = Z([]), [i, s] = Z([]), [c, p] = Z(!1), { currentPath: h, setCurrentPath: d } = Ne(), m = ke(null), b = ke([]), w = ke(null), V = lt(() => {
3051
+ p(!1);
3050
3052
  });
3051
3053
  xe(() => {
3052
- r(() => {
3054
+ a(() => {
3053
3055
  let I = "";
3054
3056
  return h == null ? void 0 : h.split("/").map((F) => ({
3055
3057
  name: F || "Home",
3056
3058
  path: F === "" ? F : I += `/${F}`
3057
3059
  }));
3058
- }), a([]), l([]);
3060
+ }), r([]), s([]);
3059
3061
  }, [h]);
3060
3062
  const O = (I) => {
3061
- p(I);
3063
+ d(I);
3062
3064
  }, N = () => {
3063
- const I = m.current.clientWidth, F = getComputedStyle(m.current), C = parseFloat(F.paddingLeft), c = o.length > 0 ? 1 : 0, y = parseFloat(F.gap) * (e.length + c);
3065
+ const I = m.current.clientWidth, F = getComputedStyle(m.current), C = parseFloat(F.paddingLeft), l = o.length > 0 ? 1 : 0, y = parseFloat(F.gap) * (e.length + l);
3064
3066
  return I - (C + y);
3065
3067
  }, B = () => {
3066
- var c;
3067
- const I = N(), F = b.current.reduce((y, R) => R ? y + R.clientWidth : y, 0), C = ((c = w.current) == null ? void 0 : c.clientWidth) || 0;
3068
+ var l;
3069
+ const I = N(), F = b.current.reduce((y, R) => R ? y + R.clientWidth : y, 0), C = ((l = w.current) == null ? void 0 : l.clientWidth) || 0;
3068
3070
  return I - (F + C);
3069
3071
  }, D = () => m.current.scrollWidth > m.current.clientWidth;
3070
3072
  return xe(() => {
3071
3073
  var I;
3072
3074
  if (D()) {
3073
3075
  const F = e[1], C = (I = b.current[1]) == null ? void 0 : I.clientWidth;
3074
- l((c) => [...c, C]), a((c) => [...c, F]), r((c) => c.filter((y, R) => R !== 1));
3076
+ s((l) => [...l, C]), r((l) => [...l, F]), a((l) => l.filter((y, R) => R !== 1));
3075
3077
  } else if (o.length > 0 && B() > i.at(-1)) {
3076
3078
  const F = [e[0], o.at(-1), ...e.slice(1)];
3077
- r(F), a((C) => C.slice(0, -1)), l((C) => C.slice(0, -1));
3079
+ a(F), r((C) => C.slice(0, -1)), s((C) => C.slice(0, -1));
3078
3080
  }
3079
3081
  }, [D]), /* @__PURE__ */ t.jsxs("div", { className: "bread-crumb-container", children: [
3080
3082
  /* @__PURE__ */ t.jsx("div", { className: "breadcrumb", ref: m, children: e.map((I, F) => /* @__PURE__ */ t.jsxs("div", { style: { display: "contents" }, children: [
@@ -3094,18 +3096,18 @@ const Jn = ({ folder: e }) => {
3094
3096
  "button",
3095
3097
  {
3096
3098
  className: "folder-name folder-name-btn",
3097
- onClick: () => d(!0),
3099
+ onClick: () => p(!0),
3098
3100
  ref: w,
3099
3101
  title: "Show more folders",
3100
3102
  children: /* @__PURE__ */ t.jsx(Cr, { size: 22, className: "hidden-folders" })
3101
3103
  }
3102
3104
  )
3103
3105
  ] }, F)) }),
3104
- s && /* @__PURE__ */ t.jsx("ul", { ref: V.ref, className: "hidden-folders-container", children: o.map((I, F) => /* @__PURE__ */ t.jsx(
3106
+ c && /* @__PURE__ */ t.jsx("ul", { ref: V.ref, className: "hidden-folders-container", children: o.map((I, F) => /* @__PURE__ */ t.jsx(
3105
3107
  "li",
3106
3108
  {
3107
3109
  onClick: () => {
3108
- O(I.path), d(!1);
3110
+ O(I.path), p(!1);
3109
3111
  },
3110
3112
  children: I.name
3111
3113
  },
@@ -3147,65 +3149,65 @@ const Jn = ({ folder: e }) => {
3147
3149
  csv: /* @__PURE__ */ t.jsx(je, { size: e }),
3148
3150
  md: /* @__PURE__ */ t.jsx(je, { size: e }),
3149
3151
  svg: /* @__PURE__ */ t.jsx(je, { size: e })
3150
- }), Zn = (e, r, o) => {
3151
- if (o.find((a) => a.name === e)) {
3152
- const a = "", i = e;
3153
- let l = 0;
3154
- const s = new RegExp(`${i} \\(\\d+\\)`);
3155
- o.forEach((p) => {
3156
- const m = p.isDirectory ? p.name : p.name.split(".").slice(0, -1).join(".");
3157
- if (s.test(m)) {
3152
+ }), Zn = (e, a, o) => {
3153
+ if (o.find((r) => r.name === e)) {
3154
+ const r = "", i = e;
3155
+ let s = 0;
3156
+ const c = new RegExp(`${i} \\(\\d+\\)`);
3157
+ o.forEach((d) => {
3158
+ const m = d.isDirectory ? d.name : d.name.split(".").slice(0, -1).join(".");
3159
+ if (c.test(m)) {
3158
3160
  const b = m.split(`${i} (`).pop().slice(0, -1), w = parseInt(b);
3159
- !isNaN(w) && w > l && (l = w);
3161
+ !isNaN(w) && w > s && (s = w);
3160
3162
  }
3161
3163
  });
3162
- const d = ` (${++l})`;
3163
- return i + d + a;
3164
+ const p = ` (${++s})`;
3165
+ return i + p + r;
3164
3166
  } else
3165
3167
  return e;
3166
- }, Qn = ({ nameInputRef: e, maxLength: r, value: o, onChange: a, onKeyDown: i, onClick: l, rows: s }) => /* @__PURE__ */ t.jsx(
3168
+ }, Qn = ({ nameInputRef: e, maxLength: a, value: o, onChange: r, onKeyDown: i, onClick: s, rows: c }) => /* @__PURE__ */ t.jsx(
3167
3169
  "textarea",
3168
3170
  {
3169
3171
  ref: e,
3170
3172
  className: "rename-file",
3171
- maxLength: r,
3173
+ maxLength: a,
3172
3174
  value: o,
3173
- onChange: a,
3175
+ onChange: r,
3174
3176
  onKeyDown: i,
3175
- onClick: l,
3176
- rows: s
3177
+ onClick: s,
3178
+ rows: c
3177
3179
  }
3178
- ), er = ({ message: e, xPlacement: r, yPlacement: o }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${r} ${o}`, children: e }), Br = 220, Wr = ({ filesViewRef: e, file: r, onCreateFolder: o, triggerAction: a }) => {
3179
- const [i, l] = Z(r.name), [s, d] = Z(!1), [h, p] = Z(""), [m, b] = Z("right"), [w, V] = Z("bottom"), O = lt((y) => {
3180
+ ), er = ({ message: e, xPlacement: a, yPlacement: o }) => /* @__PURE__ */ t.jsx("p", { className: `error-tooltip ${a} ${o}`, children: e }), Br = 220, Wr = ({ filesViewRef: e, file: a, onCreateFolder: o, triggerAction: r }) => {
3181
+ const [i, s] = Z(a.name), [c, p] = Z(!1), [h, d] = Z(""), [m, b] = Z("right"), [w, V] = Z("bottom"), O = lt((y) => {
3180
3182
  y.preventDefault(), y.stopPropagation();
3181
3183
  }), { currentFolder: N, currentPathFiles: B, setCurrentPathFiles: D } = Ne(), { activeLayout: I } = De(), F = (y) => {
3182
- l(y.target.value), d(!1);
3184
+ s(y.target.value), p(!1);
3183
3185
  }, C = (y) => {
3184
3186
  if (y.stopPropagation(), y.key === "Enter") {
3185
- y.preventDefault(), c();
3187
+ y.preventDefault(), l();
3186
3188
  return;
3187
3189
  }
3188
- y.key === "Escape" && (y.preventDefault(), a.close(), D((T) => T.filter((Y) => Y.key !== r.key))), /[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), p(
3190
+ y.key === "Escape" && (y.preventDefault(), r.close(), D((T) => T.filter((Y) => Y.key !== a.key))), /[\\/:*?"<>|]/.test(y.key) ? (y.preventDefault(), d(
3189
3191
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
3190
- ), d(!0)) : (d(!1), p(""));
3192
+ ), p(!0)) : (p(!1), d(""));
3191
3193
  };
3192
3194
  xe(() => {
3193
- if (s) {
3195
+ if (c) {
3194
3196
  const y = setTimeout(() => {
3195
- d(!1), p("");
3197
+ p(!1), d("");
3196
3198
  }, 7e3);
3197
3199
  return () => clearTimeout(y);
3198
3200
  }
3199
- }, [s]);
3200
- function c() {
3201
+ }, [c]);
3202
+ function l() {
3201
3203
  var Y, $;
3202
3204
  let y = i.trim();
3203
- const R = B.filter((_) => !(_.key && _.key === r.key));
3205
+ const R = B.filter((_) => !(_.key && _.key === a.key));
3204
3206
  if (R.find((_) => _.name.toLowerCase() === y.toLowerCase())) {
3205
- p(`This destination already contains a folder named '${y}'.`), d(!0), (Y = O.ref.current) == null || Y.focus(), ($ = O.ref.current) == null || $.select(), O.setIsClicked(!1);
3207
+ d(`This destination already contains a folder named '${y}'.`), p(!0), (Y = O.ref.current) == null || Y.focus(), ($ = O.ref.current) == null || $.select(), O.setIsClicked(!1);
3206
3208
  return;
3207
3209
  }
3208
- y === "" && (y = Zn("New Folder", !0, R)), Be(o, "onCreateFolder", y, N), D((_) => _.filter((G) => G.key !== r.key)), a.close();
3210
+ y === "" && (y = Zn("New Folder", !0, R)), Be(o, "onCreateFolder", y, N), D((_) => _.filter((G) => G.key !== a.key)), r.close();
3209
3211
  }
3210
3212
  return xe(() => {
3211
3213
  var y, R, T;
@@ -3214,7 +3216,7 @@ const Jn = ({ folder: e }) => {
3214
3216
  G.right - te.left > 313 ? b("right") : b("left"), G.bottom - (te.top + J.clientHeight) > 88 ? V("bottom") : V("top");
3215
3217
  }
3216
3218
  }, []), xe(() => {
3217
- O.isClicked && c();
3219
+ O.isClicked && l();
3218
3220
  }, [O.isClicked]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3219
3221
  /* @__PURE__ */ t.jsx(
3220
3222
  Qn,
@@ -3228,7 +3230,7 @@ const Jn = ({ folder: e }) => {
3228
3230
  ...I === "list" && { rows: 1 }
3229
3231
  }
3230
3232
  ),
3231
- s && /* @__PURE__ */ t.jsx(
3233
+ c && /* @__PURE__ */ t.jsx(
3232
3234
  er,
3233
3235
  {
3234
3236
  message: h,
@@ -3237,13 +3239,13 @@ const Jn = ({ folder: e }) => {
3237
3239
  }
3238
3240
  )
3239
3241
  ] });
3240
- }, Je = ({ onClick: e, onKeyDown: r, type: o = "primary", padding: a = "0.4rem 0.8rem", children: i }) => /* @__PURE__ */ t.jsx(
3242
+ }, Je = ({ onClick: e, onKeyDown: a, type: o = "primary", padding: r = "0.4rem 0.8rem", children: i }) => /* @__PURE__ */ t.jsx(
3241
3243
  "button",
3242
3244
  {
3243
3245
  onClick: e,
3244
- onKeyDown: r,
3246
+ onKeyDown: a,
3245
3247
  className: `fm-button fm-button-${o}`,
3246
- style: { padding: a },
3248
+ style: { padding: r },
3247
3249
  children: i
3248
3250
  }
3249
3251
  );
@@ -3252,79 +3254,79 @@ function Ur(e) {
3252
3254
  }
3253
3255
  const tr = ({
3254
3256
  children: e,
3255
- show: r,
3257
+ show: a,
3256
3258
  setShow: o,
3257
- heading: a,
3259
+ heading: r,
3258
3260
  dialogWidth: i = "25%",
3259
- contentClassName: l = "",
3260
- closeButton: s = !0
3261
+ contentClassName: s = "",
3262
+ closeButton: c = !0
3261
3263
  }) => {
3262
- const d = ke(null), h = (p) => {
3263
- p.key === "Escape" && o(!1);
3264
+ const p = ke(null), h = (d) => {
3265
+ d.key === "Escape" && o(!1);
3264
3266
  };
3265
3267
  return xe(() => {
3266
- r ? d.current.showModal() : d.current.close();
3267
- }, [r]), /* @__PURE__ */ t.jsxs(
3268
+ a ? p.current.showModal() : p.current.close();
3269
+ }, [a]), /* @__PURE__ */ t.jsxs(
3268
3270
  "dialog",
3269
3271
  {
3270
- ref: d,
3272
+ ref: p,
3271
3273
  className: "fm-modal dialog",
3272
3274
  style: { width: i },
3273
3275
  onKeyDown: h,
3274
3276
  children: [
3275
3277
  /* @__PURE__ */ t.jsxs("div", { className: "fm-modal-header", children: [
3276
- /* @__PURE__ */ t.jsx("span", { className: "fm-modal-heading", children: a }),
3277
- s && /* @__PURE__ */ t.jsx(xr, { size: 18, onClick: () => o(!1), className: "close-icon", title: "Close" })
3278
+ /* @__PURE__ */ t.jsx("span", { className: "fm-modal-heading", children: r }),
3279
+ c && /* @__PURE__ */ t.jsx(xr, { size: 18, onClick: () => o(!1), className: "close-icon", title: "Close" })
3278
3280
  ] }),
3279
3281
  e
3280
3282
  ]
3281
3283
  }
3282
3284
  );
3283
- }, Ge = (e) => e.split(".").pop(), Yr = 220, qr = ({ filesViewRef: e, file: r, onRename: o, triggerAction: a }) => {
3284
- const [i, l] = Z(r == null ? void 0 : r.name), [s, d] = Z(!1), [h, p] = Z(!1), [m, b] = Z(""), [w, V] = Z("right"), [O, N] = Z("bottom"), { currentPathFiles: B, setCurrentPathFiles: D } = Ne(), { activeLayout: I } = De(), F = ke(null), C = lt((T) => {
3285
+ }, Ge = (e) => e.split(".").pop(), Yr = 220, qr = ({ filesViewRef: e, file: a, onRename: o, triggerAction: r }) => {
3286
+ const [i, s] = Z(a == null ? void 0 : a.name), [c, p] = Z(!1), [h, d] = Z(!1), [m, b] = Z(""), [w, V] = Z("right"), [O, N] = Z("bottom"), { currentPathFiles: B, setCurrentPathFiles: D } = Ne(), { activeLayout: I } = De(), F = ke(null), C = lt((T) => {
3285
3287
  var Y;
3286
3288
  (Y = F.current) != null && Y.contains(T.target) || (T.preventDefault(), T.stopPropagation());
3287
- }), c = (T) => {
3289
+ }), l = (T) => {
3288
3290
  if (T.stopPropagation(), T.key === "Enter") {
3289
3291
  T.preventDefault(), C.setIsClicked(!0);
3290
3292
  return;
3291
3293
  }
3292
3294
  /[\\/:*?"<>|]/.test(T.key) ? (T.preventDefault(), b(
3293
3295
  `A file name can't contain any of the following characters: \\ / : * ? " < > |`
3294
- ), p(!0)) : p(!1);
3296
+ ), d(!0)) : d(!1);
3295
3297
  };
3296
3298
  xe(() => {
3297
3299
  if (h) {
3298
3300
  const T = setTimeout(() => {
3299
- p(!1), b("");
3301
+ d(!1), b("");
3300
3302
  }, 7e3);
3301
3303
  return () => clearTimeout(T);
3302
3304
  }
3303
3305
  }, [h]);
3304
3306
  function y(T) {
3305
- if (i === "" || i === r.name) {
3307
+ if (i === "" || i === a.name) {
3306
3308
  D(
3307
- (Y) => Y.map(($) => ($.key === r.key && ($.isEditing = !1), $))
3308
- ), a.close();
3309
+ (Y) => Y.map(($) => ($.key === a.key && ($.isEditing = !1), $))
3310
+ ), r.close();
3309
3311
  return;
3310
3312
  } else if (B.some((Y) => Y.name === i)) {
3311
- p(!0), b(`This destination already contains a folder named '${i}'.`), C.setIsClicked(!1);
3313
+ d(!0), b(`This destination already contains a folder named '${i}'.`), C.setIsClicked(!1);
3312
3314
  return;
3313
- } else if (!r.isDirectory && !T) {
3314
- const Y = Ge(r.name), $ = Ge(i);
3315
+ } else if (!a.isDirectory && !T) {
3316
+ const Y = Ge(a.name), $ = Ge(i);
3315
3317
  if (Y !== $) {
3316
- d(!0);
3318
+ p(!0);
3317
3319
  return;
3318
3320
  }
3319
3321
  }
3320
- p(!1), Be(o, "onRename", r, i), D((Y) => Y.filter(($) => $.key !== r.key)), a.close();
3322
+ d(!1), Be(o, "onRename", a, i), D((Y) => Y.filter(($) => $.key !== a.key)), r.close();
3321
3323
  }
3322
3324
  const R = () => {
3323
3325
  var T, Y, $, _, G, J;
3324
- if ((Y = (T = C.ref) == null ? void 0 : T.current) == null || Y.focus(), r.isDirectory)
3326
+ if ((Y = (T = C.ref) == null ? void 0 : T.current) == null || Y.focus(), a.isDirectory)
3325
3327
  (_ = ($ = C.ref) == null ? void 0 : $.current) == null || _.select();
3326
3328
  else {
3327
- const te = Ge(r.name), ue = r.name.length - te.length - 1;
3329
+ const te = Ge(a.name), ue = a.name.length - te.length - 1;
3328
3330
  (J = (G = C.ref) == null ? void 0 : G.current) == null || J.setSelectionRange(0, ue);
3329
3331
  }
3330
3332
  };
@@ -3344,9 +3346,9 @@ const tr = ({
3344
3346
  maxLength: Yr,
3345
3347
  value: i,
3346
3348
  onChange: (T) => {
3347
- l(T.target.value), p(!1);
3349
+ s(T.target.value), d(!1);
3348
3350
  },
3349
- onKeyDown: c,
3351
+ onKeyDown: l,
3350
3352
  onClick: (T) => T.stopPropagation(),
3351
3353
  ...I === "list" && { rows: 1 }
3352
3354
  }
@@ -3363,8 +3365,8 @@ const tr = ({
3363
3365
  tr,
3364
3366
  {
3365
3367
  heading: "Rename",
3366
- show: s,
3367
- setShow: d,
3368
+ show: c,
3369
+ setShow: p,
3368
3370
  dialogWidth: "25vw",
3369
3371
  closeButton: !1,
3370
3372
  children: /* @__PURE__ */ t.jsxs("div", { className: "fm-rename-folder-container", ref: F, children: [
@@ -3379,8 +3381,8 @@ const tr = ({
3379
3381
  type: "secondary",
3380
3382
  onClick: () => {
3381
3383
  D(
3382
- (T) => T.map((Y) => (Y.key === r.key && (Y.isEditing = !1), Y))
3383
- ), d(!1), a.close();
3384
+ (T) => T.map((Y) => (Y.key === a.key && (Y.isEditing = !1), Y))
3385
+ ), p(!1), r.close();
3384
3386
  },
3385
3387
  children: "No"
3386
3388
  }
@@ -3390,7 +3392,7 @@ const tr = ({
3390
3392
  {
3391
3393
  type: "danger",
3392
3394
  onClick: () => {
3393
- d(!1), y(!0);
3395
+ p(!1), y(!0);
3394
3396
  },
3395
3397
  children: "Yes"
3396
3398
  }
@@ -3400,100 +3402,100 @@ const tr = ({
3400
3402
  }
3401
3403
  )
3402
3404
  ] });
3403
- }, Pt = (e, r = 2) => {
3405
+ }, Pt = (e, a = 2) => {
3404
3406
  if (isNaN(e)) return "";
3405
- const o = e / 1024, a = o / 1024, i = a / 1024;
3407
+ const o = e / 1024, r = o / 1024, i = r / 1024;
3406
3408
  if (o < 1024)
3407
- return `${o.toFixed(r)} KB`;
3408
- if (a < 1024)
3409
- return `${a.toFixed(r)} MB`;
3410
- if (a >= 1024)
3411
- return `${i.toFixed(r)} GB`;
3409
+ return `${o.toFixed(a)} KB`;
3410
+ if (r < 1024)
3411
+ return `${r.toFixed(a)} MB`;
3412
+ if (r >= 1024)
3413
+ return `${i.toFixed(a)} GB`;
3412
3414
  }, Kr = (e) => {
3413
3415
  if (!e || isNaN(Date.parse(e))) return "";
3414
3416
  e = new Date(e);
3415
- let r = e.getHours();
3416
- const o = e.getMinutes(), a = r >= 12 ? "PM" : "AM";
3417
- r = r % 12, r = r || 12;
3418
- const i = e.getMonth() + 1, l = e.getDate(), s = e.getFullYear();
3419
- return `${i}/${l}/${s} ${r}:${o < 10 ? "0" + o : o} ${a}`;
3420
- }, nr = ({ name: e, id: r, checked: o, onClick: a, onChange: i, className: l = "", title: s }) => /* @__PURE__ */ t.jsx(
3417
+ let a = e.getHours();
3418
+ const o = e.getMinutes(), r = a >= 12 ? "PM" : "AM";
3419
+ a = a % 12, a = a || 12;
3420
+ const i = e.getMonth() + 1, s = e.getDate(), c = e.getFullYear();
3421
+ return `${i}/${s}/${c} ${a}:${o < 10 ? "0" + o : o} ${r}`;
3422
+ }, nr = ({ name: e, id: a, checked: o, onClick: r, onChange: i, className: s = "", title: c }) => /* @__PURE__ */ t.jsx(
3421
3423
  "input",
3422
3424
  {
3423
- className: `fm-checkbox ${l}`,
3425
+ className: `fm-checkbox ${s}`,
3424
3426
  type: "checkbox",
3425
3427
  name: e,
3426
- id: r,
3428
+ id: a,
3427
3429
  checked: o,
3428
- onClick: a,
3430
+ onClick: r,
3429
3431
  onChange: i,
3430
- title: s
3432
+ title: c
3431
3433
  }
3432
3434
  ), Dt = 50, Xr = ({
3433
3435
  index: e,
3434
- file: r,
3436
+ file: a,
3435
3437
  onCreateFolder: o,
3436
- onRename: a,
3438
+ onRename: r,
3437
3439
  enableFilePreview: i,
3438
- onFileOpen: l,
3439
- filesViewRef: s,
3440
- selectedFileIndexes: d,
3440
+ onFileOpen: s,
3441
+ filesViewRef: c,
3442
+ selectedFileIndexes: p,
3441
3443
  triggerAction: h,
3442
- handleContextMenu: p,
3444
+ handleContextMenu: d,
3443
3445
  setLastSelectedFile: m
3444
3446
  }) => {
3445
3447
  var W, j, ie, ce;
3446
- const [b, w] = Z(!1), [V, O] = Z(0), [N, B] = Z("hidden"), [D, I] = Z(""), [F, C] = Z(null), { activeLayout: c } = De(), y = c === "grid" ? 48 : 20, R = Ot(y), { setCurrentPath: T, currentPathFiles: Y } = Ne(), { setSelectedFiles: $ } = ze(), { clipBoard: _, handleCutCopy: G, setClipBoard: J, handlePasting: te } = Tt(), ue = ke(null), ne = Ot(Dt), oe = (_ == null ? void 0 : _.isMoving) && _.files.find((Q) => Q.name === r.name && Q.path === r.path), pe = () => {
3447
- l(r), r.isDirectory ? (T(r.path), $([])) : i && h.show("previewFile");
3448
+ const [b, w] = Z(!1), [V, O] = Z(0), [N, B] = Z("hidden"), [D, I] = Z(""), [F, C] = Z(null), { activeLayout: l } = De(), y = l === "grid" ? 48 : 20, R = Ot(y), { setCurrentPath: T, currentPathFiles: Y } = Ne(), { setSelectedFiles: $ } = ze(), { clipBoard: _, handleCutCopy: G, setClipBoard: J, handlePasting: te } = Tt(), ue = ke(null), ne = Ot(Dt), oe = (_ == null ? void 0 : _.isMoving) && _.files.find((Q) => Q.name === a.name && Q.path === a.path), he = () => {
3449
+ s(a), a.isDirectory ? (T(a.path), $([])) : i && h.show("previewFile");
3448
3450
  }, ge = (Q, de) => {
3449
- if (d.length > 0 && Q) {
3450
- let Ce = !1, we = d[0], Te = e;
3451
+ if (p.length > 0 && Q) {
3452
+ let Ce = !1, we = p[0], Te = e;
3451
3453
  if (we >= Te) {
3452
3454
  const Ze = we;
3453
3455
  we = Te, Te = Ze, Ce = !0;
3454
3456
  }
3455
3457
  const We = Y.slice(we, Te + 1);
3456
3458
  $(Ce ? We.reverse() : We);
3457
- } else d.length > 0 && de ? $((Ce) => {
3458
- const we = Ce.filter((Te) => Te.path !== r.path);
3459
- return Ce.length === we.length ? [...Ce, r] : we;
3460
- }) : $([r]);
3459
+ } else p.length > 0 && de ? $((Ce) => {
3460
+ const we = Ce.filter((Te) => Te.path !== a.path);
3461
+ return Ce.length === we.length ? [...Ce, a] : we;
3462
+ }) : $([a]);
3461
3463
  }, S = (Q) => {
3462
- if (Q.stopPropagation(), r.isEditing) return;
3464
+ if (Q.stopPropagation(), a.isEditing) return;
3463
3465
  ge(Q.shiftKey, Q.ctrlKey);
3464
3466
  const de = (/* @__PURE__ */ new Date()).getTime();
3465
3467
  if (de - V < 300) {
3466
- pe();
3468
+ he();
3467
3469
  return;
3468
3470
  }
3469
3471
  O(de);
3470
3472
  }, q = (Q) => {
3471
- Q.key === "Enter" && (Q.stopPropagation(), $([r]), pe());
3473
+ Q.key === "Enter" && (Q.stopPropagation(), $([a]), he());
3472
3474
  }, x = (Q) => {
3473
- Q.stopPropagation(), Q.preventDefault(), !r.isEditing && (b || $([r]), m(r), p(Q, !0));
3475
+ Q.stopPropagation(), Q.preventDefault(), !a.isEditing && (b || $([a]), m(a), d(Q, !0));
3474
3476
  }, A = () => {
3475
3477
  B("visible");
3476
3478
  }, L = () => {
3477
3479
  !b && B("hidden");
3478
3480
  }, K = (Q) => {
3479
- Q.target.checked ? $((de) => [...de, r]) : $((de) => de.filter((Ce) => Ce.name !== r.name && Ce.path !== r.path)), w(Q.target.checked);
3481
+ Q.target.checked ? $((de) => [...de, a]) : $((de) => de.filter((Ce) => Ce.name !== a.name && Ce.path !== a.path)), w(Q.target.checked);
3480
3482
  }, M = (Q) => {
3481
3483
  Q.dataTransfer.setDragImage(ue.current, 30, 50), Q.dataTransfer.effectAllowed = "copy", G(!0);
3482
3484
  }, f = () => J(null), g = (Q) => {
3483
- Q.preventDefault(), b || !r.isDirectory ? Q.dataTransfer.dropEffect = "none" : (C({ x: Q.clientX, y: Q.clientY + 12 }), Q.dataTransfer.dropEffect = "copy", I("file-drop-zone"));
3485
+ Q.preventDefault(), b || !a.isDirectory ? Q.dataTransfer.dropEffect = "none" : (C({ x: Q.clientX, y: Q.clientY + 12 }), Q.dataTransfer.dropEffect = "copy", I("file-drop-zone"));
3484
3486
  }, k = (Q) => {
3485
3487
  Q.currentTarget.contains(Q.relatedTarget) || (I((de) => de && ""), C(null));
3486
3488
  }, E = (Q) => {
3487
- Q.preventDefault(), !(b || !r.isDirectory) && (te(r), I((de) => de && ""), C(null));
3489
+ Q.preventDefault(), !(b || !a.isDirectory) && (te(a), I((de) => de && ""), C(null));
3488
3490
  };
3489
3491
  return xe(() => {
3490
- w(d.includes(e)), B(d.includes(e) ? "visible" : "hidden");
3491
- }, [d]), /* @__PURE__ */ t.jsxs(
3492
+ w(p.includes(e)), B(p.includes(e) ? "visible" : "hidden");
3493
+ }, [p]), /* @__PURE__ */ t.jsxs(
3492
3494
  "div",
3493
3495
  {
3494
- className: `file-item-container ${D} ${b || r.isEditing ? "file-selected" : ""} ${oe ? "file-moving" : ""}`,
3496
+ className: `file-item-container ${D} ${b || a.isEditing ? "file-selected" : ""} ${oe ? "file-moving" : ""}`,
3495
3497
  tabIndex: 0,
3496
- title: r.name,
3498
+ title: a.name,
3497
3499
  onClick: S,
3498
3500
  onKeyDown: q,
3499
3501
  onContextMenu: x,
@@ -3508,39 +3510,39 @@ const tr = ({
3508
3510
  onDrop: E,
3509
3511
  children: [
3510
3512
  /* @__PURE__ */ t.jsxs("div", { className: "file-item", children: [
3511
- !r.isEditing && /* @__PURE__ */ t.jsx(
3513
+ !a.isEditing && /* @__PURE__ */ t.jsx(
3512
3514
  nr,
3513
3515
  {
3514
- name: r.name,
3515
- id: r.name,
3516
+ name: a.name,
3517
+ id: a.name,
3516
3518
  checked: b,
3517
3519
  className: `selection-checkbox ${N}`,
3518
3520
  onChange: K,
3519
3521
  onClick: (Q) => Q.stopPropagation()
3520
3522
  }
3521
3523
  ),
3522
- r.isDirectory ? /* @__PURE__ */ t.jsx(dn, { size: y }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: R[(j = (W = r.name) == null ? void 0 : W.split(".").pop()) == null ? void 0 : j.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Et, { size: y }) }),
3523
- r.isEditing ? /* @__PURE__ */ t.jsx("div", { className: `rename-file-container ${c}`, children: h.actionType === "createFolder" ? /* @__PURE__ */ t.jsx(
3524
+ a.isDirectory ? /* @__PURE__ */ t.jsx(dn, { size: y }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: R[(j = (W = a.name) == null ? void 0 : W.split(".").pop()) == null ? void 0 : j.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Et, { size: y }) }),
3525
+ a.isEditing ? /* @__PURE__ */ t.jsx("div", { className: `rename-file-container ${l}`, children: h.actionType === "createFolder" ? /* @__PURE__ */ t.jsx(
3524
3526
  Wr,
3525
3527
  {
3526
- filesViewRef: s,
3527
- file: r,
3528
+ filesViewRef: c,
3529
+ file: a,
3528
3530
  onCreateFolder: o,
3529
3531
  triggerAction: h
3530
3532
  }
3531
3533
  ) : /* @__PURE__ */ t.jsx(
3532
3534
  qr,
3533
3535
  {
3534
- filesViewRef: s,
3535
- file: r,
3536
- onRename: a,
3536
+ filesViewRef: c,
3537
+ file: a,
3538
+ onRename: r,
3537
3539
  triggerAction: h
3538
3540
  }
3539
- ) }) : /* @__PURE__ */ t.jsx("span", { className: "text-truncate file-name", children: r.name })
3541
+ ) }) : /* @__PURE__ */ t.jsx("span", { className: "text-truncate file-name", children: a.name })
3540
3542
  ] }),
3541
- c === "list" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3542
- /* @__PURE__ */ t.jsx("div", { className: "modified-date", children: Kr(r.updatedAt) }),
3543
- /* @__PURE__ */ t.jsx("div", { className: "size", children: (r == null ? void 0 : r.size) > 0 ? Pt(r == null ? void 0 : r.size) : "" })
3543
+ l === "list" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
3544
+ /* @__PURE__ */ t.jsx("div", { className: "modified-date", children: Kr(a.updatedAt) }),
3545
+ /* @__PURE__ */ t.jsx("div", { className: "size", children: (a == null ? void 0 : a.size) > 0 ? Pt(a == null ? void 0 : a.size) : "" })
3544
3546
  ] }),
3545
3547
  F && /* @__PURE__ */ t.jsxs(
3546
3548
  "div",
@@ -3552,43 +3554,43 @@ const tr = ({
3552
3554
  className: "drag-move-tooltip",
3553
3555
  children: [
3554
3556
  "Move to ",
3555
- /* @__PURE__ */ t.jsx("span", { className: "drop-zone-file-name", children: r.name })
3557
+ /* @__PURE__ */ t.jsx("span", { className: "drop-zone-file-name", children: a.name })
3556
3558
  ]
3557
3559
  }
3558
3560
  ),
3559
- /* @__PURE__ */ t.jsx("div", { ref: ue, className: "drag-icon", children: r.isDirectory ? /* @__PURE__ */ t.jsx(dn, { size: Dt }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: ne[(ce = (ie = r.name) == null ? void 0 : ie.split(".").pop()) == null ? void 0 : ce.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Et, { size: Dt }) }) })
3561
+ /* @__PURE__ */ t.jsx("div", { ref: ue, className: "drag-icon", children: a.isDirectory ? /* @__PURE__ */ t.jsx(dn, { size: Dt }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: ne[(ce = (ie = a.name) == null ? void 0 : ie.split(".").pop()) == null ? void 0 : ce.toLowerCase()] ?? /* @__PURE__ */ t.jsx(Et, { size: Dt }) }) })
3560
3562
  ]
3561
3563
  }
3562
3564
  );
3563
- }, Gr = ({ list: e }) => /* @__PURE__ */ t.jsx("ul", { className: "sub-menu", children: e == null ? void 0 : e.map((r) => /* @__PURE__ */ t.jsxs("li", { onClick: r.onClick, children: [
3564
- /* @__PURE__ */ t.jsx("span", { className: "item-selected", children: r.selected && /* @__PURE__ */ t.jsx(Wn, { size: 13 }) }),
3565
- r.icon,
3566
- /* @__PURE__ */ t.jsx("span", { children: r.title })
3567
- ] }, r.title)) }), Jr = ({ filesViewRef: e, contextMenuRef: r, menuItems: o, visible: a, clickPosition: i }) => {
3568
- const [l, s] = Z(0), [d, h] = Z(0), [p, m] = Z(null), b = () => {
3569
- const { clickX: O, clickY: N } = i, B = e.current, D = B.getBoundingClientRect(), I = B.offsetWidth - B.clientWidth, F = r.current.getBoundingClientRect(), C = F.width, c = F.height, y = O - D.left, R = D.width - (y + I) > C, T = !R, Y = N - D.top, $ = D.height - Y > c, _ = !$;
3570
- R ? s(`${y}px`) : T && s(`${y - C}px`), $ ? h(`${Y + B.scrollTop}px`) : _ && h(`${Y + B.scrollTop - c}px`);
3565
+ }, Gr = ({ list: e }) => /* @__PURE__ */ t.jsx("ul", { className: "sub-menu", children: e == null ? void 0 : e.map((a) => /* @__PURE__ */ t.jsxs("li", { onClick: a.onClick, children: [
3566
+ /* @__PURE__ */ t.jsx("span", { className: "item-selected", children: a.selected && /* @__PURE__ */ t.jsx(Wn, { size: 13 }) }),
3567
+ a.icon,
3568
+ /* @__PURE__ */ t.jsx("span", { children: a.title })
3569
+ ] }, a.title)) }), Jr = ({ filesViewRef: e, contextMenuRef: a, menuItems: o, visible: r, clickPosition: i }) => {
3570
+ const [s, c] = Z(0), [p, h] = Z(0), [d, m] = Z(null), b = () => {
3571
+ const { clickX: O, clickY: N } = i, B = e.current, D = B.getBoundingClientRect(), I = B.offsetWidth - B.clientWidth, F = a.current.getBoundingClientRect(), C = F.width, l = F.height, y = O - D.left, R = D.width - (y + I) > C, T = !R, Y = N - D.top, $ = D.height - Y > l, _ = !$;
3572
+ R ? c(`${y}px`) : T && c(`${y - C}px`), $ ? h(`${Y + B.scrollTop}px`) : _ && h(`${Y + B.scrollTop - l}px`);
3571
3573
  }, w = (O) => {
3572
3574
  O.preventDefault(), O.stopPropagation();
3573
3575
  }, V = (O) => {
3574
3576
  m(O);
3575
3577
  };
3576
3578
  if (xe(() => {
3577
- a && r.current ? b() : (h(0), s(0), m(null));
3578
- }, [a]), a)
3579
+ r && a.current ? b() : (h(0), c(0), m(null));
3580
+ }, [r]), r)
3579
3581
  return /* @__PURE__ */ t.jsx(
3580
3582
  "div",
3581
3583
  {
3582
- ref: r,
3584
+ ref: a,
3583
3585
  onContextMenu: w,
3584
3586
  onClick: (O) => O.stopPropagation(),
3585
- className: `fm-context-menu ${d ? "visible" : "hidden"}`,
3587
+ className: `fm-context-menu ${p ? "visible" : "hidden"}`,
3586
3588
  style: {
3587
- top: d,
3588
- left: l
3589
+ top: p,
3590
+ left: s
3589
3591
  },
3590
3592
  children: /* @__PURE__ */ t.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ t.jsx("ul", { children: o.filter((O) => !O.hidden).map((O, N) => {
3591
- const B = O.hasOwnProperty("children"), D = p === N;
3593
+ const B = O.hasOwnProperty("children"), D = d === N;
3592
3594
  return /* @__PURE__ */ t.jsxs("div", { children: [
3593
3595
  /* @__PURE__ */ t.jsxs(
3594
3596
  "li",
@@ -3615,27 +3617,27 @@ const tr = ({
3615
3617
  function Zr(e) {
3616
3618
  return re({ 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);
3617
3619
  }
3618
- const Qr = (e, r, o) => {
3619
- const [a, i] = Z([]), [l, s] = Z(!1), [d, h] = Z(!1), [p, m] = Z({ clickX: 0, clickY: 0 }), [b, w] = Z(null), { clipBoard: V, setClipBoard: O, handleCutCopy: N, handlePasting: B } = Tt(), { selectedFiles: D, setSelectedFiles: I, handleDownload: F } = ze(), { currentPath: C, setCurrentPath: c, currentPathFiles: y, setCurrentPathFiles: R } = Ne(), { activeLayout: T, setActiveLayout: Y } = De(), $ = () => {
3620
- b.isDirectory ? (c(b.path), i([]), I([])) : r && o.show("previewFile"), s(!1);
3620
+ const Qr = (e, a, o) => {
3621
+ const [r, i] = Z([]), [s, c] = Z(!1), [p, h] = Z(!1), [d, m] = Z({ clickX: 0, clickY: 0 }), [b, w] = Z(null), { clipBoard: V, setClipBoard: O, handleCutCopy: N, handlePasting: B } = Tt(), { selectedFiles: D, setSelectedFiles: I, handleDownload: F } = ze(), { currentPath: C, setCurrentPath: l, currentPathFiles: y, setCurrentPathFiles: R } = Ne(), { activeLayout: T, setActiveLayout: Y } = De(), $ = () => {
3622
+ b.isDirectory ? (l(b.path), i([]), I([])) : a && o.show("previewFile"), c(!1);
3621
3623
  }, _ = (M) => {
3622
- N(M), s(!1);
3624
+ N(M), c(!1);
3623
3625
  }, G = () => {
3624
- B(b), s(!1);
3626
+ B(b), c(!1);
3625
3627
  }, J = () => {
3626
- s(!1), o.show("rename");
3628
+ c(!1), o.show("rename");
3627
3629
  }, te = () => {
3628
- F(), s(!1);
3630
+ F(), c(!1);
3629
3631
  }, ue = () => {
3630
- s(!1), o.show("delete");
3632
+ c(!1), o.show("delete");
3631
3633
  }, ne = () => {
3632
- s(!1), Be(e, "onRefresh"), O(null);
3634
+ c(!1), Be(e, "onRefresh"), O(null);
3633
3635
  }, oe = () => {
3634
- o.show("createFolder"), s(!1);
3635
- }, pe = () => {
3636
- s(!1), o.show("uploadFile");
3636
+ o.show("createFolder"), c(!1);
3637
+ }, he = () => {
3638
+ c(!1), o.show("uploadFile");
3637
3639
  }, ge = () => {
3638
- I(y), s(!1);
3640
+ I(y), c(!1);
3639
3641
  }, S = [
3640
3642
  {
3641
3643
  title: "View",
@@ -3648,7 +3650,7 @@ const Qr = (e, r, o) => {
3648
3650
  icon: /* @__PURE__ */ t.jsx(on, { size: 18 }),
3649
3651
  selected: T === "grid",
3650
3652
  onClick: () => {
3651
- Y("grid"), s(!1);
3653
+ Y("grid"), c(!1);
3652
3654
  }
3653
3655
  },
3654
3656
  {
@@ -3656,7 +3658,7 @@ const Qr = (e, r, o) => {
3656
3658
  icon: /* @__PURE__ */ t.jsx(jt, { size: 18 }),
3657
3659
  selected: T === "list",
3658
3660
  onClick: () => {
3659
- Y("list"), s(!1);
3661
+ Y("list"), c(!1);
3660
3662
  }
3661
3663
  }
3662
3664
  ]
@@ -3675,7 +3677,7 @@ const Qr = (e, r, o) => {
3675
3677
  {
3676
3678
  title: "Upload",
3677
3679
  icon: /* @__PURE__ */ t.jsx($n, { size: 18 }),
3678
- onClick: pe,
3680
+ onClick: he,
3679
3681
  divider: !0
3680
3682
  },
3681
3683
  {
@@ -3738,11 +3740,11 @@ const Qr = (e, r, o) => {
3738
3740
  }
3739
3741
  ]);
3740
3742
  }, A = () => {
3741
- R((M) => (M[a.at(-1)] && (M[a.at(-1)].isEditing = !0), M)), i([]), I([]);
3743
+ R((M) => (M[r.at(-1)] && (M[r.at(-1)].isEditing = !0), M)), i([]), I([]);
3742
3744
  }, L = () => {
3743
3745
  i([]), I((M) => M.length > 0 ? [] : M);
3744
3746
  }, K = (M, f = !1) => {
3745
- M.preventDefault(), m({ clickX: M.clientX, clickY: M.clientY }), h(f), !f && L(), s(!0);
3747
+ M.preventDefault(), m({ clickX: M.clientX, clickY: M.clientY }), h(f), !f && L(), c(!0);
3746
3748
  };
3747
3749
  return xe(() => {
3748
3750
  if (o.isActive)
@@ -3763,16 +3765,16 @@ const Qr = (e, r, o) => {
3763
3765
  selecCtxItems: q,
3764
3766
  handleContextMenu: K,
3765
3767
  unselectFiles: L,
3766
- visible: l,
3767
- setVisible: s,
3768
+ visible: s,
3769
+ setVisible: c,
3768
3770
  setLastSelectedFile: w,
3769
- selectedFileIndexes: a,
3770
- clickPosition: p,
3771
- isSelectionCtx: d
3771
+ selectedFileIndexes: r,
3772
+ clickPosition: d,
3773
+ isSelectionCtx: p
3772
3774
  };
3773
3775
  }, ea = ({ unselectFiles: e }) => {
3774
- const [r, o] = Z(!1), { selectedFiles: a, setSelectedFiles: i } = ze(), { currentPathFiles: l } = Ne(), s = Sn(() => a.length === l.length, [a, l]), d = (h) => {
3775
- h.target.checked ? (i(l), o(!0)) : e();
3776
+ const [a, o] = Z(!1), { selectedFiles: r, setSelectedFiles: i } = ze(), { currentPathFiles: s } = Ne(), c = Sn(() => r.length === s.length, [r, s]), p = (h) => {
3777
+ h.target.checked ? (i(s), o(!0)) : e();
3776
3778
  };
3777
3779
  return /* @__PURE__ */ t.jsxs(
3778
3780
  "div",
@@ -3781,7 +3783,7 @@ const Qr = (e, r, o) => {
3781
3783
  onMouseOver: () => o(!0),
3782
3784
  onMouseLeave: () => o(!1),
3783
3785
  children: [
3784
- /* @__PURE__ */ t.jsx("div", { className: "file-select-all", children: (r || s) && /* @__PURE__ */ t.jsx(nr, { checked: s, onChange: d, title: "Select all" }) }),
3786
+ /* @__PURE__ */ t.jsx("div", { className: "file-select-all", children: (a || c) && /* @__PURE__ */ t.jsx(nr, { checked: c, onChange: p, title: "Select all" }) }),
3785
3787
  /* @__PURE__ */ t.jsx("div", { className: "file-name", children: "Name" }),
3786
3788
  /* @__PURE__ */ t.jsx("div", { className: "file-date", children: "Modified" }),
3787
3789
  /* @__PURE__ */ t.jsx("div", { className: "file-size", children: "Size" })
@@ -3790,14 +3792,14 @@ const Qr = (e, r, o) => {
3790
3792
  );
3791
3793
  }, ta = ({
3792
3794
  onCreateFolder: e,
3793
- onRename: r,
3795
+ onRename: a,
3794
3796
  onFileOpen: o,
3795
- onRefresh: a,
3797
+ onRefresh: r,
3796
3798
  enableFilePreview: i,
3797
- triggerAction: l
3799
+ triggerAction: s
3798
3800
  }) => {
3799
- const { currentPathFiles: s } = Ne(), d = ke(null), { activeLayout: h } = De(), {
3800
- emptySelecCtxItems: p,
3801
+ const { currentPathFiles: c } = Ne(), p = ke(null), { activeLayout: h } = De(), {
3802
+ emptySelecCtxItems: d,
3801
3803
  selecCtxItems: m,
3802
3804
  handleContextMenu: b,
3803
3805
  unselectFiles: w,
@@ -3807,40 +3809,40 @@ const Qr = (e, r, o) => {
3807
3809
  selectedFileIndexes: B,
3808
3810
  clickPosition: D,
3809
3811
  isSelectionCtx: I
3810
- } = Qr(a, i, l), F = lt(() => O(!1));
3812
+ } = Qr(r, i, s), F = lt(() => O(!1));
3811
3813
  return /* @__PURE__ */ t.jsxs(
3812
3814
  "div",
3813
3815
  {
3814
- ref: d,
3816
+ ref: p,
3815
3817
  className: `files ${h}`,
3816
3818
  onContextMenu: b,
3817
3819
  onClick: w,
3818
3820
  children: [
3819
3821
  h === "list" && /* @__PURE__ */ t.jsx(ea, { unselectFiles: w }),
3820
- (s == null ? void 0 : s.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: s.map((C, c) => /* @__PURE__ */ t.jsx(
3822
+ (c == null ? void 0 : c.length) > 0 ? /* @__PURE__ */ t.jsx(t.Fragment, { children: c.map((C, l) => /* @__PURE__ */ t.jsx(
3821
3823
  Xr,
3822
3824
  {
3823
- index: c,
3825
+ index: l,
3824
3826
  file: C,
3825
3827
  onCreateFolder: e,
3826
- onRename: r,
3828
+ onRename: a,
3827
3829
  onFileOpen: o,
3828
3830
  enableFilePreview: i,
3829
- triggerAction: l,
3830
- filesViewRef: d,
3831
+ triggerAction: s,
3832
+ filesViewRef: p,
3831
3833
  selectedFileIndexes: B,
3832
3834
  handleContextMenu: b,
3833
3835
  setVisible: O,
3834
3836
  setLastSelectedFile: N
3835
3837
  },
3836
- c
3838
+ l
3837
3839
  )) }) : /* @__PURE__ */ t.jsx("div", { className: "empty-folder", children: "This folder is empty." }),
3838
3840
  /* @__PURE__ */ t.jsx(
3839
3841
  Jr,
3840
3842
  {
3841
- filesViewRef: d,
3843
+ filesViewRef: p,
3842
3844
  contextMenuRef: F.ref,
3843
- menuItems: I ? m : p,
3845
+ menuItems: I ? m : d,
3844
3846
  visible: V,
3845
3847
  setVisible: O,
3846
3848
  clickPosition: D
@@ -3849,24 +3851,24 @@ const Qr = (e, r, o) => {
3849
3851
  ]
3850
3852
  }
3851
3853
  );
3852
- }, na = ({ triggerAction: e, onDelete: r }) => {
3853
- const [o, a] = Z(""), { selectedFiles: i, setSelectedFiles: l } = ze();
3854
+ }, na = ({ triggerAction: e, onDelete: a }) => {
3855
+ const [o, r] = Z(""), { selectedFiles: i, setSelectedFiles: s } = ze();
3854
3856
  xe(() => {
3855
- a(() => {
3857
+ r(() => {
3856
3858
  if (i.length === 1)
3857
3859
  return `Are you sure you want to delete "${i[0].name}"?`;
3858
3860
  if (i.length > 1)
3859
3861
  return `Are you sure you want to delete these ${i.length} items?`;
3860
3862
  });
3861
3863
  }, []);
3862
- const s = () => {
3863
- r(i), l([]), e.close();
3864
+ const c = () => {
3865
+ a(i), s([]), e.close();
3864
3866
  };
3865
3867
  return /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm", children: [
3866
3868
  /* @__PURE__ */ t.jsx("p", { className: "file-delete-confirm-text", children: o }),
3867
3869
  /* @__PURE__ */ t.jsxs("div", { className: "file-delete-confirm-actions", children: [
3868
3870
  /* @__PURE__ */ t.jsx(Je, { type: "secondary", onClick: () => e.close(), children: "Cancel" }),
3869
- /* @__PURE__ */ t.jsx(Je, { type: "danger", onClick: s, children: "Delete" })
3871
+ /* @__PURE__ */ t.jsx(Je, { type: "danger", onClick: c, children: "Delete" })
3870
3872
  ] })
3871
3873
  ] });
3872
3874
  };
@@ -3876,25 +3878,25 @@ function ra(e) {
3876
3878
  function aa(e) {
3877
3879
  return re({ 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);
3878
3880
  }
3879
- const oa = ({ percent: e = 0, isCanceled: r = !1, isCompleted: o = !1, error: a }) => /* @__PURE__ */ t.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
3880
- !a && /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar", children: /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar-fill", style: { width: `${e}%` } }) }),
3881
- r ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: "Canceled" }) : a ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: a }) : /* @__PURE__ */ t.jsx("div", { className: "fm-progress-status", children: /* @__PURE__ */ t.jsx("span", { children: o ? "Completed" : e + "% done" }) })
3881
+ const oa = ({ percent: e = 0, isCanceled: a = !1, isCompleted: o = !1, error: r }) => /* @__PURE__ */ t.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
3882
+ !r && /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar", children: /* @__PURE__ */ t.jsx("div", { className: "fm-progress-bar-fill", style: { width: `${e}%` } }) }),
3883
+ a ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: "Canceled" }) : r ? /* @__PURE__ */ t.jsx("span", { className: "fm-upload-canceled", children: r }) : /* @__PURE__ */ t.jsx("div", { className: "fm-progress-status", children: /* @__PURE__ */ t.jsx("span", { children: o ? "Completed" : e + "% done" }) })
3882
3884
  ] });
3883
3885
  function ia(e) {
3884
3886
  return re({ 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);
3885
3887
  }
3886
3888
  const sa = ({
3887
3889
  index: e,
3888
- fileData: r,
3890
+ fileData: a,
3889
3891
  setFiles: o,
3890
- setIsUploading: a,
3892
+ setIsUploading: r,
3891
3893
  fileUploadConfig: i,
3892
- onFileUploaded: l,
3893
- handleFileRemove: s
3894
+ onFileUploaded: s,
3895
+ handleFileRemove: c
3894
3896
  }) => {
3895
3897
  var y, R, T, Y;
3896
- const [d, h] = Z(0), [p, m] = Z(!1), [b, w] = Z(!1), [V, O] = Z(!1), N = Ot(33), B = ke(), { onError: D } = Rt(), I = ($) => {
3897
- h(0), a((G) => ({
3898
+ const [p, h] = Z(0), [d, m] = Z(!1), [b, w] = Z(!1), [V, O] = Z(!1), N = Ot(33), B = ke(), { onError: D } = Rt(), I = ($) => {
3899
+ h(0), r((G) => ({
3898
3900
  ...G,
3899
3901
  [e]: !1
3900
3902
  }));
@@ -3912,24 +3914,24 @@ const sa = ({
3912
3914
  ...J,
3913
3915
  error: _.message
3914
3916
  } : J)
3915
- ), O(!0), D(_, r.file);
3917
+ ), O(!0), D(_, a.file);
3916
3918
  }, F = ($) => {
3917
3919
  if (!$.error)
3918
3920
  return new Promise((_, G) => {
3919
3921
  const J = new XMLHttpRequest();
3920
- B.current = J, a((oe) => ({
3922
+ B.current = J, r((oe) => ({
3921
3923
  ...oe,
3922
3924
  [e]: !0
3923
3925
  })), J.upload.onprogress = (oe) => {
3924
3926
  if (oe.lengthComputable) {
3925
- const pe = Math.round(oe.loaded / oe.total * 100);
3926
- h(pe);
3927
+ const he = Math.round(oe.loaded / oe.total * 100);
3928
+ h(he);
3927
3929
  }
3928
3930
  }, J.onload = () => {
3929
- a((oe) => ({
3931
+ r((oe) => ({
3930
3932
  ...oe,
3931
3933
  [e]: !1
3932
- })), J.status === 200 || J.status === 201 ? (m(!0), l(J.response), _(J.response)) : (G(J.statusText), I(J));
3934
+ })), J.status === 200 || J.status === 201 ? (m(!0), s(J.response), _(J.response)) : (G(J.statusText), I(J));
3933
3935
  }, J.onerror = () => {
3934
3936
  G(J.statusText), I(J);
3935
3937
  }, J.open("POST", i == null ? void 0 : i.url, !0);
@@ -3943,35 +3945,35 @@ const sa = ({
3943
3945
  });
3944
3946
  };
3945
3947
  xe(() => {
3946
- B.current || F(r);
3948
+ B.current || F(a);
3947
3949
  }, []);
3948
3950
  const C = () => {
3949
- B.current && (B.current.abort(), a(($) => ({
3951
+ B.current && (B.current.abort(), r(($) => ({
3950
3952
  ...$,
3951
3953
  [e]: !1
3952
3954
  })), w(!0), h(0));
3953
- }, c = () => {
3954
- r != null && r.file && (o(
3955
+ }, l = () => {
3956
+ a != null && a.file && (o(
3955
3957
  ($) => $.map((_, G) => e === G ? {
3956
3958
  ..._,
3957
3959
  error: !1
3958
3960
  } : _)
3959
- ), F({ ...r, error: !1 }), w(!1), O(!1));
3961
+ ), F({ ...a, error: !1 }), w(!1), O(!1));
3960
3962
  };
3961
- return r.removed ? null : /* @__PURE__ */ t.jsxs("li", { children: [
3962
- /* @__PURE__ */ t.jsx("div", { className: "file-icon", children: N[Ge((y = r.file) == null ? void 0 : y.name)] ?? /* @__PURE__ */ t.jsx(Et, { size: 33 }) }),
3963
+ return a.removed ? null : /* @__PURE__ */ t.jsxs("li", { children: [
3964
+ /* @__PURE__ */ t.jsx("div", { className: "file-icon", children: N[Ge((y = a.file) == null ? void 0 : y.name)] ?? /* @__PURE__ */ t.jsx(Et, { size: 33 }) }),
3963
3965
  /* @__PURE__ */ t.jsxs("div", { className: "file", children: [
3964
3966
  /* @__PURE__ */ t.jsxs("div", { className: "file-details", children: [
3965
3967
  /* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
3966
- /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (R = r.file) == null ? void 0 : R.name, children: (T = r.file) == null ? void 0 : T.name }),
3967
- /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Pt((Y = r.file) == null ? void 0 : Y.size) })
3968
+ /* @__PURE__ */ t.jsx("span", { className: "file-name text-truncate", title: (R = a.file) == null ? void 0 : R.name, children: (T = a.file) == null ? void 0 : T.name }),
3969
+ /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Pt((Y = a.file) == null ? void 0 : Y.size) })
3968
3970
  ] }),
3969
- p ? /* @__PURE__ */ t.jsx(Vr, { color: "#5c5bb1", title: "Uploaded" }) : b || V ? /* @__PURE__ */ t.jsx(ia, { className: "retry-upload", title: "Retry", onClick: c }) : /* @__PURE__ */ t.jsx(
3971
+ d ? /* @__PURE__ */ t.jsx(Vr, { color: "#5c5bb1", title: "Uploaded" }) : b || V ? /* @__PURE__ */ t.jsx(ia, { className: "retry-upload", title: "Retry", onClick: l }) : /* @__PURE__ */ t.jsx(
3970
3972
  "div",
3971
3973
  {
3972
3974
  className: "rm-file",
3973
- title: `${r.error ? "Remove" : "Abort Upload"}`,
3974
- onClick: r.error ? () => s(e) : C,
3975
+ title: `${a.error ? "Remove" : "Abort Upload"}`,
3976
+ onClick: a.error ? () => c(e) : C,
3975
3977
  children: /* @__PURE__ */ t.jsx(ra, {})
3976
3978
  }
3977
3979
  )
@@ -3979,68 +3981,68 @@ const sa = ({
3979
3981
  /* @__PURE__ */ t.jsx(
3980
3982
  oa,
3981
3983
  {
3982
- percent: d,
3984
+ percent: p,
3983
3985
  isCanceled: b,
3984
- isCompleted: p,
3985
- error: r.error
3986
+ isCompleted: d,
3987
+ error: a.error
3986
3988
  }
3987
3989
  )
3988
3990
  ] })
3989
3991
  ] });
3990
3992
  }, ca = ({
3991
3993
  fileUploadConfig: e,
3992
- maxFileSize: r,
3994
+ maxFileSize: a,
3993
3995
  acceptedFileTypes: o,
3994
- onFileUploading: a,
3996
+ onFileUploading: r,
3995
3997
  onFileUploaded: i
3996
3998
  }) => {
3997
- const [l, s] = Z([]), [d, h] = Z(!1), [p, m] = Z({}), { currentFolder: b, currentPathFiles: w } = Ne(), { onError: V } = Rt(), O = ke(null), N = (c) => {
3998
- c.key === "Enter" && O.current.click();
3999
- }, B = (c) => {
4000
- if (o && !o.includes(Ge(c.name)))
3999
+ const [s, c] = Z([]), [p, h] = Z(!1), [d, m] = Z({}), { currentFolder: b, currentPathFiles: w } = Ne(), { onError: V } = Rt(), O = ke(null), N = (l) => {
4000
+ l.key === "Enter" && O.current.click();
4001
+ }, B = (l) => {
4002
+ if (o && !o.includes(Ge(l.name)))
4001
4003
  return "File type is not allowed.";
4002
4004
  if (w.some(
4003
- (T) => T.name.toLowerCase() === c.name.toLowerCase() && !T.isDirectory
4005
+ (T) => T.name.toLowerCase() === l.name.toLowerCase() && !T.isDirectory
4004
4006
  )) return "File already exists.";
4005
- if (r && c.size > r) return `Maximum upload size is ${Pt(r, 0)}.`;
4006
- }, D = (c) => {
4007
- if (c = c.filter(
4008
- (y) => !l.some((R) => R.file.name.toLowerCase() === y.name.toLowerCase())
4009
- ), c.length > 0) {
4010
- const y = c.map((R) => {
4011
- const T = a(R, b), Y = B(R);
4007
+ if (a && l.size > a) return `Maximum upload size is ${Pt(a, 0)}.`;
4008
+ }, D = (l) => {
4009
+ if (l = l.filter(
4010
+ (y) => !s.some((R) => R.file.name.toLowerCase() === y.name.toLowerCase())
4011
+ ), l.length > 0) {
4012
+ const y = l.map((R) => {
4013
+ const T = r(R, b), Y = B(R);
4012
4014
  return Y && V({ type: "upload", message: Y }, R), {
4013
4015
  file: R,
4014
4016
  appendData: T,
4015
4017
  ...Y && { error: Y }
4016
4018
  };
4017
4019
  });
4018
- s((R) => [...R, ...y]);
4020
+ c((R) => [...R, ...y]);
4019
4021
  }
4020
- }, I = (c) => {
4021
- c.preventDefault(), h(!1);
4022
- const y = Array.from(c.dataTransfer.files);
4022
+ }, I = (l) => {
4023
+ l.preventDefault(), h(!1);
4024
+ const y = Array.from(l.dataTransfer.files);
4023
4025
  D(y);
4024
- }, F = (c) => {
4025
- const y = Array.from(c.target.files);
4026
+ }, F = (l) => {
4027
+ const y = Array.from(l.target.files);
4026
4028
  D(y);
4027
- }, C = (c) => {
4028
- s((y) => {
4029
- const R = y.map((T, Y) => c === Y ? {
4029
+ }, C = (l) => {
4030
+ c((y) => {
4031
+ const R = y.map((T, Y) => l === Y ? {
4030
4032
  ...T,
4031
4033
  removed: !0
4032
4034
  } : T);
4033
4035
  return R.every((T) => !!T.removed) ? [] : R;
4034
4036
  });
4035
4037
  };
4036
- return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${l.length > 0 ? "file-selcted" : ""}`, children: [
4038
+ return /* @__PURE__ */ t.jsxs("div", { className: `fm-upload-file ${s.length > 0 ? "file-selcted" : ""}`, children: [
4037
4039
  /* @__PURE__ */ t.jsxs("div", { className: "select-files", children: [
4038
4040
  /* @__PURE__ */ t.jsx(
4039
4041
  "div",
4040
4042
  {
4041
- className: `draggable-file-input ${d ? "dragging" : ""}`,
4043
+ className: `draggable-file-input ${p ? "dragging" : ""}`,
4042
4044
  onDrop: I,
4043
- onDragOver: (c) => c.preventDefault(),
4045
+ onDragOver: (l) => l.preventDefault(),
4044
4046
  onDragEnter: () => h(!0),
4045
4047
  onDragLeave: () => h(!1),
4046
4048
  children: /* @__PURE__ */ t.jsxs("div", { className: "input-text", children: [
@@ -4065,17 +4067,17 @@ const sa = ({
4065
4067
  )
4066
4068
  ] }) })
4067
4069
  ] }),
4068
- l.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
4069
- /* @__PURE__ */ t.jsx("div", { className: "heading", children: Object.values(p).some((c) => c) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4070
+ s.length > 0 && /* @__PURE__ */ t.jsxs("div", { className: "files-progress", children: [
4071
+ /* @__PURE__ */ t.jsx("div", { className: "heading", children: Object.values(d).some((l) => l) ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4070
4072
  /* @__PURE__ */ t.jsx("h2", { children: "Uploading" }),
4071
4073
  /* @__PURE__ */ t.jsx(Nn, { type: "cylon", color: "black", height: 18, width: 20 })
4072
4074
  ] }) : /* @__PURE__ */ t.jsx("h2", { children: "Completed" }) }),
4073
- /* @__PURE__ */ t.jsx("ul", { children: l.map((c, y) => /* @__PURE__ */ t.jsx(
4075
+ /* @__PURE__ */ t.jsx("ul", { children: s.map((l, y) => /* @__PURE__ */ t.jsx(
4074
4076
  sa,
4075
4077
  {
4076
4078
  index: y,
4077
- fileData: c,
4078
- setFiles: s,
4079
+ fileData: l,
4080
+ setFiles: c,
4079
4081
  fileUploadConfig: e,
4080
4082
  setIsUploading: m,
4081
4083
  onFileUploaded: i,
@@ -4087,73 +4089,73 @@ const sa = ({
4087
4089
  ] });
4088
4090
  }, vn = ["jpg", "jpeg", "png"], mn = ["mp4", "mov", "avi"], yn = ["mp3", "wav", "m4a"], gn = ["txt", "pdf"], la = ({ filePreviewPath: e }) => {
4089
4091
  var w;
4090
- const [r, o] = Z(!0), [a, i] = Z(!1), { selectedFiles: l } = ze(), s = Ot(73), d = (w = Ge(l[0].name)) == null ? void 0 : w.toLowerCase(), h = `${e}${l[0].path}`, p = () => {
4092
+ const [a, o] = Z(!0), [r, i] = Z(!1), { selectedFiles: s } = ze(), c = Ot(73), p = (w = Ge(s[0].name)) == null ? void 0 : w.toLowerCase(), h = `${e}${s[0].path}`, d = () => {
4091
4093
  o(!1), i(!1);
4092
4094
  }, m = () => {
4093
4095
  o(!1), i(!0);
4094
4096
  }, b = () => {
4095
4097
  window.location.href = h;
4096
4098
  };
4097
- return /* @__PURE__ */ t.jsxs("section", { className: `file-previewer ${d === "pdf" ? "pdf-previewer" : ""}`, children: [
4098
- a || ![
4099
+ return /* @__PURE__ */ t.jsxs("section", { className: `file-previewer ${p === "pdf" ? "pdf-previewer" : ""}`, children: [
4100
+ r || ![
4099
4101
  ...vn,
4100
4102
  ...mn,
4101
4103
  ...yn,
4102
4104
  ...gn
4103
- ].includes(d) && /* @__PURE__ */ t.jsxs("div", { className: "preview-error", children: [
4104
- /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: s[d] ?? /* @__PURE__ */ t.jsx(Dr, { size: 73 }) }),
4105
+ ].includes(p) && /* @__PURE__ */ t.jsxs("div", { className: "preview-error", children: [
4106
+ /* @__PURE__ */ t.jsx("span", { className: "error-icon", children: c[p] ?? /* @__PURE__ */ t.jsx(Dr, { size: 73 }) }),
4105
4107
  /* @__PURE__ */ t.jsx("span", { className: "error-msg", children: "Sorry! Preview is not available for this file." }),
4106
4108
  /* @__PURE__ */ t.jsxs("div", { className: "file-info", children: [
4107
- /* @__PURE__ */ t.jsx("span", { className: "file-name", children: l[0].name }),
4108
- l[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
4109
- /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Pt(l[0].size) })
4109
+ /* @__PURE__ */ t.jsx("span", { className: "file-name", children: s[0].name }),
4110
+ s[0].size && /* @__PURE__ */ t.jsx("span", { children: "-" }),
4111
+ /* @__PURE__ */ t.jsx("span", { className: "file-size", children: Pt(s[0].size) })
4110
4112
  ] }),
4111
4113
  /* @__PURE__ */ t.jsx(Je, { onClick: b, padding: "0.45rem .9rem", children: /* @__PURE__ */ t.jsxs("div", { className: "download-btn", children: [
4112
4114
  /* @__PURE__ */ t.jsx(Jt, { size: 18 }),
4113
4115
  /* @__PURE__ */ t.jsx("span", { children: "Download" })
4114
4116
  ] }) })
4115
4117
  ] }),
4116
- vn.includes(d) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4117
- /* @__PURE__ */ t.jsx(_n, { isLoading: r }),
4118
+ vn.includes(p) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
4119
+ /* @__PURE__ */ t.jsx(_n, { isLoading: a }),
4118
4120
  /* @__PURE__ */ t.jsx(
4119
4121
  "img",
4120
4122
  {
4121
4123
  src: h,
4122
4124
  alt: "Preview Unavailable",
4123
- className: `photo-popup-image ${r ? "img-loading" : ""}`,
4124
- onLoad: p,
4125
+ className: `photo-popup-image ${a ? "img-loading" : ""}`,
4126
+ onLoad: d,
4125
4127
  onError: m,
4126
4128
  loading: "lazy"
4127
4129
  }
4128
4130
  )
4129
4131
  ] }),
4130
- mn.includes(d) && /* @__PURE__ */ t.jsx("video", { src: h, className: "video-preview", controls: !0, autoPlay: !0 }),
4131
- yn.includes(d) && /* @__PURE__ */ t.jsx("audio", { src: h, controls: !0, autoPlay: !0, className: "audio-preview" }),
4132
- gn.includes(d) && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
4132
+ mn.includes(p) && /* @__PURE__ */ t.jsx("video", { src: h, className: "video-preview", controls: !0, autoPlay: !0 }),
4133
+ yn.includes(p) && /* @__PURE__ */ t.jsx("audio", { src: h, controls: !0, autoPlay: !0, className: "audio-preview" }),
4134
+ gn.includes(p) && /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
4133
4135
  "iframe",
4134
4136
  {
4135
4137
  src: h,
4136
- onLoad: p,
4138
+ onLoad: d,
4137
4139
  onError: m,
4138
4140
  frameBorder: "0",
4139
- className: `photo-popup-iframe ${r ? "img-loading" : ""}`
4141
+ className: `photo-popup-iframe ${a ? "img-loading" : ""}`
4140
4142
  }
4141
4143
  ) })
4142
4144
  ] });
4143
- }, Lt = (e) => e.toLowerCase(), Oe = (e, r, o = !1) => {
4144
- const a = ke(/* @__PURE__ */ new Set([])), i = Sn(() => new Set(e.map((h) => Lt(h))), [e]), l = (h) => {
4145
- if (!h.repeat && (a.current.add(Lt(h.key)), i.isSubsetOf(a.current) && !o)) {
4146
- h.preventDefault(), r(h);
4145
+ }, Lt = (e) => e.toLowerCase(), Oe = (e, a, o = !1) => {
4146
+ const r = ke(/* @__PURE__ */ new Set([])), i = Sn(() => new Set(e.map((h) => Lt(h))), [e]), s = (h) => {
4147
+ if (!h.repeat && (r.current.add(Lt(h.key)), i.isSubsetOf(r.current) && !o)) {
4148
+ h.preventDefault(), a(h);
4147
4149
  return;
4148
4150
  }
4149
- }, s = (h) => {
4150
- a.current.delete(Lt(h.key));
4151
- }, d = () => {
4152
- a.current.clear();
4151
+ }, c = (h) => {
4152
+ r.current.delete(Lt(h.key));
4153
+ }, p = () => {
4154
+ r.current.clear();
4153
4155
  };
4154
- xe(() => (window.addEventListener("keydown", l), window.addEventListener("keyup", s), window.addEventListener("blur", d), () => {
4155
- window.removeEventListener("keydown", l), window.removeEventListener("keyup", s), window.removeEventListener("blur", d);
4156
- }), [i, r, o]);
4156
+ xe(() => (window.addEventListener("keydown", s), window.addEventListener("keyup", c), window.addEventListener("blur", p), () => {
4157
+ window.removeEventListener("keydown", s), window.removeEventListener("keyup", c), window.removeEventListener("blur", p);
4158
+ }), [i, a, o]);
4157
4159
  }, Re = {
4158
4160
  createFolder: ["Alt", "Shift", "N"],
4159
4161
  uploadFiles: ["Control", "U"],
@@ -4176,17 +4178,17 @@ const sa = ({
4176
4178
  // Act as Ctrl + Shift + 2 but could cause problems for QWERTZ or DVORAK etc. keyborad layouts.
4177
4179
  refresh: ["F5"],
4178
4180
  clearSelection: ["Escape"]
4179
- }, ua = (e, r) => {
4180
- const { setClipBoard: o, handleCutCopy: a, handlePasting: i } = Tt(), { currentFolder: l, currentPathFiles: s } = Ne(), { setSelectedFiles: d, handleDownload: h } = ze(), { setActiveLayout: p } = De(), m = () => {
4181
+ }, ua = (e, a) => {
4182
+ const { setClipBoard: o, handleCutCopy: r, handlePasting: i } = Tt(), { currentFolder: s, currentPathFiles: c } = Ne(), { setSelectedFiles: p, handleDownload: h } = ze(), { setActiveLayout: d } = De(), m = () => {
4181
4183
  e.show("createFolder");
4182
4184
  }, b = () => {
4183
4185
  e.show("uploadFile");
4184
4186
  }, w = () => {
4185
- a(!0);
4187
+ r(!0);
4186
4188
  }, V = () => {
4187
- a(!1);
4189
+ r(!1);
4188
4190
  }, O = () => {
4189
- i(l);
4191
+ i(s);
4190
4192
  }, N = () => {
4191
4193
  e.show("rename");
4192
4194
  }, B = () => {
@@ -4194,33 +4196,33 @@ const sa = ({
4194
4196
  }, D = () => {
4195
4197
  e.show("delete");
4196
4198
  }, I = () => {
4197
- s.length > 0 && d([s[0]]);
4199
+ c.length > 0 && p([c[0]]);
4198
4200
  }, F = () => {
4199
- s.length > 0 && d([s.at(-1)]);
4201
+ c.length > 0 && p([c.at(-1)]);
4200
4202
  }, C = () => {
4201
- d(s);
4202
- }, c = () => {
4203
- d((Y) => Y.length > 0 ? [] : Y);
4203
+ p(c);
4204
+ }, l = () => {
4205
+ p((Y) => Y.length > 0 ? [] : Y);
4204
4206
  }, y = () => {
4205
- Be(r, "onRefresh"), o(null);
4207
+ Be(a, "onRefresh"), o(null);
4206
4208
  }, R = () => {
4207
- p("grid");
4209
+ d("grid");
4208
4210
  }, T = () => {
4209
- p("list");
4211
+ d("list");
4210
4212
  };
4211
- Oe(Re.createFolder, m, e.isActive), Oe(Re.uploadFiles, b, e.isActive), Oe(Re.cut, w, e.isActive), Oe(Re.copy, V, e.isActive), Oe(Re.paste, O, e.isActive), Oe(Re.rename, N, e.isActive), Oe(Re.download, B, e.isActive), Oe(Re.delete, D, e.isActive), Oe(Re.jumpToFirst, I, e.isActive), Oe(Re.jumpToLast, F, e.isActive), Oe(Re.selectAll, C, e.isActive), Oe(Re.clearSelection, c, e.isActive), Oe(Re.refresh, y, e.isActive), Oe(Re.gridLayout, R, e.isActive), Oe(Re.listLayout, T, e.isActive);
4213
+ Oe(Re.createFolder, m, e.isActive), Oe(Re.uploadFiles, b, e.isActive), Oe(Re.cut, w, e.isActive), Oe(Re.copy, V, e.isActive), Oe(Re.paste, O, e.isActive), Oe(Re.rename, N, e.isActive), Oe(Re.download, B, e.isActive), Oe(Re.delete, D, e.isActive), Oe(Re.jumpToFirst, I, e.isActive), Oe(Re.jumpToLast, F, e.isActive), Oe(Re.selectAll, C, e.isActive), Oe(Re.clearSelection, l, e.isActive), Oe(Re.refresh, y, e.isActive), Oe(Re.gridLayout, R, e.isActive), Oe(Re.listLayout, T, e.isActive);
4212
4214
  }, fa = ({
4213
4215
  fileUploadConfig: e,
4214
- onFileUploading: r,
4216
+ onFileUploading: a,
4215
4217
  onFileUploaded: o,
4216
- onDelete: a,
4218
+ onDelete: r,
4217
4219
  onRefresh: i,
4218
- maxFileSize: l,
4219
- filePreviewPath: s,
4220
- acceptedFileTypes: d,
4220
+ maxFileSize: s,
4221
+ filePreviewPath: c,
4222
+ acceptedFileTypes: p,
4221
4223
  triggerAction: h
4222
4224
  }) => {
4223
- const [p, m] = Z(null), { selectedFiles: b } = ze();
4225
+ const [d, m] = Z(null), { selectedFiles: b } = ze();
4224
4226
  ua(h, i);
4225
4227
  const w = {
4226
4228
  uploadFile: {
@@ -4229,9 +4231,9 @@ const sa = ({
4229
4231
  ca,
4230
4232
  {
4231
4233
  fileUploadConfig: e,
4232
- maxFileSize: l,
4233
- acceptedFileTypes: d,
4234
- onFileUploading: r,
4234
+ maxFileSize: s,
4235
+ acceptedFileTypes: p,
4236
+ onFileUploading: a,
4235
4237
  onFileUploaded: o
4236
4238
  }
4237
4239
  ),
@@ -4239,12 +4241,12 @@ const sa = ({
4239
4241
  },
4240
4242
  delete: {
4241
4243
  title: "Delete",
4242
- component: /* @__PURE__ */ t.jsx(na, { triggerAction: h, onDelete: a }),
4244
+ component: /* @__PURE__ */ t.jsx(na, { triggerAction: h, onDelete: r }),
4243
4245
  width: "25%"
4244
4246
  },
4245
4247
  previewFile: {
4246
4248
  title: "Preview",
4247
- component: /* @__PURE__ */ t.jsx(la, { filePreviewPath: s }),
4249
+ component: /* @__PURE__ */ t.jsx(la, { filePreviewPath: c }),
4248
4250
  width: "50%"
4249
4251
  }
4250
4252
  };
@@ -4254,47 +4256,47 @@ const sa = ({
4254
4256
  V === "previewFile" && (w[V].title = (b == null ? void 0 : b.name) ?? "Preview"), m(w[V]);
4255
4257
  } else
4256
4258
  m(null);
4257
- }, [h.isActive]), p)
4259
+ }, [h.isActive]), d)
4258
4260
  return /* @__PURE__ */ t.jsx(
4259
4261
  tr,
4260
4262
  {
4261
- heading: p.title,
4263
+ heading: d.title,
4262
4264
  show: h.isActive,
4263
4265
  setShow: h.close,
4264
- dialogWidth: p.width,
4265
- children: p == null ? void 0 : p.component
4266
+ dialogWidth: d.width,
4267
+ children: d == null ? void 0 : d.component
4266
4268
  }
4267
4269
  );
4268
4270
  }, da = () => {
4269
- const [e, r] = Z(!1), [o, a] = Z(null);
4271
+ const [e, a] = Z(!1), [o, r] = Z(null);
4270
4272
  return {
4271
4273
  isActive: e,
4272
4274
  actionType: o,
4273
- show: (s) => {
4274
- r(!0), a(s);
4275
+ show: (c) => {
4276
+ a(!0), r(c);
4275
4277
  },
4276
4278
  close: () => {
4277
- r(!1), a(null);
4279
+ a(!1), r(null);
4278
4280
  }
4279
4281
  };
4280
- }, pa = (e, r) => {
4281
- const [o, a] = Z({ col1: e, col2: r }), [i, l] = Z(!1), s = ke(null);
4282
+ }, pa = (e, a) => {
4283
+ const [o, r] = Z({ col1: e, col2: a }), [i, s] = Z(!1), c = ke(null);
4282
4284
  return {
4283
- containerRef: s,
4285
+ containerRef: c,
4284
4286
  colSizes: o,
4285
- setColSizes: a,
4287
+ setColSizes: r,
4286
4288
  isDragging: i,
4287
4289
  handleMouseDown: () => {
4288
- l(!0);
4290
+ s(!0);
4289
4291
  },
4290
4292
  handleMouseUp: () => {
4291
- l(!1);
4293
+ s(!1);
4292
4294
  },
4293
4295
  handleMouseMove: (m) => {
4294
4296
  if (!i) return;
4295
4297
  m.preventDefault();
4296
- const w = s.current.getBoundingClientRect(), V = (m.clientX - w.left) / w.width * 100;
4297
- V >= 15 && V <= 60 && a({ col1: V, col2: 100 - V });
4298
+ const w = c.current.getBoundingClientRect(), V = (m.clientX - w.left) / w.width * 100;
4299
+ V >= 15 && V <= 60 && r({ col1: V, col2: 100 - V });
4298
4300
  }
4299
4301
  };
4300
4302
  };
@@ -4311,28 +4313,28 @@ var bn;
4311
4313
  function ha() {
4312
4314
  if (bn) return ve;
4313
4315
  bn = 1;
4314
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, V = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
4315
- function F(c) {
4316
- if (typeof c == "object" && c !== null) {
4317
- var y = c.$$typeof;
4316
+ var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, V = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
4317
+ function F(l) {
4318
+ if (typeof l == "object" && l !== null) {
4319
+ var y = l.$$typeof;
4318
4320
  switch (y) {
4319
- case r:
4320
- switch (c = c.type, c) {
4321
+ case a:
4322
+ switch (l = l.type, l) {
4321
4323
  case h:
4322
- case p:
4323
- case a:
4324
- case l:
4324
+ case d:
4325
+ case r:
4326
+ case s:
4325
4327
  case i:
4326
4328
  case b:
4327
- return c;
4329
+ return l;
4328
4330
  default:
4329
- switch (c = c && c.$$typeof, c) {
4330
- case d:
4331
+ switch (l = l && l.$$typeof, l) {
4332
+ case p:
4331
4333
  case m:
4332
4334
  case O:
4333
4335
  case V:
4334
- case s:
4335
- return c;
4336
+ case c:
4337
+ return l;
4336
4338
  default:
4337
4339
  return y;
4338
4340
  }
@@ -4342,35 +4344,35 @@ function ha() {
4342
4344
  }
4343
4345
  }
4344
4346
  }
4345
- function C(c) {
4346
- return F(c) === p;
4347
+ function C(l) {
4348
+ return F(l) === d;
4347
4349
  }
4348
- return ve.AsyncMode = h, ve.ConcurrentMode = p, ve.ContextConsumer = d, ve.ContextProvider = s, ve.Element = r, ve.ForwardRef = m, ve.Fragment = a, ve.Lazy = O, ve.Memo = V, ve.Portal = o, ve.Profiler = l, ve.StrictMode = i, ve.Suspense = b, ve.isAsyncMode = function(c) {
4349
- return C(c) || F(c) === h;
4350
- }, ve.isConcurrentMode = C, ve.isContextConsumer = function(c) {
4351
- return F(c) === d;
4352
- }, ve.isContextProvider = function(c) {
4353
- return F(c) === s;
4354
- }, ve.isElement = function(c) {
4355
- return typeof c == "object" && c !== null && c.$$typeof === r;
4356
- }, ve.isForwardRef = function(c) {
4357
- return F(c) === m;
4358
- }, ve.isFragment = function(c) {
4359
- return F(c) === a;
4360
- }, ve.isLazy = function(c) {
4361
- return F(c) === O;
4362
- }, ve.isMemo = function(c) {
4363
- return F(c) === V;
4364
- }, ve.isPortal = function(c) {
4365
- return F(c) === o;
4366
- }, ve.isProfiler = function(c) {
4367
- return F(c) === l;
4368
- }, ve.isStrictMode = function(c) {
4369
- return F(c) === i;
4370
- }, ve.isSuspense = function(c) {
4371
- return F(c) === b;
4372
- }, ve.isValidElementType = function(c) {
4373
- return typeof c == "string" || typeof c == "function" || c === a || c === p || c === l || c === i || c === b || c === w || typeof c == "object" && c !== null && (c.$$typeof === O || c.$$typeof === V || c.$$typeof === s || c.$$typeof === d || c.$$typeof === m || c.$$typeof === B || c.$$typeof === D || c.$$typeof === I || c.$$typeof === N);
4350
+ return ve.AsyncMode = h, ve.ConcurrentMode = d, ve.ContextConsumer = p, ve.ContextProvider = c, ve.Element = a, ve.ForwardRef = m, ve.Fragment = r, ve.Lazy = O, ve.Memo = V, ve.Portal = o, ve.Profiler = s, ve.StrictMode = i, ve.Suspense = b, ve.isAsyncMode = function(l) {
4351
+ return C(l) || F(l) === h;
4352
+ }, ve.isConcurrentMode = C, ve.isContextConsumer = function(l) {
4353
+ return F(l) === p;
4354
+ }, ve.isContextProvider = function(l) {
4355
+ return F(l) === c;
4356
+ }, ve.isElement = function(l) {
4357
+ return typeof l == "object" && l !== null && l.$$typeof === a;
4358
+ }, ve.isForwardRef = function(l) {
4359
+ return F(l) === m;
4360
+ }, ve.isFragment = function(l) {
4361
+ return F(l) === r;
4362
+ }, ve.isLazy = function(l) {
4363
+ return F(l) === O;
4364
+ }, ve.isMemo = function(l) {
4365
+ return F(l) === V;
4366
+ }, ve.isPortal = function(l) {
4367
+ return F(l) === o;
4368
+ }, ve.isProfiler = function(l) {
4369
+ return F(l) === s;
4370
+ }, ve.isStrictMode = function(l) {
4371
+ return F(l) === i;
4372
+ }, ve.isSuspense = function(l) {
4373
+ return F(l) === b;
4374
+ }, ve.isValidElementType = function(l) {
4375
+ return typeof l == "string" || typeof l == "function" || l === r || l === d || l === s || l === i || l === b || l === w || typeof l == "object" && l !== null && (l.$$typeof === O || l.$$typeof === V || l.$$typeof === c || l.$$typeof === p || l.$$typeof === m || l.$$typeof === B || l.$$typeof === D || l.$$typeof === I || l.$$typeof === N);
4374
4376
  }, ve.typeOf = F, ve;
4375
4377
  }
4376
4378
  var me = {};
@@ -4385,33 +4387,33 @@ var me = {};
4385
4387
  var xn;
4386
4388
  function va() {
4387
4389
  return xn || (xn = 1, process.env.NODE_ENV !== "production" && function() {
4388
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, l = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, V = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
4390
+ var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, s = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, p = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, b = e ? Symbol.for("react.suspense") : 60113, w = e ? Symbol.for("react.suspense_list") : 60120, V = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, B = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, I = e ? Symbol.for("react.scope") : 60119;
4389
4391
  function F(j) {
4390
4392
  return typeof j == "string" || typeof j == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
4391
- j === a || j === p || j === l || j === i || j === b || j === w || typeof j == "object" && j !== null && (j.$$typeof === O || j.$$typeof === V || j.$$typeof === s || j.$$typeof === d || j.$$typeof === m || j.$$typeof === B || j.$$typeof === D || j.$$typeof === I || j.$$typeof === N);
4393
+ j === r || j === d || j === s || j === i || j === b || j === w || typeof j == "object" && j !== null && (j.$$typeof === O || j.$$typeof === V || j.$$typeof === c || j.$$typeof === p || j.$$typeof === m || j.$$typeof === B || j.$$typeof === D || j.$$typeof === I || j.$$typeof === N);
4392
4394
  }
4393
4395
  function C(j) {
4394
4396
  if (typeof j == "object" && j !== null) {
4395
4397
  var ie = j.$$typeof;
4396
4398
  switch (ie) {
4397
- case r:
4399
+ case a:
4398
4400
  var ce = j.type;
4399
4401
  switch (ce) {
4400
4402
  case h:
4401
- case p:
4402
- case a:
4403
- case l:
4403
+ case d:
4404
+ case r:
4405
+ case s:
4404
4406
  case i:
4405
4407
  case b:
4406
4408
  return ce;
4407
4409
  default:
4408
4410
  var Q = ce && ce.$$typeof;
4409
4411
  switch (Q) {
4410
- case d:
4412
+ case p:
4411
4413
  case m:
4412
4414
  case O:
4413
4415
  case V:
4414
- case s:
4416
+ case c:
4415
4417
  return Q;
4416
4418
  default:
4417
4419
  return ie;
@@ -4422,27 +4424,27 @@ function va() {
4422
4424
  }
4423
4425
  }
4424
4426
  }
4425
- var c = h, y = p, R = d, T = s, Y = r, $ = m, _ = a, G = O, J = V, te = o, ue = l, ne = i, oe = b, pe = !1;
4427
+ var l = h, y = d, R = p, T = c, Y = a, $ = m, _ = r, G = O, J = V, te = o, ue = s, ne = i, oe = b, he = !1;
4426
4428
  function ge(j) {
4427
- return pe || (pe = !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.")), S(j) || C(j) === h;
4429
+ 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.")), S(j) || C(j) === h;
4428
4430
  }
4429
4431
  function S(j) {
4430
- return C(j) === p;
4432
+ return C(j) === d;
4431
4433
  }
4432
4434
  function q(j) {
4433
- return C(j) === d;
4435
+ return C(j) === p;
4434
4436
  }
4435
4437
  function x(j) {
4436
- return C(j) === s;
4438
+ return C(j) === c;
4437
4439
  }
4438
4440
  function A(j) {
4439
- return typeof j == "object" && j !== null && j.$$typeof === r;
4441
+ return typeof j == "object" && j !== null && j.$$typeof === a;
4440
4442
  }
4441
4443
  function L(j) {
4442
4444
  return C(j) === m;
4443
4445
  }
4444
4446
  function K(j) {
4445
- return C(j) === a;
4447
+ return C(j) === r;
4446
4448
  }
4447
4449
  function M(j) {
4448
4450
  return C(j) === O;
@@ -4454,7 +4456,7 @@ function va() {
4454
4456
  return C(j) === o;
4455
4457
  }
4456
4458
  function k(j) {
4457
- return C(j) === l;
4459
+ return C(j) === s;
4458
4460
  }
4459
4461
  function E(j) {
4460
4462
  return C(j) === i;
@@ -4462,7 +4464,7 @@ function va() {
4462
4464
  function W(j) {
4463
4465
  return C(j) === b;
4464
4466
  }
4465
- me.AsyncMode = c, me.ConcurrentMode = y, me.ContextConsumer = R, me.ContextProvider = T, me.Element = Y, me.ForwardRef = $, me.Fragment = _, me.Lazy = G, me.Memo = J, me.Portal = te, me.Profiler = ue, me.StrictMode = ne, me.Suspense = oe, me.isAsyncMode = ge, me.isConcurrentMode = S, me.isContextConsumer = q, me.isContextProvider = x, me.isElement = A, me.isForwardRef = L, me.isFragment = K, me.isLazy = M, me.isMemo = f, me.isPortal = g, me.isProfiler = k, me.isStrictMode = E, me.isSuspense = W, me.isValidElementType = F, me.typeOf = C;
4467
+ me.AsyncMode = l, me.ConcurrentMode = y, me.ContextConsumer = R, me.ContextProvider = T, me.Element = Y, me.ForwardRef = $, me.Fragment = _, me.Lazy = G, me.Memo = J, me.Portal = te, me.Profiler = ue, me.StrictMode = ne, me.Suspense = oe, me.isAsyncMode = ge, me.isConcurrentMode = S, me.isContextConsumer = q, me.isContextProvider = x, me.isElement = A, me.isForwardRef = L, me.isFragment = K, me.isLazy = M, me.isMemo = f, me.isPortal = g, me.isProfiler = k, me.isStrictMode = E, me.isSuspense = W, me.isValidElementType = F, me.typeOf = C;
4466
4468
  }()), me;
4467
4469
  }
4468
4470
  var Cn;
@@ -4478,43 +4480,43 @@ var It, wn;
4478
4480
  function ma() {
4479
4481
  if (wn) return It;
4480
4482
  wn = 1;
4481
- var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
4482
- function a(l) {
4483
- if (l == null)
4483
+ var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
4484
+ function r(s) {
4485
+ if (s == null)
4484
4486
  throw new TypeError("Object.assign cannot be called with null or undefined");
4485
- return Object(l);
4487
+ return Object(s);
4486
4488
  }
4487
4489
  function i() {
4488
4490
  try {
4489
4491
  if (!Object.assign)
4490
4492
  return !1;
4491
- var l = new String("abc");
4492
- if (l[5] = "de", Object.getOwnPropertyNames(l)[0] === "5")
4493
+ var s = new String("abc");
4494
+ if (s[5] = "de", Object.getOwnPropertyNames(s)[0] === "5")
4493
4495
  return !1;
4494
- for (var s = {}, d = 0; d < 10; d++)
4495
- s["_" + String.fromCharCode(d)] = d;
4496
- var h = Object.getOwnPropertyNames(s).map(function(m) {
4497
- return s[m];
4496
+ for (var c = {}, p = 0; p < 10; p++)
4497
+ c["_" + String.fromCharCode(p)] = p;
4498
+ var h = Object.getOwnPropertyNames(c).map(function(m) {
4499
+ return c[m];
4498
4500
  });
4499
4501
  if (h.join("") !== "0123456789")
4500
4502
  return !1;
4501
- var p = {};
4503
+ var d = {};
4502
4504
  return "abcdefghijklmnopqrst".split("").forEach(function(m) {
4503
- p[m] = m;
4504
- }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
4505
+ d[m] = m;
4506
+ }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
4505
4507
  } catch {
4506
4508
  return !1;
4507
4509
  }
4508
4510
  }
4509
- return It = i() ? Object.assign : function(l, s) {
4510
- for (var d, h = a(l), p, m = 1; m < arguments.length; m++) {
4511
- d = Object(arguments[m]);
4512
- for (var b in d)
4513
- r.call(d, b) && (h[b] = d[b]);
4511
+ return It = i() ? Object.assign : function(s, c) {
4512
+ for (var p, h = r(s), d, m = 1; m < arguments.length; m++) {
4513
+ p = Object(arguments[m]);
4514
+ for (var b in p)
4515
+ a.call(p, b) && (h[b] = p[b]);
4514
4516
  if (e) {
4515
- p = e(d);
4516
- for (var w = 0; w < p.length; w++)
4517
- o.call(d, p[w]) && (h[p[w]] = d[p[w]]);
4517
+ d = e(p);
4518
+ for (var w = 0; w < d.length; w++)
4519
+ o.call(p, d[w]) && (h[d[w]] = p[d[w]]);
4518
4520
  }
4519
4521
  }
4520
4522
  return h;
@@ -4538,39 +4540,39 @@ function ya() {
4538
4540
  var e = function() {
4539
4541
  };
4540
4542
  if (process.env.NODE_ENV !== "production") {
4541
- var r = Zt(), o = {}, a = ar();
4542
- e = function(l) {
4543
- var s = "Warning: " + l;
4544
- typeof console < "u" && console.error(s);
4543
+ var a = Zt(), o = {}, r = ar();
4544
+ e = function(s) {
4545
+ var c = "Warning: " + s;
4546
+ typeof console < "u" && console.error(c);
4545
4547
  try {
4546
- throw new Error(s);
4548
+ throw new Error(c);
4547
4549
  } catch {
4548
4550
  }
4549
4551
  };
4550
4552
  }
4551
- function i(l, s, d, h, p) {
4553
+ function i(s, c, p, h, d) {
4552
4554
  if (process.env.NODE_ENV !== "production") {
4553
- for (var m in l)
4554
- if (a(l, m)) {
4555
+ for (var m in s)
4556
+ if (r(s, m)) {
4555
4557
  var b;
4556
4558
  try {
4557
- if (typeof l[m] != "function") {
4559
+ if (typeof s[m] != "function") {
4558
4560
  var w = Error(
4559
- (h || "React class") + ": " + d + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof l[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
4561
+ (h || "React class") + ": " + p + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
4560
4562
  );
4561
4563
  throw w.name = "Invariant Violation", w;
4562
4564
  }
4563
- b = l[m](s, m, h, d, null, r);
4565
+ b = s[m](c, m, h, p, null, a);
4564
4566
  } catch (O) {
4565
4567
  b = O;
4566
4568
  }
4567
4569
  if (b && !(b instanceof Error) && e(
4568
- (h || "React class") + ": type specification of " + d + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof b + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4570
+ (h || "React class") + ": type specification of " + p + " `" + m + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof b + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
4569
4571
  ), b instanceof Error && !(b.message in o)) {
4570
4572
  o[b.message] = !0;
4571
- var V = p ? p() : "";
4573
+ var V = d ? d() : "";
4572
4574
  e(
4573
- "Failed " + d + " type: " + b.message + (V ?? "")
4575
+ "Failed " + p + " type: " + b.message + (V ?? "")
4574
4576
  );
4575
4577
  }
4576
4578
  }
@@ -4584,23 +4586,23 @@ var Ut, Rn;
4584
4586
  function ga() {
4585
4587
  if (Rn) return Ut;
4586
4588
  Rn = 1;
4587
- var e = rr(), r = ma(), o = Zt(), a = ar(), i = ya(), l = function() {
4589
+ var e = rr(), a = ma(), o = Zt(), r = ar(), i = ya(), s = function() {
4588
4590
  };
4589
- process.env.NODE_ENV !== "production" && (l = function(d) {
4590
- var h = "Warning: " + d;
4591
+ process.env.NODE_ENV !== "production" && (s = function(p) {
4592
+ var h = "Warning: " + p;
4591
4593
  typeof console < "u" && console.error(h);
4592
4594
  try {
4593
4595
  throw new Error(h);
4594
4596
  } catch {
4595
4597
  }
4596
4598
  });
4597
- function s() {
4599
+ function c() {
4598
4600
  return null;
4599
4601
  }
4600
- return Ut = function(d, h) {
4601
- var p = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
4602
+ return Ut = function(p, h) {
4603
+ var d = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
4602
4604
  function b(S) {
4603
- var q = S && (p && S[p] || S[m]);
4605
+ var q = S && (d && S[d] || S[m]);
4604
4606
  if (typeof q == "function")
4605
4607
  return q;
4606
4608
  }
@@ -4616,7 +4618,7 @@ function ga() {
4616
4618
  any: I(),
4617
4619
  arrayOf: F,
4618
4620
  element: C(),
4619
- elementType: c(),
4621
+ elementType: l(),
4620
4622
  instanceOf: y,
4621
4623
  node: $(),
4622
4624
  objectOf: T,
@@ -4645,7 +4647,7 @@ function ga() {
4645
4647
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
4646
4648
  var ie = g + ":" + f;
4647
4649
  !q[ie] && // Avoid spamming the console because they are often not actionable except for lib authors
4648
- x < 3 && (l(
4650
+ x < 3 && (s(
4649
4651
  "You are manually calling a React.PropTypes validation function for the `" + E + "` prop on `" + g + "`. 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."
4650
4652
  ), q[ie] = !0, x++);
4651
4653
  }
@@ -4670,7 +4672,7 @@ function ga() {
4670
4672
  return B(q);
4671
4673
  }
4672
4674
  function I() {
4673
- return B(s);
4675
+ return B(c);
4674
4676
  }
4675
4677
  function F(S) {
4676
4678
  function q(x, A, L, K, M) {
@@ -4693,7 +4695,7 @@ function ga() {
4693
4695
  function C() {
4694
4696
  function S(q, x, A, L, K) {
4695
4697
  var M = q[x];
4696
- if (!d(M)) {
4698
+ if (!p(M)) {
4697
4699
  var f = ne(M);
4698
4700
  return new N("Invalid " + L + " `" + K + "` of type " + ("`" + f + "` supplied to `" + A + "`, expected a single ReactElement."));
4699
4701
  }
@@ -4701,7 +4703,7 @@ function ga() {
4701
4703
  }
4702
4704
  return B(S);
4703
4705
  }
4704
- function c() {
4706
+ function l() {
4705
4707
  function S(q, x, A, L, K) {
4706
4708
  var M = q[x];
4707
4709
  if (!e.isValidElementType(M)) {
@@ -4724,9 +4726,9 @@ function ga() {
4724
4726
  }
4725
4727
  function R(S) {
4726
4728
  if (!Array.isArray(S))
4727
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? l(
4729
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
4728
4730
  "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])."
4729
- ) : l("Invalid argument supplied to oneOf, expected an array.")), s;
4731
+ ) : s("Invalid argument supplied to oneOf, expected an array.")), c;
4730
4732
  function q(x, A, L, K, M) {
4731
4733
  for (var f = x[A], g = 0; g < S.length; g++)
4732
4734
  if (O(f, S[g]))
@@ -4747,7 +4749,7 @@ function ga() {
4747
4749
  if (g !== "object")
4748
4750
  return new N("Invalid " + K + " `" + M + "` of type " + ("`" + g + "` supplied to `" + L + "`, expected an object."));
4749
4751
  for (var k in f)
4750
- if (a(f, k)) {
4752
+ if (r(f, k)) {
4751
4753
  var E = S(f, k, L, K, M + "." + k, o);
4752
4754
  if (E instanceof Error)
4753
4755
  return E;
@@ -4758,20 +4760,20 @@ function ga() {
4758
4760
  }
4759
4761
  function Y(S) {
4760
4762
  if (!Array.isArray(S))
4761
- return process.env.NODE_ENV !== "production" && l("Invalid argument supplied to oneOfType, expected an instance of array."), s;
4763
+ return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), c;
4762
4764
  for (var q = 0; q < S.length; q++) {
4763
4765
  var x = S[q];
4764
4766
  if (typeof x != "function")
4765
- return l(
4766
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + pe(x) + " at index " + q + "."
4767
- ), s;
4767
+ return s(
4768
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(x) + " at index " + q + "."
4769
+ ), c;
4768
4770
  }
4769
4771
  function A(L, K, M, f, g) {
4770
4772
  for (var k = [], E = 0; E < S.length; E++) {
4771
4773
  var W = S[E], j = W(L, K, M, f, g, o);
4772
4774
  if (j == null)
4773
4775
  return null;
4774
- j.data && a(j.data, "expectedType") && k.push(j.data.expectedType);
4776
+ j.data && r(j.data, "expectedType") && k.push(j.data.expectedType);
4775
4777
  }
4776
4778
  var ie = k.length > 0 ? ", expected one of type [" + k.join(", ") + "]" : "";
4777
4779
  return new N("Invalid " + f + " `" + g + "` supplied to " + ("`" + M + "`" + ie + "."));
@@ -4811,10 +4813,10 @@ function ga() {
4811
4813
  var f = x[A], g = ne(f);
4812
4814
  if (g !== "object")
4813
4815
  return new N("Invalid " + K + " `" + M + "` of type `" + g + "` " + ("supplied to `" + L + "`, expected `object`."));
4814
- var k = r({}, x[A], S);
4816
+ var k = a({}, x[A], S);
4815
4817
  for (var E in k) {
4816
4818
  var W = S[E];
4817
- if (a(S, E) && typeof W != "function")
4819
+ if (r(S, E) && typeof W != "function")
4818
4820
  return _(L, K, M, E, oe(W));
4819
4821
  if (!W)
4820
4822
  return new N(
@@ -4840,7 +4842,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
4840
4842
  case "object":
4841
4843
  if (Array.isArray(S))
4842
4844
  return S.every(te);
4843
- if (S === null || d(S))
4845
+ if (S === null || p(S))
4844
4846
  return !0;
4845
4847
  var q = b(S);
4846
4848
  if (q) {
@@ -4881,7 +4883,7 @@ Valid keys: ` + JSON.stringify(Object.keys(S), null, " ")
4881
4883
  }
4882
4884
  return q;
4883
4885
  }
4884
- function pe(S) {
4886
+ function he(S) {
4885
4887
  var q = oe(S);
4886
4888
  switch (q) {
4887
4889
  case "array":
@@ -4906,12 +4908,12 @@ function ba() {
4906
4908
  if (Tn) return Yt;
4907
4909
  Tn = 1;
4908
4910
  var e = Zt();
4909
- function r() {
4911
+ function a() {
4910
4912
  }
4911
4913
  function o() {
4912
4914
  }
4913
- return o.resetWarningCache = r, Yt = function() {
4914
- function a(s, d, h, p, m, b) {
4915
+ return o.resetWarningCache = a, Yt = function() {
4916
+ function r(c, p, h, d, m, b) {
4915
4917
  if (b !== e) {
4916
4918
  var w = new Error(
4917
4919
  "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"
@@ -4919,34 +4921,34 @@ function ba() {
4919
4921
  throw w.name = "Invariant Violation", w;
4920
4922
  }
4921
4923
  }
4922
- a.isRequired = a;
4924
+ r.isRequired = r;
4923
4925
  function i() {
4924
- return a;
4926
+ return r;
4925
4927
  }
4926
- var l = {
4927
- array: a,
4928
- bigint: a,
4929
- bool: a,
4930
- func: a,
4931
- number: a,
4932
- object: a,
4933
- string: a,
4934
- symbol: a,
4935
- any: a,
4928
+ var s = {
4929
+ array: r,
4930
+ bigint: r,
4931
+ bool: r,
4932
+ func: r,
4933
+ number: r,
4934
+ object: r,
4935
+ string: r,
4936
+ symbol: r,
4937
+ any: r,
4936
4938
  arrayOf: i,
4937
- element: a,
4938
- elementType: a,
4939
+ element: r,
4940
+ elementType: r,
4939
4941
  instanceOf: i,
4940
- node: a,
4942
+ node: r,
4941
4943
  objectOf: i,
4942
4944
  oneOf: i,
4943
4945
  oneOfType: i,
4944
4946
  shape: i,
4945
4947
  exact: i,
4946
4948
  checkPropTypes: o,
4947
- resetWarningCache: r
4949
+ resetWarningCache: a
4948
4950
  };
4949
- return l.PropTypes = l, l;
4951
+ return s.PropTypes = s, s;
4950
4952
  }, Yt;
4951
4953
  }
4952
4954
  if (process.env.NODE_ENV !== "production") {
@@ -4955,35 +4957,35 @@ if (process.env.NODE_ENV !== "production") {
4955
4957
  } else
4956
4958
  Xt.exports = ba()();
4957
4959
  var wa = Xt.exports;
4958
- const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
4959
- const a = e[r];
4960
- if (a && isNaN(Date.parse(a)))
4960
+ const pe = /* @__PURE__ */ Gt(wa), ja = (e, a, o) => {
4961
+ const r = e[a];
4962
+ if (r && isNaN(Date.parse(r)))
4961
4963
  return new Error(
4962
- `Invalid prop \`${r}\` supplied to \`${o}\`. Expected a valid date string (ISO 8601) but received \`${a}\`.`
4964
+ `Invalid prop \`${a}\` supplied to \`${o}\`. Expected a valid date string (ISO 8601) but received \`${r}\`.`
4963
4965
  );
4964
- }, Pn = (e, r, o) => {
4965
- const a = e[r];
4966
+ }, Pn = (e, a, o) => {
4967
+ const r = e[a];
4966
4968
  try {
4967
- new URL(a);
4969
+ new URL(r);
4968
4970
  return;
4969
4971
  } catch {
4970
4972
  return new Error(
4971
- `Invalid prop \`${r}\` supplied to \`${o}\`. Expected a valid URL but received \`${a}\`.`
4973
+ `Invalid prop \`${a}\` supplied to \`${o}\`. Expected a valid URL but received \`${r}\`.`
4972
4974
  );
4973
4975
  }
4974
4976
  }, or = ({
4975
4977
  files: e,
4976
- fileUploadConfig: r,
4978
+ fileUploadConfig: a,
4977
4979
  isLoading: o,
4978
- onCreateFolder: a,
4980
+ onCreateFolder: r,
4979
4981
  onFileUploading: i = () => {
4980
4982
  },
4981
- onFileUploaded: l = () => {
4983
+ onFileUploaded: s = () => {
4982
4984
  },
4983
- onPaste: s,
4984
- onRename: d,
4985
+ onPaste: c,
4986
+ onRename: p,
4985
4987
  onDownload: h,
4986
- onDelete: p = () => null,
4988
+ onDelete: d = () => null,
4987
4989
  onLayoutChange: m = () => {
4988
4990
  },
4989
4991
  onRefresh: b,
@@ -4997,18 +4999,19 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
4997
4999
  filePreviewPath: D,
4998
5000
  acceptedFileTypes: I,
4999
5001
  height: F = "600px",
5000
- width: C = "100%"
5002
+ width: C = "100%",
5003
+ initialPath: l = ""
5001
5004
  }) => {
5002
- const c = da(), { containerRef: y, colSizes: R, isDragging: T, handleMouseMove: Y, handleMouseUp: $, handleMouseDown: _ } = pa(20, 80);
5005
+ const y = da(), { containerRef: R, colSizes: T, isDragging: Y, handleMouseMove: $, handleMouseUp: _, handleMouseDown: G } = pa(20, 80);
5003
5006
  return /* @__PURE__ */ t.jsxs(
5004
5007
  "main",
5005
5008
  {
5006
5009
  className: "file-explorer",
5007
- onContextMenu: (G) => G.preventDefault(),
5010
+ onContextMenu: (J) => J.preventDefault(),
5008
5011
  style: { height: F, width: C },
5009
5012
  children: [
5010
5013
  /* @__PURE__ */ t.jsx(_n, { isLoading: o }),
5011
- /* @__PURE__ */ t.jsx(kr, { filesData: e, onError: V, children: /* @__PURE__ */ t.jsx(Nr, { children: /* @__PURE__ */ t.jsx(_r, { onDownload: h, children: /* @__PURE__ */ t.jsx(Ar, { onPaste: s, children: /* @__PURE__ */ t.jsxs(Sr, { layout: O, children: [
5014
+ /* @__PURE__ */ t.jsx(kr, { filesData: e, onError: V, children: /* @__PURE__ */ t.jsx(Nr, { initialPath: l, children: /* @__PURE__ */ t.jsx(_r, { onDownload: h, children: /* @__PURE__ */ t.jsx(Ar, { onPaste: c, children: /* @__PURE__ */ t.jsxs(Sr, { layout: O, children: [
5012
5015
  /* @__PURE__ */ t.jsx(
5013
5016
  Fr,
5014
5017
  {
@@ -5016,38 +5019,38 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
5016
5019
  allowUploadFile: !0,
5017
5020
  onLayoutChange: m,
5018
5021
  onRefresh: b,
5019
- triggerAction: c
5022
+ triggerAction: y
5020
5023
  }
5021
5024
  ),
5022
5025
  /* @__PURE__ */ t.jsxs(
5023
5026
  "section",
5024
5027
  {
5025
- ref: y,
5026
- onMouseMove: Y,
5027
- onMouseUp: $,
5028
+ ref: R,
5029
+ onMouseMove: $,
5030
+ onMouseUp: _,
5028
5031
  className: "files-container",
5029
5032
  children: [
5030
- /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: R.col1 + "%" }, children: [
5033
+ /* @__PURE__ */ t.jsxs("div", { className: "navigation-pane", style: { width: T.col1 + "%" }, children: [
5031
5034
  /* @__PURE__ */ t.jsx(Ir, {}),
5032
5035
  /* @__PURE__ */ t.jsx(
5033
5036
  "div",
5034
5037
  {
5035
- className: `sidebar-resize ${T ? "sidebar-dragging" : ""}`,
5036
- onMouseDown: _
5038
+ className: `sidebar-resize ${Y ? "sidebar-dragging" : ""}`,
5039
+ onMouseDown: G
5037
5040
  }
5038
5041
  )
5039
5042
  ] }),
5040
- /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: R.col2 + "%" }, children: [
5043
+ /* @__PURE__ */ t.jsxs("div", { className: "folders-preview", style: { width: T.col2 + "%" }, children: [
5041
5044
  /* @__PURE__ */ t.jsx($r, {}),
5042
5045
  /* @__PURE__ */ t.jsx(
5043
5046
  ta,
5044
5047
  {
5045
- onCreateFolder: a,
5046
- onRename: d,
5048
+ onCreateFolder: r,
5049
+ onRename: p,
5047
5050
  onFileOpen: w,
5048
5051
  onRefresh: b,
5049
5052
  enableFilePreview: N,
5050
- triggerAction: c
5053
+ triggerAction: y
5051
5054
  }
5052
5055
  )
5053
5056
  ] })
@@ -5057,15 +5060,15 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
5057
5060
  /* @__PURE__ */ t.jsx(
5058
5061
  fa,
5059
5062
  {
5060
- fileUploadConfig: r,
5063
+ fileUploadConfig: a,
5061
5064
  onFileUploading: i,
5062
- onFileUploaded: l,
5063
- onDelete: p,
5065
+ onFileUploaded: s,
5066
+ onDelete: d,
5064
5067
  onRefresh: b,
5065
5068
  maxFileSize: B,
5066
5069
  filePreviewPath: D,
5067
5070
  acceptedFileTypes: I,
5068
- triggerAction: c
5071
+ triggerAction: y
5069
5072
  }
5070
5073
  )
5071
5074
  ] }) }) }) }) })
@@ -5075,38 +5078,39 @@ const he = /* @__PURE__ */ Gt(wa), ja = (e, r, o) => {
5075
5078
  };
5076
5079
  or.displayName = "FileManager";
5077
5080
  or.propTypes = {
5078
- files: he.arrayOf(
5079
- he.shape({
5080
- name: he.string.isRequired,
5081
- isDirectory: he.bool.isRequired,
5082
- path: he.string.isRequired,
5081
+ files: pe.arrayOf(
5082
+ pe.shape({
5083
+ name: pe.string.isRequired,
5084
+ isDirectory: pe.bool.isRequired,
5085
+ path: pe.string.isRequired,
5083
5086
  updatedAt: ja,
5084
- size: he.number
5087
+ size: pe.number
5085
5088
  })
5086
5089
  ).isRequired,
5087
- fileUploadConfig: he.shape({
5090
+ fileUploadConfig: pe.shape({
5088
5091
  url: Pn,
5089
- headers: he.objectOf(he.string)
5092
+ headers: pe.objectOf(pe.string)
5090
5093
  }),
5091
- isLoading: he.bool,
5092
- onCreateFolder: he.func,
5093
- onFileUploading: he.func,
5094
- onFileUploaded: he.func,
5095
- onRename: he.func,
5096
- onDelete: he.func,
5097
- onPaste: he.func,
5098
- onDownload: he.func,
5099
- onLayoutChange: he.func,
5100
- onRefresh: he.func,
5101
- onFileOpen: he.func,
5102
- onError: he.func,
5103
- layout: he.oneOf(["grid", "list"]),
5104
- maxFileSize: he.number,
5105
- enableFilePreview: he.bool,
5094
+ isLoading: pe.bool,
5095
+ onCreateFolder: pe.func,
5096
+ onFileUploading: pe.func,
5097
+ onFileUploaded: pe.func,
5098
+ onRename: pe.func,
5099
+ onDelete: pe.func,
5100
+ onPaste: pe.func,
5101
+ onDownload: pe.func,
5102
+ onLayoutChange: pe.func,
5103
+ onRefresh: pe.func,
5104
+ onFileOpen: pe.func,
5105
+ onError: pe.func,
5106
+ layout: pe.oneOf(["grid", "list"]),
5107
+ maxFileSize: pe.number,
5108
+ enableFilePreview: pe.bool,
5106
5109
  filePreviewPath: Pn,
5107
- acceptedFileTypes: he.string,
5108
- height: he.oneOfType([he.string, he.number]),
5109
- width: he.oneOfType([he.string, he.number])
5110
+ acceptedFileTypes: pe.string,
5111
+ height: pe.oneOfType([pe.string, pe.number]),
5112
+ width: pe.oneOfType([pe.string, pe.number]),
5113
+ initialPath: pe.string
5110
5114
  };
5111
5115
  export {
5112
5116
  or as FileManager