@cubone/react-file-manager 1.0.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.
@@ -0,0 +1,3591 @@
1
+ import Oe, { useState as re, useEffect as je, useRef as Ke } from "react";
2
+ var kt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
3
+ function Mt(n) {
4
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
+ }
6
+ var yt = { exports: {} }, Be = {};
7
+ /**
8
+ * @license React
9
+ * react-jsx-runtime.production.min.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+ var Ot;
17
+ function Ut() {
18
+ if (Ot) return Be;
19
+ Ot = 1;
20
+ var n = Oe, v = Symbol.for("react.element"), c = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, d = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function s(h, f, o) {
22
+ var p, O = {}, j = null, D = null;
23
+ o !== void 0 && (j = "" + o), f.key !== void 0 && (j = "" + f.key), f.ref !== void 0 && (D = f.ref);
24
+ for (p in f) l.call(f, p) && !u.hasOwnProperty(p) && (O[p] = f[p]);
25
+ if (h && h.defaultProps) for (p in f = h.defaultProps, f) O[p] === void 0 && (O[p] = f[p]);
26
+ return { $$typeof: v, type: h, key: j, ref: D, props: O, _owner: d.current };
27
+ }
28
+ return Be.Fragment = c, Be.jsx = s, Be.jsxs = s, Be;
29
+ }
30
+ var Ye = {};
31
+ /**
32
+ * @license React
33
+ * react-jsx-runtime.development.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+ var Rt;
41
+ function Bt() {
42
+ return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var n = Oe, v = Symbol.for("react.element"), c = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), D = Symbol.for("react.offscreen"), A = Symbol.iterator, E = "@@iterator";
44
+ function I(t) {
45
+ if (t === null || typeof t != "object")
46
+ return null;
47
+ var b = A && t[A] || t[E];
48
+ return typeof b == "function" ? b : null;
49
+ }
50
+ var V = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function _(t) {
52
+ {
53
+ for (var b = arguments.length, P = new Array(b > 1 ? b - 1 : 0), $ = 1; $ < b; $++)
54
+ P[$ - 1] = arguments[$];
55
+ F("error", t, P);
56
+ }
57
+ }
58
+ function F(t, b, P) {
59
+ {
60
+ var $ = V.ReactDebugCurrentFrame, Q = $.getStackAddendum();
61
+ Q !== "" && (b += "%s", P = P.concat([Q]));
62
+ var ae = P.map(function(e) {
63
+ return String(e);
64
+ });
65
+ ae.unshift("Warning: " + b), Function.prototype.apply.call(console[t], console, ae);
66
+ }
67
+ }
68
+ var S = !1, x = !1, T = !1, k = !1, L = !1, ee;
69
+ ee = Symbol.for("react.module.reference");
70
+ function K(t) {
71
+ return !!(typeof t == "string" || typeof t == "function" || t === l || t === u || L || t === d || t === o || t === p || k || t === D || S || x || T || typeof t == "object" && t !== null && (t.$$typeof === j || t.$$typeof === O || t.$$typeof === s || t.$$typeof === h || t.$$typeof === f || // This needs to include all possible module reference object
72
+ // types supported by any Flight configuration anywhere since
73
+ // we don't know which Flight build this will end up being used
74
+ // with.
75
+ t.$$typeof === ee || t.getModuleId !== void 0));
76
+ }
77
+ function N(t, b, P) {
78
+ var $ = t.displayName;
79
+ if ($)
80
+ return $;
81
+ var Q = b.displayName || b.name || "";
82
+ return Q !== "" ? P + "(" + Q + ")" : P;
83
+ }
84
+ function Z(t) {
85
+ return t.displayName || "Context";
86
+ }
87
+ function te(t) {
88
+ if (t == null)
89
+ return null;
90
+ if (typeof t.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
91
+ return t.displayName || t.name || null;
92
+ if (typeof t == "string")
93
+ return t;
94
+ switch (t) {
95
+ case l:
96
+ return "Fragment";
97
+ case c:
98
+ return "Portal";
99
+ case u:
100
+ return "Profiler";
101
+ case d:
102
+ return "StrictMode";
103
+ case o:
104
+ return "Suspense";
105
+ case p:
106
+ return "SuspenseList";
107
+ }
108
+ if (typeof t == "object")
109
+ switch (t.$$typeof) {
110
+ case h:
111
+ var b = t;
112
+ return Z(b) + ".Consumer";
113
+ case s:
114
+ var P = t;
115
+ return Z(P._context) + ".Provider";
116
+ case f:
117
+ return N(t, t.render, "ForwardRef");
118
+ case O:
119
+ var $ = t.displayName || null;
120
+ return $ !== null ? $ : te(t.type) || "Memo";
121
+ case j: {
122
+ var Q = t, ae = Q._payload, e = Q._init;
123
+ try {
124
+ return te(e(ae));
125
+ } catch {
126
+ return null;
127
+ }
128
+ }
129
+ }
130
+ return null;
131
+ }
132
+ var oe = Object.assign, de = 0, ce, ve, ue, J, fe, pe, w;
133
+ function z() {
134
+ }
135
+ z.__reactDisabledLog = !0;
136
+ function B() {
137
+ {
138
+ if (de === 0) {
139
+ ce = console.log, ve = console.info, ue = console.warn, J = console.error, fe = console.group, pe = console.groupCollapsed, w = console.groupEnd;
140
+ var t = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ value: z,
144
+ writable: !0
145
+ };
146
+ Object.defineProperties(console, {
147
+ info: t,
148
+ log: t,
149
+ warn: t,
150
+ error: t,
151
+ group: t,
152
+ groupCollapsed: t,
153
+ groupEnd: t
154
+ });
155
+ }
156
+ de++;
157
+ }
158
+ }
159
+ function Y() {
160
+ {
161
+ if (de--, de === 0) {
162
+ var t = {
163
+ configurable: !0,
164
+ enumerable: !0,
165
+ writable: !0
166
+ };
167
+ Object.defineProperties(console, {
168
+ log: oe({}, t, {
169
+ value: ce
170
+ }),
171
+ info: oe({}, t, {
172
+ value: ve
173
+ }),
174
+ warn: oe({}, t, {
175
+ value: ue
176
+ }),
177
+ error: oe({}, t, {
178
+ value: J
179
+ }),
180
+ group: oe({}, t, {
181
+ value: fe
182
+ }),
183
+ groupCollapsed: oe({}, t, {
184
+ value: pe
185
+ }),
186
+ groupEnd: oe({}, t, {
187
+ value: w
188
+ })
189
+ });
190
+ }
191
+ de < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ }
193
+ }
194
+ var U = V.ReactCurrentDispatcher, i;
195
+ function m(t, b, P) {
196
+ {
197
+ if (i === void 0)
198
+ try {
199
+ throw Error();
200
+ } catch (Q) {
201
+ var $ = Q.stack.trim().match(/\n( *(at )?)/);
202
+ i = $ && $[1] || "";
203
+ }
204
+ return `
205
+ ` + i + t;
206
+ }
207
+ }
208
+ var M = !1, R;
209
+ {
210
+ var H = typeof WeakMap == "function" ? WeakMap : Map;
211
+ R = new H();
212
+ }
213
+ function W(t, b) {
214
+ if (!t || M)
215
+ return "";
216
+ {
217
+ var P = R.get(t);
218
+ if (P !== void 0)
219
+ return P;
220
+ }
221
+ var $;
222
+ M = !0;
223
+ var Q = Error.prepareStackTrace;
224
+ Error.prepareStackTrace = void 0;
225
+ var ae;
226
+ ae = U.current, U.current = null, B();
227
+ try {
228
+ if (b) {
229
+ var e = function() {
230
+ throw Error();
231
+ };
232
+ if (Object.defineProperty(e.prototype, "props", {
233
+ set: function() {
234
+ throw Error();
235
+ }
236
+ }), typeof Reflect == "object" && Reflect.construct) {
237
+ try {
238
+ Reflect.construct(e, []);
239
+ } catch (ie) {
240
+ $ = ie;
241
+ }
242
+ Reflect.construct(t, [], e);
243
+ } else {
244
+ try {
245
+ e.call();
246
+ } catch (ie) {
247
+ $ = ie;
248
+ }
249
+ t.call(e.prototype);
250
+ }
251
+ } else {
252
+ try {
253
+ throw Error();
254
+ } catch (ie) {
255
+ $ = ie;
256
+ }
257
+ t();
258
+ }
259
+ } catch (ie) {
260
+ if (ie && $ && typeof ie.stack == "string") {
261
+ for (var a = ie.stack.split(`
262
+ `), g = $.stack.split(`
263
+ `), y = a.length - 1, C = g.length - 1; y >= 1 && C >= 0 && a[y] !== g[C]; )
264
+ C--;
265
+ for (; y >= 1 && C >= 0; y--, C--)
266
+ if (a[y] !== g[C]) {
267
+ if (y !== 1 || C !== 1)
268
+ do
269
+ if (y--, C--, C < 0 || a[y] !== g[C]) {
270
+ var G = `
271
+ ` + a[y].replace(" at new ", " at ");
272
+ return t.displayName && G.includes("<anonymous>") && (G = G.replace("<anonymous>", t.displayName)), typeof t == "function" && R.set(t, G), G;
273
+ }
274
+ while (y >= 1 && C >= 0);
275
+ break;
276
+ }
277
+ }
278
+ } finally {
279
+ M = !1, U.current = ae, Y(), Error.prepareStackTrace = Q;
280
+ }
281
+ var X = t ? t.displayName || t.name : "", q = X ? m(X) : "";
282
+ return typeof t == "function" && R.set(t, q), q;
283
+ }
284
+ function se(t, b, P) {
285
+ return W(t, !1);
286
+ }
287
+ function ne(t) {
288
+ var b = t.prototype;
289
+ return !!(b && b.isReactComponent);
290
+ }
291
+ function me(t, b, P) {
292
+ if (t == null)
293
+ return "";
294
+ if (typeof t == "function")
295
+ return W(t, ne(t));
296
+ if (typeof t == "string")
297
+ return m(t);
298
+ switch (t) {
299
+ case o:
300
+ return m("Suspense");
301
+ case p:
302
+ return m("SuspenseList");
303
+ }
304
+ if (typeof t == "object")
305
+ switch (t.$$typeof) {
306
+ case f:
307
+ return se(t.render);
308
+ case O:
309
+ return me(t.type, b, P);
310
+ case j: {
311
+ var $ = t, Q = $._payload, ae = $._init;
312
+ try {
313
+ return me(ae(Q), b, P);
314
+ } catch {
315
+ }
316
+ }
317
+ }
318
+ return "";
319
+ }
320
+ var he = Object.prototype.hasOwnProperty, Re = {}, we = V.ReactDebugCurrentFrame;
321
+ function Se(t) {
322
+ if (t) {
323
+ var b = t._owner, P = me(t.type, t._source, b ? b.type : null);
324
+ we.setExtraStackFrame(P);
325
+ } else
326
+ we.setExtraStackFrame(null);
327
+ }
328
+ function ot(t, b, P, $, Q) {
329
+ {
330
+ var ae = Function.call.bind(he);
331
+ for (var e in t)
332
+ if (ae(t, e)) {
333
+ var a = void 0;
334
+ try {
335
+ if (typeof t[e] != "function") {
336
+ var g = Error(($ || "React class") + ": " + P + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw g.name = "Invariant Violation", g;
338
+ }
339
+ a = t[e](b, e, $, P, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (y) {
341
+ a = y;
342
+ }
343
+ a && !(a instanceof Error) && (Se(Q), _("%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).", $ || "React class", P, e, typeof a), Se(null)), a instanceof Error && !(a.message in Re) && (Re[a.message] = !0, Se(Q), _("Failed %s type: %s", P, a.message), Se(null));
344
+ }
345
+ }
346
+ }
347
+ var st = Array.isArray;
348
+ function Ae(t) {
349
+ return st(t);
350
+ }
351
+ function lt(t) {
352
+ {
353
+ var b = typeof Symbol == "function" && Symbol.toStringTag, P = b && t[Symbol.toStringTag] || t.constructor.name || "Object";
354
+ return P;
355
+ }
356
+ }
357
+ function qe(t) {
358
+ try {
359
+ return Je(t), !1;
360
+ } catch {
361
+ return !0;
362
+ }
363
+ }
364
+ function Je(t) {
365
+ return "" + t;
366
+ }
367
+ function Ne(t) {
368
+ if (qe(t))
369
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", lt(t)), Je(t);
370
+ }
371
+ var Te = V.ReactCurrentOwner, Ge = {
372
+ key: !0,
373
+ ref: !0,
374
+ __self: !0,
375
+ __source: !0
376
+ }, Ve, ze, ke;
377
+ ke = {};
378
+ function ct(t) {
379
+ if (he.call(t, "ref")) {
380
+ var b = Object.getOwnPropertyDescriptor(t, "ref").get;
381
+ if (b && b.isReactWarning)
382
+ return !1;
383
+ }
384
+ return t.ref !== void 0;
385
+ }
386
+ function ut(t) {
387
+ if (he.call(t, "key")) {
388
+ var b = Object.getOwnPropertyDescriptor(t, "key").get;
389
+ if (b && b.isReactWarning)
390
+ return !1;
391
+ }
392
+ return t.key !== void 0;
393
+ }
394
+ function ft(t, b) {
395
+ if (typeof t.ref == "string" && Te.current && b && Te.current.stateNode !== b) {
396
+ var P = te(Te.current.type);
397
+ ke[P] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', te(Te.current.type), t.ref), ke[P] = !0);
398
+ }
399
+ }
400
+ function Fe(t, b) {
401
+ {
402
+ var P = function() {
403
+ Ve || (Ve = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
404
+ };
405
+ P.isReactWarning = !0, Object.defineProperty(t, "key", {
406
+ get: P,
407
+ configurable: !0
408
+ });
409
+ }
410
+ }
411
+ function dt(t, b) {
412
+ {
413
+ var P = function() {
414
+ ze || (ze = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", b));
415
+ };
416
+ P.isReactWarning = !0, Object.defineProperty(t, "ref", {
417
+ get: P,
418
+ configurable: !0
419
+ });
420
+ }
421
+ }
422
+ var pt = function(t, b, P, $, Q, ae, e) {
423
+ var a = {
424
+ // This tag allows us to uniquely identify this as a React Element
425
+ $$typeof: v,
426
+ // Built-in properties that belong on the element
427
+ type: t,
428
+ key: b,
429
+ ref: P,
430
+ props: e,
431
+ // Record the component responsible for creating this element.
432
+ _owner: ae
433
+ };
434
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
435
+ configurable: !1,
436
+ enumerable: !1,
437
+ writable: !0,
438
+ value: !1
439
+ }), Object.defineProperty(a, "_self", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !1,
443
+ value: $
444
+ }), Object.defineProperty(a, "_source", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: Q
449
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
450
+ };
451
+ function ht(t, b, P, $, Q) {
452
+ {
453
+ var ae, e = {}, a = null, g = null;
454
+ P !== void 0 && (Ne(P), a = "" + P), ut(b) && (Ne(b.key), a = "" + b.key), ct(b) && (g = b.ref, ft(b, Q));
455
+ for (ae in b)
456
+ he.call(b, ae) && !Ge.hasOwnProperty(ae) && (e[ae] = b[ae]);
457
+ if (t && t.defaultProps) {
458
+ var y = t.defaultProps;
459
+ for (ae in y)
460
+ e[ae] === void 0 && (e[ae] = y[ae]);
461
+ }
462
+ if (a || g) {
463
+ var C = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
464
+ a && Fe(e, C), g && dt(e, C);
465
+ }
466
+ return pt(t, a, g, Q, $, Te.current, e);
467
+ }
468
+ }
469
+ var Ie = V.ReactCurrentOwner, Xe = V.ReactDebugCurrentFrame;
470
+ function Pe(t) {
471
+ if (t) {
472
+ var b = t._owner, P = me(t.type, t._source, b ? b.type : null);
473
+ Xe.setExtraStackFrame(P);
474
+ } else
475
+ Xe.setExtraStackFrame(null);
476
+ }
477
+ var Le;
478
+ Le = !1;
479
+ function $e(t) {
480
+ return typeof t == "object" && t !== null && t.$$typeof === v;
481
+ }
482
+ function He() {
483
+ {
484
+ if (Ie.current) {
485
+ var t = te(Ie.current.type);
486
+ if (t)
487
+ return `
488
+
489
+ Check the render method of \`` + t + "`.";
490
+ }
491
+ return "";
492
+ }
493
+ }
494
+ function xe(t) {
495
+ return "";
496
+ }
497
+ var De = {};
498
+ function Ze(t) {
499
+ {
500
+ var b = He();
501
+ if (!b) {
502
+ var P = typeof t == "string" ? t : t.displayName || t.name;
503
+ P && (b = `
504
+
505
+ Check the top-level render call using <` + P + ">.");
506
+ }
507
+ return b;
508
+ }
509
+ }
510
+ function Ee(t, b) {
511
+ {
512
+ if (!t._store || t._store.validated || t.key != null)
513
+ return;
514
+ t._store.validated = !0;
515
+ var P = Ze(b);
516
+ if (De[P])
517
+ return;
518
+ De[P] = !0;
519
+ var $ = "";
520
+ t && t._owner && t._owner !== Ie.current && ($ = " It was passed a child from " + te(t._owner.type) + "."), Pe(t), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', P, $), Pe(null);
521
+ }
522
+ }
523
+ function We(t, b) {
524
+ {
525
+ if (typeof t != "object")
526
+ return;
527
+ if (Ae(t))
528
+ for (var P = 0; P < t.length; P++) {
529
+ var $ = t[P];
530
+ $e($) && Ee($, b);
531
+ }
532
+ else if ($e(t))
533
+ t._store && (t._store.validated = !0);
534
+ else if (t) {
535
+ var Q = I(t);
536
+ if (typeof Q == "function" && Q !== t.entries)
537
+ for (var ae = Q.call(t), e; !(e = ae.next()).done; )
538
+ $e(e.value) && Ee(e.value, b);
539
+ }
540
+ }
541
+ }
542
+ function vt(t) {
543
+ {
544
+ var b = t.type;
545
+ if (b == null || typeof b == "string")
546
+ return;
547
+ var P;
548
+ if (typeof b == "function")
549
+ P = b.propTypes;
550
+ else if (typeof b == "object" && (b.$$typeof === f || // Note: Memo only checks outer props here.
551
+ // Inner props are checked in the reconciler.
552
+ b.$$typeof === O))
553
+ P = b.propTypes;
554
+ else
555
+ return;
556
+ if (P) {
557
+ var $ = te(b);
558
+ ot(P, t.props, "prop", $, t);
559
+ } else if (b.PropTypes !== void 0 && !Le) {
560
+ Le = !0;
561
+ var Q = te(b);
562
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Q || "Unknown");
563
+ }
564
+ typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
565
+ }
566
+ }
567
+ function Qe(t) {
568
+ {
569
+ for (var b = Object.keys(t.props), P = 0; P < b.length; P++) {
570
+ var $ = b[P];
571
+ if ($ !== "children" && $ !== "key") {
572
+ Pe(t), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", $), Pe(null);
573
+ break;
574
+ }
575
+ }
576
+ t.ref !== null && (Pe(t), _("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
577
+ }
578
+ }
579
+ var et = {};
580
+ function Ue(t, b, P, $, Q, ae) {
581
+ {
582
+ var e = K(t);
583
+ if (!e) {
584
+ var a = "";
585
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
586
+ var g = xe();
587
+ g ? a += g : a += He();
588
+ var y;
589
+ t === null ? y = "null" : Ae(t) ? y = "array" : t !== void 0 && t.$$typeof === v ? (y = "<" + (te(t.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : y = typeof t, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", y, a);
590
+ }
591
+ var C = ht(t, b, P, Q, ae);
592
+ if (C == null)
593
+ return C;
594
+ if (e) {
595
+ var G = b.children;
596
+ if (G !== void 0)
597
+ if ($)
598
+ if (Ae(G)) {
599
+ for (var X = 0; X < G.length; X++)
600
+ We(G[X], t);
601
+ Object.freeze && Object.freeze(G);
602
+ } else
603
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
604
+ else
605
+ We(G, t);
606
+ }
607
+ if (he.call(b, "key")) {
608
+ var q = te(t), ie = Object.keys(b).filter(function(ge) {
609
+ return ge !== "key";
610
+ }), ye = ie.length > 0 ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}";
611
+ if (!et[q + ye]) {
612
+ var be = ie.length > 0 ? "{" + ie.join(": ..., ") + ": ...}" : "{}";
613
+ _(`A props object containing a "key" prop is being spread into JSX:
614
+ let props = %s;
615
+ <%s {...props} />
616
+ React keys must be passed directly to JSX without using spread:
617
+ let props = %s;
618
+ <%s key={someKey} {...props} />`, ye, q, be, q), et[q + ye] = !0;
619
+ }
620
+ }
621
+ return t === l ? Qe(C) : vt(C), C;
622
+ }
623
+ }
624
+ function tt(t, b, P) {
625
+ return Ue(t, b, P, !0);
626
+ }
627
+ function nt(t, b, P) {
628
+ return Ue(t, b, P, !1);
629
+ }
630
+ var mt = nt, rt = tt;
631
+ Ye.Fragment = l, Ye.jsx = mt, Ye.jsxs = rt;
632
+ }()), Ye;
633
+ }
634
+ process.env.NODE_ENV === "production" ? yt.exports = Ut() : yt.exports = Bt();
635
+ var r = yt.exports, _t = {
636
+ color: void 0,
637
+ size: void 0,
638
+ className: void 0,
639
+ style: void 0,
640
+ attr: void 0
641
+ }, Et = Oe.createContext && /* @__PURE__ */ Oe.createContext(_t), Yt = ["attr", "size", "title"];
642
+ function Kt(n, v) {
643
+ if (n == null) return {};
644
+ var c = qt(n, v), l, d;
645
+ if (Object.getOwnPropertySymbols) {
646
+ var u = Object.getOwnPropertySymbols(n);
647
+ for (d = 0; d < u.length; d++)
648
+ l = u[d], !(v.indexOf(l) >= 0) && Object.prototype.propertyIsEnumerable.call(n, l) && (c[l] = n[l]);
649
+ }
650
+ return c;
651
+ }
652
+ function qt(n, v) {
653
+ if (n == null) return {};
654
+ var c = {};
655
+ for (var l in n)
656
+ if (Object.prototype.hasOwnProperty.call(n, l)) {
657
+ if (v.indexOf(l) >= 0) continue;
658
+ c[l] = n[l];
659
+ }
660
+ return c;
661
+ }
662
+ function at() {
663
+ return at = Object.assign ? Object.assign.bind() : function(n) {
664
+ for (var v = 1; v < arguments.length; v++) {
665
+ var c = arguments[v];
666
+ for (var l in c)
667
+ Object.prototype.hasOwnProperty.call(c, l) && (n[l] = c[l]);
668
+ }
669
+ return n;
670
+ }, at.apply(this, arguments);
671
+ }
672
+ function Tt(n, v) {
673
+ var c = Object.keys(n);
674
+ if (Object.getOwnPropertySymbols) {
675
+ var l = Object.getOwnPropertySymbols(n);
676
+ v && (l = l.filter(function(d) {
677
+ return Object.getOwnPropertyDescriptor(n, d).enumerable;
678
+ })), c.push.apply(c, l);
679
+ }
680
+ return c;
681
+ }
682
+ function it(n) {
683
+ for (var v = 1; v < arguments.length; v++) {
684
+ var c = arguments[v] != null ? arguments[v] : {};
685
+ v % 2 ? Tt(Object(c), !0).forEach(function(l) {
686
+ Jt(n, l, c[l]);
687
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(c)) : Tt(Object(c)).forEach(function(l) {
688
+ Object.defineProperty(n, l, Object.getOwnPropertyDescriptor(c, l));
689
+ });
690
+ }
691
+ return n;
692
+ }
693
+ function Jt(n, v, c) {
694
+ return v = Gt(v), v in n ? Object.defineProperty(n, v, { value: c, enumerable: !0, configurable: !0, writable: !0 }) : n[v] = c, n;
695
+ }
696
+ function Gt(n) {
697
+ var v = Xt(n, "string");
698
+ return typeof v == "symbol" ? v : v + "";
699
+ }
700
+ function Xt(n, v) {
701
+ if (typeof n != "object" || !n) return n;
702
+ var c = n[Symbol.toPrimitive];
703
+ if (c !== void 0) {
704
+ var l = c.call(n, v || "default");
705
+ if (typeof l != "object") return l;
706
+ throw new TypeError("@@toPrimitive must return a primitive value.");
707
+ }
708
+ return (v === "string" ? String : Number)(n);
709
+ }
710
+ function At(n) {
711
+ return n && n.map((v, c) => /* @__PURE__ */ Oe.createElement(v.tag, it({
712
+ key: c
713
+ }, v.attr), At(v.child)));
714
+ }
715
+ function le(n) {
716
+ return (v) => /* @__PURE__ */ Oe.createElement(Zt, at({
717
+ attr: it({}, n.attr)
718
+ }, v), At(n.child));
719
+ }
720
+ function Zt(n) {
721
+ var v = (c) => {
722
+ var {
723
+ attr: l,
724
+ size: d,
725
+ title: u
726
+ } = n, s = Kt(n, Yt), h = d || c.size || "1em", f;
727
+ return c.className && (f = c.className), n.className && (f = (f ? f + " " : "") + n.className), /* @__PURE__ */ Oe.createElement("svg", at({
728
+ stroke: "currentColor",
729
+ fill: "currentColor",
730
+ strokeWidth: "0"
731
+ }, c.attr, l, s, {
732
+ className: f,
733
+ style: it(it({
734
+ color: n.color || c.color
735
+ }, c.style), n.style),
736
+ height: h,
737
+ width: h,
738
+ xmlns: "http://www.w3.org/2000/svg"
739
+ }), u && /* @__PURE__ */ Oe.createElement("title", null, u), n.children);
740
+ };
741
+ return Et !== void 0 ? /* @__PURE__ */ Oe.createElement(Et.Consumer, null, (c) => v(c)) : v(_t);
742
+ }
743
+ function Vt(n) {
744
+ return le({ 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: [] }] })(n);
745
+ }
746
+ function Qt(n) {
747
+ return le({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "m.5 3 .04.87a2 2 0 0 0-.342 1.311l.637 7A2 2 0 0 0 2.826 14H9v-1H2.826a1 1 0 0 1-.995-.91l-.637-7A1 1 0 0 1 2.19 4h11.62a1 1 0 0 1 .996 1.09L14.54 8h1.005l.256-2.819A2 2 0 0 0 13.81 3H9.828a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 6.172 1H2.5a2 2 0 0 0-2 2m5.672-1a1 1 0 0 1 .707.293L7.586 3H2.19q-.362.002-.683.12L1.5 2.98a1 1 0 0 1 1-.98z" }, child: [] }, { tag: "path", attr: { d: "M13.5 9a.5.5 0 0 1 .5.5V11h1.5a.5.5 0 1 1 0 1H14v1.5a.5.5 0 1 1-1 0V12h-1.5a.5.5 0 0 1 0-1H13V9.5a.5.5 0 0 1 .5-.5" }, child: [] }] })(n);
748
+ }
749
+ function zt(n) {
750
+ return le({ tag: "svg", attr: { fill: "currentColor", viewBox: "0 0 16 16" }, child: [{ tag: "path", attr: { d: "M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0" }, child: [] }] })(n);
751
+ }
752
+ function en(n) {
753
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "polyline", attr: { points: "23 4 23 10 17 10" }, child: [] }, { tag: "polyline", attr: { points: "1 20 1 14 7 14" }, child: [] }, { tag: "path", attr: { d: "M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15" }, child: [] }] })(n);
754
+ }
755
+ function tn(n) {
756
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" }, child: [] }] })(n);
757
+ }
758
+ function nn(n) {
759
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(n);
760
+ }
761
+ function rn(n) {
762
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(n);
763
+ }
764
+ function an(n) {
765
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(n);
766
+ }
767
+ function Ht(n) {
768
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z" }, child: [] }] })(n);
769
+ }
770
+ function on(n) {
771
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5-5 5z" }, child: [] }] })(n);
772
+ }
773
+ function sn(n) {
774
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M10.02 6 8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z" }, child: [] }] })(n);
775
+ }
776
+ function Dt(n) {
777
+ return le({ tag: "svg", attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M20.005 5.995h-1v2h1v8h-1v2h1c1.103 0 2-.897 2-2v-8c0-1.102-.898-2-2-2zm-14 4H15v4H6.005z" }, child: [] }, { tag: "path", attr: { d: "M17.005 17.995V4H20V2h-8v2h3.005v1.995h-11c-1.103 0-2 .897-2 2v8c0 1.103.897 2 2 2h11V20H12v2h8v-2h-2.995v-2.005zm-13-2v-8h11v8h-11z" }, child: [] }] })(n);
778
+ }
779
+ function gt(n) {
780
+ return le({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm96 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm69.2 46.9c-3-4.3-7.9-6.9-13.2-6.9s-10.2 2.6-13.2 6.9l-41.3 59.7-11.9-19.1c-2.9-4.7-8.1-7.5-13.6-7.5s-10.6 2.8-13.6 7.5l-40 64c-3.1 4.9-3.2 11.1-.4 16.2s8.2 8.2 14 8.2h48 32 40 72c6 0 11.4-3.3 14.2-8.6s2.4-11.6-1-16.5l-72-104z" }, child: [] }] })(n);
781
+ }
782
+ function ln(n) {
783
+ return le({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M64 464c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24H264c13.3 0 24-10.7 24-24s-10.7-24-24-24H120z" }, child: [] }] })(n);
784
+ }
785
+ function cn(n) {
786
+ return le({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M64 464l48 0 0 48-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 304l-48 0 0-144-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z" }, child: [] }] })(n);
787
+ }
788
+ function Pt(n) {
789
+ return le({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm55 241.1c-3.8-12.7-17.2-19.9-29.9-16.1s-19.9 17.2-16.1 29.9l48 160c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l25-83.4 25 83.4c3 10.2 12.4 17.1 23 17.1s19.9-7 23-17.1l48-160c3.8-12.7-3.4-26.1-16.1-29.9s-26.1 3.4-29.9 16.1l-25 83.4-25-83.4c-3-10.2-12.4-17.1-23-17.1s-19.9 7-23 17.1l-25 83.4-25-83.4z" }, child: [] }] })(n);
790
+ }
791
+ function bt(n) {
792
+ return le({ tag: "svg", attr: { viewBox: "0 0 384 512" }, child: [{ tag: "path", attr: { d: "M320 464c8.8 0 16-7.2 16-16V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16H320zM0 64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64z" }, child: [] }] })(n);
793
+ }
794
+ function un(n) {
795
+ return le({ tag: "svg", attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M384 480h48c11.4 0 21.9-6 27.6-15.9l112-192c5.8-9.9 5.8-22.1 .1-32.1S555.5 224 544 224H144c-11.4 0-21.9 6-27.6 15.9L48 357.1V96c0-8.8 7.2-16 16-16H181.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c21 21 49.5 32.8 79.2 32.8H416c8.8 0 16 7.2 16 16v32h48V160c0-35.3-28.7-64-64-64H298.5c-17 0-33.3-6.7-45.3-18.7L226.7 50.7c-12-12-28.3-18.7-45.3-18.7H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H87.7 384z" }, child: [] }] })(n);
796
+ }
797
+ function xt(n) {
798
+ return le({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M104.6 48H64C28.7 48 0 76.7 0 112V384c0 35.3 28.7 64 64 64h96V400H64c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16H80c0 17.7 14.3 32 32 32h72.4C202 108.4 227.6 96 256 96h62c-7.1-27.6-32.2-48-62-48H215.4C211.6 20.9 188.2 0 160 0s-51.6 20.9-55.4 48zM144 56a16 16 0 1 1 32 0 16 16 0 1 1 -32 0zM448 464H256c-8.8 0-16-7.2-16-16V192c0-8.8 7.2-16 16-16l140.1 0L464 243.9V448c0 8.8-7.2 16-16 16zM256 512H448c35.3 0 64-28.7 64-64V243.9c0-12.7-5.1-24.9-14.1-33.9l-67.9-67.9c-9-9-21.2-14.1-33.9-14.1H256c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64z" }, child: [] }] })(n);
799
+ }
800
+ const jt = (n, v) => {
801
+ const c = v.filter(
802
+ (l) => l.path === n.path + "/" + n.name
803
+ );
804
+ return {
805
+ ...n,
806
+ children: c.map((l) => jt(l, v))
807
+ };
808
+ }, fn = ({
809
+ allowCreateFolder: n = !0,
810
+ allowUploadFile: v = !0,
811
+ handleRefresh: c,
812
+ isItemSelection: l,
813
+ setIsItemSelection: d,
814
+ currentPath: u,
815
+ selectedFile: s,
816
+ setSelectedFile: h,
817
+ files: f,
818
+ clipBoard: o,
819
+ setClipBoard: p,
820
+ handlePaste: O,
821
+ triggerAction: j
822
+ }) => {
823
+ const [D, A] = re([
824
+ {
825
+ icon: /* @__PURE__ */ r.jsx(Qt, { size: 17, strokeWidth: 0.3 }),
826
+ text: "New Folder",
827
+ permission: n,
828
+ onClick: () => j.show("createFolder")
829
+ },
830
+ {
831
+ icon: /* @__PURE__ */ r.jsx(on, { size: 18 }),
832
+ text: "Upload File",
833
+ permission: v,
834
+ onClick: () => j.show("uploadFile")
835
+ },
836
+ {
837
+ icon: /* @__PURE__ */ r.jsx(xt, { size: 18 }),
838
+ text: "Paste",
839
+ permission: !1,
840
+ onClick: () => {
841
+ }
842
+ }
843
+ ]), E = [
844
+ // {
845
+ // icon: <BsGridFill size={16} />,
846
+ // title: "View",
847
+ // onClick: handleViewChange,
848
+ // },
849
+ {
850
+ icon: /* @__PURE__ */ r.jsx(en, { size: 16 }),
851
+ title: "Refresh",
852
+ onClick: c
853
+ }
854
+ ], I = (_, F, S) => {
855
+ const x = S.files[0], T = _.filter((k) => {
856
+ const L = k.path === x.path && k.name === x.name, ee = k.path.startsWith(
857
+ x.path + "/" + x.name
858
+ );
859
+ return L || ee;
860
+ });
861
+ O(_, F, S, T), S.isMoving && p(null), d(!1), h(null);
862
+ };
863
+ je(() => {
864
+ A((_) => _.map((F) => F.text === "Paste" ? {
865
+ ...F,
866
+ permission: !!o,
867
+ onClick: () => I(f, u, o)
868
+ } : F));
869
+ }, [o, u, f]);
870
+ const V = (_) => {
871
+ p({
872
+ files: [{ ...jt(s, f) }],
873
+ isMoving: _
874
+ });
875
+ };
876
+ if (l) {
877
+ const _ = s.path + "/" + s.name;
878
+ return /* @__PURE__ */ r.jsx("div", { className: "toolbar file-selected", children: /* @__PURE__ */ r.jsxs("div", { className: "file-action-container", children: [
879
+ /* @__PURE__ */ r.jsxs("div", { children: [
880
+ /* @__PURE__ */ r.jsxs("button", { className: "item-action file-action", onClick: () => V(!0), children: [
881
+ /* @__PURE__ */ r.jsx(zt, { size: 18 }),
882
+ /* @__PURE__ */ r.jsx("span", { children: "Cut" })
883
+ ] }),
884
+ /* @__PURE__ */ r.jsxs("button", { className: "item-action file-action", onClick: () => V(!1), children: [
885
+ /* @__PURE__ */ r.jsx(Vt, { strokeWidth: 0.1, size: 17 }),
886
+ /* @__PURE__ */ r.jsx("span", { children: "Copy" })
887
+ ] }),
888
+ s.isDirectory ? /* @__PURE__ */ r.jsxs(
889
+ "button",
890
+ {
891
+ className: "item-action file-action",
892
+ onClick: () => I(f, _, o),
893
+ disabled: !o,
894
+ children: [
895
+ /* @__PURE__ */ r.jsx(xt, { size: 18 }),
896
+ /* @__PURE__ */ r.jsx("span", { children: "Paste" })
897
+ ]
898
+ }
899
+ ) : /* @__PURE__ */ r.jsx(r.Fragment, {}),
900
+ /* @__PURE__ */ r.jsxs(
901
+ "button",
902
+ {
903
+ className: "item-action file-action",
904
+ onClick: () => j.show("rename"),
905
+ children: [
906
+ /* @__PURE__ */ r.jsx(Dt, { size: 19 }),
907
+ /* @__PURE__ */ r.jsx("span", { children: "Rename" })
908
+ ]
909
+ }
910
+ ),
911
+ /* @__PURE__ */ r.jsxs(
912
+ "button",
913
+ {
914
+ className: "item-action file-action",
915
+ onClick: () => j.show("delete"),
916
+ children: [
917
+ /* @__PURE__ */ r.jsx(Ht, { size: 19 }),
918
+ /* @__PURE__ */ r.jsx("span", { children: "Delete" })
919
+ ]
920
+ }
921
+ )
922
+ ] }),
923
+ /* @__PURE__ */ r.jsxs("button", { className: "item-action file-action", onClick: () => d(!1), children: [
924
+ /* @__PURE__ */ r.jsx(nn, { size: 18 }),
925
+ /* @__PURE__ */ r.jsx("span", { children: "Clear Selection" })
926
+ ] })
927
+ ] }) });
928
+ }
929
+ return /* @__PURE__ */ r.jsx("div", { className: "toolbar", children: /* @__PURE__ */ r.jsxs("div", { className: "fm-toolbar", children: [
930
+ /* @__PURE__ */ r.jsx("div", { children: D.filter((_) => _.permission).map((_, F) => /* @__PURE__ */ r.jsxs("button", { className: "item-action", onClick: _.onClick, children: [
931
+ _.icon,
932
+ /* @__PURE__ */ r.jsx("span", { children: _.text })
933
+ ] }, F)) }),
934
+ /* @__PURE__ */ r.jsx("div", { children: E.map((_, F) => /* @__PURE__ */ r.jsxs("div", { className: "toolbar-left-items", children: [
935
+ /* @__PURE__ */ r.jsx(
936
+ "div",
937
+ {
938
+ className: "item-action icon-only",
939
+ title: _.title,
940
+ role: "button",
941
+ onClick: _.onClick,
942
+ children: _.icon
943
+ }
944
+ ),
945
+ F !== E.length - 1 && /* @__PURE__ */ r.jsx("div", { className: "item-separator" })
946
+ ] }, F)) })
947
+ ] }) });
948
+ };
949
+ var Ft = { exports: {} };
950
+ (function(n, v) {
951
+ (function(c, l) {
952
+ n.exports = l(Oe);
953
+ })(kt, function(c) {
954
+ return function(l) {
955
+ var d = {};
956
+ function u(s) {
957
+ if (d[s]) return d[s].exports;
958
+ var h = d[s] = { i: s, l: !1, exports: {} };
959
+ return l[s].call(h.exports, h, h.exports, u), h.l = !0, h.exports;
960
+ }
961
+ return u.m = l, u.c = d, u.d = function(s, h, f) {
962
+ u.o(s, h) || Object.defineProperty(s, h, { enumerable: !0, get: f });
963
+ }, u.r = function(s) {
964
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
965
+ }, u.t = function(s, h) {
966
+ if (1 & h && (s = u(s)), 8 & h || 4 & h && typeof s == "object" && s && s.__esModule) return s;
967
+ var f = /* @__PURE__ */ Object.create(null);
968
+ if (u.r(f), Object.defineProperty(f, "default", { enumerable: !0, value: s }), 2 & h && typeof s != "string") for (var o in s) u.d(f, o, (function(p) {
969
+ return s[p];
970
+ }).bind(null, o));
971
+ return f;
972
+ }, u.n = function(s) {
973
+ var h = s && s.__esModule ? function() {
974
+ return s.default;
975
+ } : function() {
976
+ return s;
977
+ };
978
+ return u.d(h, "a", h), h;
979
+ }, u.o = function(s, h) {
980
+ return Object.prototype.hasOwnProperty.call(s, h);
981
+ }, u.p = "", u(u.s = 4);
982
+ }([function(l, d, u) {
983
+ l.exports = u(2)();
984
+ }, function(l, d) {
985
+ l.exports = c;
986
+ }, function(l, d, u) {
987
+ var s = u(3);
988
+ function h() {
989
+ }
990
+ function f() {
991
+ }
992
+ f.resetWarningCache = h, l.exports = function() {
993
+ function o(j, D, A, E, I, V) {
994
+ if (V !== s) {
995
+ var _ = 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");
996
+ throw _.name = "Invariant Violation", _;
997
+ }
998
+ }
999
+ function p() {
1000
+ return o;
1001
+ }
1002
+ o.isRequired = o;
1003
+ var O = { array: o, bigint: o, bool: o, func: o, number: o, object: o, string: o, symbol: o, any: o, arrayOf: p, element: o, elementType: o, instanceOf: p, node: o, objectOf: p, oneOf: p, oneOfType: p, shape: p, exact: p, checkPropTypes: f, resetWarningCache: h };
1004
+ return O.PropTypes = O, O;
1005
+ };
1006
+ }, function(l, d, u) {
1007
+ l.exports = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1008
+ }, function(l, d, u) {
1009
+ u.r(d);
1010
+ var s = u(1), h = u.n(s), f = u(0), o = u.n(f), p = function(x) {
1011
+ return x !== 0;
1012
+ };
1013
+ function O() {
1014
+ return (O = Object.assign ? Object.assign.bind() : function(x) {
1015
+ for (var T = 1; T < arguments.length; T++) {
1016
+ var k = arguments[T];
1017
+ for (var L in k) Object.prototype.hasOwnProperty.call(k, L) && (x[L] = k[L]);
1018
+ }
1019
+ return x;
1020
+ }).apply(this, arguments);
1021
+ }
1022
+ function j(x) {
1023
+ return (j = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(T) {
1024
+ return typeof T;
1025
+ } : function(T) {
1026
+ return T && typeof Symbol == "function" && T.constructor === Symbol && T !== Symbol.prototype ? "symbol" : typeof T;
1027
+ })(x);
1028
+ }
1029
+ function D(x, T) {
1030
+ for (var k = 0; k < T.length; k++) {
1031
+ var L = T[k];
1032
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(x, L.key, L);
1033
+ }
1034
+ }
1035
+ function A(x, T) {
1036
+ return (A = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(k, L) {
1037
+ return k.__proto__ = L, k;
1038
+ })(x, T);
1039
+ }
1040
+ function E(x) {
1041
+ var T = function() {
1042
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
1043
+ if (typeof Proxy == "function") return !0;
1044
+ try {
1045
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1046
+ })), !0;
1047
+ } catch {
1048
+ return !1;
1049
+ }
1050
+ }();
1051
+ return function() {
1052
+ var k, L = _(x);
1053
+ if (T) {
1054
+ var ee = _(this).constructor;
1055
+ k = Reflect.construct(L, arguments, ee);
1056
+ } else k = L.apply(this, arguments);
1057
+ return I(this, k);
1058
+ };
1059
+ }
1060
+ function I(x, T) {
1061
+ if (T && (j(T) === "object" || typeof T == "function")) return T;
1062
+ if (T !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
1063
+ return V(x);
1064
+ }
1065
+ function V(x) {
1066
+ if (x === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1067
+ return x;
1068
+ }
1069
+ function _(x) {
1070
+ return (_ = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(T) {
1071
+ return T.__proto__ || Object.getPrototypeOf(T);
1072
+ })(x);
1073
+ }
1074
+ function F(x, T, k) {
1075
+ return T in x ? Object.defineProperty(x, T, { value: k, enumerable: !0, configurable: !0, writable: !0 }) : x[T] = k, x;
1076
+ }
1077
+ var S = function(x) {
1078
+ (function(K, N) {
1079
+ if (typeof N != "function" && N !== null) throw new TypeError("Super expression must either be null or a function");
1080
+ K.prototype = Object.create(N && N.prototype, { constructor: { value: K, writable: !0, configurable: !0 } }), Object.defineProperty(K, "prototype", { writable: !1 }), N && A(K, N);
1081
+ })(ee, x);
1082
+ var T, k, L = E(ee);
1083
+ function ee(K) {
1084
+ var N;
1085
+ return function(Z, te) {
1086
+ if (!(Z instanceof te)) throw new TypeError("Cannot call a class as a function");
1087
+ }(this, ee), F(V(N = L.call(this, K)), "continueOpenCollapsible", function() {
1088
+ var Z = V(N).innerRef;
1089
+ N.setState({ height: Z.scrollHeight, transition: "height ".concat(N.props.transitionTime, "ms ").concat(N.props.easing), isClosed: !1, hasBeenOpened: !0, inTransition: p(Z.scrollHeight), shouldOpenOnNextCycle: !1 });
1090
+ }), F(V(N), "handleTriggerClick", function(Z) {
1091
+ N.props.triggerDisabled || N.state.inTransition || (Z.preventDefault(), N.props.handleTriggerClick ? N.props.handleTriggerClick(N.props.accordionPosition) : N.state.isClosed === !0 ? (N.openCollapsible(), N.props.onOpening(), N.props.onTriggerOpening()) : (N.closeCollapsible(), N.props.onClosing(), N.props.onTriggerClosing()));
1092
+ }), F(V(N), "handleTransitionEnd", function(Z) {
1093
+ Z.target === N.innerRef && (N.state.isClosed ? (N.setState({ inTransition: !1 }), N.props.onClose()) : (N.setState({ height: "auto", overflow: N.props.overflowWhenOpen, inTransition: !1 }), N.props.onOpen()));
1094
+ }), F(V(N), "setInnerRef", function(Z) {
1095
+ return N.innerRef = Z;
1096
+ }), N.timeout = void 0, N.contentId = K.contentElementId || "collapsible-content-".concat(Date.now()), N.triggerId = K.triggerElementProps.id || "collapsible-trigger-".concat(Date.now()), K.open ? N.state = { isClosed: !1, shouldSwitchAutoOnNextCycle: !1, height: "auto", transition: "none", hasBeenOpened: !0, overflow: K.overflowWhenOpen, inTransition: !1 } : N.state = { isClosed: !0, shouldSwitchAutoOnNextCycle: !1, height: 0, transition: "height ".concat(K.transitionTime, "ms ").concat(K.easing), hasBeenOpened: !1, overflow: "hidden", inTransition: !1 }, N;
1097
+ }
1098
+ return T = ee, (k = [{ key: "componentDidUpdate", value: function(K, N) {
1099
+ var Z = this;
1100
+ this.state.shouldOpenOnNextCycle && this.continueOpenCollapsible(), N.height !== "auto" && N.height !== 0 || this.state.shouldSwitchAutoOnNextCycle !== !0 || (window.clearTimeout(this.timeout), this.timeout = window.setTimeout(function() {
1101
+ Z.setState({ height: 0, overflow: "hidden", isClosed: !0, shouldSwitchAutoOnNextCycle: !1 });
1102
+ }, 50)), K.open !== this.props.open && (this.props.open === !0 ? (this.openCollapsible(), this.props.onOpening()) : (this.closeCollapsible(), this.props.onClosing()));
1103
+ } }, { key: "componentWillUnmount", value: function() {
1104
+ window.clearTimeout(this.timeout);
1105
+ } }, { key: "closeCollapsible", value: function() {
1106
+ var K = this.innerRef;
1107
+ this.setState({ shouldSwitchAutoOnNextCycle: !0, height: K.scrollHeight, transition: "height ".concat(this.props.transitionCloseTime ? this.props.transitionCloseTime : this.props.transitionTime, "ms ").concat(this.props.easing), inTransition: p(K.scrollHeight) });
1108
+ } }, { key: "openCollapsible", value: function() {
1109
+ this.setState({ inTransition: p(this.innerRef.scrollHeight), shouldOpenOnNextCycle: !0 });
1110
+ } }, { key: "renderNonClickableTriggerElement", value: function() {
1111
+ var K = this.props, N = K.triggerSibling, Z = K.classParentString;
1112
+ if (!N) return null;
1113
+ switch (j(N)) {
1114
+ case "string":
1115
+ return h.a.createElement("span", { className: "".concat(Z, "__trigger-sibling") }, N);
1116
+ case "function":
1117
+ return N();
1118
+ case "object":
1119
+ return N;
1120
+ default:
1121
+ return null;
1122
+ }
1123
+ } }, { key: "render", value: function() {
1124
+ var K = this, N = { height: this.state.height, WebkitTransition: this.state.transition, msTransition: this.state.transition, transition: this.state.transition, overflow: this.state.overflow }, Z = this.state.isClosed ? "is-closed" : "is-open", te = this.props.triggerDisabled ? "is-disabled" : "", oe = this.state.isClosed === !1 && this.props.triggerWhenOpen !== void 0 ? this.props.triggerWhenOpen : this.props.trigger, de = this.props.contentContainerTagName, ce = this.props.triggerTagName, ve = this.props.lazyRender && !this.state.hasBeenOpened && this.state.isClosed && !this.state.inTransition ? null : this.props.children, ue = this.props, J = ue.classParentString, fe = ue.contentOuterClassName, pe = ue.contentInnerClassName, w = "".concat(J, "__trigger ").concat(Z, " ").concat(te, " ").concat(this.state.isClosed ? this.props.triggerClassName : this.props.triggerOpenedClassName), z = "".concat(J, " ").concat(this.state.isClosed ? this.props.className : this.props.openedClassName), B = "".concat(J, "__contentOuter ").concat(fe), Y = "".concat(J, "__contentInner ").concat(pe);
1125
+ return h.a.createElement(de, O({ className: z.trim() }, this.props.containerElementProps), h.a.createElement(ce, O({ id: this.triggerId, className: w.trim(), onClick: this.handleTriggerClick, style: this.props.triggerStyle && this.props.triggerStyle, onKeyPress: function(U) {
1126
+ var i = U.key;
1127
+ (i === " " && K.props.triggerTagName.toLowerCase() !== "button" || i === "Enter") && K.handleTriggerClick(U);
1128
+ }, 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), oe), this.renderNonClickableTriggerElement(), h.a.createElement("div", { id: this.contentId, className: B.trim(), style: N, onTransitionEnd: this.handleTransitionEnd, ref: this.setInnerRef, hidden: this.props.contentHiddenWhenClosed && this.state.isClosed && !this.state.inTransition, role: "region", "aria-labelledby": this.triggerId }, h.a.createElement("div", { className: Y.trim() }, ve)));
1129
+ } }]) && D(T.prototype, k), Object.defineProperty(T, "prototype", { writable: !1 }), ee;
1130
+ }(s.Component);
1131
+ S.propTypes = { transitionTime: o.a.number, transitionCloseTime: o.a.number, triggerTagName: o.a.string, easing: o.a.string, open: o.a.bool, containerElementProps: o.a.object, triggerElementProps: o.a.object, contentElementId: o.a.string, classParentString: o.a.string, className: o.a.string, openedClassName: o.a.string, triggerStyle: o.a.object, triggerClassName: o.a.string, triggerOpenedClassName: o.a.string, contentOuterClassName: o.a.string, contentInnerClassName: o.a.string, accordionPosition: o.a.oneOfType([o.a.string, o.a.number]), handleTriggerClick: o.a.func, onOpen: o.a.func, onClose: o.a.func, onOpening: o.a.func, onClosing: o.a.func, onTriggerOpening: o.a.func, onTriggerClosing: o.a.func, trigger: o.a.oneOfType([o.a.string, o.a.element]), triggerWhenOpen: o.a.oneOfType([o.a.string, o.a.element]), triggerDisabled: o.a.bool, lazyRender: o.a.bool, overflowWhenOpen: o.a.oneOf(["hidden", "visible", "auto", "scroll", "inherit", "initial", "unset"]), contentHiddenWhenClosed: o.a.bool, triggerSibling: o.a.oneOfType([o.a.string, o.a.element, o.a.func]), tabIndex: o.a.number, contentContainerTagName: o.a.string, children: o.a.oneOfType([o.a.string, o.a.element]) }, S.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() {
1132
+ }, onClose: function() {
1133
+ }, onOpening: function() {
1134
+ }, onClosing: function() {
1135
+ }, onTriggerOpening: function() {
1136
+ }, onTriggerClosing: function() {
1137
+ }, tabIndex: null, contentContainerTagName: "div", triggerElementProps: {} }, d.default = S;
1138
+ }]);
1139
+ });
1140
+ })(Ft);
1141
+ var dn = Ft.exports;
1142
+ const pn = /* @__PURE__ */ Mt(dn);
1143
+ function St(n) {
1144
+ return le({ tag: "svg", attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M527.9 224H480v-48c0-26.5-21.5-48-48-48H272l-64-64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h400c16.5 0 31.9-8.5 40.7-22.6l79.9-128c20-31.9-3-73.4-40.7-73.4zM48 118c0-3.3 2.7-6 6-6h134.1l64 64H426c3.3 0 6 2.7 6 6v42H152c-16.8 0-32.4 8.8-41.1 23.2L48 351.4zm400 282H72l77.2-128H528z" }, child: [] }] })(n);
1145
+ }
1146
+ function Nt(n) {
1147
+ return le({ 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: [] }] })(n);
1148
+ }
1149
+ const It = ({ folder: n, setCurrentPath: v, currentPath: c }) => {
1150
+ const [l, d] = re(!1), [u, s] = re(!1), h = `${n.path}/${n.name}`, f = () => {
1151
+ s(!0), v(h);
1152
+ }, o = (p) => {
1153
+ p.stopPropagation(), d((O) => !O);
1154
+ };
1155
+ return je(() => {
1156
+ s(c === h);
1157
+ const p = c.split("/");
1158
+ p.pop(), p.join("/") === h && d(!0);
1159
+ }, [c]), n.subDirectories ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1160
+ /* @__PURE__ */ r.jsxs(
1161
+ "div",
1162
+ {
1163
+ className: `sb-folders-list-item ${u ? "active-list-item" : ""}`,
1164
+ onClick: f,
1165
+ children: [
1166
+ /* @__PURE__ */ r.jsx("span", { onClick: o, children: /* @__PURE__ */ r.jsx(
1167
+ rn,
1168
+ {
1169
+ size: 20,
1170
+ className: `${l ? "folder-rotate-down" : "folder-rotate-right"}`
1171
+ }
1172
+ ) }),
1173
+ /* @__PURE__ */ r.jsxs("div", { className: "sb-folder-details", children: [
1174
+ l || u ? /* @__PURE__ */ r.jsx(St, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ r.jsx(Nt, { size: 17, className: "folder-close-icon" }),
1175
+ /* @__PURE__ */ r.jsx("span", { className: "sb-folder-name", title: n.name, children: n.name })
1176
+ ] })
1177
+ ]
1178
+ }
1179
+ ),
1180
+ /* @__PURE__ */ r.jsx(pn, { open: l, children: /* @__PURE__ */ r.jsx("div", { className: "folder-collapsible", children: n.subDirectories.map((p, O) => /* @__PURE__ */ r.jsx(
1181
+ It,
1182
+ {
1183
+ folder: p,
1184
+ setCurrentPath: v,
1185
+ currentPath: c
1186
+ },
1187
+ O
1188
+ )) }) })
1189
+ ] }) : /* @__PURE__ */ r.jsxs(
1190
+ "div",
1191
+ {
1192
+ className: `sb-folders-list-item ${u ? "active-list-item" : ""}`,
1193
+ onClick: f,
1194
+ children: [
1195
+ /* @__PURE__ */ r.jsx("span", { className: "non-expanable" }),
1196
+ /* @__PURE__ */ r.jsxs("div", { className: "sb-folder-details", children: [
1197
+ u ? /* @__PURE__ */ r.jsx(St, { size: 20, className: "folder-open-icon" }) : /* @__PURE__ */ r.jsx(Nt, { size: 17, className: "folder-close-icon" }),
1198
+ /* @__PURE__ */ r.jsx("span", { className: "sb-folder-name", title: n.name, children: n.name })
1199
+ ] })
1200
+ ]
1201
+ }
1202
+ );
1203
+ }, hn = ({ files: n, currentPath: v, setCurrentPath: c }) => {
1204
+ const [l, d] = re([]), u = (s, h) => {
1205
+ var o;
1206
+ var f = s.path + "/" + s.name;
1207
+ return h[f] ? (o = h[f]) == null ? void 0 : o.map((p) => ({
1208
+ ...p,
1209
+ subDirectories: u(p, h)
1210
+ })) : null;
1211
+ };
1212
+ return je(() => {
1213
+ const s = n.filter((f) => f.isDirectory), h = Object.groupBy(s, ({ path: f }) => f);
1214
+ d(() => {
1215
+ var f;
1216
+ return s.length > 0 ? (f = h[""]) == null ? void 0 : f.map((o) => ({
1217
+ ...o,
1218
+ subDirectories: u(o, h)
1219
+ })) : [];
1220
+ });
1221
+ }, [n]), /* @__PURE__ */ r.jsx("div", { className: "sb-folders-list", children: (l == null ? void 0 : l.length) > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: l == null ? void 0 : l.map((s, h) => /* @__PURE__ */ r.jsx(
1222
+ It,
1223
+ {
1224
+ folder: s,
1225
+ setCurrentPath: c,
1226
+ currentPath: v
1227
+ },
1228
+ h
1229
+ )) }) : /* @__PURE__ */ r.jsx("div", { className: "empty-nav-pane", children: "Nothing here yet" }) });
1230
+ }, vn = ({ currentPath: n, setCurrentPath: v }) => {
1231
+ const [c, l] = re([]);
1232
+ je(() => {
1233
+ l(n == null ? void 0 : n.split("/"));
1234
+ }, [n]);
1235
+ const d = (u) => {
1236
+ u < c.length - 1 && v(() => {
1237
+ const s = c.length - (u + 1);
1238
+ return c.slice(0, -s).join("/");
1239
+ });
1240
+ };
1241
+ return /* @__PURE__ */ r.jsx("div", { className: "breadcrumb", children: c.map((u, s) => /* @__PURE__ */ r.jsx(
1242
+ "span",
1243
+ {
1244
+ className: "folder-name",
1245
+ onClick: () => d(s),
1246
+ children: s === 0 ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1247
+ /* @__PURE__ */ r.jsx(tn, {}),
1248
+ " Home"
1249
+ ] }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1250
+ /* @__PURE__ */ r.jsx(sn, {}),
1251
+ " ",
1252
+ u
1253
+ ] })
1254
+ },
1255
+ s
1256
+ )) });
1257
+ };
1258
+ function mn(n) {
1259
+ return le({ 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: [] }] })(n);
1260
+ }
1261
+ const gn = ({
1262
+ children: n,
1263
+ contextMenuRef: v,
1264
+ content: c,
1265
+ visible: l,
1266
+ setVisible: d
1267
+ }) => {
1268
+ const [u, s] = re(0), [h, f] = re(0), o = (p) => {
1269
+ p.preventDefault(), d(!0);
1270
+ const O = p.clientX, j = p.clientY, D = window.innerWidth, A = window.innerHeight, E = 112, I = 82, V = D - O > E, _ = !V, F = A - j > I, S = !F;
1271
+ V ? s(`${O + 5}px`) : _ && s(`${O - E - 5}px`), F ? f(`${j + 5}px`) : S && f(`${j - I - 5}px`);
1272
+ };
1273
+ return /* @__PURE__ */ r.jsxs("div", { onContextMenu: o, onClick: (p) => d(!1), children: [
1274
+ n,
1275
+ l && /* @__PURE__ */ r.jsx(
1276
+ "div",
1277
+ {
1278
+ ref: v,
1279
+ className: "fm-context-menu",
1280
+ style: {
1281
+ top: h,
1282
+ left: u
1283
+ },
1284
+ children: c
1285
+ }
1286
+ )
1287
+ ] });
1288
+ }, yn = (n) => {
1289
+ const v = Ke(null), c = (l) => {
1290
+ var d;
1291
+ (d = v.current) != null && d.contains(l.target) || n();
1292
+ };
1293
+ return je(() => (document.addEventListener("mousedown", c, !0), () => {
1294
+ document.removeEventListener("mousedown", c, !0);
1295
+ }), []), v;
1296
+ }, Lt = (n) => ({
1297
+ pdf: /* @__PURE__ */ r.jsx(cn, { size: n }),
1298
+ jpg: /* @__PURE__ */ r.jsx(gt, { size: n }),
1299
+ jpeg: /* @__PURE__ */ r.jsx(gt, { size: n }),
1300
+ png: /* @__PURE__ */ r.jsx(gt, { size: n }),
1301
+ txt: /* @__PURE__ */ r.jsx(ln, { size: n }),
1302
+ doc: /* @__PURE__ */ r.jsx(Pt, { size: n }),
1303
+ docx: /* @__PURE__ */ r.jsx(Pt, { size: n })
1304
+ }), bn = ({
1305
+ file: n,
1306
+ index: v,
1307
+ selectedFileIndex: c,
1308
+ setSelectedFileIndex: l,
1309
+ setCurrentPath: d,
1310
+ isItemSelection: u,
1311
+ setIsItemSelection: s,
1312
+ setSelectedFile: h,
1313
+ currentPath: f,
1314
+ clipBoard: o,
1315
+ setClipBoard: p,
1316
+ handlePaste: O,
1317
+ files: j,
1318
+ triggerAction: D
1319
+ }) => {
1320
+ var ve, ue;
1321
+ const A = Lt(48), [E, I] = re(!1), [V, _] = re(!1), [F, S] = re(0), [x, T] = re(!1), k = (o == null ? void 0 : o.isMoving) && o.files.find((J) => J.name === n.name && J.path === n.path), L = yn(() => {
1322
+ I(!1);
1323
+ }), ee = (J, fe) => {
1324
+ J.stopPropagation(), p({
1325
+ files: [{ ...jt(n, j) }],
1326
+ isMoving: fe
1327
+ }), I(!1);
1328
+ }, K = (J) => {
1329
+ if (J.stopPropagation(), o) {
1330
+ const fe = n.path + "/" + n.name, pe = o.files[0], w = j.filter((z) => {
1331
+ const B = z.path === pe.path && z.name === pe.name, Y = z.path.startsWith(
1332
+ pe.path + "/" + pe.name
1333
+ );
1334
+ return B || Y;
1335
+ });
1336
+ O(j, fe, o, w), o.isMoving && p(null), s(!1), h(null), I(!1);
1337
+ }
1338
+ }, N = (J) => {
1339
+ J.stopPropagation(), I(!1), D.show("rename");
1340
+ }, Z = (J) => {
1341
+ J.stopPropagation(), I(!1), D.show("delete");
1342
+ }, te = () => {
1343
+ I(!1), n.isDirectory ? (d((J) => J + "/" + n.name), l(null)) : T(!0);
1344
+ }, oe = (J) => {
1345
+ J.stopPropagation(), s(!0), h(n), l(v);
1346
+ const fe = (/* @__PURE__ */ new Date()).getTime();
1347
+ fe - F < 300 && (s(!1), te()), S(fe);
1348
+ }, de = (J) => {
1349
+ J.key === "Enter" && te();
1350
+ };
1351
+ je(() => {
1352
+ _(c === v);
1353
+ }, [c]), je(() => {
1354
+ c === v && _(u);
1355
+ }, [u]);
1356
+ const ce = /* @__PURE__ */ r.jsx("div", { className: "file-context-menu-list", children: /* @__PURE__ */ r.jsxs("ul", { children: [
1357
+ /* @__PURE__ */ r.jsxs("li", { onClick: te, children: [
1358
+ n.isDirectory ? /* @__PURE__ */ r.jsx(mn, { size: 20 }) : /* @__PURE__ */ r.jsx(bt, { size: 16 }),
1359
+ /* @__PURE__ */ r.jsx("span", { children: "Open" })
1360
+ ] }),
1361
+ /* @__PURE__ */ r.jsxs("li", { onClick: (J) => ee(J, !0), children: [
1362
+ /* @__PURE__ */ r.jsx(zt, { size: 19 }),
1363
+ /* @__PURE__ */ r.jsx("span", { children: "Cut" })
1364
+ ] }),
1365
+ /* @__PURE__ */ r.jsxs("li", { onClick: (J) => ee(J, !1), children: [
1366
+ /* @__PURE__ */ r.jsx(Vt, { strokeWidth: 0.1, size: 17 }),
1367
+ /* @__PURE__ */ r.jsx("span", { children: "Copy" })
1368
+ ] }),
1369
+ n.isDirectory ? /* @__PURE__ */ r.jsxs("li", { onClick: K, className: `${o ? "" : "disable-paste"}`, children: [
1370
+ /* @__PURE__ */ r.jsx(xt, { size: 18 }),
1371
+ /* @__PURE__ */ r.jsx("span", { children: "Paste" })
1372
+ ] }) : /* @__PURE__ */ r.jsx(r.Fragment, {}),
1373
+ /* @__PURE__ */ r.jsxs("li", { onClick: N, children: [
1374
+ /* @__PURE__ */ r.jsx(Dt, { size: 19 }),
1375
+ /* @__PURE__ */ r.jsx("span", { children: "Rename" })
1376
+ ] }),
1377
+ /* @__PURE__ */ r.jsxs("li", { onClick: Z, children: [
1378
+ /* @__PURE__ */ r.jsx(Ht, { size: 19 }),
1379
+ /* @__PURE__ */ r.jsx("span", { children: "Delete" })
1380
+ ] })
1381
+ ] }) });
1382
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(
1383
+ gn,
1384
+ {
1385
+ contextMenuRef: L,
1386
+ visible: E,
1387
+ setVisible: I,
1388
+ content: ce,
1389
+ children: /* @__PURE__ */ r.jsxs(
1390
+ "div",
1391
+ {
1392
+ className: `file-item ${V ? "background-secondary text-white" : ""} ${k ? "file-moving" : ""}`,
1393
+ title: n.name,
1394
+ onClick: oe,
1395
+ onKeyUp: de,
1396
+ onContextMenu: () => {
1397
+ s(!0), h(n), l(v);
1398
+ },
1399
+ tabIndex: 0,
1400
+ children: [
1401
+ n.isDirectory ? /* @__PURE__ */ r.jsx(un, { size: 48 }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: A[(ue = (ve = n.name) == null ? void 0 : ve.split(".").pop()) == null ? void 0 : ue.toLowerCase()] ?? /* @__PURE__ */ r.jsx(bt, { size: 48 }) }),
1402
+ /* @__PURE__ */ r.jsx("span", { className: "text-truncate file-name", children: n.name })
1403
+ ]
1404
+ }
1405
+ )
1406
+ }
1407
+ ) });
1408
+ }, xn = ({
1409
+ currentPathFiles: n,
1410
+ setCurrentPath: v,
1411
+ isItemSelection: c,
1412
+ setIsItemSelection: l,
1413
+ setSelectedFile: d,
1414
+ currentPath: u,
1415
+ clipBoard: s,
1416
+ setClipBoard: h,
1417
+ handlePaste: f,
1418
+ files: o,
1419
+ triggerAction: p
1420
+ }) => {
1421
+ const [O, j] = re(null);
1422
+ return je(() => {
1423
+ j(null), l(!1), d(null);
1424
+ }, [u]), /* @__PURE__ */ r.jsx(
1425
+ "div",
1426
+ {
1427
+ className: "files",
1428
+ onClick: (D) => {
1429
+ j(null), l(!1), d(null);
1430
+ },
1431
+ children: (n == null ? void 0 : n.length) > 0 ? /* @__PURE__ */ r.jsx(r.Fragment, { children: n.map((D, A) => /* @__PURE__ */ r.jsx(
1432
+ bn,
1433
+ {
1434
+ file: D,
1435
+ index: A,
1436
+ selectedFileIndex: O,
1437
+ setSelectedFileIndex: j,
1438
+ setCurrentPath: v,
1439
+ isItemSelection: c,
1440
+ setIsItemSelection: l,
1441
+ setSelectedFile: d,
1442
+ currentPath: u,
1443
+ clipBoard: s,
1444
+ setClipBoard: h,
1445
+ handlePaste: f,
1446
+ files: o,
1447
+ triggerAction: p
1448
+ },
1449
+ A
1450
+ )) }) : /* @__PURE__ */ r.jsx("div", { className: "empty-folder", children: "This folder is empty." })
1451
+ }
1452
+ );
1453
+ }, jn = () => {
1454
+ const [n, v] = re(!1), [c, l] = re(null);
1455
+ return {
1456
+ isActive: n,
1457
+ actionType: c,
1458
+ show: (s) => {
1459
+ v(!0), l(s);
1460
+ },
1461
+ close: () => {
1462
+ v(!1), l(null);
1463
+ }
1464
+ };
1465
+ }, wn = ({
1466
+ children: n,
1467
+ show: v,
1468
+ setShow: c,
1469
+ heading: l,
1470
+ dialogWidth: d = "25%",
1471
+ contentClassName: u = ""
1472
+ }) => {
1473
+ const s = Ke(null);
1474
+ return je(() => {
1475
+ v ? s.current.showModal() : s.current.close();
1476
+ }, [v]), /* @__PURE__ */ r.jsxs("dialog", { ref: s, className: "fm-modal dialog", style: { width: d }, children: [
1477
+ /* @__PURE__ */ r.jsxs("div", { className: "fm-modal-header", children: [
1478
+ /* @__PURE__ */ r.jsx("span", { className: "fm-modal-heading", children: l }),
1479
+ /* @__PURE__ */ r.jsx(an, { size: 18, onClick: () => c(!1), className: "close-icon", title: "Close" })
1480
+ ] }),
1481
+ n
1482
+ ] });
1483
+ }, _e = ({ onClick: n, type: v = "primary", padding: c = "0.4rem 0.8rem", children: l }) => /* @__PURE__ */ r.jsx(
1484
+ "button",
1485
+ {
1486
+ onClick: n,
1487
+ className: `fm-button fm-button-${v}`,
1488
+ style: { padding: c },
1489
+ children: l
1490
+ }
1491
+ ), Cn = ({
1492
+ files: n,
1493
+ currentPath: v,
1494
+ currentPathFiles: c,
1495
+ handleCreateFolder: l,
1496
+ triggerAction: d
1497
+ }) => {
1498
+ const [u, s] = re("New Folder"), [h, f] = re(!1), [o, p] = re(""), O = (E) => {
1499
+ s(E.target.value), f(!1);
1500
+ }, j = (E) => {
1501
+ /[\\/:*?"<>|]/.test(E.key) ? (E.preventDefault(), p(
1502
+ `A file name can't contain any of the following characters: \\ / : * ? " < > |`
1503
+ ), f(!0)) : f(!1);
1504
+ }, D = () => {
1505
+ const E = u.trim();
1506
+ E === "" ? (p("Folder name cannot be empty."), f(!0)) : c.find((V) => V.name.toLowerCase() === E.toLowerCase()) ? (p(`A folder with the name "${E}" already exits.`), f(!0)) : (l(n, E, v), d.close());
1507
+ }, A = Ke(null);
1508
+ return je(() => {
1509
+ A.current.focus(), A.current.select();
1510
+ }, []), /* @__PURE__ */ r.jsxs("div", { className: "fm-create-folder-container", children: [
1511
+ /* @__PURE__ */ r.jsxs("div", { className: "fm-create-folder-input", children: [
1512
+ /* @__PURE__ */ r.jsx(
1513
+ "input",
1514
+ {
1515
+ ref: A,
1516
+ type: "text",
1517
+ value: u,
1518
+ onChange: O,
1519
+ onKeyDown: j,
1520
+ className: "action-input"
1521
+ }
1522
+ ),
1523
+ h && /* @__PURE__ */ r.jsx("div", { className: "folder-error", children: o })
1524
+ ] }),
1525
+ /* @__PURE__ */ r.jsx("div", { className: "fm-create-folder-action", children: /* @__PURE__ */ r.jsx(_e, { onClick: D, type: "primary", children: "Create" }) })
1526
+ ] });
1527
+ };
1528
+ function On(n) {
1529
+ return le({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "M85.57 446.25h340.86a32 32 0 0 0 28.17-47.17L284.18 82.58c-12.09-22.44-44.27-22.44-56.36 0L57.4 399.08a32 32 0 0 0 28.17 47.17z" }, child: [] }, { tag: "path", attr: { fill: "none", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "32", d: "m250.26 195.39 5.74 122 5.73-121.95a5.74 5.74 0 0 0-5.79-6h0a5.74 5.74 0 0 0-5.68 5.95z" }, child: [] }, { tag: "path", attr: { d: "M256 397.25a20 20 0 1 1 20-20 20 20 0 0 1-20 20z" }, child: [] }] })(n);
1530
+ }
1531
+ const Rn = ({
1532
+ files: n,
1533
+ selectedFile: v,
1534
+ currentPathFiles: c,
1535
+ handleRename: l,
1536
+ triggerAction: d,
1537
+ setSelectedFile: u
1538
+ }) => {
1539
+ const [s, h] = re(v == null ? void 0 : v.name), f = Ke(null), [o, p] = re(!1), [O, j] = re(!1), [D, A] = re("");
1540
+ je(() => {
1541
+ var V, _, F;
1542
+ if (v)
1543
+ if ((V = f == null ? void 0 : f.current) == null || V.focus(), v.isDirectory)
1544
+ (_ = f == null ? void 0 : f.current) == null || _.select();
1545
+ else {
1546
+ const S = v.name.split(".").pop(), x = v.name.length - S.length - 1;
1547
+ (F = f == null ? void 0 : f.current) == null || F.setSelectionRange(0, x);
1548
+ }
1549
+ else
1550
+ p(!1);
1551
+ }, []);
1552
+ const E = (V) => {
1553
+ /[\\/:*?"<>|]/.test(V.key) ? (V.preventDefault(), A(
1554
+ `A file name can't contain any of the following characters: \\ / : * ? " < > |`
1555
+ ), j(!0)) : j(!1);
1556
+ }, I = (V, _) => {
1557
+ if (s === "") {
1558
+ j(!0), A(`${v.isDirectory ? "Folder" : "File"} name is required!`);
1559
+ return;
1560
+ } else if (s === v.name) {
1561
+ d.close();
1562
+ return;
1563
+ } else if (c.some((F) => F.name === s)) {
1564
+ j(!0), A("A file or folder with the same name already exists!");
1565
+ return;
1566
+ } else if (!v.isDirectory && !_) {
1567
+ const F = v.name.split(".").pop(), S = s.split(".").pop();
1568
+ if (F !== S) {
1569
+ p(!0);
1570
+ return;
1571
+ }
1572
+ }
1573
+ l(n, v, s), u((F) => ({ ...F, name: s })), d.close();
1574
+ };
1575
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: o ? /* @__PURE__ */ r.jsxs("div", { className: "fm-rename-folder-container", children: [
1576
+ /* @__PURE__ */ r.jsx("div", { className: "fm-rename-folder-input", children: /* @__PURE__ */ r.jsxs("div", { className: "fm-rename-warning", children: [
1577
+ /* @__PURE__ */ r.jsx(On, { size: 70, color: "orange" }),
1578
+ /* @__PURE__ */ r.jsx("div", { children: "If you change a file name extension, the file might become unusable. Are you sure you want to change it?" })
1579
+ ] }) }),
1580
+ /* @__PURE__ */ r.jsxs("div", { className: "fm-rename-folder-action", children: [
1581
+ /* @__PURE__ */ r.jsx(_e, { type: "secondary", onClick: () => p(!1), children: "No" }),
1582
+ /* @__PURE__ */ r.jsx(_e, { type: "danger", onClick: (V) => I(V, !0), children: "Yes" })
1583
+ ] })
1584
+ ] }) : /* @__PURE__ */ r.jsxs("div", { className: "fm-rename-folder-container", children: [
1585
+ /* @__PURE__ */ r.jsxs("div", { className: "fm-rename-folder-input", children: [
1586
+ /* @__PURE__ */ r.jsx(
1587
+ "input",
1588
+ {
1589
+ ref: f,
1590
+ type: "text",
1591
+ value: s,
1592
+ onChange: (V) => {
1593
+ h(V.target.value), j(!1);
1594
+ },
1595
+ onKeyDown: E,
1596
+ className: "action-input"
1597
+ }
1598
+ ),
1599
+ O && /* @__PURE__ */ r.jsx("div", { className: "folder-error", children: D })
1600
+ ] }),
1601
+ /* @__PURE__ */ r.jsx("div", { className: "fm-rename-folder-action", children: /* @__PURE__ */ r.jsx(_e, { onClick: I, type: "primary", children: "Save" }) })
1602
+ ] }) });
1603
+ }, En = ({
1604
+ files: n,
1605
+ selectedFile: v,
1606
+ triggerAction: c,
1607
+ handleDelete: l,
1608
+ setIsItemSelection: d,
1609
+ setSelectedFile: u
1610
+ }) => {
1611
+ const s = (h) => {
1612
+ l(n, h), d(!1), u(null), c.close();
1613
+ };
1614
+ return /* @__PURE__ */ r.jsxs("div", { className: "file-delete-confirm", children: [
1615
+ /* @__PURE__ */ r.jsxs("p", { className: "file-delete-confirm-text", children: [
1616
+ 'Are you sure you want to delete "',
1617
+ v == null ? void 0 : v.name,
1618
+ '"?'
1619
+ ] }),
1620
+ /* @__PURE__ */ r.jsxs("div", { className: "file-delete-confirm-actions", children: [
1621
+ /* @__PURE__ */ r.jsx(_e, { type: "secondary", onClick: () => c.close(), children: "Cancel" }),
1622
+ /* @__PURE__ */ r.jsx(_e, { type: "danger", onClick: () => s(v), children: "Delete" })
1623
+ ] })
1624
+ ] });
1625
+ };
1626
+ function Tn(n) {
1627
+ return le({ tag: "svg", attr: { viewBox: "0 0 1024 1024", fill: "currentColor", fillRule: "evenodd" }, child: [{ tag: "path", attr: { d: "M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z" }, child: [] }] })(n);
1628
+ }
1629
+ function Pn(n) {
1630
+ return le({ 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: [] }] })(n);
1631
+ }
1632
+ const Sn = (n) => n.split(".").pop(), Nn = ({ percent: n = 0 }) => /* @__PURE__ */ r.jsxs("div", { role: "progressbar", className: "fm-progress", children: [
1633
+ /* @__PURE__ */ r.jsx("div", { className: "fm-progress-bar", children: /* @__PURE__ */ r.jsx("div", { className: "fm-progress-bar-fill", style: { width: `${n}%` } }) }),
1634
+ /* @__PURE__ */ r.jsxs("div", { className: "fm-progress-status", children: [
1635
+ n,
1636
+ "% done"
1637
+ ] })
1638
+ ] }), kn = ({ onFilesSelected: n, allowedFileExtensions: v }) => {
1639
+ const [c, l] = re([]), [d, u] = re(!1), s = Lt(33), h = (o) => {
1640
+ o.preventDefault(), u(!1);
1641
+ const p = o.dataTransfer.files;
1642
+ p.length > 0 && l((O) => [...O, ...p]);
1643
+ }, f = (o) => {
1644
+ const p = o.target.files;
1645
+ p.length > 0 && l((O) => [...O, ...p]);
1646
+ };
1647
+ return /* @__PURE__ */ r.jsxs("div", { className: `fm-upload-file ${c.length > 0 ? "file-selcted" : ""}`, children: [
1648
+ /* @__PURE__ */ r.jsxs("div", { className: "select-files", children: [
1649
+ /* @__PURE__ */ r.jsx(
1650
+ "div",
1651
+ {
1652
+ className: `draggable-file-input ${d ? "dragging" : ""}`,
1653
+ onDrop: h,
1654
+ onDragOver: (o) => o.preventDefault(),
1655
+ onDragEnter: () => u(!0),
1656
+ onDragLeave: () => u(!1),
1657
+ children: /* @__PURE__ */ r.jsxs("div", { className: "input-text", children: [
1658
+ /* @__PURE__ */ r.jsx(Pn, { size: 30 }),
1659
+ /* @__PURE__ */ r.jsx("span", { children: "Drag files to upload" })
1660
+ ] })
1661
+ }
1662
+ ),
1663
+ /* @__PURE__ */ r.jsx("div", { className: "btn-choose-file", children: /* @__PURE__ */ r.jsxs(_e, { padding: "0", children: [
1664
+ /* @__PURE__ */ r.jsx("label", { htmlFor: "chooseFile", children: "Choose File" }),
1665
+ /* @__PURE__ */ r.jsx(
1666
+ "input",
1667
+ {
1668
+ type: "file",
1669
+ id: "chooseFile",
1670
+ className: "choose-file-input",
1671
+ onChange: f,
1672
+ multiple: !0,
1673
+ accept: v
1674
+ }
1675
+ )
1676
+ ] }) })
1677
+ ] }),
1678
+ c.length > 0 && /* @__PURE__ */ r.jsxs("div", { className: "files-progress", children: [
1679
+ /* @__PURE__ */ r.jsx("h2", { children: "Uploading" }),
1680
+ /* @__PURE__ */ r.jsx("ul", { children: c.map((o, p) => /* @__PURE__ */ r.jsxs("li", { children: [
1681
+ /* @__PURE__ */ r.jsx("div", { className: "file-icon", children: s[Sn(o.name)] ?? /* @__PURE__ */ r.jsx(bt, { size: 33 }) }),
1682
+ /* @__PURE__ */ r.jsxs("div", { className: "file", children: [
1683
+ /* @__PURE__ */ r.jsxs("div", { className: "file-details", children: [
1684
+ /* @__PURE__ */ r.jsxs("div", { className: "file-info", children: [
1685
+ /* @__PURE__ */ r.jsx("span", { className: "file-name text-truncate", title: o.name, children: o.name }),
1686
+ /* @__PURE__ */ r.jsxs("span", { className: "file-size", children: [
1687
+ " ",
1688
+ o.size / 1e3,
1689
+ " KB"
1690
+ ] })
1691
+ ] }),
1692
+ /* @__PURE__ */ r.jsx("div", { className: "rm-file", title: "remove", children: /* @__PURE__ */ r.jsx(Tn, {}) })
1693
+ ] }),
1694
+ /* @__PURE__ */ r.jsx(Nn, { percent: 20 })
1695
+ ] })
1696
+ ] }, p)) })
1697
+ ] })
1698
+ ] });
1699
+ }, Mn = ({
1700
+ files: n,
1701
+ triggerAction: v,
1702
+ currentPath: c,
1703
+ currentPathFiles: l,
1704
+ selectedFile: d,
1705
+ setSelectedFile: u,
1706
+ handleCreateFolder: s,
1707
+ handleRename: h,
1708
+ setIsItemSelection: f,
1709
+ handleDelete: o,
1710
+ allowedFileExtensions: p
1711
+ }) => {
1712
+ const [O, j] = re(null), D = {
1713
+ createFolder: {
1714
+ title: "Create Folder",
1715
+ component: /* @__PURE__ */ r.jsx(
1716
+ Cn,
1717
+ {
1718
+ files: n,
1719
+ currentPath: c,
1720
+ currentPathFiles: l,
1721
+ triggerAction: v,
1722
+ handleCreateFolder: s
1723
+ }
1724
+ ),
1725
+ width: "25%"
1726
+ },
1727
+ uploadFile: {
1728
+ title: "Upload File",
1729
+ component: /* @__PURE__ */ r.jsx(kn, { allowedFileExtensions: p }),
1730
+ width: "35%"
1731
+ },
1732
+ rename: {
1733
+ title: "Rename",
1734
+ component: /* @__PURE__ */ r.jsx(
1735
+ Rn,
1736
+ {
1737
+ files: n,
1738
+ selectedFile: d,
1739
+ currentPathFiles: l,
1740
+ triggerAction: v,
1741
+ handleRename: h,
1742
+ setSelectedFile: u
1743
+ }
1744
+ ),
1745
+ width: "25%"
1746
+ },
1747
+ delete: {
1748
+ title: "Delete",
1749
+ component: /* @__PURE__ */ r.jsx(
1750
+ En,
1751
+ {
1752
+ files: n,
1753
+ selectedFile: d,
1754
+ triggerAction: v,
1755
+ handleDelete: o,
1756
+ setIsItemSelection: f,
1757
+ setSelectedFile: u
1758
+ }
1759
+ ),
1760
+ width: "25%"
1761
+ },
1762
+ preview: {
1763
+ title: "Preview"
1764
+ }
1765
+ };
1766
+ return je(() => {
1767
+ if (v.isActive) {
1768
+ const A = v.actionType;
1769
+ j(D[A]);
1770
+ } else
1771
+ j(null);
1772
+ }, [v.isActive]), /* @__PURE__ */ r.jsx(
1773
+ wn,
1774
+ {
1775
+ heading: O == null ? void 0 : O.title,
1776
+ show: v.isActive,
1777
+ setShow: v.close,
1778
+ dialogWidth: O == null ? void 0 : O.width,
1779
+ children: O == null ? void 0 : O.component
1780
+ }
1781
+ );
1782
+ };
1783
+ var $t = { exports: {} };
1784
+ (function(n, v) {
1785
+ (function(l, d) {
1786
+ n.exports = d();
1787
+ })(typeof self < "u" ? self : kt, function() {
1788
+ return (
1789
+ /******/
1790
+ function(c) {
1791
+ var l = {};
1792
+ function d(u) {
1793
+ if (l[u])
1794
+ return l[u].exports;
1795
+ var s = l[u] = {
1796
+ /******/
1797
+ i: u,
1798
+ /******/
1799
+ l: !1,
1800
+ /******/
1801
+ exports: {}
1802
+ /******/
1803
+ };
1804
+ return c[u].call(s.exports, s, s.exports, d), s.l = !0, s.exports;
1805
+ }
1806
+ return d.m = c, d.c = l, d.d = function(u, s, h) {
1807
+ d.o(u, s) || Object.defineProperty(u, s, {
1808
+ /******/
1809
+ configurable: !1,
1810
+ /******/
1811
+ enumerable: !0,
1812
+ /******/
1813
+ get: h
1814
+ /******/
1815
+ });
1816
+ }, d.n = function(u) {
1817
+ var s = u && u.__esModule ? (
1818
+ /******/
1819
+ function() {
1820
+ return u.default;
1821
+ }
1822
+ ) : (
1823
+ /******/
1824
+ function() {
1825
+ return u;
1826
+ }
1827
+ );
1828
+ return d.d(s, "a", s), s;
1829
+ }, d.o = function(u, s) {
1830
+ return Object.prototype.hasOwnProperty.call(u, s);
1831
+ }, d.p = "/", d(d.s = 7);
1832
+ }([
1833
+ /* 0 */
1834
+ /***/
1835
+ function(c, l, d) {
1836
+ var u = function(f) {
1837
+ };
1838
+ process.env.NODE_ENV !== "production" && (u = function(f) {
1839
+ if (f === void 0)
1840
+ throw new Error("invariant requires an error message argument");
1841
+ });
1842
+ function s(h, f, o, p, O, j, D, A) {
1843
+ if (u(f), !h) {
1844
+ var E;
1845
+ if (f === void 0)
1846
+ E = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
1847
+ else {
1848
+ var I = [o, p, O, j, D, A], V = 0;
1849
+ E = new Error(f.replace(/%s/g, function() {
1850
+ return I[V++];
1851
+ })), E.name = "Invariant Violation";
1852
+ }
1853
+ throw E.framesToPop = 1, E;
1854
+ }
1855
+ }
1856
+ c.exports = s;
1857
+ },
1858
+ /* 1 */
1859
+ /***/
1860
+ function(c, l, d) {
1861
+ function u(h) {
1862
+ return function() {
1863
+ return h;
1864
+ };
1865
+ }
1866
+ var s = function() {
1867
+ };
1868
+ s.thatReturns = u, s.thatReturnsFalse = u(!1), s.thatReturnsTrue = u(!0), s.thatReturnsNull = u(null), s.thatReturnsThis = function() {
1869
+ return this;
1870
+ }, s.thatReturnsArgument = function(h) {
1871
+ return h;
1872
+ }, c.exports = s;
1873
+ },
1874
+ /* 2 */
1875
+ /***/
1876
+ function(c, l, d) {
1877
+ /*
1878
+ object-assign
1879
+ (c) Sindre Sorhus
1880
+ @license MIT
1881
+ */
1882
+ var u = Object.getOwnPropertySymbols, s = Object.prototype.hasOwnProperty, h = Object.prototype.propertyIsEnumerable;
1883
+ function f(p) {
1884
+ if (p == null)
1885
+ throw new TypeError("Object.assign cannot be called with null or undefined");
1886
+ return Object(p);
1887
+ }
1888
+ function o() {
1889
+ try {
1890
+ if (!Object.assign)
1891
+ return !1;
1892
+ var p = new String("abc");
1893
+ if (p[5] = "de", Object.getOwnPropertyNames(p)[0] === "5")
1894
+ return !1;
1895
+ for (var O = {}, j = 0; j < 10; j++)
1896
+ O["_" + String.fromCharCode(j)] = j;
1897
+ var D = Object.getOwnPropertyNames(O).map(function(E) {
1898
+ return O[E];
1899
+ });
1900
+ if (D.join("") !== "0123456789")
1901
+ return !1;
1902
+ var A = {};
1903
+ return "abcdefghijklmnopqrst".split("").forEach(function(E) {
1904
+ A[E] = E;
1905
+ }), Object.keys(Object.assign({}, A)).join("") === "abcdefghijklmnopqrst";
1906
+ } catch {
1907
+ return !1;
1908
+ }
1909
+ }
1910
+ c.exports = o() ? Object.assign : function(p, O) {
1911
+ for (var j, D = f(p), A, E = 1; E < arguments.length; E++) {
1912
+ j = Object(arguments[E]);
1913
+ for (var I in j)
1914
+ s.call(j, I) && (D[I] = j[I]);
1915
+ if (u) {
1916
+ A = u(j);
1917
+ for (var V = 0; V < A.length; V++)
1918
+ h.call(j, A[V]) && (D[A[V]] = j[A[V]]);
1919
+ }
1920
+ }
1921
+ return D;
1922
+ };
1923
+ },
1924
+ /* 3 */
1925
+ /***/
1926
+ function(c, l, d) {
1927
+ var u = d(1), s = u;
1928
+ if (process.env.NODE_ENV !== "production") {
1929
+ var h = function(o) {
1930
+ for (var p = arguments.length, O = Array(p > 1 ? p - 1 : 0), j = 1; j < p; j++)
1931
+ O[j - 1] = arguments[j];
1932
+ var D = 0, A = "Warning: " + o.replace(/%s/g, function() {
1933
+ return O[D++];
1934
+ });
1935
+ typeof console < "u" && console.error(A);
1936
+ try {
1937
+ throw new Error(A);
1938
+ } catch {
1939
+ }
1940
+ };
1941
+ s = function(o, p) {
1942
+ if (p === void 0)
1943
+ throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
1944
+ if (p.indexOf("Failed Composite propType: ") !== 0 && !o) {
1945
+ for (var O = arguments.length, j = Array(O > 2 ? O - 2 : 0), D = 2; D < O; D++)
1946
+ j[D - 2] = arguments[D];
1947
+ h.apply(void 0, [p].concat(j));
1948
+ }
1949
+ };
1950
+ }
1951
+ c.exports = s;
1952
+ },
1953
+ /* 4 */
1954
+ /***/
1955
+ function(c, l, d) {
1956
+ var u = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1957
+ c.exports = u;
1958
+ },
1959
+ /* 5 */
1960
+ /***/
1961
+ function(c, l, d) {
1962
+ var u = {};
1963
+ process.env.NODE_ENV !== "production" && Object.freeze(u), c.exports = u;
1964
+ },
1965
+ /* 6 */
1966
+ /***/
1967
+ function(c, l, d) {
1968
+ if (process.env.NODE_ENV !== "production")
1969
+ var u = d(0), s = d(3), h = d(4), f = {};
1970
+ function o(p, O, j, D, A) {
1971
+ if (process.env.NODE_ENV !== "production") {
1972
+ for (var E in p)
1973
+ if (p.hasOwnProperty(E)) {
1974
+ var I;
1975
+ try {
1976
+ u(typeof p[E] == "function", "%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.", D || "React class", j, E, typeof p[E]), I = p[E](O, E, D, j, null, h);
1977
+ } catch (_) {
1978
+ I = _;
1979
+ }
1980
+ if (s(!I || I 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).", D || "React class", j, E, typeof I), I instanceof Error && !(I.message in f)) {
1981
+ f[I.message] = !0;
1982
+ var V = A ? A() : "";
1983
+ s(!1, "Failed %s type: %s%s", j, I.message, V ?? "");
1984
+ }
1985
+ }
1986
+ }
1987
+ }
1988
+ c.exports = o;
1989
+ },
1990
+ /* 7 */
1991
+ /***/
1992
+ function(c, l, d) {
1993
+ Object.defineProperty(l, "__esModule", {
1994
+ value: !0
1995
+ });
1996
+ var u = Object.assign || function(S) {
1997
+ for (var x = 1; x < arguments.length; x++) {
1998
+ var T = arguments[x];
1999
+ for (var k in T)
2000
+ Object.prototype.hasOwnProperty.call(T, k) && (S[k] = T[k]);
2001
+ }
2002
+ return S;
2003
+ }, s = /* @__PURE__ */ function() {
2004
+ function S(x, T) {
2005
+ for (var k = 0; k < T.length; k++) {
2006
+ var L = T[k];
2007
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(x, L.key, L);
2008
+ }
2009
+ }
2010
+ return function(x, T, k) {
2011
+ return T && S(x.prototype, T), k && S(x, k), x;
2012
+ };
2013
+ }(), h = d(8), f = A(h), o = d(11), p = A(o), O = d(14), j = D(O);
2014
+ function D(S) {
2015
+ if (S && S.__esModule)
2016
+ return S;
2017
+ var x = {};
2018
+ if (S != null)
2019
+ for (var T in S)
2020
+ Object.prototype.hasOwnProperty.call(S, T) && (x[T] = S[T]);
2021
+ return x.default = S, x;
2022
+ }
2023
+ function A(S) {
2024
+ return S && S.__esModule ? S : { default: S };
2025
+ }
2026
+ function E(S, x) {
2027
+ var T = {};
2028
+ for (var k in S)
2029
+ x.indexOf(k) >= 0 || Object.prototype.hasOwnProperty.call(S, k) && (T[k] = S[k]);
2030
+ return T;
2031
+ }
2032
+ function I(S, x) {
2033
+ if (!(S instanceof x))
2034
+ throw new TypeError("Cannot call a class as a function");
2035
+ }
2036
+ function V(S, x) {
2037
+ if (!S)
2038
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2039
+ return x && (typeof x == "object" || typeof x == "function") ? x : S;
2040
+ }
2041
+ function _(S, x) {
2042
+ if (typeof x != "function" && x !== null)
2043
+ throw new TypeError("Super expression must either be null or a function, not " + typeof x);
2044
+ S.prototype = Object.create(x && x.prototype, { constructor: { value: S, enumerable: !1, writable: !0, configurable: !0 } }), x && (Object.setPrototypeOf ? Object.setPrototypeOf(S, x) : S.__proto__ = x);
2045
+ }
2046
+ var F = function(S) {
2047
+ _(x, S);
2048
+ function x() {
2049
+ var T, k, L, ee;
2050
+ I(this, x);
2051
+ for (var K = arguments.length, N = Array(K), Z = 0; Z < K; Z++)
2052
+ N[Z] = arguments[Z];
2053
+ return ee = (k = (L = V(this, (T = x.__proto__ || Object.getPrototypeOf(x)).call.apply(T, [this].concat(N))), L), L.state = {
2054
+ delayed: L.props.delay > 0
2055
+ }, k), V(L, ee);
2056
+ }
2057
+ return s(x, [{
2058
+ key: "componentDidMount",
2059
+ value: function() {
2060
+ var k = this, L = this.props.delay, ee = this.state.delayed;
2061
+ ee && (this.timeout = setTimeout(function() {
2062
+ k.setState({
2063
+ delayed: !1
2064
+ });
2065
+ }, L));
2066
+ }
2067
+ }, {
2068
+ key: "componentWillUnmount",
2069
+ value: function() {
2070
+ var k = this.timeout;
2071
+ k && clearTimeout(k);
2072
+ }
2073
+ }, {
2074
+ key: "render",
2075
+ value: function() {
2076
+ var k = this.props, L = k.color;
2077
+ k.delay;
2078
+ var ee = k.type, K = k.height, N = k.width, Z = E(k, ["color", "delay", "type", "height", "width"]), te = this.state.delayed ? "blank" : ee, oe = j[te], de = {
2079
+ fill: L,
2080
+ height: K,
2081
+ width: N
2082
+ };
2083
+ return f.default.createElement("div", u({
2084
+ style: de,
2085
+ dangerouslySetInnerHTML: { __html: oe }
2086
+ }, Z));
2087
+ }
2088
+ }]), x;
2089
+ }(h.Component);
2090
+ F.propTypes = {
2091
+ color: p.default.string,
2092
+ delay: p.default.number,
2093
+ type: p.default.string,
2094
+ height: p.default.oneOfType([p.default.string, p.default.number]),
2095
+ width: p.default.oneOfType([p.default.string, p.default.number])
2096
+ }, F.defaultProps = {
2097
+ color: "#fff",
2098
+ delay: 0,
2099
+ type: "balls",
2100
+ height: 64,
2101
+ width: 64
2102
+ }, l.default = F;
2103
+ },
2104
+ /* 8 */
2105
+ /***/
2106
+ function(c, l, d) {
2107
+ process.env.NODE_ENV === "production" ? c.exports = d(9) : c.exports = d(10);
2108
+ },
2109
+ /* 9 */
2110
+ /***/
2111
+ function(c, l, d) {
2112
+ /** @license React v16.3.2
2113
+ * react.production.min.js
2114
+ *
2115
+ * Copyright (c) 2013-present, Facebook, Inc.
2116
+ *
2117
+ * This source code is licensed under the MIT license found in the
2118
+ * LICENSE file in the root directory of this source tree.
2119
+ */
2120
+ var u = d(2), s = d(0), h = d(5), f = d(1), o = typeof Symbol == "function" && Symbol.for, p = o ? Symbol.for("react.element") : 60103, O = o ? Symbol.for("react.portal") : 60106, j = o ? Symbol.for("react.fragment") : 60107, D = o ? Symbol.for("react.strict_mode") : 60108, A = o ? Symbol.for("react.provider") : 60109, E = o ? Symbol.for("react.context") : 60110, I = o ? Symbol.for("react.async_mode") : 60111, V = o ? Symbol.for("react.forward_ref") : 60112, _ = typeof Symbol == "function" && Symbol.iterator;
2121
+ function F(i) {
2122
+ for (var m = arguments.length - 1, M = "http://reactjs.org/docs/error-decoder.html?invariant=" + i, R = 0; R < m; R++) M += "&args[]=" + encodeURIComponent(arguments[R + 1]);
2123
+ s(!1, "Minified React error #" + i + "; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ", M);
2124
+ }
2125
+ var S = { isMounted: function() {
2126
+ return !1;
2127
+ }, enqueueForceUpdate: function() {
2128
+ }, enqueueReplaceState: function() {
2129
+ }, enqueueSetState: function() {
2130
+ } };
2131
+ function x(i, m, M) {
2132
+ this.props = i, this.context = m, this.refs = h, this.updater = M || S;
2133
+ }
2134
+ x.prototype.isReactComponent = {}, x.prototype.setState = function(i, m) {
2135
+ typeof i != "object" && typeof i != "function" && i != null && F("85"), this.updater.enqueueSetState(this, i, m, "setState");
2136
+ }, x.prototype.forceUpdate = function(i) {
2137
+ this.updater.enqueueForceUpdate(this, i, "forceUpdate");
2138
+ };
2139
+ function T() {
2140
+ }
2141
+ T.prototype = x.prototype;
2142
+ function k(i, m, M) {
2143
+ this.props = i, this.context = m, this.refs = h, this.updater = M || S;
2144
+ }
2145
+ var L = k.prototype = new T();
2146
+ L.constructor = k, u(L, x.prototype), L.isPureReactComponent = !0;
2147
+ var ee = { current: null }, K = Object.prototype.hasOwnProperty, N = { key: !0, ref: !0, __self: !0, __source: !0 };
2148
+ function Z(i, m, M) {
2149
+ var R = void 0, H = {}, W = null, se = null;
2150
+ if (m != null) for (R in m.ref !== void 0 && (se = m.ref), m.key !== void 0 && (W = "" + m.key), m) K.call(m, R) && !N.hasOwnProperty(R) && (H[R] = m[R]);
2151
+ var ne = arguments.length - 2;
2152
+ if (ne === 1) H.children = M;
2153
+ else if (1 < ne) {
2154
+ for (var me = Array(ne), he = 0; he < ne; he++) me[he] = arguments[he + 2];
2155
+ H.children = me;
2156
+ }
2157
+ if (i && i.defaultProps) for (R in ne = i.defaultProps, ne) H[R] === void 0 && (H[R] = ne[R]);
2158
+ return { $$typeof: p, type: i, key: W, ref: se, props: H, _owner: ee.current };
2159
+ }
2160
+ function te(i) {
2161
+ return typeof i == "object" && i !== null && i.$$typeof === p;
2162
+ }
2163
+ function oe(i) {
2164
+ var m = { "=": "=0", ":": "=2" };
2165
+ return "$" + ("" + i).replace(/[=:]/g, function(M) {
2166
+ return m[M];
2167
+ });
2168
+ }
2169
+ var de = /\/+/g, ce = [];
2170
+ function ve(i, m, M, R) {
2171
+ if (ce.length) {
2172
+ var H = ce.pop();
2173
+ return H.result = i, H.keyPrefix = m, H.func = M, H.context = R, H.count = 0, H;
2174
+ }
2175
+ return { result: i, keyPrefix: m, func: M, context: R, count: 0 };
2176
+ }
2177
+ function ue(i) {
2178
+ i.result = null, i.keyPrefix = null, i.func = null, i.context = null, i.count = 0, 10 > ce.length && ce.push(i);
2179
+ }
2180
+ function J(i, m, M, R) {
2181
+ var H = typeof i;
2182
+ (H === "undefined" || H === "boolean") && (i = null);
2183
+ var W = !1;
2184
+ if (i === null) W = !0;
2185
+ else switch (H) {
2186
+ case "string":
2187
+ case "number":
2188
+ W = !0;
2189
+ break;
2190
+ case "object":
2191
+ switch (i.$$typeof) {
2192
+ case p:
2193
+ case O:
2194
+ W = !0;
2195
+ }
2196
+ }
2197
+ if (W) return M(R, i, m === "" ? "." + fe(i, 0) : m), 1;
2198
+ if (W = 0, m = m === "" ? "." : m + ":", Array.isArray(i)) for (var se = 0; se < i.length; se++) {
2199
+ H = i[se];
2200
+ var ne = m + fe(H, se);
2201
+ W += J(H, ne, M, R);
2202
+ }
2203
+ else if (i === null || typeof i > "u" ? ne = null : (ne = _ && i[_] || i["@@iterator"], ne = typeof ne == "function" ? ne : null), typeof ne == "function") for (i = ne.call(i), se = 0; !(H = i.next()).done; ) H = H.value, ne = m + fe(H, se++), W += J(H, ne, M, R);
2204
+ else H === "object" && (M = "" + i, F("31", M === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : M, ""));
2205
+ return W;
2206
+ }
2207
+ function fe(i, m) {
2208
+ return typeof i == "object" && i !== null && i.key != null ? oe(i.key) : m.toString(36);
2209
+ }
2210
+ function pe(i, m) {
2211
+ i.func.call(i.context, m, i.count++);
2212
+ }
2213
+ function w(i, m, M) {
2214
+ var R = i.result, H = i.keyPrefix;
2215
+ i = i.func.call(i.context, m, i.count++), Array.isArray(i) ? z(i, R, M, f.thatReturnsArgument) : i != null && (te(i) && (m = H + (!i.key || m && m.key === i.key ? "" : ("" + i.key).replace(de, "$&/") + "/") + M, i = { $$typeof: p, type: i.type, key: m, ref: i.ref, props: i.props, _owner: i._owner }), R.push(i));
2216
+ }
2217
+ function z(i, m, M, R, H) {
2218
+ var W = "";
2219
+ M != null && (W = ("" + M).replace(de, "$&/") + "/"), m = ve(m, W, R, H), i == null || J(i, "", w, m), ue(m);
2220
+ }
2221
+ var B = { Children: { map: function(i, m, M) {
2222
+ if (i == null) return i;
2223
+ var R = [];
2224
+ return z(i, R, null, m, M), R;
2225
+ }, forEach: function(i, m, M) {
2226
+ if (i == null) return i;
2227
+ m = ve(null, null, m, M), i == null || J(i, "", pe, m), ue(m);
2228
+ }, count: function(i) {
2229
+ return i == null ? 0 : J(i, "", f.thatReturnsNull, null);
2230
+ }, toArray: function(i) {
2231
+ var m = [];
2232
+ return z(i, m, null, f.thatReturnsArgument), m;
2233
+ }, only: function(i) {
2234
+ return te(i) || F("143"), i;
2235
+ } }, createRef: function() {
2236
+ return { current: null };
2237
+ }, Component: x, PureComponent: k, createContext: function(i, m) {
2238
+ return m === void 0 && (m = null), i = {
2239
+ $$typeof: E,
2240
+ _calculateChangedBits: m,
2241
+ _defaultValue: i,
2242
+ _currentValue: i,
2243
+ _changedBits: 0,
2244
+ Provider: null,
2245
+ Consumer: null
2246
+ }, i.Provider = { $$typeof: A, _context: i }, i.Consumer = i;
2247
+ }, forwardRef: function(i) {
2248
+ return { $$typeof: V, render: i };
2249
+ }, Fragment: j, StrictMode: D, unstable_AsyncMode: I, createElement: Z, cloneElement: function(i, m, M) {
2250
+ i == null && F("267", i);
2251
+ var R = void 0, H = u({}, i.props), W = i.key, se = i.ref, ne = i._owner;
2252
+ if (m != null) {
2253
+ m.ref !== void 0 && (se = m.ref, ne = ee.current), m.key !== void 0 && (W = "" + m.key);
2254
+ var me = void 0;
2255
+ i.type && i.type.defaultProps && (me = i.type.defaultProps);
2256
+ for (R in m) K.call(m, R) && !N.hasOwnProperty(R) && (H[R] = m[R] === void 0 && me !== void 0 ? me[R] : m[R]);
2257
+ }
2258
+ if (R = arguments.length - 2, R === 1) H.children = M;
2259
+ else if (1 < R) {
2260
+ me = Array(R);
2261
+ for (var he = 0; he < R; he++) me[he] = arguments[he + 2];
2262
+ H.children = me;
2263
+ }
2264
+ return { $$typeof: p, type: i.type, key: W, ref: se, props: H, _owner: ne };
2265
+ }, createFactory: function(i) {
2266
+ var m = Z.bind(null, i);
2267
+ return m.type = i, m;
2268
+ }, isValidElement: te, version: "16.3.2", __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: { ReactCurrentOwner: ee, assign: u } }, Y = Object.freeze({ default: B }), U = Y && B || Y;
2269
+ c.exports = U.default ? U.default : U;
2270
+ },
2271
+ /* 10 */
2272
+ /***/
2273
+ function(c, l, d) {
2274
+ /** @license React v16.3.2
2275
+ * react.development.js
2276
+ *
2277
+ * Copyright (c) 2013-present, Facebook, Inc.
2278
+ *
2279
+ * This source code is licensed under the MIT license found in the
2280
+ * LICENSE file in the root directory of this source tree.
2281
+ */
2282
+ process.env.NODE_ENV !== "production" && function() {
2283
+ var u = d(2), s = d(0), h = d(5), f = d(3), o = d(1), p = d(6), O = "16.3.2", j = typeof Symbol == "function" && Symbol.for, D = j ? Symbol.for("react.element") : 60103, A = j ? Symbol.for("react.call") : 60104, E = j ? Symbol.for("react.return") : 60105, I = j ? Symbol.for("react.portal") : 60106, V = j ? Symbol.for("react.fragment") : 60107, _ = j ? Symbol.for("react.strict_mode") : 60108, F = j ? Symbol.for("react.provider") : 60109, S = j ? Symbol.for("react.context") : 60110, x = j ? Symbol.for("react.async_mode") : 60111, T = j ? Symbol.for("react.forward_ref") : 60112, k = typeof Symbol == "function" && Symbol.iterator, L = "@@iterator";
2284
+ function ee(e) {
2285
+ if (e === null || typeof e > "u")
2286
+ return null;
2287
+ var a = k && e[k] || e[L];
2288
+ return typeof a == "function" ? a : null;
2289
+ }
2290
+ var K = function() {
2291
+ };
2292
+ {
2293
+ var N = function(e) {
2294
+ for (var a = arguments.length, g = Array(a > 1 ? a - 1 : 0), y = 1; y < a; y++)
2295
+ g[y - 1] = arguments[y];
2296
+ var C = 0, G = "Warning: " + e.replace(/%s/g, function() {
2297
+ return g[C++];
2298
+ });
2299
+ typeof console < "u" && console.warn(G);
2300
+ try {
2301
+ throw new Error(G);
2302
+ } catch {
2303
+ }
2304
+ };
2305
+ K = function(e, a) {
2306
+ if (a === void 0)
2307
+ throw new Error("`warning(condition, format, ...args)` requires a warning message argument");
2308
+ if (!e) {
2309
+ for (var g = arguments.length, y = Array(g > 2 ? g - 2 : 0), C = 2; C < g; C++)
2310
+ y[C - 2] = arguments[C];
2311
+ N.apply(void 0, [a].concat(y));
2312
+ }
2313
+ };
2314
+ }
2315
+ var Z = K, te = {};
2316
+ function oe(e, a) {
2317
+ {
2318
+ var g = e.constructor, y = g && (g.displayName || g.name) || "ReactClass", C = y + "." + a;
2319
+ if (te[C])
2320
+ return;
2321
+ f(!1, "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", a, y), te[C] = !0;
2322
+ }
2323
+ }
2324
+ var de = {
2325
+ /**
2326
+ * Checks whether or not this composite component is mounted.
2327
+ * @param {ReactClass} publicInstance The instance we want to test.
2328
+ * @return {boolean} True if mounted, false otherwise.
2329
+ * @protected
2330
+ * @final
2331
+ */
2332
+ isMounted: function(e) {
2333
+ return !1;
2334
+ },
2335
+ /**
2336
+ * Forces an update. This should only be invoked when it is known with
2337
+ * certainty that we are **not** in a DOM transaction.
2338
+ *
2339
+ * You may want to call this when you know that some deeper aspect of the
2340
+ * component's state has changed but `setState` was not called.
2341
+ *
2342
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
2343
+ * `componentWillUpdate` and `componentDidUpdate`.
2344
+ *
2345
+ * @param {ReactClass} publicInstance The instance that should rerender.
2346
+ * @param {?function} callback Called after component is updated.
2347
+ * @param {?string} callerName name of the calling function in the public API.
2348
+ * @internal
2349
+ */
2350
+ enqueueForceUpdate: function(e, a, g) {
2351
+ oe(e, "forceUpdate");
2352
+ },
2353
+ /**
2354
+ * Replaces all of the state. Always use this or `setState` to mutate state.
2355
+ * You should treat `this.state` as immutable.
2356
+ *
2357
+ * There is no guarantee that `this.state` will be immediately updated, so
2358
+ * accessing `this.state` after calling this method may return the old value.
2359
+ *
2360
+ * @param {ReactClass} publicInstance The instance that should rerender.
2361
+ * @param {object} completeState Next state.
2362
+ * @param {?function} callback Called after component is updated.
2363
+ * @param {?string} callerName name of the calling function in the public API.
2364
+ * @internal
2365
+ */
2366
+ enqueueReplaceState: function(e, a, g, y) {
2367
+ oe(e, "replaceState");
2368
+ },
2369
+ /**
2370
+ * Sets a subset of the state. This only exists because _pendingState is
2371
+ * internal. This provides a merging strategy that is not available to deep
2372
+ * properties which is confusing. TODO: Expose pendingState or don't use it
2373
+ * during the merge.
2374
+ *
2375
+ * @param {ReactClass} publicInstance The instance that should rerender.
2376
+ * @param {object} partialState Next partial state to be merged with state.
2377
+ * @param {?function} callback Called after component is updated.
2378
+ * @param {?string} Name of the calling function in the public API.
2379
+ * @internal
2380
+ */
2381
+ enqueueSetState: function(e, a, g, y) {
2382
+ oe(e, "setState");
2383
+ }
2384
+ };
2385
+ function ce(e, a, g) {
2386
+ this.props = e, this.context = a, this.refs = h, this.updater = g || de;
2387
+ }
2388
+ ce.prototype.isReactComponent = {}, ce.prototype.setState = function(e, a) {
2389
+ typeof e == "object" || typeof e == "function" || e == 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, e, a, "setState");
2390
+ }, ce.prototype.forceUpdate = function(e) {
2391
+ this.updater.enqueueForceUpdate(this, e, "forceUpdate");
2392
+ };
2393
+ {
2394
+ var ve = {
2395
+ isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
2396
+ replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
2397
+ }, ue = function(e, a) {
2398
+ Object.defineProperty(ce.prototype, e, {
2399
+ get: function() {
2400
+ Z(!1, "%s(...) is deprecated in plain JavaScript React classes. %s", a[0], a[1]);
2401
+ }
2402
+ });
2403
+ };
2404
+ for (var J in ve)
2405
+ ve.hasOwnProperty(J) && ue(J, ve[J]);
2406
+ }
2407
+ function fe() {
2408
+ }
2409
+ fe.prototype = ce.prototype;
2410
+ function pe(e, a, g) {
2411
+ this.props = e, this.context = a, this.refs = h, this.updater = g || de;
2412
+ }
2413
+ var w = pe.prototype = new fe();
2414
+ w.constructor = pe, u(w, ce.prototype), w.isPureReactComponent = !0;
2415
+ function z() {
2416
+ var e = {
2417
+ current: null
2418
+ };
2419
+ return Object.seal(e), e;
2420
+ }
2421
+ var B = {
2422
+ /**
2423
+ * @internal
2424
+ * @type {ReactComponent}
2425
+ */
2426
+ current: null
2427
+ }, Y = Object.prototype.hasOwnProperty, U = {
2428
+ key: !0,
2429
+ ref: !0,
2430
+ __self: !0,
2431
+ __source: !0
2432
+ }, i = void 0, m = void 0;
2433
+ function M(e) {
2434
+ if (Y.call(e, "ref")) {
2435
+ var a = Object.getOwnPropertyDescriptor(e, "ref").get;
2436
+ if (a && a.isReactWarning)
2437
+ return !1;
2438
+ }
2439
+ return e.ref !== void 0;
2440
+ }
2441
+ function R(e) {
2442
+ if (Y.call(e, "key")) {
2443
+ var a = Object.getOwnPropertyDescriptor(e, "key").get;
2444
+ if (a && a.isReactWarning)
2445
+ return !1;
2446
+ }
2447
+ return e.key !== void 0;
2448
+ }
2449
+ function H(e, a) {
2450
+ var g = function() {
2451
+ i || (i = !0, f(!1, "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", a));
2452
+ };
2453
+ g.isReactWarning = !0, Object.defineProperty(e, "key", {
2454
+ get: g,
2455
+ configurable: !0
2456
+ });
2457
+ }
2458
+ function W(e, a) {
2459
+ var g = function() {
2460
+ m || (m = !0, f(!1, "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)", a));
2461
+ };
2462
+ g.isReactWarning = !0, Object.defineProperty(e, "ref", {
2463
+ get: g,
2464
+ configurable: !0
2465
+ });
2466
+ }
2467
+ var se = function(e, a, g, y, C, G, X) {
2468
+ var q = {
2469
+ // This tag allows us to uniquely identify this as a React Element
2470
+ $$typeof: D,
2471
+ // Built-in properties that belong on the element
2472
+ type: e,
2473
+ key: a,
2474
+ ref: g,
2475
+ props: X,
2476
+ // Record the component responsible for creating this element.
2477
+ _owner: G
2478
+ };
2479
+ return q._store = {}, Object.defineProperty(q._store, "validated", {
2480
+ configurable: !1,
2481
+ enumerable: !1,
2482
+ writable: !0,
2483
+ value: !1
2484
+ }), Object.defineProperty(q, "_self", {
2485
+ configurable: !1,
2486
+ enumerable: !1,
2487
+ writable: !1,
2488
+ value: y
2489
+ }), Object.defineProperty(q, "_source", {
2490
+ configurable: !1,
2491
+ enumerable: !1,
2492
+ writable: !1,
2493
+ value: C
2494
+ }), Object.freeze && (Object.freeze(q.props), Object.freeze(q)), q;
2495
+ };
2496
+ function ne(e, a, g) {
2497
+ var y = void 0, C = {}, G = null, X = null, q = null, ie = null;
2498
+ if (a != null) {
2499
+ M(a) && (X = a.ref), R(a) && (G = "" + a.key), q = a.__self === void 0 ? null : a.__self, ie = a.__source === void 0 ? null : a.__source;
2500
+ for (y in a)
2501
+ Y.call(a, y) && !U.hasOwnProperty(y) && (C[y] = a[y]);
2502
+ }
2503
+ var ye = arguments.length - 2;
2504
+ if (ye === 1)
2505
+ C.children = g;
2506
+ else if (ye > 1) {
2507
+ for (var be = Array(ye), ge = 0; ge < ye; ge++)
2508
+ be[ge] = arguments[ge + 2];
2509
+ Object.freeze && Object.freeze(be), C.children = be;
2510
+ }
2511
+ if (e && e.defaultProps) {
2512
+ var Me = e.defaultProps;
2513
+ for (y in Me)
2514
+ C[y] === void 0 && (C[y] = Me[y]);
2515
+ }
2516
+ if ((G || X) && (typeof C.$$typeof > "u" || C.$$typeof !== D)) {
2517
+ var Ce = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
2518
+ G && H(C, Ce), X && W(C, Ce);
2519
+ }
2520
+ return se(e, G, X, q, ie, B.current, C);
2521
+ }
2522
+ function me(e, a) {
2523
+ var g = se(e.type, a, e.ref, e._self, e._source, e._owner, e.props);
2524
+ return g;
2525
+ }
2526
+ function he(e, a, g) {
2527
+ e == null && s(!1, "React.cloneElement(...): The argument must be a React element, but you passed %s.", e);
2528
+ var y = void 0, C = u({}, e.props), G = e.key, X = e.ref, q = e._self, ie = e._source, ye = e._owner;
2529
+ if (a != null) {
2530
+ M(a) && (X = a.ref, ye = B.current), R(a) && (G = "" + a.key);
2531
+ var be = void 0;
2532
+ e.type && e.type.defaultProps && (be = e.type.defaultProps);
2533
+ for (y in a)
2534
+ Y.call(a, y) && !U.hasOwnProperty(y) && (a[y] === void 0 && be !== void 0 ? C[y] = be[y] : C[y] = a[y]);
2535
+ }
2536
+ var ge = arguments.length - 2;
2537
+ if (ge === 1)
2538
+ C.children = g;
2539
+ else if (ge > 1) {
2540
+ for (var Me = Array(ge), Ce = 0; Ce < ge; Ce++)
2541
+ Me[Ce] = arguments[Ce + 2];
2542
+ C.children = Me;
2543
+ }
2544
+ return se(e.type, G, X, q, ie, ye, C);
2545
+ }
2546
+ function Re(e) {
2547
+ return typeof e == "object" && e !== null && e.$$typeof === D;
2548
+ }
2549
+ var we = {};
2550
+ we.getCurrentStack = null, we.getStackAddendum = function() {
2551
+ var e = we.getCurrentStack;
2552
+ return e ? e() : null;
2553
+ };
2554
+ var Se = ".", ot = ":";
2555
+ function st(e) {
2556
+ var a = /[=:]/g, g = {
2557
+ "=": "=0",
2558
+ ":": "=2"
2559
+ }, y = ("" + e).replace(a, function(C) {
2560
+ return g[C];
2561
+ });
2562
+ return "$" + y;
2563
+ }
2564
+ var Ae = !1, lt = /\/+/g;
2565
+ function qe(e) {
2566
+ return ("" + e).replace(lt, "$&/");
2567
+ }
2568
+ var Je = 10, Ne = [];
2569
+ function Te(e, a, g, y) {
2570
+ if (Ne.length) {
2571
+ var C = Ne.pop();
2572
+ return C.result = e, C.keyPrefix = a, C.func = g, C.context = y, C.count = 0, C;
2573
+ } else
2574
+ return {
2575
+ result: e,
2576
+ keyPrefix: a,
2577
+ func: g,
2578
+ context: y,
2579
+ count: 0
2580
+ };
2581
+ }
2582
+ function Ge(e) {
2583
+ e.result = null, e.keyPrefix = null, e.func = null, e.context = null, e.count = 0, Ne.length < Je && Ne.push(e);
2584
+ }
2585
+ function Ve(e, a, g, y) {
2586
+ var C = typeof e;
2587
+ (C === "undefined" || C === "boolean") && (e = null);
2588
+ var G = !1;
2589
+ if (e === null)
2590
+ G = !0;
2591
+ else
2592
+ switch (C) {
2593
+ case "string":
2594
+ case "number":
2595
+ G = !0;
2596
+ break;
2597
+ case "object":
2598
+ switch (e.$$typeof) {
2599
+ case D:
2600
+ case I:
2601
+ G = !0;
2602
+ }
2603
+ }
2604
+ if (G)
2605
+ return g(
2606
+ y,
2607
+ e,
2608
+ // If it's the only child, treat the name as if it was wrapped in an array
2609
+ // so that it's consistent if the number of children grows.
2610
+ a === "" ? Se + ke(e, 0) : a
2611
+ ), 1;
2612
+ var X = void 0, q = void 0, ie = 0, ye = a === "" ? Se : a + ot;
2613
+ if (Array.isArray(e))
2614
+ for (var be = 0; be < e.length; be++)
2615
+ X = e[be], q = ye + ke(X, be), ie += Ve(X, q, g, y);
2616
+ else {
2617
+ var ge = ee(e);
2618
+ if (typeof ge == "function") {
2619
+ ge === e.entries && (Ae || f(!1, "Using Maps as children is unsupported and will likely yield unexpected results. Convert it to a sequence/iterable of keyed ReactElements instead.%s", we.getStackAddendum()), Ae = !0);
2620
+ for (var Me = ge.call(e), Ce = void 0, Wt = 0; !(Ce = Me.next()).done; )
2621
+ X = Ce.value, q = ye + ke(X, Wt++), ie += Ve(X, q, g, y);
2622
+ } else if (C === "object") {
2623
+ var wt = "";
2624
+ wt = " If you meant to render a collection of children, use an array instead." + we.getStackAddendum();
2625
+ var Ct = "" + e;
2626
+ s(!1, "Objects are not valid as a React child (found: %s).%s", Ct === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Ct, wt);
2627
+ }
2628
+ }
2629
+ return ie;
2630
+ }
2631
+ function ze(e, a, g) {
2632
+ return e == null ? 0 : Ve(e, "", a, g);
2633
+ }
2634
+ function ke(e, a) {
2635
+ return typeof e == "object" && e !== null && e.key != null ? st(e.key) : a.toString(36);
2636
+ }
2637
+ function ct(e, a, g) {
2638
+ var y = e.func, C = e.context;
2639
+ y.call(C, a, e.count++);
2640
+ }
2641
+ function ut(e, a, g) {
2642
+ if (e == null)
2643
+ return e;
2644
+ var y = Te(null, null, a, g);
2645
+ ze(e, ct, y), Ge(y);
2646
+ }
2647
+ function ft(e, a, g) {
2648
+ var y = e.result, C = e.keyPrefix, G = e.func, X = e.context, q = G.call(X, a, e.count++);
2649
+ Array.isArray(q) ? Fe(q, y, g, o.thatReturnsArgument) : q != null && (Re(q) && (q = me(
2650
+ q,
2651
+ // Keep both the (mapped) and old keys if they differ, just as
2652
+ // traverseAllChildren used to do for objects as children
2653
+ C + (q.key && (!a || a.key !== q.key) ? qe(q.key) + "/" : "") + g
2654
+ )), y.push(q));
2655
+ }
2656
+ function Fe(e, a, g, y, C) {
2657
+ var G = "";
2658
+ g != null && (G = qe(g) + "/");
2659
+ var X = Te(a, G, y, C);
2660
+ ze(e, ft, X), Ge(X);
2661
+ }
2662
+ function dt(e, a, g) {
2663
+ if (e == null)
2664
+ return e;
2665
+ var y = [];
2666
+ return Fe(e, y, null, a, g), y;
2667
+ }
2668
+ function pt(e, a) {
2669
+ return ze(e, o.thatReturnsNull, null);
2670
+ }
2671
+ function ht(e) {
2672
+ var a = [];
2673
+ return Fe(e, a, null, o.thatReturnsArgument), a;
2674
+ }
2675
+ function Ie(e) {
2676
+ return Re(e) || s(!1, "React.Children.only expected to receive a single React element child."), e;
2677
+ }
2678
+ function Xe(e, a) {
2679
+ a === void 0 ? a = null : a === null || typeof a == "function" || f(!1, "createContext: Expected the optional second argument to be a function. Instead received: %s", a);
2680
+ var g = {
2681
+ $$typeof: S,
2682
+ _calculateChangedBits: a,
2683
+ _defaultValue: e,
2684
+ _currentValue: e,
2685
+ _changedBits: 0,
2686
+ // These are circular
2687
+ Provider: null,
2688
+ Consumer: null
2689
+ };
2690
+ return g.Provider = {
2691
+ $$typeof: F,
2692
+ _context: g
2693
+ }, g.Consumer = g, g._currentRenderer = null, g;
2694
+ }
2695
+ function Pe(e) {
2696
+ return typeof e != "function" && f(!1, "forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e), {
2697
+ $$typeof: T,
2698
+ render: e
2699
+ };
2700
+ }
2701
+ var Le = function(e, a, g) {
2702
+ return `
2703
+ in ` + (e || "Unknown") + (a ? " (at " + a.fileName.replace(/^.*[\\\/]/, "") + ":" + a.lineNumber + ")" : g ? " (created by " + g + ")" : "");
2704
+ };
2705
+ function $e(e) {
2706
+ return typeof e == "string" || typeof e == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2707
+ e === V || e === x || e === _ || typeof e == "object" && e !== null && (e.$$typeof === F || e.$$typeof === S || e.$$typeof === T);
2708
+ }
2709
+ function He(e) {
2710
+ var a = e.type;
2711
+ if (typeof a == "function")
2712
+ return a.displayName || a.name;
2713
+ if (typeof a == "string")
2714
+ return a;
2715
+ switch (a) {
2716
+ case V:
2717
+ return "ReactFragment";
2718
+ case I:
2719
+ return "ReactPortal";
2720
+ case A:
2721
+ return "ReactCall";
2722
+ case E:
2723
+ return "ReactReturn";
2724
+ }
2725
+ if (typeof a == "object" && a !== null)
2726
+ switch (a.$$typeof) {
2727
+ case T:
2728
+ var g = a.render.displayName || a.render.name || "";
2729
+ return g !== "" ? "ForwardRef(" + g + ")" : "ForwardRef";
2730
+ }
2731
+ return null;
2732
+ }
2733
+ var xe = void 0, De = void 0, Ze = function() {
2734
+ }, Ee = function() {
2735
+ };
2736
+ xe = null, De = !1, Ze = function(e) {
2737
+ return e == null ? "#empty" : typeof e == "string" || typeof e == "number" ? "#text" : typeof e.type == "string" ? e.type : e.type === V ? "React.Fragment" : e.type.displayName || e.type.name || "Unknown";
2738
+ }, Ee = function() {
2739
+ var e = "";
2740
+ if (xe) {
2741
+ var a = Ze(xe), g = xe._owner;
2742
+ e += Le(a, xe._source, g && He(g));
2743
+ }
2744
+ return e += we.getStackAddendum() || "", e;
2745
+ };
2746
+ function We() {
2747
+ if (B.current) {
2748
+ var e = He(B.current);
2749
+ if (e)
2750
+ return `
2751
+
2752
+ Check the render method of \`` + e + "`.";
2753
+ }
2754
+ return "";
2755
+ }
2756
+ function vt(e) {
2757
+ if (e != null && e.__source !== void 0) {
2758
+ var a = e.__source, g = a.fileName.replace(/^.*[\\\/]/, ""), y = a.lineNumber;
2759
+ return `
2760
+
2761
+ Check your code at ` + g + ":" + y + ".";
2762
+ }
2763
+ return "";
2764
+ }
2765
+ var Qe = {};
2766
+ function et(e) {
2767
+ var a = We();
2768
+ if (!a) {
2769
+ var g = typeof e == "string" ? e : e.displayName || e.name;
2770
+ g && (a = `
2771
+
2772
+ Check the top-level render call using <` + g + ">.");
2773
+ }
2774
+ return a;
2775
+ }
2776
+ function Ue(e, a) {
2777
+ if (!(!e._store || e._store.validated || e.key != null)) {
2778
+ e._store.validated = !0;
2779
+ var g = et(a);
2780
+ if (!Qe[g]) {
2781
+ Qe[g] = !0;
2782
+ var y = "";
2783
+ e && e._owner && e._owner !== B.current && (y = " It was passed a child from " + He(e._owner) + "."), xe = e, f(!1, 'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s', g, y, Ee()), xe = null;
2784
+ }
2785
+ }
2786
+ }
2787
+ function tt(e, a) {
2788
+ if (typeof e == "object") {
2789
+ if (Array.isArray(e))
2790
+ for (var g = 0; g < e.length; g++) {
2791
+ var y = e[g];
2792
+ Re(y) && Ue(y, a);
2793
+ }
2794
+ else if (Re(e))
2795
+ e._store && (e._store.validated = !0);
2796
+ else if (e) {
2797
+ var C = ee(e);
2798
+ if (typeof C == "function" && C !== e.entries)
2799
+ for (var G = C.call(e), X = void 0; !(X = G.next()).done; )
2800
+ Re(X.value) && Ue(X.value, a);
2801
+ }
2802
+ }
2803
+ }
2804
+ function nt(e) {
2805
+ var a = e.type;
2806
+ if (typeof a == "function") {
2807
+ var g = a.displayName || a.name, y = a.propTypes;
2808
+ y ? (xe = e, p(y, e.props, "prop", g, Ee), xe = null) : a.PropTypes !== void 0 && !De && (De = !0, f(!1, "Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown")), typeof a.getDefaultProps == "function" && (a.getDefaultProps.isReactClassApproved || f(!1, "getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."));
2809
+ }
2810
+ }
2811
+ function mt(e) {
2812
+ xe = e;
2813
+ for (var a = Object.keys(e.props), g = 0; g < a.length; g++) {
2814
+ var y = a[g];
2815
+ if (y !== "children" && y !== "key") {
2816
+ f(!1, "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.%s", y, Ee());
2817
+ break;
2818
+ }
2819
+ }
2820
+ e.ref !== null && f(!1, "Invalid attribute `ref` supplied to `React.Fragment`.%s", Ee()), xe = null;
2821
+ }
2822
+ function rt(e, a, g) {
2823
+ var y = $e(e);
2824
+ if (!y) {
2825
+ var C = "";
2826
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (C += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2827
+ var G = vt(a);
2828
+ G ? C += G : C += We(), C += Ee() || "";
2829
+ var X = void 0;
2830
+ e === null ? X = "null" : Array.isArray(e) ? X = "array" : X = typeof e, f(!1, "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", X, C);
2831
+ }
2832
+ var q = ne.apply(this, arguments);
2833
+ if (q == null)
2834
+ return q;
2835
+ if (y)
2836
+ for (var ie = 2; ie < arguments.length; ie++)
2837
+ tt(arguments[ie], e);
2838
+ return e === V ? mt(q) : nt(q), q;
2839
+ }
2840
+ function t(e) {
2841
+ var a = rt.bind(null, e);
2842
+ return a.type = e, Object.defineProperty(a, "type", {
2843
+ enumerable: !1,
2844
+ get: function() {
2845
+ return Z(!1, "Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
2846
+ value: e
2847
+ }), e;
2848
+ }
2849
+ }), a;
2850
+ }
2851
+ function b(e, a, g) {
2852
+ for (var y = he.apply(this, arguments), C = 2; C < arguments.length; C++)
2853
+ tt(arguments[C], y.type);
2854
+ return nt(y), y;
2855
+ }
2856
+ var P = {
2857
+ Children: {
2858
+ map: dt,
2859
+ forEach: ut,
2860
+ count: pt,
2861
+ toArray: ht,
2862
+ only: Ie
2863
+ },
2864
+ createRef: z,
2865
+ Component: ce,
2866
+ PureComponent: pe,
2867
+ createContext: Xe,
2868
+ forwardRef: Pe,
2869
+ Fragment: V,
2870
+ StrictMode: _,
2871
+ unstable_AsyncMode: x,
2872
+ createElement: rt,
2873
+ cloneElement: b,
2874
+ createFactory: t,
2875
+ isValidElement: Re,
2876
+ version: O,
2877
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
2878
+ ReactCurrentOwner: B,
2879
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
2880
+ assign: u
2881
+ }
2882
+ };
2883
+ u(P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
2884
+ // These should not be included in production.
2885
+ ReactDebugCurrentFrame: we,
2886
+ // Shim for React DOM 16.0.0 which still destructured (but not used) this.
2887
+ // TODO: remove in React 17.0.
2888
+ ReactComponentTreeHook: {}
2889
+ });
2890
+ var $ = Object.freeze({
2891
+ default: P
2892
+ }), Q = $ && P || $, ae = Q.default ? Q.default : Q;
2893
+ c.exports = ae;
2894
+ }();
2895
+ },
2896
+ /* 11 */
2897
+ /***/
2898
+ function(c, l, d) {
2899
+ if (process.env.NODE_ENV !== "production") {
2900
+ var u = typeof Symbol == "function" && Symbol.for && Symbol.for("react.element") || 60103, s = function(f) {
2901
+ return typeof f == "object" && f !== null && f.$$typeof === u;
2902
+ }, h = !0;
2903
+ c.exports = d(12)(s, h);
2904
+ } else
2905
+ c.exports = d(13)();
2906
+ },
2907
+ /* 12 */
2908
+ /***/
2909
+ function(c, l, d) {
2910
+ var u = d(1), s = d(0), h = d(3), f = d(2), o = d(4), p = d(6);
2911
+ c.exports = function(O, j) {
2912
+ var D = typeof Symbol == "function" && Symbol.iterator, A = "@@iterator";
2913
+ function E(w) {
2914
+ var z = w && (D && w[D] || w[A]);
2915
+ if (typeof z == "function")
2916
+ return z;
2917
+ }
2918
+ var I = "<<anonymous>>", V = {
2919
+ array: x("array"),
2920
+ bool: x("boolean"),
2921
+ func: x("function"),
2922
+ number: x("number"),
2923
+ object: x("object"),
2924
+ string: x("string"),
2925
+ symbol: x("symbol"),
2926
+ any: T(),
2927
+ arrayOf: k,
2928
+ element: L(),
2929
+ instanceOf: ee,
2930
+ node: te(),
2931
+ objectOf: N,
2932
+ oneOf: K,
2933
+ oneOfType: Z,
2934
+ shape: oe,
2935
+ exact: de
2936
+ };
2937
+ function _(w, z) {
2938
+ return w === z ? w !== 0 || 1 / w === 1 / z : w !== w && z !== z;
2939
+ }
2940
+ function F(w) {
2941
+ this.message = w, this.stack = "";
2942
+ }
2943
+ F.prototype = Error.prototype;
2944
+ function S(w) {
2945
+ if (process.env.NODE_ENV !== "production")
2946
+ var z = {}, B = 0;
2947
+ function Y(i, m, M, R, H, W, se) {
2948
+ if (R = R || I, W = W || M, se !== o) {
2949
+ if (j)
2950
+ s(
2951
+ !1,
2952
+ "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"
2953
+ );
2954
+ else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2955
+ var ne = R + ":" + M;
2956
+ !z[ne] && // Avoid spamming the console because they are often not actionable except for lib authors
2957
+ B < 3 && (h(
2958
+ !1,
2959
+ "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.",
2960
+ W,
2961
+ R
2962
+ ), z[ne] = !0, B++);
2963
+ }
2964
+ }
2965
+ return m[M] == null ? i ? m[M] === null ? new F("The " + H + " `" + W + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new F("The " + H + " `" + W + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : w(m, M, R, H, W);
2966
+ }
2967
+ var U = Y.bind(null, !1);
2968
+ return U.isRequired = Y.bind(null, !0), U;
2969
+ }
2970
+ function x(w) {
2971
+ function z(B, Y, U, i, m, M) {
2972
+ var R = B[Y], H = ue(R);
2973
+ if (H !== w) {
2974
+ var W = J(R);
2975
+ return new F("Invalid " + i + " `" + m + "` of type " + ("`" + W + "` supplied to `" + U + "`, expected ") + ("`" + w + "`."));
2976
+ }
2977
+ return null;
2978
+ }
2979
+ return S(z);
2980
+ }
2981
+ function T() {
2982
+ return S(u.thatReturnsNull);
2983
+ }
2984
+ function k(w) {
2985
+ function z(B, Y, U, i, m) {
2986
+ if (typeof w != "function")
2987
+ return new F("Property `" + m + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
2988
+ var M = B[Y];
2989
+ if (!Array.isArray(M)) {
2990
+ var R = ue(M);
2991
+ return new F("Invalid " + i + " `" + m + "` of type " + ("`" + R + "` supplied to `" + U + "`, expected an array."));
2992
+ }
2993
+ for (var H = 0; H < M.length; H++) {
2994
+ var W = w(M, H, U, i, m + "[" + H + "]", o);
2995
+ if (W instanceof Error)
2996
+ return W;
2997
+ }
2998
+ return null;
2999
+ }
3000
+ return S(z);
3001
+ }
3002
+ function L() {
3003
+ function w(z, B, Y, U, i) {
3004
+ var m = z[B];
3005
+ if (!O(m)) {
3006
+ var M = ue(m);
3007
+ return new F("Invalid " + U + " `" + i + "` of type " + ("`" + M + "` supplied to `" + Y + "`, expected a single ReactElement."));
3008
+ }
3009
+ return null;
3010
+ }
3011
+ return S(w);
3012
+ }
3013
+ function ee(w) {
3014
+ function z(B, Y, U, i, m) {
3015
+ if (!(B[Y] instanceof w)) {
3016
+ var M = w.name || I, R = pe(B[Y]);
3017
+ return new F("Invalid " + i + " `" + m + "` of type " + ("`" + R + "` supplied to `" + U + "`, expected ") + ("instance of `" + M + "`."));
3018
+ }
3019
+ return null;
3020
+ }
3021
+ return S(z);
3022
+ }
3023
+ function K(w) {
3024
+ if (!Array.isArray(w))
3025
+ return process.env.NODE_ENV !== "production" && h(!1, "Invalid argument supplied to oneOf, expected an instance of array."), u.thatReturnsNull;
3026
+ function z(B, Y, U, i, m) {
3027
+ for (var M = B[Y], R = 0; R < w.length; R++)
3028
+ if (_(M, w[R]))
3029
+ return null;
3030
+ var H = JSON.stringify(w);
3031
+ return new F("Invalid " + i + " `" + m + "` of value `" + M + "` " + ("supplied to `" + U + "`, expected one of " + H + "."));
3032
+ }
3033
+ return S(z);
3034
+ }
3035
+ function N(w) {
3036
+ function z(B, Y, U, i, m) {
3037
+ if (typeof w != "function")
3038
+ return new F("Property `" + m + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
3039
+ var M = B[Y], R = ue(M);
3040
+ if (R !== "object")
3041
+ return new F("Invalid " + i + " `" + m + "` of type " + ("`" + R + "` supplied to `" + U + "`, expected an object."));
3042
+ for (var H in M)
3043
+ if (M.hasOwnProperty(H)) {
3044
+ var W = w(M, H, U, i, m + "." + H, o);
3045
+ if (W instanceof Error)
3046
+ return W;
3047
+ }
3048
+ return null;
3049
+ }
3050
+ return S(z);
3051
+ }
3052
+ function Z(w) {
3053
+ if (!Array.isArray(w))
3054
+ return process.env.NODE_ENV !== "production" && h(!1, "Invalid argument supplied to oneOfType, expected an instance of array."), u.thatReturnsNull;
3055
+ for (var z = 0; z < w.length; z++) {
3056
+ var B = w[z];
3057
+ if (typeof B != "function")
3058
+ return h(
3059
+ !1,
3060
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",
3061
+ fe(B),
3062
+ z
3063
+ ), u.thatReturnsNull;
3064
+ }
3065
+ function Y(U, i, m, M, R) {
3066
+ for (var H = 0; H < w.length; H++) {
3067
+ var W = w[H];
3068
+ if (W(U, i, m, M, R, o) == null)
3069
+ return null;
3070
+ }
3071
+ return new F("Invalid " + M + " `" + R + "` supplied to " + ("`" + m + "`."));
3072
+ }
3073
+ return S(Y);
3074
+ }
3075
+ function te() {
3076
+ function w(z, B, Y, U, i) {
3077
+ return ce(z[B]) ? null : new F("Invalid " + U + " `" + i + "` supplied to " + ("`" + Y + "`, expected a ReactNode."));
3078
+ }
3079
+ return S(w);
3080
+ }
3081
+ function oe(w) {
3082
+ function z(B, Y, U, i, m) {
3083
+ var M = B[Y], R = ue(M);
3084
+ if (R !== "object")
3085
+ return new F("Invalid " + i + " `" + m + "` of type `" + R + "` " + ("supplied to `" + U + "`, expected `object`."));
3086
+ for (var H in w) {
3087
+ var W = w[H];
3088
+ if (W) {
3089
+ var se = W(M, H, U, i, m + "." + H, o);
3090
+ if (se)
3091
+ return se;
3092
+ }
3093
+ }
3094
+ return null;
3095
+ }
3096
+ return S(z);
3097
+ }
3098
+ function de(w) {
3099
+ function z(B, Y, U, i, m) {
3100
+ var M = B[Y], R = ue(M);
3101
+ if (R !== "object")
3102
+ return new F("Invalid " + i + " `" + m + "` of type `" + R + "` " + ("supplied to `" + U + "`, expected `object`."));
3103
+ var H = f({}, B[Y], w);
3104
+ for (var W in H) {
3105
+ var se = w[W];
3106
+ if (!se)
3107
+ return new F(
3108
+ "Invalid " + i + " `" + m + "` key `" + W + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(B[Y], null, " ") + `
3109
+ Valid keys: ` + JSON.stringify(Object.keys(w), null, " ")
3110
+ );
3111
+ var ne = se(M, W, U, i, m + "." + W, o);
3112
+ if (ne)
3113
+ return ne;
3114
+ }
3115
+ return null;
3116
+ }
3117
+ return S(z);
3118
+ }
3119
+ function ce(w) {
3120
+ switch (typeof w) {
3121
+ case "number":
3122
+ case "string":
3123
+ case "undefined":
3124
+ return !0;
3125
+ case "boolean":
3126
+ return !w;
3127
+ case "object":
3128
+ if (Array.isArray(w))
3129
+ return w.every(ce);
3130
+ if (w === null || O(w))
3131
+ return !0;
3132
+ var z = E(w);
3133
+ if (z) {
3134
+ var B = z.call(w), Y;
3135
+ if (z !== w.entries) {
3136
+ for (; !(Y = B.next()).done; )
3137
+ if (!ce(Y.value))
3138
+ return !1;
3139
+ } else
3140
+ for (; !(Y = B.next()).done; ) {
3141
+ var U = Y.value;
3142
+ if (U && !ce(U[1]))
3143
+ return !1;
3144
+ }
3145
+ } else
3146
+ return !1;
3147
+ return !0;
3148
+ default:
3149
+ return !1;
3150
+ }
3151
+ }
3152
+ function ve(w, z) {
3153
+ return w === "symbol" || z["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && z instanceof Symbol;
3154
+ }
3155
+ function ue(w) {
3156
+ var z = typeof w;
3157
+ return Array.isArray(w) ? "array" : w instanceof RegExp ? "object" : ve(z, w) ? "symbol" : z;
3158
+ }
3159
+ function J(w) {
3160
+ if (typeof w > "u" || w === null)
3161
+ return "" + w;
3162
+ var z = ue(w);
3163
+ if (z === "object") {
3164
+ if (w instanceof Date)
3165
+ return "date";
3166
+ if (w instanceof RegExp)
3167
+ return "regexp";
3168
+ }
3169
+ return z;
3170
+ }
3171
+ function fe(w) {
3172
+ var z = J(w);
3173
+ switch (z) {
3174
+ case "array":
3175
+ case "object":
3176
+ return "an " + z;
3177
+ case "boolean":
3178
+ case "date":
3179
+ case "regexp":
3180
+ return "a " + z;
3181
+ default:
3182
+ return z;
3183
+ }
3184
+ }
3185
+ function pe(w) {
3186
+ return !w.constructor || !w.constructor.name ? I : w.constructor.name;
3187
+ }
3188
+ return V.checkPropTypes = p, V.PropTypes = V, V;
3189
+ };
3190
+ },
3191
+ /* 13 */
3192
+ /***/
3193
+ function(c, l, d) {
3194
+ var u = d(1), s = d(0), h = d(4);
3195
+ c.exports = function() {
3196
+ function f(O, j, D, A, E, I) {
3197
+ I !== h && s(
3198
+ !1,
3199
+ "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"
3200
+ );
3201
+ }
3202
+ f.isRequired = f;
3203
+ function o() {
3204
+ return f;
3205
+ }
3206
+ var p = {
3207
+ array: f,
3208
+ bool: f,
3209
+ func: f,
3210
+ number: f,
3211
+ object: f,
3212
+ string: f,
3213
+ symbol: f,
3214
+ any: f,
3215
+ arrayOf: o,
3216
+ element: f,
3217
+ instanceOf: o,
3218
+ node: f,
3219
+ objectOf: o,
3220
+ oneOf: o,
3221
+ oneOfType: o,
3222
+ shape: o,
3223
+ exact: o
3224
+ };
3225
+ return p.checkPropTypes = u, p.PropTypes = p, p;
3226
+ };
3227
+ },
3228
+ /* 14 */
3229
+ /***/
3230
+ function(c, l, d) {
3231
+ Object.defineProperty(l, "__esModule", {
3232
+ value: !0
3233
+ });
3234
+ var u = d(15);
3235
+ Object.defineProperty(l, "blank", {
3236
+ enumerable: !0,
3237
+ get: function() {
3238
+ return A(u).default;
3239
+ }
3240
+ });
3241
+ var s = d(16);
3242
+ Object.defineProperty(l, "balls", {
3243
+ enumerable: !0,
3244
+ get: function() {
3245
+ return A(s).default;
3246
+ }
3247
+ });
3248
+ var h = d(17);
3249
+ Object.defineProperty(l, "bars", {
3250
+ enumerable: !0,
3251
+ get: function() {
3252
+ return A(h).default;
3253
+ }
3254
+ });
3255
+ var f = d(18);
3256
+ Object.defineProperty(l, "bubbles", {
3257
+ enumerable: !0,
3258
+ get: function() {
3259
+ return A(f).default;
3260
+ }
3261
+ });
3262
+ var o = d(19);
3263
+ Object.defineProperty(l, "cubes", {
3264
+ enumerable: !0,
3265
+ get: function() {
3266
+ return A(o).default;
3267
+ }
3268
+ });
3269
+ var p = d(20);
3270
+ Object.defineProperty(l, "cylon", {
3271
+ enumerable: !0,
3272
+ get: function() {
3273
+ return A(p).default;
3274
+ }
3275
+ });
3276
+ var O = d(21);
3277
+ Object.defineProperty(l, "spin", {
3278
+ enumerable: !0,
3279
+ get: function() {
3280
+ return A(O).default;
3281
+ }
3282
+ });
3283
+ var j = d(22);
3284
+ Object.defineProperty(l, "spinningBubbles", {
3285
+ enumerable: !0,
3286
+ get: function() {
3287
+ return A(j).default;
3288
+ }
3289
+ });
3290
+ var D = d(23);
3291
+ Object.defineProperty(l, "spokes", {
3292
+ enumerable: !0,
3293
+ get: function() {
3294
+ return A(D).default;
3295
+ }
3296
+ });
3297
+ function A(E) {
3298
+ return E && E.__esModule ? E : { default: E };
3299
+ }
3300
+ },
3301
+ /* 15 */
3302
+ /***/
3303
+ function(c, l) {
3304
+ c.exports = `<svg class="icon-blank" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"></svg>
3305
+ `;
3306
+ },
3307
+ /* 16 */
3308
+ /***/
3309
+ function(c, l) {
3310
+ c.exports = `<svg class="icon-loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3311
+ <path transform="translate(-8 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
3312
+ <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" />
3313
+ </path>
3314
+ <path transform="translate(2 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
3315
+ <animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3316
+ </path>
3317
+ <path transform="translate(12 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
3318
+ <animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3319
+ </path>
3320
+ <path transform="translate(24 0)" d="M4 12 A4 4 0 0 0 4 20 A4 4 0 0 0 4 12">
3321
+ <animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3322
+ </path>
3323
+ </svg>
3324
+ `;
3325
+ },
3326
+ /* 17 */
3327
+ /***/
3328
+ function(c, l) {
3329
+ c.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3330
+ <path transform="translate(2)" d="M0 12 V20 H4 V12z">
3331
+ <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" />
3332
+ </path>
3333
+ <path transform="translate(8)" d="M0 12 V20 H4 V12z">
3334
+ <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.2" 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" />
3335
+ </path>
3336
+ <path transform="translate(14)" d="M0 12 V20 H4 V12z">
3337
+ <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.4" 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" />
3338
+ </path>
3339
+ <path transform="translate(20)" d="M0 12 V20 H4 V12z">
3340
+ <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.6" 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" />
3341
+ </path>
3342
+ <path transform="translate(26)" d="M0 12 V20 H4 V12z">
3343
+ <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.8" 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" />
3344
+ </path>
3345
+ </svg>
3346
+ `;
3347
+ },
3348
+ /* 18 */
3349
+ /***/
3350
+ function(c, l) {
3351
+ c.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3352
+ <circle transform="translate(8 0)" cx="0" cy="16" r="0">
3353
+ <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0"
3354
+ keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3355
+ </circle>
3356
+ <circle transform="translate(16 0)" cx="0" cy="16" r="0">
3357
+ <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.3"
3358
+ keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3359
+ </circle>
3360
+ <circle transform="translate(24 0)" cx="0" cy="16" r="0">
3361
+ <animate attributeName="r" values="0; 4; 0; 0" dur="1.2s" repeatCount="indefinite" begin="0.6"
3362
+ keytimes="0;0.2;0.7;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3363
+ </circle>
3364
+ </svg>
3365
+ `;
3366
+ },
3367
+ /* 19 */
3368
+ /***/
3369
+ function(c, l) {
3370
+ c.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3371
+ <path transform="translate(-8 0)" d="M0 12 V20 H8 V12z">
3372
+ <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" />
3373
+ </path>
3374
+ <path transform="translate(2 0)" d="M0 12 V20 H8 V12z">
3375
+ <animateTransform attributeName="transform" type="translate" values="2 0; 12 0; 12 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.35;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3376
+ </path>
3377
+ <path transform="translate(12 0)" d="M0 12 V20 H8 V12z">
3378
+ <animateTransform attributeName="transform" type="translate" values="12 0; 22 0; 22 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.45;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3379
+ </path>
3380
+ <path transform="translate(24 0)" d="M0 12 V20 H8 V12z">
3381
+ <animateTransform attributeName="transform" type="translate" values="22 0; 32 0; 32 0;" dur="0.8s" repeatCount="indefinite" begin="0" keytimes="0;.55;1" keySplines="0.2 0.2 0.4 0.8;0.2 0.6 0.4 0.8" calcMode="spline" />
3382
+ </path>
3383
+ </svg>
3384
+ `;
3385
+ },
3386
+ /* 20 */
3387
+ /***/
3388
+ function(c, l) {
3389
+ c.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3390
+ <path transform="translate(0 0)" d="M0 12 V20 H4 V12z">
3391
+ <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" />
3392
+ </path>
3393
+ <path opacity="0.5" transform="translate(0 0)" d="M0 12 V20 H4 V12z">
3394
+ <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.1s" 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" />
3395
+ </path>
3396
+ <path opacity="0.25" transform="translate(0 0)" d="M0 12 V20 H4 V12z">
3397
+ <animateTransform attributeName="transform" type="translate" values="0 0; 28 0; 0 0; 0 0" dur="1.5s" begin="0.2s" 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" />
3398
+ </path>
3399
+ </svg>
3400
+ `;
3401
+ },
3402
+ /* 21 */
3403
+ /***/
3404
+ function(c, l) {
3405
+ c.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3406
+ <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"/>
3407
+ <path d="M16 0 A16 16 0 0 1 32 16 L28 16 A12 12 0 0 0 16 4z">
3408
+ <animateTransform attributeName="transform" type="rotate" from="0 16 16" to="360 16 16" dur="0.8s" repeatCount="indefinite" />
3409
+ </path>
3410
+ </svg>
3411
+ `;
3412
+ },
3413
+ /* 22 */
3414
+ /***/
3415
+ function(c, l) {
3416
+ c.exports = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3417
+ <circle cx="16" cy="3" r="0">
3418
+ <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" />
3419
+ </circle>
3420
+ <circle transform="rotate(45 16 16)" cx="16" cy="3" r="0">
3421
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.125s" 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" />
3422
+ </circle>
3423
+ <circle transform="rotate(90 16 16)" cx="16" cy="3" r="0">
3424
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.25s" 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" />
3425
+ </circle>
3426
+ <circle transform="rotate(135 16 16)" cx="16" cy="3" r="0">
3427
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.375s" 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" />
3428
+ </circle>
3429
+ <circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">
3430
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" 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" />
3431
+ </circle>
3432
+ <circle transform="rotate(225 16 16)" cx="16" cy="3" r="0">
3433
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.625s" 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" />
3434
+ </circle>
3435
+ <circle transform="rotate(270 16 16)" cx="16" cy="3" r="0">
3436
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.75s" 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" />
3437
+ </circle>
3438
+ <circle transform="rotate(315 16 16)" cx="16" cy="3" r="0">
3439
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.875s" 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" />
3440
+ </circle>
3441
+ <circle transform="rotate(180 16 16)" cx="16" cy="3" r="0">
3442
+ <animate attributeName="r" values="0;3;0;0" dur="1s" repeatCount="indefinite" begin="0.5s" 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" />
3443
+ </circle>
3444
+ </svg>
3445
+ `;
3446
+ },
3447
+ /* 23 */
3448
+ /***/
3449
+ function(c, l) {
3450
+ c.exports = `<svg id="loading" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
3451
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(0 16 16)">
3452
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0"/>
3453
+ </path>
3454
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(45 16 16)">
3455
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.125s"/>
3456
+ </path>
3457
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(90 16 16)">
3458
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.25s"/>
3459
+ </path>
3460
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(135 16 16)">
3461
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.375s"/>
3462
+ </path>
3463
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(180 16 16)">
3464
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.5s"/>
3465
+ </path>
3466
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(225 16 16)">
3467
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.675s"/>
3468
+ </path>
3469
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(270 16 16)">
3470
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.75s"/>
3471
+ </path>
3472
+ <path opacity=".1" d="M14 0 H18 V8 H14 z" transform="rotate(315 16 16)">
3473
+ <animate attributeName="opacity" from="1" to=".1" dur="1s" repeatCount="indefinite" begin="0.875s"/>
3474
+ </path>
3475
+ </svg>
3476
+ `;
3477
+ }
3478
+ /******/
3479
+ ])
3480
+ );
3481
+ });
3482
+ })($t);
3483
+ var _n = $t.exports;
3484
+ const An = /* @__PURE__ */ Mt(_n), Vn = ({ isLoading: n }) => {
3485
+ if (n)
3486
+ return /* @__PURE__ */ r.jsx("div", { className: "fm-loader", children: /* @__PURE__ */ r.jsx(An, { color: "black", type: "spokes", height: 50, width: 50 }) });
3487
+ }, Hn = ({
3488
+ files: n,
3489
+ onCreateFolder: v,
3490
+ onRename: c,
3491
+ onDelete: l,
3492
+ onPaste: d,
3493
+ onRefresh: u,
3494
+ isLoading: s,
3495
+ allowedFileExtensions: h
3496
+ }) => {
3497
+ const f = jn(), [o, p] = re(!1), [O, j] = re(null), [D, A] = re(""), [E, I] = re([]), [V, _] = re(null);
3498
+ je(() => {
3499
+ I(() => n == null ? void 0 : n.filter((N) => N.path === D));
3500
+ }, [n, D]);
3501
+ const [F, S] = re({ col1: "20", col2: "80" }), [x, T] = re(!1), k = Ke(null), L = () => {
3502
+ T(!0);
3503
+ }, ee = () => {
3504
+ T(!1);
3505
+ }, K = (N) => {
3506
+ if (!x) return;
3507
+ N.preventDefault();
3508
+ const te = k.current.getBoundingClientRect(), oe = (N.clientX - te.left) / te.width * 100;
3509
+ oe >= 15 && oe <= 60 && S({ col1: oe, col2: 100 - oe });
3510
+ };
3511
+ return /* @__PURE__ */ r.jsxs("main", { className: "file-explorer", children: [
3512
+ /* @__PURE__ */ r.jsx(Vn, { isLoading: s }),
3513
+ /* @__PURE__ */ r.jsx(
3514
+ fn,
3515
+ {
3516
+ allowCreateFolder: !0,
3517
+ allowUploadFile: !0,
3518
+ handleRefresh: u,
3519
+ isItemSelection: o,
3520
+ setIsItemSelection: p,
3521
+ currentPath: D,
3522
+ selectedFile: O,
3523
+ setSelectedFile: j,
3524
+ files: n,
3525
+ clipBoard: V,
3526
+ setClipBoard: _,
3527
+ handlePaste: d,
3528
+ triggerAction: f
3529
+ }
3530
+ ),
3531
+ /* @__PURE__ */ r.jsxs(
3532
+ "section",
3533
+ {
3534
+ ref: k,
3535
+ onMouseMove: K,
3536
+ onMouseUp: ee,
3537
+ className: "files-container",
3538
+ children: [
3539
+ /* @__PURE__ */ r.jsxs("div", { className: "navigation-pane", style: { width: F.col1 + "%" }, children: [
3540
+ /* @__PURE__ */ r.jsx(hn, { files: n, currentPath: D, setCurrentPath: A }),
3541
+ /* @__PURE__ */ r.jsx(
3542
+ "div",
3543
+ {
3544
+ className: `sidebar-resize ${x ? "sidebar-dragging" : ""}`,
3545
+ onMouseDown: L
3546
+ }
3547
+ )
3548
+ ] }),
3549
+ /* @__PURE__ */ r.jsxs("div", { className: "folers-preview", style: { width: F.col2 + "%" }, children: [
3550
+ /* @__PURE__ */ r.jsx(vn, { currentPath: D, setCurrentPath: A }),
3551
+ /* @__PURE__ */ r.jsx(
3552
+ xn,
3553
+ {
3554
+ currentPathFiles: E,
3555
+ setCurrentPath: A,
3556
+ isItemSelection: o,
3557
+ setIsItemSelection: p,
3558
+ setSelectedFile: j,
3559
+ currentPath: D,
3560
+ clipBoard: V,
3561
+ setClipBoard: _,
3562
+ handlePaste: d,
3563
+ files: n,
3564
+ triggerAction: f
3565
+ }
3566
+ )
3567
+ ] })
3568
+ ]
3569
+ }
3570
+ ),
3571
+ /* @__PURE__ */ r.jsx(
3572
+ Mn,
3573
+ {
3574
+ files: n,
3575
+ currentPath: D,
3576
+ currentPathFiles: E,
3577
+ selectedFile: O,
3578
+ triggerAction: f,
3579
+ handleCreateFolder: v,
3580
+ handleRename: c,
3581
+ handleDelete: l,
3582
+ setIsItemSelection: p,
3583
+ setSelectedFile: j,
3584
+ allowedFileExtensions: h
3585
+ }
3586
+ )
3587
+ ] });
3588
+ };
3589
+ export {
3590
+ Hn as FileManager
3591
+ };