@oneplatformdev/ui 0.0.1-beta.11 → 0.0.1-beta.12
Sign up to get free protection for your applications and to get access to all the features.
- package/Dropzone/Dropzone.mjs +70 -2872
- package/package.json +1 -1
package/Dropzone/Dropzone.mjs
CHANGED
@@ -1,2923 +1,121 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
var He = { exports: {} }, Ee = { exports: {} }, A = {};
|
11
|
-
/** @license React v16.13.1
|
12
|
-
* react-is.production.min.js
|
13
|
-
*
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
15
|
-
*
|
16
|
-
* This source code is licensed under the MIT license found in the
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
18
|
-
*/
|
19
|
-
var aa;
|
20
|
-
function Ja() {
|
21
|
-
if (aa) return A;
|
22
|
-
aa = 1;
|
23
|
-
var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, g = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, z = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
24
|
-
function q(d) {
|
25
|
-
if (typeof d == "object" && d !== null) {
|
26
|
-
var Q = d.$$typeof;
|
27
|
-
switch (Q) {
|
28
|
-
case a:
|
29
|
-
switch (d = d.type, d) {
|
30
|
-
case g:
|
31
|
-
case b:
|
32
|
-
case t:
|
33
|
-
case o:
|
34
|
-
case n:
|
35
|
-
case h:
|
36
|
-
return d;
|
37
|
-
default:
|
38
|
-
switch (d = d && d.$$typeof, d) {
|
39
|
-
case r:
|
40
|
-
case v:
|
41
|
-
case L:
|
42
|
-
case C:
|
43
|
-
case s:
|
44
|
-
return d;
|
45
|
-
default:
|
46
|
-
return Q;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
case i:
|
50
|
-
return Q;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
function I(d) {
|
55
|
-
return q(d) === b;
|
56
|
-
}
|
57
|
-
return A.AsyncMode = g, A.ConcurrentMode = b, A.ContextConsumer = r, A.ContextProvider = s, A.Element = a, A.ForwardRef = v, A.Fragment = t, A.Lazy = L, A.Memo = C, A.Portal = i, A.Profiler = o, A.StrictMode = n, A.Suspense = h, A.isAsyncMode = function(d) {
|
58
|
-
return I(d) || q(d) === g;
|
59
|
-
}, A.isConcurrentMode = I, A.isContextConsumer = function(d) {
|
60
|
-
return q(d) === r;
|
61
|
-
}, A.isContextProvider = function(d) {
|
62
|
-
return q(d) === s;
|
63
|
-
}, A.isElement = function(d) {
|
64
|
-
return typeof d == "object" && d !== null && d.$$typeof === a;
|
65
|
-
}, A.isForwardRef = function(d) {
|
66
|
-
return q(d) === v;
|
67
|
-
}, A.isFragment = function(d) {
|
68
|
-
return q(d) === t;
|
69
|
-
}, A.isLazy = function(d) {
|
70
|
-
return q(d) === L;
|
71
|
-
}, A.isMemo = function(d) {
|
72
|
-
return q(d) === C;
|
73
|
-
}, A.isPortal = function(d) {
|
74
|
-
return q(d) === i;
|
75
|
-
}, A.isProfiler = function(d) {
|
76
|
-
return q(d) === o;
|
77
|
-
}, A.isStrictMode = function(d) {
|
78
|
-
return q(d) === n;
|
79
|
-
}, A.isSuspense = function(d) {
|
80
|
-
return q(d) === h;
|
81
|
-
}, A.isValidElementType = function(d) {
|
82
|
-
return typeof d == "string" || typeof d == "function" || d === t || d === b || d === o || d === n || d === h || d === S || typeof d == "object" && d !== null && (d.$$typeof === L || d.$$typeof === C || d.$$typeof === s || d.$$typeof === r || d.$$typeof === v || d.$$typeof === E || d.$$typeof === z || d.$$typeof === F || d.$$typeof === D);
|
83
|
-
}, A.typeOf = q, A;
|
84
|
-
}
|
85
|
-
var P = {};
|
86
|
-
/** @license React v16.13.1
|
87
|
-
* react-is.development.js
|
88
|
-
*
|
89
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
90
|
-
*
|
91
|
-
* This source code is licensed under the MIT license found in the
|
92
|
-
* LICENSE file in the root directory of this source tree.
|
93
|
-
*/
|
94
|
-
var ia;
|
95
|
-
function Xa() {
|
96
|
-
return ia || (ia = 1, process.env.NODE_ENV !== "production" && function() {
|
97
|
-
var e = typeof Symbol == "function" && Symbol.for, a = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, t = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, r = e ? Symbol.for("react.context") : 60110, g = e ? Symbol.for("react.async_mode") : 60111, b = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, C = e ? Symbol.for("react.memo") : 60115, L = e ? Symbol.for("react.lazy") : 60116, D = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, z = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
98
|
-
function q(c) {
|
99
|
-
return typeof c == "string" || typeof c == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
100
|
-
c === t || c === b || c === o || c === n || c === h || c === S || typeof c == "object" && c !== null && (c.$$typeof === L || c.$$typeof === C || c.$$typeof === s || c.$$typeof === r || c.$$typeof === v || c.$$typeof === E || c.$$typeof === z || c.$$typeof === F || c.$$typeof === D);
|
101
|
-
}
|
102
|
-
function I(c) {
|
103
|
-
if (typeof c == "object" && c !== null) {
|
104
|
-
var B = c.$$typeof;
|
105
|
-
switch (B) {
|
106
|
-
case a:
|
107
|
-
var le = c.type;
|
108
|
-
switch (le) {
|
109
|
-
case g:
|
110
|
-
case b:
|
111
|
-
case t:
|
112
|
-
case o:
|
113
|
-
case n:
|
114
|
-
case h:
|
115
|
-
return le;
|
116
|
-
default:
|
117
|
-
var xe = le && le.$$typeof;
|
118
|
-
switch (xe) {
|
119
|
-
case r:
|
120
|
-
case v:
|
121
|
-
case L:
|
122
|
-
case C:
|
123
|
-
case s:
|
124
|
-
return xe;
|
125
|
-
default:
|
126
|
-
return B;
|
127
|
-
}
|
128
|
-
}
|
129
|
-
case i:
|
130
|
-
return B;
|
131
|
-
}
|
132
|
-
}
|
133
|
-
}
|
134
|
-
var d = g, Q = b, J = r, pe = s, ie = a, te = v, re = t, ce = L, ne = C, $ = i, H = o, V = n, ee = h, oe = !1;
|
135
|
-
function K(c) {
|
136
|
-
return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), p(c) || I(c) === g;
|
137
|
-
}
|
138
|
-
function p(c) {
|
139
|
-
return I(c) === b;
|
140
|
-
}
|
141
|
-
function m(c) {
|
142
|
-
return I(c) === r;
|
143
|
-
}
|
144
|
-
function y(c) {
|
145
|
-
return I(c) === s;
|
146
|
-
}
|
147
|
-
function w(c) {
|
148
|
-
return typeof c == "object" && c !== null && c.$$typeof === a;
|
149
|
-
}
|
150
|
-
function f(c) {
|
151
|
-
return I(c) === v;
|
152
|
-
}
|
153
|
-
function O(c) {
|
154
|
-
return I(c) === t;
|
155
|
-
}
|
156
|
-
function x(c) {
|
157
|
-
return I(c) === L;
|
158
|
-
}
|
159
|
-
function k(c) {
|
160
|
-
return I(c) === C;
|
161
|
-
}
|
162
|
-
function T(c) {
|
163
|
-
return I(c) === i;
|
164
|
-
}
|
165
|
-
function _(c) {
|
166
|
-
return I(c) === o;
|
167
|
-
}
|
168
|
-
function j(c) {
|
169
|
-
return I(c) === n;
|
170
|
-
}
|
171
|
-
function Y(c) {
|
172
|
-
return I(c) === h;
|
173
|
-
}
|
174
|
-
P.AsyncMode = d, P.ConcurrentMode = Q, P.ContextConsumer = J, P.ContextProvider = pe, P.Element = ie, P.ForwardRef = te, P.Fragment = re, P.Lazy = ce, P.Memo = ne, P.Portal = $, P.Profiler = H, P.StrictMode = V, P.Suspense = ee, P.isAsyncMode = K, P.isConcurrentMode = p, P.isContextConsumer = m, P.isContextProvider = y, P.isElement = w, P.isForwardRef = f, P.isFragment = O, P.isLazy = x, P.isMemo = k, P.isPortal = T, P.isProfiler = _, P.isStrictMode = j, P.isSuspense = Y, P.isValidElementType = q, P.typeOf = I;
|
175
|
-
}()), P;
|
176
|
-
}
|
177
|
-
var ta;
|
178
|
-
function wa() {
|
179
|
-
return ta || (ta = 1, process.env.NODE_ENV === "production" ? Ee.exports = Ja() : Ee.exports = Xa()), Ee.exports;
|
180
|
-
}
|
181
|
-
/*
|
182
|
-
object-assign
|
183
|
-
(c) Sindre Sorhus
|
184
|
-
@license MIT
|
185
|
-
*/
|
186
|
-
var qe, na;
|
187
|
-
function Za() {
|
188
|
-
if (na) return qe;
|
189
|
-
na = 1;
|
190
|
-
var e = Object.getOwnPropertySymbols, a = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
191
|
-
function t(o) {
|
192
|
-
if (o == null)
|
193
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
194
|
-
return Object(o);
|
195
|
-
}
|
196
|
-
function n() {
|
197
|
-
try {
|
198
|
-
if (!Object.assign)
|
199
|
-
return !1;
|
200
|
-
var o = new String("abc");
|
201
|
-
if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
|
202
|
-
return !1;
|
203
|
-
for (var s = {}, r = 0; r < 10; r++)
|
204
|
-
s["_" + String.fromCharCode(r)] = r;
|
205
|
-
var g = Object.getOwnPropertyNames(s).map(function(v) {
|
206
|
-
return s[v];
|
207
|
-
});
|
208
|
-
if (g.join("") !== "0123456789")
|
209
|
-
return !1;
|
210
|
-
var b = {};
|
211
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
212
|
-
b[v] = v;
|
213
|
-
}), Object.keys(Object.assign({}, b)).join("") === "abcdefghijklmnopqrst";
|
214
|
-
} catch {
|
215
|
-
return !1;
|
216
|
-
}
|
217
|
-
}
|
218
|
-
return qe = n() ? Object.assign : function(o, s) {
|
219
|
-
for (var r, g = t(o), b, v = 1; v < arguments.length; v++) {
|
220
|
-
r = Object(arguments[v]);
|
221
|
-
for (var h in r)
|
222
|
-
a.call(r, h) && (g[h] = r[h]);
|
223
|
-
if (e) {
|
224
|
-
b = e(r);
|
225
|
-
for (var S = 0; S < b.length; S++)
|
226
|
-
i.call(r, b[S]) && (g[b[S]] = r[b[S]]);
|
227
|
-
}
|
228
|
-
}
|
229
|
-
return g;
|
230
|
-
}, qe;
|
231
|
-
}
|
232
|
-
var Me, oa;
|
233
|
-
function Xe() {
|
234
|
-
if (oa) return Me;
|
235
|
-
oa = 1;
|
236
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
237
|
-
return Me = e, Me;
|
238
|
-
}
|
239
|
-
var $e, pa;
|
240
|
-
function ka() {
|
241
|
-
return pa || (pa = 1, $e = Function.call.bind(Object.prototype.hasOwnProperty)), $e;
|
242
|
-
}
|
243
|
-
var Le, ra;
|
244
|
-
function Qa() {
|
245
|
-
if (ra) return Le;
|
246
|
-
ra = 1;
|
247
|
-
var e = function() {
|
248
|
-
};
|
249
|
-
if (process.env.NODE_ENV !== "production") {
|
250
|
-
var a = Xe(), i = {}, t = ka();
|
251
|
-
e = function(o) {
|
252
|
-
var s = "Warning: " + o;
|
253
|
-
typeof console < "u" && console.error(s);
|
254
|
-
try {
|
255
|
-
throw new Error(s);
|
256
|
-
} catch {
|
257
|
-
}
|
258
|
-
};
|
259
|
-
}
|
260
|
-
function n(o, s, r, g, b) {
|
261
|
-
if (process.env.NODE_ENV !== "production") {
|
262
|
-
for (var v in o)
|
263
|
-
if (t(o, v)) {
|
264
|
-
var h;
|
265
|
-
try {
|
266
|
-
if (typeof o[v] != "function") {
|
267
|
-
var S = Error(
|
268
|
-
(g || "React class") + ": " + r + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
269
|
-
);
|
270
|
-
throw S.name = "Invariant Violation", S;
|
271
|
-
}
|
272
|
-
h = o[v](s, v, g, r, null, a);
|
273
|
-
} catch (L) {
|
274
|
-
h = L;
|
275
|
-
}
|
276
|
-
if (h && !(h instanceof Error) && e(
|
277
|
-
(g || "React class") + ": type specification of " + r + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
278
|
-
), h instanceof Error && !(h.message in i)) {
|
279
|
-
i[h.message] = !0;
|
280
|
-
var C = b ? b() : "";
|
281
|
-
e(
|
282
|
-
"Failed " + r + " type: " + h.message + (C ?? "")
|
283
|
-
);
|
284
|
-
}
|
285
|
-
}
|
286
|
-
}
|
287
|
-
}
|
288
|
-
return n.resetWarningCache = function() {
|
289
|
-
process.env.NODE_ENV !== "production" && (i = {});
|
290
|
-
}, Le = n, Le;
|
291
|
-
}
|
292
|
-
var We, ca;
|
293
|
-
function ei() {
|
294
|
-
if (ca) return We;
|
295
|
-
ca = 1;
|
296
|
-
var e = wa(), a = Za(), i = Xe(), t = ka(), n = Qa(), o = function() {
|
297
|
-
};
|
298
|
-
process.env.NODE_ENV !== "production" && (o = function(r) {
|
299
|
-
var g = "Warning: " + r;
|
300
|
-
typeof console < "u" && console.error(g);
|
301
|
-
try {
|
302
|
-
throw new Error(g);
|
303
|
-
} catch {
|
304
|
-
}
|
305
|
-
});
|
306
|
-
function s() {
|
307
|
-
return null;
|
308
|
-
}
|
309
|
-
return We = function(r, g) {
|
310
|
-
var b = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
311
|
-
function h(p) {
|
312
|
-
var m = p && (b && p[b] || p[v]);
|
313
|
-
if (typeof m == "function")
|
314
|
-
return m;
|
315
|
-
}
|
316
|
-
var S = "<<anonymous>>", C = {
|
317
|
-
array: z("array"),
|
318
|
-
bigint: z("bigint"),
|
319
|
-
bool: z("boolean"),
|
320
|
-
func: z("function"),
|
321
|
-
number: z("number"),
|
322
|
-
object: z("object"),
|
323
|
-
string: z("string"),
|
324
|
-
symbol: z("symbol"),
|
325
|
-
any: F(),
|
326
|
-
arrayOf: q,
|
327
|
-
element: I(),
|
328
|
-
elementType: d(),
|
329
|
-
instanceOf: Q,
|
330
|
-
node: te(),
|
331
|
-
objectOf: pe,
|
332
|
-
oneOf: J,
|
333
|
-
oneOfType: ie,
|
334
|
-
shape: ce,
|
335
|
-
exact: ne
|
336
|
-
};
|
337
|
-
function L(p, m) {
|
338
|
-
return p === m ? p !== 0 || 1 / p === 1 / m : p !== p && m !== m;
|
339
|
-
}
|
340
|
-
function D(p, m) {
|
341
|
-
this.message = p, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
|
342
|
-
}
|
343
|
-
D.prototype = Error.prototype;
|
344
|
-
function E(p) {
|
345
|
-
if (process.env.NODE_ENV !== "production")
|
346
|
-
var m = {}, y = 0;
|
347
|
-
function w(O, x, k, T, _, j, Y) {
|
348
|
-
if (T = T || S, j = j || k, Y !== i) {
|
349
|
-
if (g) {
|
350
|
-
var c = new Error(
|
351
|
-
"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"
|
352
|
-
);
|
353
|
-
throw c.name = "Invariant Violation", c;
|
354
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
355
|
-
var B = T + ":" + k;
|
356
|
-
!m[B] && // Avoid spamming the console because they are often not actionable except for lib authors
|
357
|
-
y < 3 && (o(
|
358
|
-
"You are manually calling a React.PropTypes validation function for the `" + j + "` prop on `" + T + "`. 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."
|
359
|
-
), m[B] = !0, y++);
|
360
|
-
}
|
361
|
-
}
|
362
|
-
return x[k] == null ? O ? x[k] === null ? new D("The " + _ + " `" + j + "` is marked as required " + ("in `" + T + "`, but its value is `null`.")) : new D("The " + _ + " `" + j + "` is marked as required in " + ("`" + T + "`, but its value is `undefined`.")) : null : p(x, k, T, _, j);
|
363
|
-
}
|
364
|
-
var f = w.bind(null, !1);
|
365
|
-
return f.isRequired = w.bind(null, !0), f;
|
366
|
-
}
|
367
|
-
function z(p) {
|
368
|
-
function m(y, w, f, O, x, k) {
|
369
|
-
var T = y[w], _ = V(T);
|
370
|
-
if (_ !== p) {
|
371
|
-
var j = ee(T);
|
372
|
-
return new D(
|
373
|
-
"Invalid " + O + " `" + x + "` of type " + ("`" + j + "` supplied to `" + f + "`, expected ") + ("`" + p + "`."),
|
374
|
-
{ expectedType: p }
|
375
|
-
);
|
376
|
-
}
|
377
|
-
return null;
|
378
|
-
}
|
379
|
-
return E(m);
|
380
|
-
}
|
381
|
-
function F() {
|
382
|
-
return E(s);
|
383
|
-
}
|
384
|
-
function q(p) {
|
385
|
-
function m(y, w, f, O, x) {
|
386
|
-
if (typeof p != "function")
|
387
|
-
return new D("Property `" + x + "` of component `" + f + "` has invalid PropType notation inside arrayOf.");
|
388
|
-
var k = y[w];
|
389
|
-
if (!Array.isArray(k)) {
|
390
|
-
var T = V(k);
|
391
|
-
return new D("Invalid " + O + " `" + x + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected an array."));
|
392
|
-
}
|
393
|
-
for (var _ = 0; _ < k.length; _++) {
|
394
|
-
var j = p(k, _, f, O, x + "[" + _ + "]", i);
|
395
|
-
if (j instanceof Error)
|
396
|
-
return j;
|
397
|
-
}
|
398
|
-
return null;
|
399
|
-
}
|
400
|
-
return E(m);
|
401
|
-
}
|
402
|
-
function I() {
|
403
|
-
function p(m, y, w, f, O) {
|
404
|
-
var x = m[y];
|
405
|
-
if (!r(x)) {
|
406
|
-
var k = V(x);
|
407
|
-
return new D("Invalid " + f + " `" + O + "` of type " + ("`" + k + "` supplied to `" + w + "`, expected a single ReactElement."));
|
408
|
-
}
|
409
|
-
return null;
|
410
|
-
}
|
411
|
-
return E(p);
|
412
|
-
}
|
413
|
-
function d() {
|
414
|
-
function p(m, y, w, f, O) {
|
415
|
-
var x = m[y];
|
416
|
-
if (!e.isValidElementType(x)) {
|
417
|
-
var k = V(x);
|
418
|
-
return new D("Invalid " + f + " `" + O + "` of type " + ("`" + k + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
419
|
-
}
|
420
|
-
return null;
|
421
|
-
}
|
422
|
-
return E(p);
|
423
|
-
}
|
424
|
-
function Q(p) {
|
425
|
-
function m(y, w, f, O, x) {
|
426
|
-
if (!(y[w] instanceof p)) {
|
427
|
-
var k = p.name || S, T = K(y[w]);
|
428
|
-
return new D("Invalid " + O + " `" + x + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected ") + ("instance of `" + k + "`."));
|
429
|
-
}
|
430
|
-
return null;
|
431
|
-
}
|
432
|
-
return E(m);
|
433
|
-
}
|
434
|
-
function J(p) {
|
435
|
-
if (!Array.isArray(p))
|
436
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
437
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
438
|
-
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
439
|
-
function m(y, w, f, O, x) {
|
440
|
-
for (var k = y[w], T = 0; T < p.length; T++)
|
441
|
-
if (L(k, p[T]))
|
442
|
-
return null;
|
443
|
-
var _ = JSON.stringify(p, function(Y, c) {
|
444
|
-
var B = ee(c);
|
445
|
-
return B === "symbol" ? String(c) : c;
|
446
|
-
});
|
447
|
-
return new D("Invalid " + O + " `" + x + "` of value `" + String(k) + "` " + ("supplied to `" + f + "`, expected one of " + _ + "."));
|
448
|
-
}
|
449
|
-
return E(m);
|
450
|
-
}
|
451
|
-
function pe(p) {
|
452
|
-
function m(y, w, f, O, x) {
|
453
|
-
if (typeof p != "function")
|
454
|
-
return new D("Property `" + x + "` of component `" + f + "` has invalid PropType notation inside objectOf.");
|
455
|
-
var k = y[w], T = V(k);
|
456
|
-
if (T !== "object")
|
457
|
-
return new D("Invalid " + O + " `" + x + "` of type " + ("`" + T + "` supplied to `" + f + "`, expected an object."));
|
458
|
-
for (var _ in k)
|
459
|
-
if (t(k, _)) {
|
460
|
-
var j = p(k, _, f, O, x + "." + _, i);
|
461
|
-
if (j instanceof Error)
|
462
|
-
return j;
|
463
|
-
}
|
464
|
-
return null;
|
465
|
-
}
|
466
|
-
return E(m);
|
467
|
-
}
|
468
|
-
function ie(p) {
|
469
|
-
if (!Array.isArray(p))
|
470
|
-
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
471
|
-
for (var m = 0; m < p.length; m++) {
|
472
|
-
var y = p[m];
|
473
|
-
if (typeof y != "function")
|
474
|
-
return o(
|
475
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(y) + " at index " + m + "."
|
476
|
-
), s;
|
477
|
-
}
|
478
|
-
function w(f, O, x, k, T) {
|
479
|
-
for (var _ = [], j = 0; j < p.length; j++) {
|
480
|
-
var Y = p[j], c = Y(f, O, x, k, T, i);
|
481
|
-
if (c == null)
|
482
|
-
return null;
|
483
|
-
c.data && t(c.data, "expectedType") && _.push(c.data.expectedType);
|
484
|
-
}
|
485
|
-
var B = _.length > 0 ? ", expected one of type [" + _.join(", ") + "]" : "";
|
486
|
-
return new D("Invalid " + k + " `" + T + "` supplied to " + ("`" + x + "`" + B + "."));
|
487
|
-
}
|
488
|
-
return E(w);
|
489
|
-
}
|
490
|
-
function te() {
|
491
|
-
function p(m, y, w, f, O) {
|
492
|
-
return $(m[y]) ? null : new D("Invalid " + f + " `" + O + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
|
493
|
-
}
|
494
|
-
return E(p);
|
495
|
-
}
|
496
|
-
function re(p, m, y, w, f) {
|
497
|
-
return new D(
|
498
|
-
(p || "React class") + ": " + m + " type `" + y + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + f + "`."
|
499
|
-
);
|
500
|
-
}
|
501
|
-
function ce(p) {
|
502
|
-
function m(y, w, f, O, x) {
|
503
|
-
var k = y[w], T = V(k);
|
504
|
-
if (T !== "object")
|
505
|
-
return new D("Invalid " + O + " `" + x + "` of type `" + T + "` " + ("supplied to `" + f + "`, expected `object`."));
|
506
|
-
for (var _ in p) {
|
507
|
-
var j = p[_];
|
508
|
-
if (typeof j != "function")
|
509
|
-
return re(f, O, x, _, ee(j));
|
510
|
-
var Y = j(k, _, f, O, x + "." + _, i);
|
511
|
-
if (Y)
|
512
|
-
return Y;
|
513
|
-
}
|
514
|
-
return null;
|
515
|
-
}
|
516
|
-
return E(m);
|
517
|
-
}
|
518
|
-
function ne(p) {
|
519
|
-
function m(y, w, f, O, x) {
|
520
|
-
var k = y[w], T = V(k);
|
521
|
-
if (T !== "object")
|
522
|
-
return new D("Invalid " + O + " `" + x + "` of type `" + T + "` " + ("supplied to `" + f + "`, expected `object`."));
|
523
|
-
var _ = a({}, y[w], p);
|
524
|
-
for (var j in _) {
|
525
|
-
var Y = p[j];
|
526
|
-
if (t(p, j) && typeof Y != "function")
|
527
|
-
return re(f, O, x, j, ee(Y));
|
528
|
-
if (!Y)
|
529
|
-
return new D(
|
530
|
-
"Invalid " + O + " `" + x + "` key `" + j + "` supplied to `" + f + "`.\nBad object: " + JSON.stringify(y[w], null, " ") + `
|
531
|
-
Valid keys: ` + JSON.stringify(Object.keys(p), null, " ")
|
532
|
-
);
|
533
|
-
var c = Y(k, j, f, O, x + "." + j, i);
|
534
|
-
if (c)
|
535
|
-
return c;
|
536
|
-
}
|
537
|
-
return null;
|
538
|
-
}
|
539
|
-
return E(m);
|
540
|
-
}
|
541
|
-
function $(p) {
|
542
|
-
switch (typeof p) {
|
543
|
-
case "number":
|
544
|
-
case "string":
|
545
|
-
case "undefined":
|
546
|
-
return !0;
|
547
|
-
case "boolean":
|
548
|
-
return !p;
|
549
|
-
case "object":
|
550
|
-
if (Array.isArray(p))
|
551
|
-
return p.every($);
|
552
|
-
if (p === null || r(p))
|
553
|
-
return !0;
|
554
|
-
var m = h(p);
|
555
|
-
if (m) {
|
556
|
-
var y = m.call(p), w;
|
557
|
-
if (m !== p.entries) {
|
558
|
-
for (; !(w = y.next()).done; )
|
559
|
-
if (!$(w.value))
|
560
|
-
return !1;
|
561
|
-
} else
|
562
|
-
for (; !(w = y.next()).done; ) {
|
563
|
-
var f = w.value;
|
564
|
-
if (f && !$(f[1]))
|
565
|
-
return !1;
|
566
|
-
}
|
567
|
-
} else
|
568
|
-
return !1;
|
569
|
-
return !0;
|
570
|
-
default:
|
571
|
-
return !1;
|
572
|
-
}
|
573
|
-
}
|
574
|
-
function H(p, m) {
|
575
|
-
return p === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
|
576
|
-
}
|
577
|
-
function V(p) {
|
578
|
-
var m = typeof p;
|
579
|
-
return Array.isArray(p) ? "array" : p instanceof RegExp ? "object" : H(m, p) ? "symbol" : m;
|
580
|
-
}
|
581
|
-
function ee(p) {
|
582
|
-
if (typeof p > "u" || p === null)
|
583
|
-
return "" + p;
|
584
|
-
var m = V(p);
|
585
|
-
if (m === "object") {
|
586
|
-
if (p instanceof Date)
|
587
|
-
return "date";
|
588
|
-
if (p instanceof RegExp)
|
589
|
-
return "regexp";
|
590
|
-
}
|
591
|
-
return m;
|
592
|
-
}
|
593
|
-
function oe(p) {
|
594
|
-
var m = ee(p);
|
595
|
-
switch (m) {
|
596
|
-
case "array":
|
597
|
-
case "object":
|
598
|
-
return "an " + m;
|
599
|
-
case "boolean":
|
600
|
-
case "date":
|
601
|
-
case "regexp":
|
602
|
-
return "a " + m;
|
603
|
-
default:
|
604
|
-
return m;
|
605
|
-
}
|
606
|
-
}
|
607
|
-
function K(p) {
|
608
|
-
return !p.constructor || !p.constructor.name ? S : p.constructor.name;
|
609
|
-
}
|
610
|
-
return C.checkPropTypes = n, C.resetWarningCache = n.resetWarningCache, C.PropTypes = C, C;
|
611
|
-
}, We;
|
612
|
-
}
|
613
|
-
var Ye, la;
|
614
|
-
function ai() {
|
615
|
-
if (la) return Ye;
|
616
|
-
la = 1;
|
617
|
-
var e = Xe();
|
618
|
-
function a() {
|
619
|
-
}
|
620
|
-
function i() {
|
621
|
-
}
|
622
|
-
return i.resetWarningCache = a, Ye = function() {
|
623
|
-
function t(s, r, g, b, v, h) {
|
624
|
-
if (h !== e) {
|
625
|
-
var S = new Error(
|
626
|
-
"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"
|
627
|
-
);
|
628
|
-
throw S.name = "Invariant Violation", S;
|
629
|
-
}
|
630
|
-
}
|
631
|
-
t.isRequired = t;
|
632
|
-
function n() {
|
633
|
-
return t;
|
634
|
-
}
|
635
|
-
var o = {
|
636
|
-
array: t,
|
637
|
-
bigint: t,
|
638
|
-
bool: t,
|
639
|
-
func: t,
|
640
|
-
number: t,
|
641
|
-
object: t,
|
642
|
-
string: t,
|
643
|
-
symbol: t,
|
644
|
-
any: t,
|
645
|
-
arrayOf: n,
|
646
|
-
element: t,
|
647
|
-
elementType: t,
|
648
|
-
instanceOf: n,
|
649
|
-
node: t,
|
650
|
-
objectOf: n,
|
651
|
-
oneOf: n,
|
652
|
-
oneOfType: n,
|
653
|
-
shape: n,
|
654
|
-
exact: n,
|
655
|
-
checkPropTypes: i,
|
656
|
-
resetWarningCache: a
|
657
|
-
};
|
658
|
-
return o.PropTypes = o, o;
|
659
|
-
}, Ye;
|
660
|
-
}
|
661
|
-
if (process.env.NODE_ENV !== "production") {
|
662
|
-
var ii = wa(), ti = !0;
|
663
|
-
He.exports = ei()(ii.isElement, ti);
|
664
|
-
} else
|
665
|
-
He.exports = ai()();
|
666
|
-
var ni = He.exports;
|
667
|
-
const R = /* @__PURE__ */ Ga(ni);
|
668
|
-
function de(e, a, i, t) {
|
669
|
-
function n(o) {
|
670
|
-
return o instanceof i ? o : new i(function(s) {
|
671
|
-
s(o);
|
672
|
-
});
|
673
|
-
}
|
674
|
-
return new (i || (i = Promise))(function(o, s) {
|
675
|
-
function r(v) {
|
676
|
-
try {
|
677
|
-
b(t.next(v));
|
678
|
-
} catch (h) {
|
679
|
-
s(h);
|
680
|
-
}
|
681
|
-
}
|
682
|
-
function g(v) {
|
683
|
-
try {
|
684
|
-
b(t.throw(v));
|
685
|
-
} catch (h) {
|
686
|
-
s(h);
|
687
|
-
}
|
688
|
-
}
|
689
|
-
function b(v) {
|
690
|
-
v.done ? o(v.value) : n(v.value).then(r, g);
|
691
|
-
}
|
692
|
-
b((t = t.apply(e, a || [])).next());
|
693
|
-
});
|
694
|
-
}
|
695
|
-
const oi = /* @__PURE__ */ new Map([
|
696
|
-
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
697
|
-
["1km", "application/vnd.1000minds.decision-model+xml"],
|
698
|
-
["3dml", "text/vnd.in3d.3dml"],
|
699
|
-
["3ds", "image/x-3ds"],
|
700
|
-
["3g2", "video/3gpp2"],
|
701
|
-
["3gp", "video/3gp"],
|
702
|
-
["3gpp", "video/3gpp"],
|
703
|
-
["3mf", "model/3mf"],
|
704
|
-
["7z", "application/x-7z-compressed"],
|
705
|
-
["7zip", "application/x-7z-compressed"],
|
706
|
-
["123", "application/vnd.lotus-1-2-3"],
|
707
|
-
["aab", "application/x-authorware-bin"],
|
708
|
-
["aac", "audio/x-acc"],
|
709
|
-
["aam", "application/x-authorware-map"],
|
710
|
-
["aas", "application/x-authorware-seg"],
|
711
|
-
["abw", "application/x-abiword"],
|
712
|
-
["ac", "application/vnd.nokia.n-gage.ac+xml"],
|
713
|
-
["ac3", "audio/ac3"],
|
714
|
-
["acc", "application/vnd.americandynamics.acc"],
|
715
|
-
["ace", "application/x-ace-compressed"],
|
716
|
-
["acu", "application/vnd.acucobol"],
|
717
|
-
["acutc", "application/vnd.acucorp"],
|
718
|
-
["adp", "audio/adpcm"],
|
719
|
-
["aep", "application/vnd.audiograph"],
|
720
|
-
["afm", "application/x-font-type1"],
|
721
|
-
["afp", "application/vnd.ibm.modcap"],
|
722
|
-
["ahead", "application/vnd.ahead.space"],
|
723
|
-
["ai", "application/pdf"],
|
724
|
-
["aif", "audio/x-aiff"],
|
725
|
-
["aifc", "audio/x-aiff"],
|
726
|
-
["aiff", "audio/x-aiff"],
|
727
|
-
["air", "application/vnd.adobe.air-application-installer-package+zip"],
|
728
|
-
["ait", "application/vnd.dvb.ait"],
|
729
|
-
["ami", "application/vnd.amiga.ami"],
|
730
|
-
["amr", "audio/amr"],
|
731
|
-
["apk", "application/vnd.android.package-archive"],
|
732
|
-
["apng", "image/apng"],
|
733
|
-
["appcache", "text/cache-manifest"],
|
734
|
-
["application", "application/x-ms-application"],
|
735
|
-
["apr", "application/vnd.lotus-approach"],
|
736
|
-
["arc", "application/x-freearc"],
|
737
|
-
["arj", "application/x-arj"],
|
738
|
-
["asc", "application/pgp-signature"],
|
739
|
-
["asf", "video/x-ms-asf"],
|
740
|
-
["asm", "text/x-asm"],
|
741
|
-
["aso", "application/vnd.accpac.simply.aso"],
|
742
|
-
["asx", "video/x-ms-asf"],
|
743
|
-
["atc", "application/vnd.acucorp"],
|
744
|
-
["atom", "application/atom+xml"],
|
745
|
-
["atomcat", "application/atomcat+xml"],
|
746
|
-
["atomdeleted", "application/atomdeleted+xml"],
|
747
|
-
["atomsvc", "application/atomsvc+xml"],
|
748
|
-
["atx", "application/vnd.antix.game-component"],
|
749
|
-
["au", "audio/x-au"],
|
750
|
-
["avi", "video/x-msvideo"],
|
751
|
-
["avif", "image/avif"],
|
752
|
-
["aw", "application/applixware"],
|
753
|
-
["azf", "application/vnd.airzip.filesecure.azf"],
|
754
|
-
["azs", "application/vnd.airzip.filesecure.azs"],
|
755
|
-
["azv", "image/vnd.airzip.accelerator.azv"],
|
756
|
-
["azw", "application/vnd.amazon.ebook"],
|
757
|
-
["b16", "image/vnd.pco.b16"],
|
758
|
-
["bat", "application/x-msdownload"],
|
759
|
-
["bcpio", "application/x-bcpio"],
|
760
|
-
["bdf", "application/x-font-bdf"],
|
761
|
-
["bdm", "application/vnd.syncml.dm+wbxml"],
|
762
|
-
["bdoc", "application/x-bdoc"],
|
763
|
-
["bed", "application/vnd.realvnc.bed"],
|
764
|
-
["bh2", "application/vnd.fujitsu.oasysprs"],
|
765
|
-
["bin", "application/octet-stream"],
|
766
|
-
["blb", "application/x-blorb"],
|
767
|
-
["blorb", "application/x-blorb"],
|
768
|
-
["bmi", "application/vnd.bmi"],
|
769
|
-
["bmml", "application/vnd.balsamiq.bmml+xml"],
|
770
|
-
["bmp", "image/bmp"],
|
771
|
-
["book", "application/vnd.framemaker"],
|
772
|
-
["box", "application/vnd.previewsystems.box"],
|
773
|
-
["boz", "application/x-bzip2"],
|
774
|
-
["bpk", "application/octet-stream"],
|
775
|
-
["bpmn", "application/octet-stream"],
|
776
|
-
["bsp", "model/vnd.valve.source.compiled-map"],
|
777
|
-
["btif", "image/prs.btif"],
|
778
|
-
["buffer", "application/octet-stream"],
|
779
|
-
["bz", "application/x-bzip"],
|
780
|
-
["bz2", "application/x-bzip2"],
|
781
|
-
["c", "text/x-c"],
|
782
|
-
["c4d", "application/vnd.clonk.c4group"],
|
783
|
-
["c4f", "application/vnd.clonk.c4group"],
|
784
|
-
["c4g", "application/vnd.clonk.c4group"],
|
785
|
-
["c4p", "application/vnd.clonk.c4group"],
|
786
|
-
["c4u", "application/vnd.clonk.c4group"],
|
787
|
-
["c11amc", "application/vnd.cluetrust.cartomobile-config"],
|
788
|
-
["c11amz", "application/vnd.cluetrust.cartomobile-config-pkg"],
|
789
|
-
["cab", "application/vnd.ms-cab-compressed"],
|
790
|
-
["caf", "audio/x-caf"],
|
791
|
-
["cap", "application/vnd.tcpdump.pcap"],
|
792
|
-
["car", "application/vnd.curl.car"],
|
793
|
-
["cat", "application/vnd.ms-pki.seccat"],
|
794
|
-
["cb7", "application/x-cbr"],
|
795
|
-
["cba", "application/x-cbr"],
|
796
|
-
["cbr", "application/x-cbr"],
|
797
|
-
["cbt", "application/x-cbr"],
|
798
|
-
["cbz", "application/x-cbr"],
|
799
|
-
["cc", "text/x-c"],
|
800
|
-
["cco", "application/x-cocoa"],
|
801
|
-
["cct", "application/x-director"],
|
802
|
-
["ccxml", "application/ccxml+xml"],
|
803
|
-
["cdbcmsg", "application/vnd.contact.cmsg"],
|
804
|
-
["cda", "application/x-cdf"],
|
805
|
-
["cdf", "application/x-netcdf"],
|
806
|
-
["cdfx", "application/cdfx+xml"],
|
807
|
-
["cdkey", "application/vnd.mediastation.cdkey"],
|
808
|
-
["cdmia", "application/cdmi-capability"],
|
809
|
-
["cdmic", "application/cdmi-container"],
|
810
|
-
["cdmid", "application/cdmi-domain"],
|
811
|
-
["cdmio", "application/cdmi-object"],
|
812
|
-
["cdmiq", "application/cdmi-queue"],
|
813
|
-
["cdr", "application/cdr"],
|
814
|
-
["cdx", "chemical/x-cdx"],
|
815
|
-
["cdxml", "application/vnd.chemdraw+xml"],
|
816
|
-
["cdy", "application/vnd.cinderella"],
|
817
|
-
["cer", "application/pkix-cert"],
|
818
|
-
["cfs", "application/x-cfs-compressed"],
|
819
|
-
["cgm", "image/cgm"],
|
820
|
-
["chat", "application/x-chat"],
|
821
|
-
["chm", "application/vnd.ms-htmlhelp"],
|
822
|
-
["chrt", "application/vnd.kde.kchart"],
|
823
|
-
["cif", "chemical/x-cif"],
|
824
|
-
["cii", "application/vnd.anser-web-certificate-issue-initiation"],
|
825
|
-
["cil", "application/vnd.ms-artgalry"],
|
826
|
-
["cjs", "application/node"],
|
827
|
-
["cla", "application/vnd.claymore"],
|
828
|
-
["class", "application/octet-stream"],
|
829
|
-
["clkk", "application/vnd.crick.clicker.keyboard"],
|
830
|
-
["clkp", "application/vnd.crick.clicker.palette"],
|
831
|
-
["clkt", "application/vnd.crick.clicker.template"],
|
832
|
-
["clkw", "application/vnd.crick.clicker.wordbank"],
|
833
|
-
["clkx", "application/vnd.crick.clicker"],
|
834
|
-
["clp", "application/x-msclip"],
|
835
|
-
["cmc", "application/vnd.cosmocaller"],
|
836
|
-
["cmdf", "chemical/x-cmdf"],
|
837
|
-
["cml", "chemical/x-cml"],
|
838
|
-
["cmp", "application/vnd.yellowriver-custom-menu"],
|
839
|
-
["cmx", "image/x-cmx"],
|
840
|
-
["cod", "application/vnd.rim.cod"],
|
841
|
-
["coffee", "text/coffeescript"],
|
842
|
-
["com", "application/x-msdownload"],
|
843
|
-
["conf", "text/plain"],
|
844
|
-
["cpio", "application/x-cpio"],
|
845
|
-
["cpp", "text/x-c"],
|
846
|
-
["cpt", "application/mac-compactpro"],
|
847
|
-
["crd", "application/x-mscardfile"],
|
848
|
-
["crl", "application/pkix-crl"],
|
849
|
-
["crt", "application/x-x509-ca-cert"],
|
850
|
-
["crx", "application/x-chrome-extension"],
|
851
|
-
["cryptonote", "application/vnd.rig.cryptonote"],
|
852
|
-
["csh", "application/x-csh"],
|
853
|
-
["csl", "application/vnd.citationstyles.style+xml"],
|
854
|
-
["csml", "chemical/x-csml"],
|
855
|
-
["csp", "application/vnd.commonspace"],
|
856
|
-
["csr", "application/octet-stream"],
|
857
|
-
["css", "text/css"],
|
858
|
-
["cst", "application/x-director"],
|
859
|
-
["csv", "text/csv"],
|
860
|
-
["cu", "application/cu-seeme"],
|
861
|
-
["curl", "text/vnd.curl"],
|
862
|
-
["cww", "application/prs.cww"],
|
863
|
-
["cxt", "application/x-director"],
|
864
|
-
["cxx", "text/x-c"],
|
865
|
-
["dae", "model/vnd.collada+xml"],
|
866
|
-
["daf", "application/vnd.mobius.daf"],
|
867
|
-
["dart", "application/vnd.dart"],
|
868
|
-
["dataless", "application/vnd.fdsn.seed"],
|
869
|
-
["davmount", "application/davmount+xml"],
|
870
|
-
["dbf", "application/vnd.dbf"],
|
871
|
-
["dbk", "application/docbook+xml"],
|
872
|
-
["dcr", "application/x-director"],
|
873
|
-
["dcurl", "text/vnd.curl.dcurl"],
|
874
|
-
["dd2", "application/vnd.oma.dd2+xml"],
|
875
|
-
["ddd", "application/vnd.fujixerox.ddd"],
|
876
|
-
["ddf", "application/vnd.syncml.dmddf+xml"],
|
877
|
-
["dds", "image/vnd.ms-dds"],
|
878
|
-
["deb", "application/x-debian-package"],
|
879
|
-
["def", "text/plain"],
|
880
|
-
["deploy", "application/octet-stream"],
|
881
|
-
["der", "application/x-x509-ca-cert"],
|
882
|
-
["dfac", "application/vnd.dreamfactory"],
|
883
|
-
["dgc", "application/x-dgc-compressed"],
|
884
|
-
["dic", "text/x-c"],
|
885
|
-
["dir", "application/x-director"],
|
886
|
-
["dis", "application/vnd.mobius.dis"],
|
887
|
-
["disposition-notification", "message/disposition-notification"],
|
888
|
-
["dist", "application/octet-stream"],
|
889
|
-
["distz", "application/octet-stream"],
|
890
|
-
["djv", "image/vnd.djvu"],
|
891
|
-
["djvu", "image/vnd.djvu"],
|
892
|
-
["dll", "application/octet-stream"],
|
893
|
-
["dmg", "application/x-apple-diskimage"],
|
894
|
-
["dmn", "application/octet-stream"],
|
895
|
-
["dmp", "application/vnd.tcpdump.pcap"],
|
896
|
-
["dms", "application/octet-stream"],
|
897
|
-
["dna", "application/vnd.dna"],
|
898
|
-
["doc", "application/msword"],
|
899
|
-
["docm", "application/vnd.ms-word.template.macroEnabled.12"],
|
900
|
-
["docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
|
901
|
-
["dot", "application/msword"],
|
902
|
-
["dotm", "application/vnd.ms-word.template.macroEnabled.12"],
|
903
|
-
["dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"],
|
904
|
-
["dp", "application/vnd.osgi.dp"],
|
905
|
-
["dpg", "application/vnd.dpgraph"],
|
906
|
-
["dra", "audio/vnd.dra"],
|
907
|
-
["drle", "image/dicom-rle"],
|
908
|
-
["dsc", "text/prs.lines.tag"],
|
909
|
-
["dssc", "application/dssc+der"],
|
910
|
-
["dtb", "application/x-dtbook+xml"],
|
911
|
-
["dtd", "application/xml-dtd"],
|
912
|
-
["dts", "audio/vnd.dts"],
|
913
|
-
["dtshd", "audio/vnd.dts.hd"],
|
914
|
-
["dump", "application/octet-stream"],
|
915
|
-
["dvb", "video/vnd.dvb.file"],
|
916
|
-
["dvi", "application/x-dvi"],
|
917
|
-
["dwd", "application/atsc-dwd+xml"],
|
918
|
-
["dwf", "model/vnd.dwf"],
|
919
|
-
["dwg", "image/vnd.dwg"],
|
920
|
-
["dxf", "image/vnd.dxf"],
|
921
|
-
["dxp", "application/vnd.spotfire.dxp"],
|
922
|
-
["dxr", "application/x-director"],
|
923
|
-
["ear", "application/java-archive"],
|
924
|
-
["ecelp4800", "audio/vnd.nuera.ecelp4800"],
|
925
|
-
["ecelp7470", "audio/vnd.nuera.ecelp7470"],
|
926
|
-
["ecelp9600", "audio/vnd.nuera.ecelp9600"],
|
927
|
-
["ecma", "application/ecmascript"],
|
928
|
-
["edm", "application/vnd.novadigm.edm"],
|
929
|
-
["edx", "application/vnd.novadigm.edx"],
|
930
|
-
["efif", "application/vnd.picsel"],
|
931
|
-
["ei6", "application/vnd.pg.osasli"],
|
932
|
-
["elc", "application/octet-stream"],
|
933
|
-
["emf", "image/emf"],
|
934
|
-
["eml", "message/rfc822"],
|
935
|
-
["emma", "application/emma+xml"],
|
936
|
-
["emotionml", "application/emotionml+xml"],
|
937
|
-
["emz", "application/x-msmetafile"],
|
938
|
-
["eol", "audio/vnd.digital-winds"],
|
939
|
-
["eot", "application/vnd.ms-fontobject"],
|
940
|
-
["eps", "application/postscript"],
|
941
|
-
["epub", "application/epub+zip"],
|
942
|
-
["es", "application/ecmascript"],
|
943
|
-
["es3", "application/vnd.eszigno3+xml"],
|
944
|
-
["esa", "application/vnd.osgi.subsystem"],
|
945
|
-
["esf", "application/vnd.epson.esf"],
|
946
|
-
["et3", "application/vnd.eszigno3+xml"],
|
947
|
-
["etx", "text/x-setext"],
|
948
|
-
["eva", "application/x-eva"],
|
949
|
-
["evy", "application/x-envoy"],
|
950
|
-
["exe", "application/octet-stream"],
|
951
|
-
["exi", "application/exi"],
|
952
|
-
["exp", "application/express"],
|
953
|
-
["exr", "image/aces"],
|
954
|
-
["ext", "application/vnd.novadigm.ext"],
|
955
|
-
["ez", "application/andrew-inset"],
|
956
|
-
["ez2", "application/vnd.ezpix-album"],
|
957
|
-
["ez3", "application/vnd.ezpix-package"],
|
958
|
-
["f", "text/x-fortran"],
|
959
|
-
["f4v", "video/mp4"],
|
960
|
-
["f77", "text/x-fortran"],
|
961
|
-
["f90", "text/x-fortran"],
|
962
|
-
["fbs", "image/vnd.fastbidsheet"],
|
963
|
-
["fcdt", "application/vnd.adobe.formscentral.fcdt"],
|
964
|
-
["fcs", "application/vnd.isac.fcs"],
|
965
|
-
["fdf", "application/vnd.fdf"],
|
966
|
-
["fdt", "application/fdt+xml"],
|
967
|
-
["fe_launch", "application/vnd.denovo.fcselayout-link"],
|
968
|
-
["fg5", "application/vnd.fujitsu.oasysgp"],
|
969
|
-
["fgd", "application/x-director"],
|
970
|
-
["fh", "image/x-freehand"],
|
971
|
-
["fh4", "image/x-freehand"],
|
972
|
-
["fh5", "image/x-freehand"],
|
973
|
-
["fh7", "image/x-freehand"],
|
974
|
-
["fhc", "image/x-freehand"],
|
975
|
-
["fig", "application/x-xfig"],
|
976
|
-
["fits", "image/fits"],
|
977
|
-
["flac", "audio/x-flac"],
|
978
|
-
["fli", "video/x-fli"],
|
979
|
-
["flo", "application/vnd.micrografx.flo"],
|
980
|
-
["flv", "video/x-flv"],
|
981
|
-
["flw", "application/vnd.kde.kivio"],
|
982
|
-
["flx", "text/vnd.fmi.flexstor"],
|
983
|
-
["fly", "text/vnd.fly"],
|
984
|
-
["fm", "application/vnd.framemaker"],
|
985
|
-
["fnc", "application/vnd.frogans.fnc"],
|
986
|
-
["fo", "application/vnd.software602.filler.form+xml"],
|
987
|
-
["for", "text/x-fortran"],
|
988
|
-
["fpx", "image/vnd.fpx"],
|
989
|
-
["frame", "application/vnd.framemaker"],
|
990
|
-
["fsc", "application/vnd.fsc.weblaunch"],
|
991
|
-
["fst", "image/vnd.fst"],
|
992
|
-
["ftc", "application/vnd.fluxtime.clip"],
|
993
|
-
["fti", "application/vnd.anser-web-funds-transfer-initiation"],
|
994
|
-
["fvt", "video/vnd.fvt"],
|
995
|
-
["fxp", "application/vnd.adobe.fxp"],
|
996
|
-
["fxpl", "application/vnd.adobe.fxp"],
|
997
|
-
["fzs", "application/vnd.fuzzysheet"],
|
998
|
-
["g2w", "application/vnd.geoplan"],
|
999
|
-
["g3", "image/g3fax"],
|
1000
|
-
["g3w", "application/vnd.geospace"],
|
1001
|
-
["gac", "application/vnd.groove-account"],
|
1002
|
-
["gam", "application/x-tads"],
|
1003
|
-
["gbr", "application/rpki-ghostbusters"],
|
1004
|
-
["gca", "application/x-gca-compressed"],
|
1005
|
-
["gdl", "model/vnd.gdl"],
|
1006
|
-
["gdoc", "application/vnd.google-apps.document"],
|
1007
|
-
["geo", "application/vnd.dynageo"],
|
1008
|
-
["geojson", "application/geo+json"],
|
1009
|
-
["gex", "application/vnd.geometry-explorer"],
|
1010
|
-
["ggb", "application/vnd.geogebra.file"],
|
1011
|
-
["ggt", "application/vnd.geogebra.tool"],
|
1012
|
-
["ghf", "application/vnd.groove-help"],
|
1013
|
-
["gif", "image/gif"],
|
1014
|
-
["gim", "application/vnd.groove-identity-message"],
|
1015
|
-
["glb", "model/gltf-binary"],
|
1016
|
-
["gltf", "model/gltf+json"],
|
1017
|
-
["gml", "application/gml+xml"],
|
1018
|
-
["gmx", "application/vnd.gmx"],
|
1019
|
-
["gnumeric", "application/x-gnumeric"],
|
1020
|
-
["gpg", "application/gpg-keys"],
|
1021
|
-
["gph", "application/vnd.flographit"],
|
1022
|
-
["gpx", "application/gpx+xml"],
|
1023
|
-
["gqf", "application/vnd.grafeq"],
|
1024
|
-
["gqs", "application/vnd.grafeq"],
|
1025
|
-
["gram", "application/srgs"],
|
1026
|
-
["gramps", "application/x-gramps-xml"],
|
1027
|
-
["gre", "application/vnd.geometry-explorer"],
|
1028
|
-
["grv", "application/vnd.groove-injector"],
|
1029
|
-
["grxml", "application/srgs+xml"],
|
1030
|
-
["gsf", "application/x-font-ghostscript"],
|
1031
|
-
["gsheet", "application/vnd.google-apps.spreadsheet"],
|
1032
|
-
["gslides", "application/vnd.google-apps.presentation"],
|
1033
|
-
["gtar", "application/x-gtar"],
|
1034
|
-
["gtm", "application/vnd.groove-tool-message"],
|
1035
|
-
["gtw", "model/vnd.gtw"],
|
1036
|
-
["gv", "text/vnd.graphviz"],
|
1037
|
-
["gxf", "application/gxf"],
|
1038
|
-
["gxt", "application/vnd.geonext"],
|
1039
|
-
["gz", "application/gzip"],
|
1040
|
-
["gzip", "application/gzip"],
|
1041
|
-
["h", "text/x-c"],
|
1042
|
-
["h261", "video/h261"],
|
1043
|
-
["h263", "video/h263"],
|
1044
|
-
["h264", "video/h264"],
|
1045
|
-
["hal", "application/vnd.hal+xml"],
|
1046
|
-
["hbci", "application/vnd.hbci"],
|
1047
|
-
["hbs", "text/x-handlebars-template"],
|
1048
|
-
["hdd", "application/x-virtualbox-hdd"],
|
1049
|
-
["hdf", "application/x-hdf"],
|
1050
|
-
["heic", "image/heic"],
|
1051
|
-
["heics", "image/heic-sequence"],
|
1052
|
-
["heif", "image/heif"],
|
1053
|
-
["heifs", "image/heif-sequence"],
|
1054
|
-
["hej2", "image/hej2k"],
|
1055
|
-
["held", "application/atsc-held+xml"],
|
1056
|
-
["hh", "text/x-c"],
|
1057
|
-
["hjson", "application/hjson"],
|
1058
|
-
["hlp", "application/winhlp"],
|
1059
|
-
["hpgl", "application/vnd.hp-hpgl"],
|
1060
|
-
["hpid", "application/vnd.hp-hpid"],
|
1061
|
-
["hps", "application/vnd.hp-hps"],
|
1062
|
-
["hqx", "application/mac-binhex40"],
|
1063
|
-
["hsj2", "image/hsj2"],
|
1064
|
-
["htc", "text/x-component"],
|
1065
|
-
["htke", "application/vnd.kenameaapp"],
|
1066
|
-
["htm", "text/html"],
|
1067
|
-
["html", "text/html"],
|
1068
|
-
["hvd", "application/vnd.yamaha.hv-dic"],
|
1069
|
-
["hvp", "application/vnd.yamaha.hv-voice"],
|
1070
|
-
["hvs", "application/vnd.yamaha.hv-script"],
|
1071
|
-
["i2g", "application/vnd.intergeo"],
|
1072
|
-
["icc", "application/vnd.iccprofile"],
|
1073
|
-
["ice", "x-conference/x-cooltalk"],
|
1074
|
-
["icm", "application/vnd.iccprofile"],
|
1075
|
-
["ico", "image/x-icon"],
|
1076
|
-
["ics", "text/calendar"],
|
1077
|
-
["ief", "image/ief"],
|
1078
|
-
["ifb", "text/calendar"],
|
1079
|
-
["ifm", "application/vnd.shana.informed.formdata"],
|
1080
|
-
["iges", "model/iges"],
|
1081
|
-
["igl", "application/vnd.igloader"],
|
1082
|
-
["igm", "application/vnd.insors.igm"],
|
1083
|
-
["igs", "model/iges"],
|
1084
|
-
["igx", "application/vnd.micrografx.igx"],
|
1085
|
-
["iif", "application/vnd.shana.informed.interchange"],
|
1086
|
-
["img", "application/octet-stream"],
|
1087
|
-
["imp", "application/vnd.accpac.simply.imp"],
|
1088
|
-
["ims", "application/vnd.ms-ims"],
|
1089
|
-
["in", "text/plain"],
|
1090
|
-
["ini", "text/plain"],
|
1091
|
-
["ink", "application/inkml+xml"],
|
1092
|
-
["inkml", "application/inkml+xml"],
|
1093
|
-
["install", "application/x-install-instructions"],
|
1094
|
-
["iota", "application/vnd.astraea-software.iota"],
|
1095
|
-
["ipfix", "application/ipfix"],
|
1096
|
-
["ipk", "application/vnd.shana.informed.package"],
|
1097
|
-
["irm", "application/vnd.ibm.rights-management"],
|
1098
|
-
["irp", "application/vnd.irepository.package+xml"],
|
1099
|
-
["iso", "application/x-iso9660-image"],
|
1100
|
-
["itp", "application/vnd.shana.informed.formtemplate"],
|
1101
|
-
["its", "application/its+xml"],
|
1102
|
-
["ivp", "application/vnd.immervision-ivp"],
|
1103
|
-
["ivu", "application/vnd.immervision-ivu"],
|
1104
|
-
["jad", "text/vnd.sun.j2me.app-descriptor"],
|
1105
|
-
["jade", "text/jade"],
|
1106
|
-
["jam", "application/vnd.jam"],
|
1107
|
-
["jar", "application/java-archive"],
|
1108
|
-
["jardiff", "application/x-java-archive-diff"],
|
1109
|
-
["java", "text/x-java-source"],
|
1110
|
-
["jhc", "image/jphc"],
|
1111
|
-
["jisp", "application/vnd.jisp"],
|
1112
|
-
["jls", "image/jls"],
|
1113
|
-
["jlt", "application/vnd.hp-jlyt"],
|
1114
|
-
["jng", "image/x-jng"],
|
1115
|
-
["jnlp", "application/x-java-jnlp-file"],
|
1116
|
-
["joda", "application/vnd.joost.joda-archive"],
|
1117
|
-
["jp2", "image/jp2"],
|
1118
|
-
["jpe", "image/jpeg"],
|
1119
|
-
["jpeg", "image/jpeg"],
|
1120
|
-
["jpf", "image/jpx"],
|
1121
|
-
["jpg", "image/jpeg"],
|
1122
|
-
["jpg2", "image/jp2"],
|
1123
|
-
["jpgm", "video/jpm"],
|
1124
|
-
["jpgv", "video/jpeg"],
|
1125
|
-
["jph", "image/jph"],
|
1126
|
-
["jpm", "video/jpm"],
|
1127
|
-
["jpx", "image/jpx"],
|
1128
|
-
["js", "application/javascript"],
|
1129
|
-
["json", "application/json"],
|
1130
|
-
["json5", "application/json5"],
|
1131
|
-
["jsonld", "application/ld+json"],
|
1132
|
-
// https://jsonlines.org/
|
1133
|
-
["jsonl", "application/jsonl"],
|
1134
|
-
["jsonml", "application/jsonml+json"],
|
1135
|
-
["jsx", "text/jsx"],
|
1136
|
-
["jxr", "image/jxr"],
|
1137
|
-
["jxra", "image/jxra"],
|
1138
|
-
["jxrs", "image/jxrs"],
|
1139
|
-
["jxs", "image/jxs"],
|
1140
|
-
["jxsc", "image/jxsc"],
|
1141
|
-
["jxsi", "image/jxsi"],
|
1142
|
-
["jxss", "image/jxss"],
|
1143
|
-
["kar", "audio/midi"],
|
1144
|
-
["karbon", "application/vnd.kde.karbon"],
|
1145
|
-
["kdb", "application/octet-stream"],
|
1146
|
-
["kdbx", "application/x-keepass2"],
|
1147
|
-
["key", "application/x-iwork-keynote-sffkey"],
|
1148
|
-
["kfo", "application/vnd.kde.kformula"],
|
1149
|
-
["kia", "application/vnd.kidspiration"],
|
1150
|
-
["kml", "application/vnd.google-earth.kml+xml"],
|
1151
|
-
["kmz", "application/vnd.google-earth.kmz"],
|
1152
|
-
["kne", "application/vnd.kinar"],
|
1153
|
-
["knp", "application/vnd.kinar"],
|
1154
|
-
["kon", "application/vnd.kde.kontour"],
|
1155
|
-
["kpr", "application/vnd.kde.kpresenter"],
|
1156
|
-
["kpt", "application/vnd.kde.kpresenter"],
|
1157
|
-
["kpxx", "application/vnd.ds-keypoint"],
|
1158
|
-
["ksp", "application/vnd.kde.kspread"],
|
1159
|
-
["ktr", "application/vnd.kahootz"],
|
1160
|
-
["ktx", "image/ktx"],
|
1161
|
-
["ktx2", "image/ktx2"],
|
1162
|
-
["ktz", "application/vnd.kahootz"],
|
1163
|
-
["kwd", "application/vnd.kde.kword"],
|
1164
|
-
["kwt", "application/vnd.kde.kword"],
|
1165
|
-
["lasxml", "application/vnd.las.las+xml"],
|
1166
|
-
["latex", "application/x-latex"],
|
1167
|
-
["lbd", "application/vnd.llamagraphics.life-balance.desktop"],
|
1168
|
-
["lbe", "application/vnd.llamagraphics.life-balance.exchange+xml"],
|
1169
|
-
["les", "application/vnd.hhe.lesson-player"],
|
1170
|
-
["less", "text/less"],
|
1171
|
-
["lgr", "application/lgr+xml"],
|
1172
|
-
["lha", "application/octet-stream"],
|
1173
|
-
["link66", "application/vnd.route66.link66+xml"],
|
1174
|
-
["list", "text/plain"],
|
1175
|
-
["list3820", "application/vnd.ibm.modcap"],
|
1176
|
-
["listafp", "application/vnd.ibm.modcap"],
|
1177
|
-
["litcoffee", "text/coffeescript"],
|
1178
|
-
["lnk", "application/x-ms-shortcut"],
|
1179
|
-
["log", "text/plain"],
|
1180
|
-
["lostxml", "application/lost+xml"],
|
1181
|
-
["lrf", "application/octet-stream"],
|
1182
|
-
["lrm", "application/vnd.ms-lrm"],
|
1183
|
-
["ltf", "application/vnd.frogans.ltf"],
|
1184
|
-
["lua", "text/x-lua"],
|
1185
|
-
["luac", "application/x-lua-bytecode"],
|
1186
|
-
["lvp", "audio/vnd.lucent.voice"],
|
1187
|
-
["lwp", "application/vnd.lotus-wordpro"],
|
1188
|
-
["lzh", "application/octet-stream"],
|
1189
|
-
["m1v", "video/mpeg"],
|
1190
|
-
["m2a", "audio/mpeg"],
|
1191
|
-
["m2v", "video/mpeg"],
|
1192
|
-
["m3a", "audio/mpeg"],
|
1193
|
-
["m3u", "text/plain"],
|
1194
|
-
["m3u8", "application/vnd.apple.mpegurl"],
|
1195
|
-
["m4a", "audio/x-m4a"],
|
1196
|
-
["m4p", "application/mp4"],
|
1197
|
-
["m4s", "video/iso.segment"],
|
1198
|
-
["m4u", "application/vnd.mpegurl"],
|
1199
|
-
["m4v", "video/x-m4v"],
|
1200
|
-
["m13", "application/x-msmediaview"],
|
1201
|
-
["m14", "application/x-msmediaview"],
|
1202
|
-
["m21", "application/mp21"],
|
1203
|
-
["ma", "application/mathematica"],
|
1204
|
-
["mads", "application/mads+xml"],
|
1205
|
-
["maei", "application/mmt-aei+xml"],
|
1206
|
-
["mag", "application/vnd.ecowin.chart"],
|
1207
|
-
["maker", "application/vnd.framemaker"],
|
1208
|
-
["man", "text/troff"],
|
1209
|
-
["manifest", "text/cache-manifest"],
|
1210
|
-
["map", "application/json"],
|
1211
|
-
["mar", "application/octet-stream"],
|
1212
|
-
["markdown", "text/markdown"],
|
1213
|
-
["mathml", "application/mathml+xml"],
|
1214
|
-
["mb", "application/mathematica"],
|
1215
|
-
["mbk", "application/vnd.mobius.mbk"],
|
1216
|
-
["mbox", "application/mbox"],
|
1217
|
-
["mc1", "application/vnd.medcalcdata"],
|
1218
|
-
["mcd", "application/vnd.mcd"],
|
1219
|
-
["mcurl", "text/vnd.curl.mcurl"],
|
1220
|
-
["md", "text/markdown"],
|
1221
|
-
["mdb", "application/x-msaccess"],
|
1222
|
-
["mdi", "image/vnd.ms-modi"],
|
1223
|
-
["mdx", "text/mdx"],
|
1224
|
-
["me", "text/troff"],
|
1225
|
-
["mesh", "model/mesh"],
|
1226
|
-
["meta4", "application/metalink4+xml"],
|
1227
|
-
["metalink", "application/metalink+xml"],
|
1228
|
-
["mets", "application/mets+xml"],
|
1229
|
-
["mfm", "application/vnd.mfmp"],
|
1230
|
-
["mft", "application/rpki-manifest"],
|
1231
|
-
["mgp", "application/vnd.osgeo.mapguide.package"],
|
1232
|
-
["mgz", "application/vnd.proteus.magazine"],
|
1233
|
-
["mid", "audio/midi"],
|
1234
|
-
["midi", "audio/midi"],
|
1235
|
-
["mie", "application/x-mie"],
|
1236
|
-
["mif", "application/vnd.mif"],
|
1237
|
-
["mime", "message/rfc822"],
|
1238
|
-
["mj2", "video/mj2"],
|
1239
|
-
["mjp2", "video/mj2"],
|
1240
|
-
["mjs", "application/javascript"],
|
1241
|
-
["mk3d", "video/x-matroska"],
|
1242
|
-
["mka", "audio/x-matroska"],
|
1243
|
-
["mkd", "text/x-markdown"],
|
1244
|
-
["mks", "video/x-matroska"],
|
1245
|
-
["mkv", "video/x-matroska"],
|
1246
|
-
["mlp", "application/vnd.dolby.mlp"],
|
1247
|
-
["mmd", "application/vnd.chipnuts.karaoke-mmd"],
|
1248
|
-
["mmf", "application/vnd.smaf"],
|
1249
|
-
["mml", "text/mathml"],
|
1250
|
-
["mmr", "image/vnd.fujixerox.edmics-mmr"],
|
1251
|
-
["mng", "video/x-mng"],
|
1252
|
-
["mny", "application/x-msmoney"],
|
1253
|
-
["mobi", "application/x-mobipocket-ebook"],
|
1254
|
-
["mods", "application/mods+xml"],
|
1255
|
-
["mov", "video/quicktime"],
|
1256
|
-
["movie", "video/x-sgi-movie"],
|
1257
|
-
["mp2", "audio/mpeg"],
|
1258
|
-
["mp2a", "audio/mpeg"],
|
1259
|
-
["mp3", "audio/mpeg"],
|
1260
|
-
["mp4", "video/mp4"],
|
1261
|
-
["mp4a", "audio/mp4"],
|
1262
|
-
["mp4s", "application/mp4"],
|
1263
|
-
["mp4v", "video/mp4"],
|
1264
|
-
["mp21", "application/mp21"],
|
1265
|
-
["mpc", "application/vnd.mophun.certificate"],
|
1266
|
-
["mpd", "application/dash+xml"],
|
1267
|
-
["mpe", "video/mpeg"],
|
1268
|
-
["mpeg", "video/mpeg"],
|
1269
|
-
["mpg", "video/mpeg"],
|
1270
|
-
["mpg4", "video/mp4"],
|
1271
|
-
["mpga", "audio/mpeg"],
|
1272
|
-
["mpkg", "application/vnd.apple.installer+xml"],
|
1273
|
-
["mpm", "application/vnd.blueice.multipass"],
|
1274
|
-
["mpn", "application/vnd.mophun.application"],
|
1275
|
-
["mpp", "application/vnd.ms-project"],
|
1276
|
-
["mpt", "application/vnd.ms-project"],
|
1277
|
-
["mpy", "application/vnd.ibm.minipay"],
|
1278
|
-
["mqy", "application/vnd.mobius.mqy"],
|
1279
|
-
["mrc", "application/marc"],
|
1280
|
-
["mrcx", "application/marcxml+xml"],
|
1281
|
-
["ms", "text/troff"],
|
1282
|
-
["mscml", "application/mediaservercontrol+xml"],
|
1283
|
-
["mseed", "application/vnd.fdsn.mseed"],
|
1284
|
-
["mseq", "application/vnd.mseq"],
|
1285
|
-
["msf", "application/vnd.epson.msf"],
|
1286
|
-
["msg", "application/vnd.ms-outlook"],
|
1287
|
-
["msh", "model/mesh"],
|
1288
|
-
["msi", "application/x-msdownload"],
|
1289
|
-
["msl", "application/vnd.mobius.msl"],
|
1290
|
-
["msm", "application/octet-stream"],
|
1291
|
-
["msp", "application/octet-stream"],
|
1292
|
-
["msty", "application/vnd.muvee.style"],
|
1293
|
-
["mtl", "model/mtl"],
|
1294
|
-
["mts", "model/vnd.mts"],
|
1295
|
-
["mus", "application/vnd.musician"],
|
1296
|
-
["musd", "application/mmt-usd+xml"],
|
1297
|
-
["musicxml", "application/vnd.recordare.musicxml+xml"],
|
1298
|
-
["mvb", "application/x-msmediaview"],
|
1299
|
-
["mvt", "application/vnd.mapbox-vector-tile"],
|
1300
|
-
["mwf", "application/vnd.mfer"],
|
1301
|
-
["mxf", "application/mxf"],
|
1302
|
-
["mxl", "application/vnd.recordare.musicxml"],
|
1303
|
-
["mxmf", "audio/mobile-xmf"],
|
1304
|
-
["mxml", "application/xv+xml"],
|
1305
|
-
["mxs", "application/vnd.triscape.mxs"],
|
1306
|
-
["mxu", "video/vnd.mpegurl"],
|
1307
|
-
["n-gage", "application/vnd.nokia.n-gage.symbian.install"],
|
1308
|
-
["n3", "text/n3"],
|
1309
|
-
["nb", "application/mathematica"],
|
1310
|
-
["nbp", "application/vnd.wolfram.player"],
|
1311
|
-
["nc", "application/x-netcdf"],
|
1312
|
-
["ncx", "application/x-dtbncx+xml"],
|
1313
|
-
["nfo", "text/x-nfo"],
|
1314
|
-
["ngdat", "application/vnd.nokia.n-gage.data"],
|
1315
|
-
["nitf", "application/vnd.nitf"],
|
1316
|
-
["nlu", "application/vnd.neurolanguage.nlu"],
|
1317
|
-
["nml", "application/vnd.enliven"],
|
1318
|
-
["nnd", "application/vnd.noblenet-directory"],
|
1319
|
-
["nns", "application/vnd.noblenet-sealer"],
|
1320
|
-
["nnw", "application/vnd.noblenet-web"],
|
1321
|
-
["npx", "image/vnd.net-fpx"],
|
1322
|
-
["nq", "application/n-quads"],
|
1323
|
-
["nsc", "application/x-conference"],
|
1324
|
-
["nsf", "application/vnd.lotus-notes"],
|
1325
|
-
["nt", "application/n-triples"],
|
1326
|
-
["ntf", "application/vnd.nitf"],
|
1327
|
-
["numbers", "application/x-iwork-numbers-sffnumbers"],
|
1328
|
-
["nzb", "application/x-nzb"],
|
1329
|
-
["oa2", "application/vnd.fujitsu.oasys2"],
|
1330
|
-
["oa3", "application/vnd.fujitsu.oasys3"],
|
1331
|
-
["oas", "application/vnd.fujitsu.oasys"],
|
1332
|
-
["obd", "application/x-msbinder"],
|
1333
|
-
["obgx", "application/vnd.openblox.game+xml"],
|
1334
|
-
["obj", "model/obj"],
|
1335
|
-
["oda", "application/oda"],
|
1336
|
-
["odb", "application/vnd.oasis.opendocument.database"],
|
1337
|
-
["odc", "application/vnd.oasis.opendocument.chart"],
|
1338
|
-
["odf", "application/vnd.oasis.opendocument.formula"],
|
1339
|
-
["odft", "application/vnd.oasis.opendocument.formula-template"],
|
1340
|
-
["odg", "application/vnd.oasis.opendocument.graphics"],
|
1341
|
-
["odi", "application/vnd.oasis.opendocument.image"],
|
1342
|
-
["odm", "application/vnd.oasis.opendocument.text-master"],
|
1343
|
-
["odp", "application/vnd.oasis.opendocument.presentation"],
|
1344
|
-
["ods", "application/vnd.oasis.opendocument.spreadsheet"],
|
1345
|
-
["odt", "application/vnd.oasis.opendocument.text"],
|
1346
|
-
["oga", "audio/ogg"],
|
1347
|
-
["ogex", "model/vnd.opengex"],
|
1348
|
-
["ogg", "audio/ogg"],
|
1349
|
-
["ogv", "video/ogg"],
|
1350
|
-
["ogx", "application/ogg"],
|
1351
|
-
["omdoc", "application/omdoc+xml"],
|
1352
|
-
["onepkg", "application/onenote"],
|
1353
|
-
["onetmp", "application/onenote"],
|
1354
|
-
["onetoc", "application/onenote"],
|
1355
|
-
["onetoc2", "application/onenote"],
|
1356
|
-
["opf", "application/oebps-package+xml"],
|
1357
|
-
["opml", "text/x-opml"],
|
1358
|
-
["oprc", "application/vnd.palm"],
|
1359
|
-
["opus", "audio/ogg"],
|
1360
|
-
["org", "text/x-org"],
|
1361
|
-
["osf", "application/vnd.yamaha.openscoreformat"],
|
1362
|
-
["osfpvg", "application/vnd.yamaha.openscoreformat.osfpvg+xml"],
|
1363
|
-
["osm", "application/vnd.openstreetmap.data+xml"],
|
1364
|
-
["otc", "application/vnd.oasis.opendocument.chart-template"],
|
1365
|
-
["otf", "font/otf"],
|
1366
|
-
["otg", "application/vnd.oasis.opendocument.graphics-template"],
|
1367
|
-
["oth", "application/vnd.oasis.opendocument.text-web"],
|
1368
|
-
["oti", "application/vnd.oasis.opendocument.image-template"],
|
1369
|
-
["otp", "application/vnd.oasis.opendocument.presentation-template"],
|
1370
|
-
["ots", "application/vnd.oasis.opendocument.spreadsheet-template"],
|
1371
|
-
["ott", "application/vnd.oasis.opendocument.text-template"],
|
1372
|
-
["ova", "application/x-virtualbox-ova"],
|
1373
|
-
["ovf", "application/x-virtualbox-ovf"],
|
1374
|
-
["owl", "application/rdf+xml"],
|
1375
|
-
["oxps", "application/oxps"],
|
1376
|
-
["oxt", "application/vnd.openofficeorg.extension"],
|
1377
|
-
["p", "text/x-pascal"],
|
1378
|
-
["p7a", "application/x-pkcs7-signature"],
|
1379
|
-
["p7b", "application/x-pkcs7-certificates"],
|
1380
|
-
["p7c", "application/pkcs7-mime"],
|
1381
|
-
["p7m", "application/pkcs7-mime"],
|
1382
|
-
["p7r", "application/x-pkcs7-certreqresp"],
|
1383
|
-
["p7s", "application/pkcs7-signature"],
|
1384
|
-
["p8", "application/pkcs8"],
|
1385
|
-
["p10", "application/x-pkcs10"],
|
1386
|
-
["p12", "application/x-pkcs12"],
|
1387
|
-
["pac", "application/x-ns-proxy-autoconfig"],
|
1388
|
-
["pages", "application/x-iwork-pages-sffpages"],
|
1389
|
-
["pas", "text/x-pascal"],
|
1390
|
-
["paw", "application/vnd.pawaafile"],
|
1391
|
-
["pbd", "application/vnd.powerbuilder6"],
|
1392
|
-
["pbm", "image/x-portable-bitmap"],
|
1393
|
-
["pcap", "application/vnd.tcpdump.pcap"],
|
1394
|
-
["pcf", "application/x-font-pcf"],
|
1395
|
-
["pcl", "application/vnd.hp-pcl"],
|
1396
|
-
["pclxl", "application/vnd.hp-pclxl"],
|
1397
|
-
["pct", "image/x-pict"],
|
1398
|
-
["pcurl", "application/vnd.curl.pcurl"],
|
1399
|
-
["pcx", "image/x-pcx"],
|
1400
|
-
["pdb", "application/x-pilot"],
|
1401
|
-
["pde", "text/x-processing"],
|
1402
|
-
["pdf", "application/pdf"],
|
1403
|
-
["pem", "application/x-x509-user-cert"],
|
1404
|
-
["pfa", "application/x-font-type1"],
|
1405
|
-
["pfb", "application/x-font-type1"],
|
1406
|
-
["pfm", "application/x-font-type1"],
|
1407
|
-
["pfr", "application/font-tdpfr"],
|
1408
|
-
["pfx", "application/x-pkcs12"],
|
1409
|
-
["pgm", "image/x-portable-graymap"],
|
1410
|
-
["pgn", "application/x-chess-pgn"],
|
1411
|
-
["pgp", "application/pgp"],
|
1412
|
-
["php", "application/x-httpd-php"],
|
1413
|
-
["php3", "application/x-httpd-php"],
|
1414
|
-
["php4", "application/x-httpd-php"],
|
1415
|
-
["phps", "application/x-httpd-php-source"],
|
1416
|
-
["phtml", "application/x-httpd-php"],
|
1417
|
-
["pic", "image/x-pict"],
|
1418
|
-
["pkg", "application/octet-stream"],
|
1419
|
-
["pki", "application/pkixcmp"],
|
1420
|
-
["pkipath", "application/pkix-pkipath"],
|
1421
|
-
["pkpass", "application/vnd.apple.pkpass"],
|
1422
|
-
["pl", "application/x-perl"],
|
1423
|
-
["plb", "application/vnd.3gpp.pic-bw-large"],
|
1424
|
-
["plc", "application/vnd.mobius.plc"],
|
1425
|
-
["plf", "application/vnd.pocketlearn"],
|
1426
|
-
["pls", "application/pls+xml"],
|
1427
|
-
["pm", "application/x-perl"],
|
1428
|
-
["pml", "application/vnd.ctc-posml"],
|
1429
|
-
["png", "image/png"],
|
1430
|
-
["pnm", "image/x-portable-anymap"],
|
1431
|
-
["portpkg", "application/vnd.macports.portpkg"],
|
1432
|
-
["pot", "application/vnd.ms-powerpoint"],
|
1433
|
-
["potm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
|
1434
|
-
["potx", "application/vnd.openxmlformats-officedocument.presentationml.template"],
|
1435
|
-
["ppa", "application/vnd.ms-powerpoint"],
|
1436
|
-
["ppam", "application/vnd.ms-powerpoint.addin.macroEnabled.12"],
|
1437
|
-
["ppd", "application/vnd.cups-ppd"],
|
1438
|
-
["ppm", "image/x-portable-pixmap"],
|
1439
|
-
["pps", "application/vnd.ms-powerpoint"],
|
1440
|
-
["ppsm", "application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],
|
1441
|
-
["ppsx", "application/vnd.openxmlformats-officedocument.presentationml.slideshow"],
|
1442
|
-
["ppt", "application/powerpoint"],
|
1443
|
-
["pptm", "application/vnd.ms-powerpoint.presentation.macroEnabled.12"],
|
1444
|
-
["pptx", "application/vnd.openxmlformats-officedocument.presentationml.presentation"],
|
1445
|
-
["pqa", "application/vnd.palm"],
|
1446
|
-
["prc", "application/x-pilot"],
|
1447
|
-
["pre", "application/vnd.lotus-freelance"],
|
1448
|
-
["prf", "application/pics-rules"],
|
1449
|
-
["provx", "application/provenance+xml"],
|
1450
|
-
["ps", "application/postscript"],
|
1451
|
-
["psb", "application/vnd.3gpp.pic-bw-small"],
|
1452
|
-
["psd", "application/x-photoshop"],
|
1453
|
-
["psf", "application/x-font-linux-psf"],
|
1454
|
-
["pskcxml", "application/pskc+xml"],
|
1455
|
-
["pti", "image/prs.pti"],
|
1456
|
-
["ptid", "application/vnd.pvi.ptid1"],
|
1457
|
-
["pub", "application/x-mspublisher"],
|
1458
|
-
["pvb", "application/vnd.3gpp.pic-bw-var"],
|
1459
|
-
["pwn", "application/vnd.3m.post-it-notes"],
|
1460
|
-
["pya", "audio/vnd.ms-playready.media.pya"],
|
1461
|
-
["pyv", "video/vnd.ms-playready.media.pyv"],
|
1462
|
-
["qam", "application/vnd.epson.quickanime"],
|
1463
|
-
["qbo", "application/vnd.intu.qbo"],
|
1464
|
-
["qfx", "application/vnd.intu.qfx"],
|
1465
|
-
["qps", "application/vnd.publishare-delta-tree"],
|
1466
|
-
["qt", "video/quicktime"],
|
1467
|
-
["qwd", "application/vnd.quark.quarkxpress"],
|
1468
|
-
["qwt", "application/vnd.quark.quarkxpress"],
|
1469
|
-
["qxb", "application/vnd.quark.quarkxpress"],
|
1470
|
-
["qxd", "application/vnd.quark.quarkxpress"],
|
1471
|
-
["qxl", "application/vnd.quark.quarkxpress"],
|
1472
|
-
["qxt", "application/vnd.quark.quarkxpress"],
|
1473
|
-
["ra", "audio/x-realaudio"],
|
1474
|
-
["ram", "audio/x-pn-realaudio"],
|
1475
|
-
["raml", "application/raml+yaml"],
|
1476
|
-
["rapd", "application/route-apd+xml"],
|
1477
|
-
["rar", "application/x-rar"],
|
1478
|
-
["ras", "image/x-cmu-raster"],
|
1479
|
-
["rcprofile", "application/vnd.ipunplugged.rcprofile"],
|
1480
|
-
["rdf", "application/rdf+xml"],
|
1481
|
-
["rdz", "application/vnd.data-vision.rdz"],
|
1482
|
-
["relo", "application/p2p-overlay+xml"],
|
1483
|
-
["rep", "application/vnd.businessobjects"],
|
1484
|
-
["res", "application/x-dtbresource+xml"],
|
1485
|
-
["rgb", "image/x-rgb"],
|
1486
|
-
["rif", "application/reginfo+xml"],
|
1487
|
-
["rip", "audio/vnd.rip"],
|
1488
|
-
["ris", "application/x-research-info-systems"],
|
1489
|
-
["rl", "application/resource-lists+xml"],
|
1490
|
-
["rlc", "image/vnd.fujixerox.edmics-rlc"],
|
1491
|
-
["rld", "application/resource-lists-diff+xml"],
|
1492
|
-
["rm", "audio/x-pn-realaudio"],
|
1493
|
-
["rmi", "audio/midi"],
|
1494
|
-
["rmp", "audio/x-pn-realaudio-plugin"],
|
1495
|
-
["rms", "application/vnd.jcp.javame.midlet-rms"],
|
1496
|
-
["rmvb", "application/vnd.rn-realmedia-vbr"],
|
1497
|
-
["rnc", "application/relax-ng-compact-syntax"],
|
1498
|
-
["rng", "application/xml"],
|
1499
|
-
["roa", "application/rpki-roa"],
|
1500
|
-
["roff", "text/troff"],
|
1501
|
-
["rp9", "application/vnd.cloanto.rp9"],
|
1502
|
-
["rpm", "audio/x-pn-realaudio-plugin"],
|
1503
|
-
["rpss", "application/vnd.nokia.radio-presets"],
|
1504
|
-
["rpst", "application/vnd.nokia.radio-preset"],
|
1505
|
-
["rq", "application/sparql-query"],
|
1506
|
-
["rs", "application/rls-services+xml"],
|
1507
|
-
["rsa", "application/x-pkcs7"],
|
1508
|
-
["rsat", "application/atsc-rsat+xml"],
|
1509
|
-
["rsd", "application/rsd+xml"],
|
1510
|
-
["rsheet", "application/urc-ressheet+xml"],
|
1511
|
-
["rss", "application/rss+xml"],
|
1512
|
-
["rtf", "text/rtf"],
|
1513
|
-
["rtx", "text/richtext"],
|
1514
|
-
["run", "application/x-makeself"],
|
1515
|
-
["rusd", "application/route-usd+xml"],
|
1516
|
-
["rv", "video/vnd.rn-realvideo"],
|
1517
|
-
["s", "text/x-asm"],
|
1518
|
-
["s3m", "audio/s3m"],
|
1519
|
-
["saf", "application/vnd.yamaha.smaf-audio"],
|
1520
|
-
["sass", "text/x-sass"],
|
1521
|
-
["sbml", "application/sbml+xml"],
|
1522
|
-
["sc", "application/vnd.ibm.secure-container"],
|
1523
|
-
["scd", "application/x-msschedule"],
|
1524
|
-
["scm", "application/vnd.lotus-screencam"],
|
1525
|
-
["scq", "application/scvp-cv-request"],
|
1526
|
-
["scs", "application/scvp-cv-response"],
|
1527
|
-
["scss", "text/x-scss"],
|
1528
|
-
["scurl", "text/vnd.curl.scurl"],
|
1529
|
-
["sda", "application/vnd.stardivision.draw"],
|
1530
|
-
["sdc", "application/vnd.stardivision.calc"],
|
1531
|
-
["sdd", "application/vnd.stardivision.impress"],
|
1532
|
-
["sdkd", "application/vnd.solent.sdkm+xml"],
|
1533
|
-
["sdkm", "application/vnd.solent.sdkm+xml"],
|
1534
|
-
["sdp", "application/sdp"],
|
1535
|
-
["sdw", "application/vnd.stardivision.writer"],
|
1536
|
-
["sea", "application/octet-stream"],
|
1537
|
-
["see", "application/vnd.seemail"],
|
1538
|
-
["seed", "application/vnd.fdsn.seed"],
|
1539
|
-
["sema", "application/vnd.sema"],
|
1540
|
-
["semd", "application/vnd.semd"],
|
1541
|
-
["semf", "application/vnd.semf"],
|
1542
|
-
["senmlx", "application/senml+xml"],
|
1543
|
-
["sensmlx", "application/sensml+xml"],
|
1544
|
-
["ser", "application/java-serialized-object"],
|
1545
|
-
["setpay", "application/set-payment-initiation"],
|
1546
|
-
["setreg", "application/set-registration-initiation"],
|
1547
|
-
["sfd-hdstx", "application/vnd.hydrostatix.sof-data"],
|
1548
|
-
["sfs", "application/vnd.spotfire.sfs"],
|
1549
|
-
["sfv", "text/x-sfv"],
|
1550
|
-
["sgi", "image/sgi"],
|
1551
|
-
["sgl", "application/vnd.stardivision.writer-global"],
|
1552
|
-
["sgm", "text/sgml"],
|
1553
|
-
["sgml", "text/sgml"],
|
1554
|
-
["sh", "application/x-sh"],
|
1555
|
-
["shar", "application/x-shar"],
|
1556
|
-
["shex", "text/shex"],
|
1557
|
-
["shf", "application/shf+xml"],
|
1558
|
-
["shtml", "text/html"],
|
1559
|
-
["sid", "image/x-mrsid-image"],
|
1560
|
-
["sieve", "application/sieve"],
|
1561
|
-
["sig", "application/pgp-signature"],
|
1562
|
-
["sil", "audio/silk"],
|
1563
|
-
["silo", "model/mesh"],
|
1564
|
-
["sis", "application/vnd.symbian.install"],
|
1565
|
-
["sisx", "application/vnd.symbian.install"],
|
1566
|
-
["sit", "application/x-stuffit"],
|
1567
|
-
["sitx", "application/x-stuffitx"],
|
1568
|
-
["siv", "application/sieve"],
|
1569
|
-
["skd", "application/vnd.koan"],
|
1570
|
-
["skm", "application/vnd.koan"],
|
1571
|
-
["skp", "application/vnd.koan"],
|
1572
|
-
["skt", "application/vnd.koan"],
|
1573
|
-
["sldm", "application/vnd.ms-powerpoint.slide.macroenabled.12"],
|
1574
|
-
["sldx", "application/vnd.openxmlformats-officedocument.presentationml.slide"],
|
1575
|
-
["slim", "text/slim"],
|
1576
|
-
["slm", "text/slim"],
|
1577
|
-
["sls", "application/route-s-tsid+xml"],
|
1578
|
-
["slt", "application/vnd.epson.salt"],
|
1579
|
-
["sm", "application/vnd.stepmania.stepchart"],
|
1580
|
-
["smf", "application/vnd.stardivision.math"],
|
1581
|
-
["smi", "application/smil"],
|
1582
|
-
["smil", "application/smil"],
|
1583
|
-
["smv", "video/x-smv"],
|
1584
|
-
["smzip", "application/vnd.stepmania.package"],
|
1585
|
-
["snd", "audio/basic"],
|
1586
|
-
["snf", "application/x-font-snf"],
|
1587
|
-
["so", "application/octet-stream"],
|
1588
|
-
["spc", "application/x-pkcs7-certificates"],
|
1589
|
-
["spdx", "text/spdx"],
|
1590
|
-
["spf", "application/vnd.yamaha.smaf-phrase"],
|
1591
|
-
["spl", "application/x-futuresplash"],
|
1592
|
-
["spot", "text/vnd.in3d.spot"],
|
1593
|
-
["spp", "application/scvp-vp-response"],
|
1594
|
-
["spq", "application/scvp-vp-request"],
|
1595
|
-
["spx", "audio/ogg"],
|
1596
|
-
["sql", "application/x-sql"],
|
1597
|
-
["src", "application/x-wais-source"],
|
1598
|
-
["srt", "application/x-subrip"],
|
1599
|
-
["sru", "application/sru+xml"],
|
1600
|
-
["srx", "application/sparql-results+xml"],
|
1601
|
-
["ssdl", "application/ssdl+xml"],
|
1602
|
-
["sse", "application/vnd.kodak-descriptor"],
|
1603
|
-
["ssf", "application/vnd.epson.ssf"],
|
1604
|
-
["ssml", "application/ssml+xml"],
|
1605
|
-
["sst", "application/octet-stream"],
|
1606
|
-
["st", "application/vnd.sailingtracker.track"],
|
1607
|
-
["stc", "application/vnd.sun.xml.calc.template"],
|
1608
|
-
["std", "application/vnd.sun.xml.draw.template"],
|
1609
|
-
["stf", "application/vnd.wt.stf"],
|
1610
|
-
["sti", "application/vnd.sun.xml.impress.template"],
|
1611
|
-
["stk", "application/hyperstudio"],
|
1612
|
-
["stl", "model/stl"],
|
1613
|
-
["stpx", "model/step+xml"],
|
1614
|
-
["stpxz", "model/step-xml+zip"],
|
1615
|
-
["stpz", "model/step+zip"],
|
1616
|
-
["str", "application/vnd.pg.format"],
|
1617
|
-
["stw", "application/vnd.sun.xml.writer.template"],
|
1618
|
-
["styl", "text/stylus"],
|
1619
|
-
["stylus", "text/stylus"],
|
1620
|
-
["sub", "text/vnd.dvb.subtitle"],
|
1621
|
-
["sus", "application/vnd.sus-calendar"],
|
1622
|
-
["susp", "application/vnd.sus-calendar"],
|
1623
|
-
["sv4cpio", "application/x-sv4cpio"],
|
1624
|
-
["sv4crc", "application/x-sv4crc"],
|
1625
|
-
["svc", "application/vnd.dvb.service"],
|
1626
|
-
["svd", "application/vnd.svd"],
|
1627
|
-
["svg", "image/svg+xml"],
|
1628
|
-
["svgz", "image/svg+xml"],
|
1629
|
-
["swa", "application/x-director"],
|
1630
|
-
["swf", "application/x-shockwave-flash"],
|
1631
|
-
["swi", "application/vnd.aristanetworks.swi"],
|
1632
|
-
["swidtag", "application/swid+xml"],
|
1633
|
-
["sxc", "application/vnd.sun.xml.calc"],
|
1634
|
-
["sxd", "application/vnd.sun.xml.draw"],
|
1635
|
-
["sxg", "application/vnd.sun.xml.writer.global"],
|
1636
|
-
["sxi", "application/vnd.sun.xml.impress"],
|
1637
|
-
["sxm", "application/vnd.sun.xml.math"],
|
1638
|
-
["sxw", "application/vnd.sun.xml.writer"],
|
1639
|
-
["t", "text/troff"],
|
1640
|
-
["t3", "application/x-t3vm-image"],
|
1641
|
-
["t38", "image/t38"],
|
1642
|
-
["taglet", "application/vnd.mynfc"],
|
1643
|
-
["tao", "application/vnd.tao.intent-module-archive"],
|
1644
|
-
["tap", "image/vnd.tencent.tap"],
|
1645
|
-
["tar", "application/x-tar"],
|
1646
|
-
["tcap", "application/vnd.3gpp2.tcap"],
|
1647
|
-
["tcl", "application/x-tcl"],
|
1648
|
-
["td", "application/urc-targetdesc+xml"],
|
1649
|
-
["teacher", "application/vnd.smart.teacher"],
|
1650
|
-
["tei", "application/tei+xml"],
|
1651
|
-
["teicorpus", "application/tei+xml"],
|
1652
|
-
["tex", "application/x-tex"],
|
1653
|
-
["texi", "application/x-texinfo"],
|
1654
|
-
["texinfo", "application/x-texinfo"],
|
1655
|
-
["text", "text/plain"],
|
1656
|
-
["tfi", "application/thraud+xml"],
|
1657
|
-
["tfm", "application/x-tex-tfm"],
|
1658
|
-
["tfx", "image/tiff-fx"],
|
1659
|
-
["tga", "image/x-tga"],
|
1660
|
-
["tgz", "application/x-tar"],
|
1661
|
-
["thmx", "application/vnd.ms-officetheme"],
|
1662
|
-
["tif", "image/tiff"],
|
1663
|
-
["tiff", "image/tiff"],
|
1664
|
-
["tk", "application/x-tcl"],
|
1665
|
-
["tmo", "application/vnd.tmobile-livetv"],
|
1666
|
-
["toml", "application/toml"],
|
1667
|
-
["torrent", "application/x-bittorrent"],
|
1668
|
-
["tpl", "application/vnd.groove-tool-template"],
|
1669
|
-
["tpt", "application/vnd.trid.tpt"],
|
1670
|
-
["tr", "text/troff"],
|
1671
|
-
["tra", "application/vnd.trueapp"],
|
1672
|
-
["trig", "application/trig"],
|
1673
|
-
["trm", "application/x-msterminal"],
|
1674
|
-
["ts", "video/mp2t"],
|
1675
|
-
["tsd", "application/timestamped-data"],
|
1676
|
-
["tsv", "text/tab-separated-values"],
|
1677
|
-
["ttc", "font/collection"],
|
1678
|
-
["ttf", "font/ttf"],
|
1679
|
-
["ttl", "text/turtle"],
|
1680
|
-
["ttml", "application/ttml+xml"],
|
1681
|
-
["twd", "application/vnd.simtech-mindmapper"],
|
1682
|
-
["twds", "application/vnd.simtech-mindmapper"],
|
1683
|
-
["txd", "application/vnd.genomatix.tuxedo"],
|
1684
|
-
["txf", "application/vnd.mobius.txf"],
|
1685
|
-
["txt", "text/plain"],
|
1686
|
-
["u8dsn", "message/global-delivery-status"],
|
1687
|
-
["u8hdr", "message/global-headers"],
|
1688
|
-
["u8mdn", "message/global-disposition-notification"],
|
1689
|
-
["u8msg", "message/global"],
|
1690
|
-
["u32", "application/x-authorware-bin"],
|
1691
|
-
["ubj", "application/ubjson"],
|
1692
|
-
["udeb", "application/x-debian-package"],
|
1693
|
-
["ufd", "application/vnd.ufdl"],
|
1694
|
-
["ufdl", "application/vnd.ufdl"],
|
1695
|
-
["ulx", "application/x-glulx"],
|
1696
|
-
["umj", "application/vnd.umajin"],
|
1697
|
-
["unityweb", "application/vnd.unity"],
|
1698
|
-
["uoml", "application/vnd.uoml+xml"],
|
1699
|
-
["uri", "text/uri-list"],
|
1700
|
-
["uris", "text/uri-list"],
|
1701
|
-
["urls", "text/uri-list"],
|
1702
|
-
["usdz", "model/vnd.usdz+zip"],
|
1703
|
-
["ustar", "application/x-ustar"],
|
1704
|
-
["utz", "application/vnd.uiq.theme"],
|
1705
|
-
["uu", "text/x-uuencode"],
|
1706
|
-
["uva", "audio/vnd.dece.audio"],
|
1707
|
-
["uvd", "application/vnd.dece.data"],
|
1708
|
-
["uvf", "application/vnd.dece.data"],
|
1709
|
-
["uvg", "image/vnd.dece.graphic"],
|
1710
|
-
["uvh", "video/vnd.dece.hd"],
|
1711
|
-
["uvi", "image/vnd.dece.graphic"],
|
1712
|
-
["uvm", "video/vnd.dece.mobile"],
|
1713
|
-
["uvp", "video/vnd.dece.pd"],
|
1714
|
-
["uvs", "video/vnd.dece.sd"],
|
1715
|
-
["uvt", "application/vnd.dece.ttml+xml"],
|
1716
|
-
["uvu", "video/vnd.uvvu.mp4"],
|
1717
|
-
["uvv", "video/vnd.dece.video"],
|
1718
|
-
["uvva", "audio/vnd.dece.audio"],
|
1719
|
-
["uvvd", "application/vnd.dece.data"],
|
1720
|
-
["uvvf", "application/vnd.dece.data"],
|
1721
|
-
["uvvg", "image/vnd.dece.graphic"],
|
1722
|
-
["uvvh", "video/vnd.dece.hd"],
|
1723
|
-
["uvvi", "image/vnd.dece.graphic"],
|
1724
|
-
["uvvm", "video/vnd.dece.mobile"],
|
1725
|
-
["uvvp", "video/vnd.dece.pd"],
|
1726
|
-
["uvvs", "video/vnd.dece.sd"],
|
1727
|
-
["uvvt", "application/vnd.dece.ttml+xml"],
|
1728
|
-
["uvvu", "video/vnd.uvvu.mp4"],
|
1729
|
-
["uvvv", "video/vnd.dece.video"],
|
1730
|
-
["uvvx", "application/vnd.dece.unspecified"],
|
1731
|
-
["uvvz", "application/vnd.dece.zip"],
|
1732
|
-
["uvx", "application/vnd.dece.unspecified"],
|
1733
|
-
["uvz", "application/vnd.dece.zip"],
|
1734
|
-
["vbox", "application/x-virtualbox-vbox"],
|
1735
|
-
["vbox-extpack", "application/x-virtualbox-vbox-extpack"],
|
1736
|
-
["vcard", "text/vcard"],
|
1737
|
-
["vcd", "application/x-cdlink"],
|
1738
|
-
["vcf", "text/x-vcard"],
|
1739
|
-
["vcg", "application/vnd.groove-vcard"],
|
1740
|
-
["vcs", "text/x-vcalendar"],
|
1741
|
-
["vcx", "application/vnd.vcx"],
|
1742
|
-
["vdi", "application/x-virtualbox-vdi"],
|
1743
|
-
["vds", "model/vnd.sap.vds"],
|
1744
|
-
["vhd", "application/x-virtualbox-vhd"],
|
1745
|
-
["vis", "application/vnd.visionary"],
|
1746
|
-
["viv", "video/vnd.vivo"],
|
1747
|
-
["vlc", "application/videolan"],
|
1748
|
-
["vmdk", "application/x-virtualbox-vmdk"],
|
1749
|
-
["vob", "video/x-ms-vob"],
|
1750
|
-
["vor", "application/vnd.stardivision.writer"],
|
1751
|
-
["vox", "application/x-authorware-bin"],
|
1752
|
-
["vrml", "model/vrml"],
|
1753
|
-
["vsd", "application/vnd.visio"],
|
1754
|
-
["vsf", "application/vnd.vsf"],
|
1755
|
-
["vss", "application/vnd.visio"],
|
1756
|
-
["vst", "application/vnd.visio"],
|
1757
|
-
["vsw", "application/vnd.visio"],
|
1758
|
-
["vtf", "image/vnd.valve.source.texture"],
|
1759
|
-
["vtt", "text/vtt"],
|
1760
|
-
["vtu", "model/vnd.vtu"],
|
1761
|
-
["vxml", "application/voicexml+xml"],
|
1762
|
-
["w3d", "application/x-director"],
|
1763
|
-
["wad", "application/x-doom"],
|
1764
|
-
["wadl", "application/vnd.sun.wadl+xml"],
|
1765
|
-
["war", "application/java-archive"],
|
1766
|
-
["wasm", "application/wasm"],
|
1767
|
-
["wav", "audio/x-wav"],
|
1768
|
-
["wax", "audio/x-ms-wax"],
|
1769
|
-
["wbmp", "image/vnd.wap.wbmp"],
|
1770
|
-
["wbs", "application/vnd.criticaltools.wbs+xml"],
|
1771
|
-
["wbxml", "application/wbxml"],
|
1772
|
-
["wcm", "application/vnd.ms-works"],
|
1773
|
-
["wdb", "application/vnd.ms-works"],
|
1774
|
-
["wdp", "image/vnd.ms-photo"],
|
1775
|
-
["weba", "audio/webm"],
|
1776
|
-
["webapp", "application/x-web-app-manifest+json"],
|
1777
|
-
["webm", "video/webm"],
|
1778
|
-
["webmanifest", "application/manifest+json"],
|
1779
|
-
["webp", "image/webp"],
|
1780
|
-
["wg", "application/vnd.pmi.widget"],
|
1781
|
-
["wgt", "application/widget"],
|
1782
|
-
["wks", "application/vnd.ms-works"],
|
1783
|
-
["wm", "video/x-ms-wm"],
|
1784
|
-
["wma", "audio/x-ms-wma"],
|
1785
|
-
["wmd", "application/x-ms-wmd"],
|
1786
|
-
["wmf", "image/wmf"],
|
1787
|
-
["wml", "text/vnd.wap.wml"],
|
1788
|
-
["wmlc", "application/wmlc"],
|
1789
|
-
["wmls", "text/vnd.wap.wmlscript"],
|
1790
|
-
["wmlsc", "application/vnd.wap.wmlscriptc"],
|
1791
|
-
["wmv", "video/x-ms-wmv"],
|
1792
|
-
["wmx", "video/x-ms-wmx"],
|
1793
|
-
["wmz", "application/x-msmetafile"],
|
1794
|
-
["woff", "font/woff"],
|
1795
|
-
["woff2", "font/woff2"],
|
1796
|
-
["word", "application/msword"],
|
1797
|
-
["wpd", "application/vnd.wordperfect"],
|
1798
|
-
["wpl", "application/vnd.ms-wpl"],
|
1799
|
-
["wps", "application/vnd.ms-works"],
|
1800
|
-
["wqd", "application/vnd.wqd"],
|
1801
|
-
["wri", "application/x-mswrite"],
|
1802
|
-
["wrl", "model/vrml"],
|
1803
|
-
["wsc", "message/vnd.wfa.wsc"],
|
1804
|
-
["wsdl", "application/wsdl+xml"],
|
1805
|
-
["wspolicy", "application/wspolicy+xml"],
|
1806
|
-
["wtb", "application/vnd.webturbo"],
|
1807
|
-
["wvx", "video/x-ms-wvx"],
|
1808
|
-
["x3d", "model/x3d+xml"],
|
1809
|
-
["x3db", "model/x3d+fastinfoset"],
|
1810
|
-
["x3dbz", "model/x3d+binary"],
|
1811
|
-
["x3dv", "model/x3d-vrml"],
|
1812
|
-
["x3dvz", "model/x3d+vrml"],
|
1813
|
-
["x3dz", "model/x3d+xml"],
|
1814
|
-
["x32", "application/x-authorware-bin"],
|
1815
|
-
["x_b", "model/vnd.parasolid.transmit.binary"],
|
1816
|
-
["x_t", "model/vnd.parasolid.transmit.text"],
|
1817
|
-
["xaml", "application/xaml+xml"],
|
1818
|
-
["xap", "application/x-silverlight-app"],
|
1819
|
-
["xar", "application/vnd.xara"],
|
1820
|
-
["xav", "application/xcap-att+xml"],
|
1821
|
-
["xbap", "application/x-ms-xbap"],
|
1822
|
-
["xbd", "application/vnd.fujixerox.docuworks.binder"],
|
1823
|
-
["xbm", "image/x-xbitmap"],
|
1824
|
-
["xca", "application/xcap-caps+xml"],
|
1825
|
-
["xcs", "application/calendar+xml"],
|
1826
|
-
["xdf", "application/xcap-diff+xml"],
|
1827
|
-
["xdm", "application/vnd.syncml.dm+xml"],
|
1828
|
-
["xdp", "application/vnd.adobe.xdp+xml"],
|
1829
|
-
["xdssc", "application/dssc+xml"],
|
1830
|
-
["xdw", "application/vnd.fujixerox.docuworks"],
|
1831
|
-
["xel", "application/xcap-el+xml"],
|
1832
|
-
["xenc", "application/xenc+xml"],
|
1833
|
-
["xer", "application/patch-ops-error+xml"],
|
1834
|
-
["xfdf", "application/vnd.adobe.xfdf"],
|
1835
|
-
["xfdl", "application/vnd.xfdl"],
|
1836
|
-
["xht", "application/xhtml+xml"],
|
1837
|
-
["xhtml", "application/xhtml+xml"],
|
1838
|
-
["xhvml", "application/xv+xml"],
|
1839
|
-
["xif", "image/vnd.xiff"],
|
1840
|
-
["xl", "application/excel"],
|
1841
|
-
["xla", "application/vnd.ms-excel"],
|
1842
|
-
["xlam", "application/vnd.ms-excel.addin.macroEnabled.12"],
|
1843
|
-
["xlc", "application/vnd.ms-excel"],
|
1844
|
-
["xlf", "application/xliff+xml"],
|
1845
|
-
["xlm", "application/vnd.ms-excel"],
|
1846
|
-
["xls", "application/vnd.ms-excel"],
|
1847
|
-
["xlsb", "application/vnd.ms-excel.sheet.binary.macroEnabled.12"],
|
1848
|
-
["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
|
1849
|
-
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
1850
|
-
["xlt", "application/vnd.ms-excel"],
|
1851
|
-
["xltm", "application/vnd.ms-excel.template.macroEnabled.12"],
|
1852
|
-
["xltx", "application/vnd.openxmlformats-officedocument.spreadsheetml.template"],
|
1853
|
-
["xlw", "application/vnd.ms-excel"],
|
1854
|
-
["xm", "audio/xm"],
|
1855
|
-
["xml", "application/xml"],
|
1856
|
-
["xns", "application/xcap-ns+xml"],
|
1857
|
-
["xo", "application/vnd.olpc-sugar"],
|
1858
|
-
["xop", "application/xop+xml"],
|
1859
|
-
["xpi", "application/x-xpinstall"],
|
1860
|
-
["xpl", "application/xproc+xml"],
|
1861
|
-
["xpm", "image/x-xpixmap"],
|
1862
|
-
["xpr", "application/vnd.is-xpr"],
|
1863
|
-
["xps", "application/vnd.ms-xpsdocument"],
|
1864
|
-
["xpw", "application/vnd.intercon.formnet"],
|
1865
|
-
["xpx", "application/vnd.intercon.formnet"],
|
1866
|
-
["xsd", "application/xml"],
|
1867
|
-
["xsl", "application/xml"],
|
1868
|
-
["xslt", "application/xslt+xml"],
|
1869
|
-
["xsm", "application/vnd.syncml+xml"],
|
1870
|
-
["xspf", "application/xspf+xml"],
|
1871
|
-
["xul", "application/vnd.mozilla.xul+xml"],
|
1872
|
-
["xvm", "application/xv+xml"],
|
1873
|
-
["xvml", "application/xv+xml"],
|
1874
|
-
["xwd", "image/x-xwindowdump"],
|
1875
|
-
["xyz", "chemical/x-xyz"],
|
1876
|
-
["xz", "application/x-xz"],
|
1877
|
-
["yaml", "text/yaml"],
|
1878
|
-
["yang", "application/yang"],
|
1879
|
-
["yin", "application/yin+xml"],
|
1880
|
-
["yml", "text/yaml"],
|
1881
|
-
["ymp", "text/x-suse-ymp"],
|
1882
|
-
["z", "application/x-compress"],
|
1883
|
-
["z1", "application/x-zmachine"],
|
1884
|
-
["z2", "application/x-zmachine"],
|
1885
|
-
["z3", "application/x-zmachine"],
|
1886
|
-
["z4", "application/x-zmachine"],
|
1887
|
-
["z5", "application/x-zmachine"],
|
1888
|
-
["z6", "application/x-zmachine"],
|
1889
|
-
["z7", "application/x-zmachine"],
|
1890
|
-
["z8", "application/x-zmachine"],
|
1891
|
-
["zaz", "application/vnd.zzazz.deck+xml"],
|
1892
|
-
["zip", "application/zip"],
|
1893
|
-
["zir", "application/vnd.zul"],
|
1894
|
-
["zirz", "application/vnd.zul"],
|
1895
|
-
["zmm", "application/vnd.handheld-entertainment+xml"],
|
1896
|
-
["zsh", "text/x-scriptzsh"]
|
1897
|
-
]);
|
1898
|
-
function ve(e, a, i) {
|
1899
|
-
const t = pi(e), { webkitRelativePath: n } = e, o = typeof a == "string" ? a : typeof n == "string" && n.length > 0 ? n : `./${e.name}`;
|
1900
|
-
return typeof t.path != "string" && sa(t, "path", o), sa(t, "relativePath", o), t;
|
1901
|
-
}
|
1902
|
-
function pi(e) {
|
1903
|
-
const { name: a } = e;
|
1904
|
-
if (a && a.lastIndexOf(".") !== -1 && !e.type) {
|
1905
|
-
const t = a.split(".").pop().toLowerCase(), n = oi.get(t);
|
1906
|
-
n && Object.defineProperty(e, "type", {
|
1907
|
-
value: n,
|
1908
|
-
writable: !1,
|
1909
|
-
configurable: !1,
|
1910
|
-
enumerable: !0
|
1911
|
-
});
|
1912
|
-
}
|
1913
|
-
return e;
|
1914
|
-
}
|
1915
|
-
function sa(e, a, i) {
|
1916
|
-
Object.defineProperty(e, a, {
|
1917
|
-
value: i,
|
1918
|
-
writable: !1,
|
1919
|
-
configurable: !1,
|
1920
|
-
enumerable: !0
|
1921
|
-
});
|
1922
|
-
}
|
1923
|
-
const ri = [
|
1924
|
-
// Thumbnail cache files for macOS and Windows
|
1925
|
-
".DS_Store",
|
1926
|
-
// macOs
|
1927
|
-
"Thumbs.db"
|
1928
|
-
// Windows
|
1929
|
-
];
|
1930
|
-
function ci(e) {
|
1931
|
-
return de(this, void 0, void 0, function* () {
|
1932
|
-
return Te(e) && li(e.dataTransfer) ? ui(e.dataTransfer, e.type) : si(e) ? di(e) : Array.isArray(e) && e.every((a) => "getFile" in a && typeof a.getFile == "function") ? mi(e) : [];
|
1933
|
-
});
|
1934
|
-
}
|
1935
|
-
function li(e) {
|
1936
|
-
return Te(e);
|
1937
|
-
}
|
1938
|
-
function si(e) {
|
1939
|
-
return Te(e) && Te(e.target);
|
1940
|
-
}
|
1941
|
-
function Te(e) {
|
1942
|
-
return typeof e == "object" && e !== null;
|
1943
|
-
}
|
1944
|
-
function di(e) {
|
1945
|
-
return Be(e.target.files).map((a) => ve(a));
|
1946
|
-
}
|
1947
|
-
function mi(e) {
|
1948
|
-
return de(this, void 0, void 0, function* () {
|
1949
|
-
return (yield Promise.all(e.map((i) => i.getFile()))).map((i) => ve(i));
|
1950
|
-
});
|
1951
|
-
}
|
1952
|
-
function ui(e, a) {
|
1953
|
-
return de(this, void 0, void 0, function* () {
|
1954
|
-
if (e.items) {
|
1955
|
-
const i = Be(e.items).filter((n) => n.kind === "file");
|
1956
|
-
if (a !== "drop")
|
1957
|
-
return i;
|
1958
|
-
const t = yield Promise.all(i.map(fi));
|
1959
|
-
return da(Ea(t));
|
1960
|
-
}
|
1961
|
-
return da(Be(e.files).map((i) => ve(i)));
|
1962
|
-
});
|
1963
|
-
}
|
1964
|
-
function da(e) {
|
1965
|
-
return e.filter((a) => ri.indexOf(a.name) === -1);
|
1966
|
-
}
|
1967
|
-
function Be(e) {
|
1968
|
-
if (e === null)
|
1969
|
-
return [];
|
1970
|
-
const a = [];
|
1971
|
-
for (let i = 0; i < e.length; i++) {
|
1972
|
-
const t = e[i];
|
1973
|
-
a.push(t);
|
1974
|
-
}
|
1975
|
-
return a;
|
1976
|
-
}
|
1977
|
-
function fi(e) {
|
1978
|
-
if (typeof e.webkitGetAsEntry != "function")
|
1979
|
-
return ma(e);
|
1980
|
-
const a = e.webkitGetAsEntry();
|
1981
|
-
return a && a.isDirectory ? ja(a) : ma(e, a);
|
1982
|
-
}
|
1983
|
-
function Ea(e) {
|
1984
|
-
return e.reduce((a, i) => [
|
1985
|
-
...a,
|
1986
|
-
...Array.isArray(i) ? Ea(i) : [i]
|
1987
|
-
], []);
|
1988
|
-
}
|
1989
|
-
function ma(e, a) {
|
1990
|
-
return de(this, void 0, void 0, function* () {
|
1991
|
-
var i;
|
1992
|
-
if (globalThis.isSecureContext && typeof e.getAsFileSystemHandle == "function") {
|
1993
|
-
const o = yield e.getAsFileSystemHandle();
|
1994
|
-
if (o === null)
|
1995
|
-
throw new Error(`${e} is not a File`);
|
1996
|
-
if (o !== void 0) {
|
1997
|
-
const s = yield o.getFile();
|
1998
|
-
return s.handle = o, ve(s);
|
1999
|
-
}
|
2000
|
-
}
|
2001
|
-
const t = e.getAsFile();
|
2002
|
-
if (!t)
|
2003
|
-
throw new Error(`${e} is not a File`);
|
2004
|
-
return ve(t, (i = a == null ? void 0 : a.fullPath) !== null && i !== void 0 ? i : void 0);
|
2005
|
-
});
|
2006
|
-
}
|
2007
|
-
function vi(e) {
|
2008
|
-
return de(this, void 0, void 0, function* () {
|
2009
|
-
return e.isDirectory ? ja(e) : xi(e);
|
2010
|
-
});
|
2011
|
-
}
|
2012
|
-
function ja(e) {
|
2013
|
-
const a = e.createReader();
|
2014
|
-
return new Promise((i, t) => {
|
2015
|
-
const n = [];
|
2016
|
-
function o() {
|
2017
|
-
a.readEntries((s) => de(this, void 0, void 0, function* () {
|
2018
|
-
if (s.length) {
|
2019
|
-
const r = Promise.all(s.map(vi));
|
2020
|
-
n.push(r), o();
|
2021
|
-
} else
|
2022
|
-
try {
|
2023
|
-
const r = yield Promise.all(n);
|
2024
|
-
i(r);
|
2025
|
-
} catch (r) {
|
2026
|
-
t(r);
|
2027
|
-
}
|
2028
|
-
}), (s) => {
|
2029
|
-
t(s);
|
2030
|
-
});
|
2031
|
-
}
|
2032
|
-
o();
|
2033
|
-
});
|
2034
|
-
}
|
2035
|
-
function xi(e) {
|
2036
|
-
return de(this, void 0, void 0, function* () {
|
2037
|
-
return new Promise((a, i) => {
|
2038
|
-
e.file((t) => {
|
2039
|
-
const n = ve(t, e.fullPath);
|
2040
|
-
a(n);
|
2041
|
-
}, (t) => {
|
2042
|
-
i(t);
|
2043
|
-
});
|
2044
|
-
});
|
2045
|
-
});
|
2046
|
-
}
|
2047
|
-
var Ne = function(e, a) {
|
2048
|
-
if (e && a) {
|
2049
|
-
var i = Array.isArray(a) ? a : a.split(",");
|
2050
|
-
if (i.length === 0)
|
2051
|
-
return !0;
|
2052
|
-
var t = e.name || "", n = (e.type || "").toLowerCase(), o = n.replace(/\/.*$/, "");
|
2053
|
-
return i.some(function(s) {
|
2054
|
-
var r = s.trim().toLowerCase();
|
2055
|
-
return r.charAt(0) === "." ? t.toLowerCase().endsWith(r) : r.endsWith("/*") ? o === r.replace(/\/.*$/, "") : n === r;
|
2056
|
-
});
|
2057
|
-
}
|
2058
|
-
return !0;
|
2059
|
-
};
|
2060
|
-
function ua(e) {
|
2061
|
-
return yi(e) || bi(e) || Ta(e) || gi();
|
2062
|
-
}
|
2063
|
-
function gi() {
|
2064
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
2065
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
2066
|
-
}
|
2067
|
-
function bi(e) {
|
2068
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
2069
|
-
}
|
2070
|
-
function yi(e) {
|
2071
|
-
if (Array.isArray(e)) return Ue(e);
|
2072
|
-
}
|
2073
|
-
function fa(e, a) {
|
2074
|
-
var i = Object.keys(e);
|
2075
|
-
if (Object.getOwnPropertySymbols) {
|
2076
|
-
var t = Object.getOwnPropertySymbols(e);
|
2077
|
-
a && (t = t.filter(function(n) {
|
2078
|
-
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
2079
|
-
})), i.push.apply(i, t);
|
2080
|
-
}
|
2081
|
-
return i;
|
2082
|
-
}
|
2083
|
-
function va(e) {
|
2084
|
-
for (var a = 1; a < arguments.length; a++) {
|
2085
|
-
var i = arguments[a] != null ? arguments[a] : {};
|
2086
|
-
a % 2 ? fa(Object(i), !0).forEach(function(t) {
|
2087
|
-
Oa(e, t, i[t]);
|
2088
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : fa(Object(i)).forEach(function(t) {
|
2089
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t));
|
2090
|
-
});
|
2091
|
-
}
|
2092
|
-
return e;
|
2093
|
-
}
|
2094
|
-
function Oa(e, a, i) {
|
2095
|
-
return a in e ? Object.defineProperty(e, a, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = i, e;
|
2096
|
-
}
|
2097
|
-
function be(e, a) {
|
2098
|
-
return ki(e) || wi(e, a) || Ta(e, a) || hi();
|
2099
|
-
}
|
2100
|
-
function hi() {
|
2101
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2102
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
2103
|
-
}
|
2104
|
-
function Ta(e, a) {
|
2105
|
-
if (e) {
|
2106
|
-
if (typeof e == "string") return Ue(e, a);
|
2107
|
-
var i = Object.prototype.toString.call(e).slice(8, -1);
|
2108
|
-
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
2109
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Ue(e, a);
|
2110
|
-
}
|
2111
|
-
}
|
2112
|
-
function Ue(e, a) {
|
2113
|
-
(a == null || a > e.length) && (a = e.length);
|
2114
|
-
for (var i = 0, t = new Array(a); i < a; i++)
|
2115
|
-
t[i] = e[i];
|
2116
|
-
return t;
|
2117
|
-
}
|
2118
|
-
function wi(e, a) {
|
2119
|
-
var i = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
2120
|
-
if (i != null) {
|
2121
|
-
var t = [], n = !0, o = !1, s, r;
|
2122
|
-
try {
|
2123
|
-
for (i = i.call(e); !(n = (s = i.next()).done) && (t.push(s.value), !(a && t.length === a)); n = !0)
|
2124
|
-
;
|
2125
|
-
} catch (g) {
|
2126
|
-
o = !0, r = g;
|
2127
|
-
} finally {
|
2128
|
-
try {
|
2129
|
-
!n && i.return != null && i.return();
|
2130
|
-
} finally {
|
2131
|
-
if (o) throw r;
|
2132
|
-
}
|
2133
|
-
}
|
2134
|
-
return t;
|
2135
|
-
}
|
2136
|
-
}
|
2137
|
-
function ki(e) {
|
2138
|
-
if (Array.isArray(e)) return e;
|
2139
|
-
}
|
2140
|
-
var Ei = typeof Ne == "function" ? Ne : Ne.default, ji = "file-invalid-type", Oi = "file-too-large", Ti = "file-too-small", _i = "too-many-files", Di = function() {
|
2141
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = a.split(","), t = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
2142
|
-
return {
|
2143
|
-
code: ji,
|
2144
|
-
message: "File type must be ".concat(t)
|
2145
|
-
};
|
2146
|
-
}, xa = function(a) {
|
2147
|
-
return {
|
2148
|
-
code: Oi,
|
2149
|
-
message: "File is larger than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
2150
|
-
};
|
2151
|
-
}, ga = function(a) {
|
2152
|
-
return {
|
2153
|
-
code: Ti,
|
2154
|
-
message: "File is smaller than ".concat(a, " ").concat(a === 1 ? "byte" : "bytes")
|
2155
|
-
};
|
2156
|
-
}, Ai = {
|
2157
|
-
code: _i,
|
2158
|
-
message: "Too many files"
|
2159
|
-
};
|
2160
|
-
function _a(e, a) {
|
2161
|
-
var i = e.type === "application/x-moz-file" || Ei(e, a);
|
2162
|
-
return [i, i ? null : Di(a)];
|
2163
|
-
}
|
2164
|
-
function Da(e, a, i) {
|
2165
|
-
if (se(e.size))
|
2166
|
-
if (se(a) && se(i)) {
|
2167
|
-
if (e.size > i) return [!1, xa(i)];
|
2168
|
-
if (e.size < a) return [!1, ga(a)];
|
2169
|
-
} else {
|
2170
|
-
if (se(a) && e.size < a) return [!1, ga(a)];
|
2171
|
-
if (se(i) && e.size > i) return [!1, xa(i)];
|
2172
|
-
}
|
2173
|
-
return [!0, null];
|
2174
|
-
}
|
2175
|
-
function se(e) {
|
2176
|
-
return e != null;
|
2177
|
-
}
|
2178
|
-
function Pi(e) {
|
2179
|
-
var a = e.files, i = e.accept, t = e.minSize, n = e.maxSize, o = e.multiple, s = e.maxFiles, r = e.validator;
|
2180
|
-
return !o && a.length > 1 || o && s >= 1 && a.length > s ? !1 : a.every(function(g) {
|
2181
|
-
var b = _a(g, i), v = be(b, 1), h = v[0], S = Da(g, t, n), C = be(S, 1), L = C[0], D = r ? r(g) : null;
|
2182
|
-
return h && L && !D;
|
2183
|
-
});
|
2184
|
-
}
|
2185
|
-
function _e(e) {
|
2186
|
-
return typeof e.isPropagationStopped == "function" ? e.isPropagationStopped() : typeof e.cancelBubble < "u" ? e.cancelBubble : !1;
|
2187
|
-
}
|
2188
|
-
function je(e) {
|
2189
|
-
return e.dataTransfer ? Array.prototype.some.call(e.dataTransfer.types, function(a) {
|
2190
|
-
return a === "Files" || a === "application/x-moz-file";
|
2191
|
-
}) : !!e.target && !!e.target.files;
|
2192
|
-
}
|
2193
|
-
function ba(e) {
|
2194
|
-
e.preventDefault();
|
2195
|
-
}
|
2196
|
-
function Si(e) {
|
2197
|
-
return e.indexOf("MSIE") !== -1 || e.indexOf("Trident/") !== -1;
|
2198
|
-
}
|
2199
|
-
function zi(e) {
|
2200
|
-
return e.indexOf("Edge/") !== -1;
|
2201
|
-
}
|
2202
|
-
function Ri() {
|
2203
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
2204
|
-
return Si(e) || zi(e);
|
2205
|
-
}
|
2206
|
-
function ae() {
|
2207
|
-
for (var e = arguments.length, a = new Array(e), i = 0; i < e; i++)
|
2208
|
-
a[i] = arguments[i];
|
2209
|
-
return function(t) {
|
2210
|
-
for (var n = arguments.length, o = new Array(n > 1 ? n - 1 : 0), s = 1; s < n; s++)
|
2211
|
-
o[s - 1] = arguments[s];
|
2212
|
-
return a.some(function(r) {
|
2213
|
-
return !_e(t) && r && r.apply(void 0, [t].concat(o)), _e(t);
|
2214
|
-
});
|
2215
|
-
};
|
2216
|
-
}
|
2217
|
-
function Ci() {
|
2218
|
-
return "showOpenFilePicker" in window;
|
2219
|
-
}
|
2220
|
-
function Fi(e) {
|
2221
|
-
if (se(e)) {
|
2222
|
-
var a = Object.entries(e).filter(function(i) {
|
2223
|
-
var t = be(i, 2), n = t[0], o = t[1], s = !0;
|
2224
|
-
return Aa(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), s = !1), (!Array.isArray(o) || !o.every(Pa)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), s = !1), s;
|
2225
|
-
}).reduce(function(i, t) {
|
2226
|
-
var n = be(t, 2), o = n[0], s = n[1];
|
2227
|
-
return va(va({}, i), {}, Oa({}, o, s));
|
2228
|
-
}, {});
|
2229
|
-
return [{
|
2230
|
-
// description is required due to https://crbug.com/1264708
|
2231
|
-
description: "Files",
|
2232
|
-
accept: a
|
2233
|
-
}];
|
2234
|
-
}
|
2235
|
-
return e;
|
2236
|
-
}
|
2237
|
-
function Ii(e) {
|
2238
|
-
if (se(e))
|
2239
|
-
return Object.entries(e).reduce(function(a, i) {
|
2240
|
-
var t = be(i, 2), n = t[0], o = t[1];
|
2241
|
-
return [].concat(ua(a), [n], ua(o));
|
2242
|
-
}, []).filter(function(a) {
|
2243
|
-
return Aa(a) || Pa(a);
|
2244
|
-
}).join(",");
|
2245
|
-
}
|
2246
|
-
function qi(e) {
|
2247
|
-
return e instanceof DOMException && (e.name === "AbortError" || e.code === e.ABORT_ERR);
|
2248
|
-
}
|
2249
|
-
function Mi(e) {
|
2250
|
-
return e instanceof DOMException && (e.name === "SecurityError" || e.code === e.SECURITY_ERR);
|
2251
|
-
}
|
2252
|
-
function Aa(e) {
|
2253
|
-
return e === "audio/*" || e === "video/*" || e === "image/*" || e === "text/*" || e === "application/*" || /\w+\/[-+.\w]+/g.test(e);
|
2254
|
-
}
|
2255
|
-
function Pa(e) {
|
2256
|
-
return /^.*\.[\w]+$/.test(e);
|
2257
|
-
}
|
2258
|
-
var $i = ["children"], Li = ["open"], Wi = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Yi = ["refKey", "onChange", "onClick"];
|
2259
|
-
function Ni(e) {
|
2260
|
-
return Bi(e) || Hi(e) || Sa(e) || Ki();
|
2261
|
-
}
|
2262
|
-
function Ki() {
|
2263
|
-
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
2264
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
2265
|
-
}
|
2266
|
-
function Hi(e) {
|
2267
|
-
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
2268
|
-
}
|
2269
|
-
function Bi(e) {
|
2270
|
-
if (Array.isArray(e)) return Ve(e);
|
2271
|
-
}
|
2272
|
-
function Ke(e, a) {
|
2273
|
-
return Gi(e) || Vi(e, a) || Sa(e, a) || Ui();
|
2274
|
-
}
|
2275
|
-
function Ui() {
|
2276
|
-
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
2277
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
2278
|
-
}
|
2279
|
-
function Sa(e, a) {
|
2280
|
-
if (e) {
|
2281
|
-
if (typeof e == "string") return Ve(e, a);
|
2282
|
-
var i = Object.prototype.toString.call(e).slice(8, -1);
|
2283
|
-
if (i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set") return Array.from(e);
|
2284
|
-
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return Ve(e, a);
|
2285
|
-
}
|
2286
|
-
}
|
2287
|
-
function Ve(e, a) {
|
2288
|
-
(a == null || a > e.length) && (a = e.length);
|
2289
|
-
for (var i = 0, t = new Array(a); i < a; i++)
|
2290
|
-
t[i] = e[i];
|
2291
|
-
return t;
|
2292
|
-
}
|
2293
|
-
function Vi(e, a) {
|
2294
|
-
var i = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
2295
|
-
if (i != null) {
|
2296
|
-
var t = [], n = !0, o = !1, s, r;
|
2297
|
-
try {
|
2298
|
-
for (i = i.call(e); !(n = (s = i.next()).done) && (t.push(s.value), !(a && t.length === a)); n = !0)
|
2299
|
-
;
|
2300
|
-
} catch (g) {
|
2301
|
-
o = !0, r = g;
|
2302
|
-
} finally {
|
2303
|
-
try {
|
2304
|
-
!n && i.return != null && i.return();
|
2305
|
-
} finally {
|
2306
|
-
if (o) throw r;
|
2307
|
-
}
|
2308
|
-
}
|
2309
|
-
return t;
|
2310
|
-
}
|
2311
|
-
}
|
2312
|
-
function Gi(e) {
|
2313
|
-
if (Array.isArray(e)) return e;
|
2314
|
-
}
|
2315
|
-
function ya(e, a) {
|
2316
|
-
var i = Object.keys(e);
|
2317
|
-
if (Object.getOwnPropertySymbols) {
|
2318
|
-
var t = Object.getOwnPropertySymbols(e);
|
2319
|
-
a && (t = t.filter(function(n) {
|
2320
|
-
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
2321
|
-
})), i.push.apply(i, t);
|
2322
|
-
}
|
2323
|
-
return i;
|
2324
|
-
}
|
2325
|
-
function M(e) {
|
2326
|
-
for (var a = 1; a < arguments.length; a++) {
|
2327
|
-
var i = arguments[a] != null ? arguments[a] : {};
|
2328
|
-
a % 2 ? ya(Object(i), !0).forEach(function(t) {
|
2329
|
-
Ge(e, t, i[t]);
|
2330
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : ya(Object(i)).forEach(function(t) {
|
2331
|
-
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(i, t));
|
2332
|
-
});
|
2333
|
-
}
|
2334
|
-
return e;
|
2335
|
-
}
|
2336
|
-
function Ge(e, a, i) {
|
2337
|
-
return a in e ? Object.defineProperty(e, a, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : e[a] = i, e;
|
2338
|
-
}
|
2339
|
-
function De(e, a) {
|
2340
|
-
if (e == null) return {};
|
2341
|
-
var i = Ji(e, a), t, n;
|
2342
|
-
if (Object.getOwnPropertySymbols) {
|
2343
|
-
var o = Object.getOwnPropertySymbols(e);
|
2344
|
-
for (n = 0; n < o.length; n++)
|
2345
|
-
t = o[n], !(a.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (i[t] = e[t]);
|
2346
|
-
}
|
2347
|
-
return i;
|
2348
|
-
}
|
2349
|
-
function Ji(e, a) {
|
2350
|
-
if (e == null) return {};
|
2351
|
-
var i = {}, t = Object.keys(e), n, o;
|
2352
|
-
for (o = 0; o < t.length; o++)
|
2353
|
-
n = t[o], !(a.indexOf(n) >= 0) && (i[n] = e[n]);
|
2354
|
-
return i;
|
2355
|
-
}
|
2356
|
-
var Ze = /* @__PURE__ */ La(function(e, a) {
|
2357
|
-
var i = e.children, t = De(e, $i), n = Ra(t), o = n.open, s = De(n, Li);
|
2358
|
-
return Wa(a, function() {
|
2359
|
-
return {
|
2360
|
-
open: o
|
2361
|
-
};
|
2362
|
-
}, [o]), /* @__PURE__ */ Ma.createElement(Ya, null, i(M(M({}, s), {}, {
|
2363
|
-
open: o
|
2364
|
-
})));
|
2365
|
-
});
|
2366
|
-
Ze.displayName = "Dropzone";
|
2367
|
-
var za = {
|
2368
|
-
disabled: !1,
|
2369
|
-
getFilesFromEvent: ci,
|
2370
|
-
maxSize: 1 / 0,
|
2371
|
-
minSize: 0,
|
2372
|
-
multiple: !0,
|
2373
|
-
maxFiles: 0,
|
2374
|
-
preventDropOnDocument: !0,
|
2375
|
-
noClick: !1,
|
2376
|
-
noKeyboard: !1,
|
2377
|
-
noDrag: !1,
|
2378
|
-
noDragEventsBubbling: !1,
|
2379
|
-
validator: null,
|
2380
|
-
useFsAccessApi: !1,
|
2381
|
-
autoFocus: !1
|
2382
|
-
};
|
2383
|
-
Ze.defaultProps = za;
|
2384
|
-
Ze.propTypes = {
|
2385
|
-
/**
|
2386
|
-
* Render function that exposes the dropzone state and prop getter fns
|
2387
|
-
*
|
2388
|
-
* @param {object} params
|
2389
|
-
* @param {Function} params.getRootProps Returns the props you should apply to the root drop container you render
|
2390
|
-
* @param {Function} params.getInputProps Returns the props you should apply to hidden file input you render
|
2391
|
-
* @param {Function} params.open Open the native file selection dialog
|
2392
|
-
* @param {boolean} params.isFocused Dropzone area is in focus
|
2393
|
-
* @param {boolean} params.isFileDialogActive File dialog is opened
|
2394
|
-
* @param {boolean} params.isDragActive Active drag is in progress
|
2395
|
-
* @param {boolean} params.isDragAccept Dragged files are accepted
|
2396
|
-
* @param {boolean} params.isDragReject Some dragged files are rejected
|
2397
|
-
* @param {File[]} params.acceptedFiles Accepted files
|
2398
|
-
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
2399
|
-
*/
|
2400
|
-
children: R.func,
|
2401
|
-
/**
|
2402
|
-
* Set accepted file types.
|
2403
|
-
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
2404
|
-
* Keep in mind that mime type determination is not reliable across platforms. CSV files,
|
2405
|
-
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
2406
|
-
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
2407
|
-
*/
|
2408
|
-
accept: R.objectOf(R.arrayOf(R.string)),
|
2409
|
-
/**
|
2410
|
-
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
2411
|
-
*/
|
2412
|
-
multiple: R.bool,
|
2413
|
-
/**
|
2414
|
-
* If false, allow dropped items to take over the current browser window
|
2415
|
-
*/
|
2416
|
-
preventDropOnDocument: R.bool,
|
2417
|
-
/**
|
2418
|
-
* If true, disables click to open the native file selection dialog
|
2419
|
-
*/
|
2420
|
-
noClick: R.bool,
|
2421
|
-
/**
|
2422
|
-
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
2423
|
-
* Note that it also stops tracking the focus state.
|
2424
|
-
*/
|
2425
|
-
noKeyboard: R.bool,
|
2426
|
-
/**
|
2427
|
-
* If true, disables drag 'n' drop
|
2428
|
-
*/
|
2429
|
-
noDrag: R.bool,
|
2430
|
-
/**
|
2431
|
-
* If true, stops drag event propagation to parents
|
2432
|
-
*/
|
2433
|
-
noDragEventsBubbling: R.bool,
|
2434
|
-
/**
|
2435
|
-
* Minimum file size (in bytes)
|
2436
|
-
*/
|
2437
|
-
minSize: R.number,
|
2438
|
-
/**
|
2439
|
-
* Maximum file size (in bytes)
|
2440
|
-
*/
|
2441
|
-
maxSize: R.number,
|
2442
|
-
/**
|
2443
|
-
* Maximum accepted number of files
|
2444
|
-
* The default value is 0 which means there is no limitation to how many files are accepted.
|
2445
|
-
*/
|
2446
|
-
maxFiles: R.number,
|
2447
|
-
/**
|
2448
|
-
* Enable/disable the dropzone
|
2449
|
-
*/
|
2450
|
-
disabled: R.bool,
|
2451
|
-
/**
|
2452
|
-
* Use this to provide a custom file aggregator
|
2453
|
-
*
|
2454
|
-
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
2455
|
-
*/
|
2456
|
-
getFilesFromEvent: R.func,
|
2457
|
-
/**
|
2458
|
-
* Cb for when closing the file dialog with no selection
|
2459
|
-
*/
|
2460
|
-
onFileDialogCancel: R.func,
|
2461
|
-
/**
|
2462
|
-
* Cb for when opening the file dialog
|
2463
|
-
*/
|
2464
|
-
onFileDialogOpen: R.func,
|
2465
|
-
/**
|
2466
|
-
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
2467
|
-
* to open the file picker instead of using an `<input type="file">` click event.
|
2468
|
-
*/
|
2469
|
-
useFsAccessApi: R.bool,
|
2470
|
-
/**
|
2471
|
-
* Set to true to focus the root element on render
|
2472
|
-
*/
|
2473
|
-
autoFocus: R.bool,
|
2474
|
-
/**
|
2475
|
-
* Cb for when the `dragenter` event occurs.
|
2476
|
-
*
|
2477
|
-
* @param {DragEvent} event
|
2478
|
-
*/
|
2479
|
-
onDragEnter: R.func,
|
2480
|
-
/**
|
2481
|
-
* Cb for when the `dragleave` event occurs
|
2482
|
-
*
|
2483
|
-
* @param {DragEvent} event
|
2484
|
-
*/
|
2485
|
-
onDragLeave: R.func,
|
2486
|
-
/**
|
2487
|
-
* Cb for when the `dragover` event occurs
|
2488
|
-
*
|
2489
|
-
* @param {DragEvent} event
|
2490
|
-
*/
|
2491
|
-
onDragOver: R.func,
|
2492
|
-
/**
|
2493
|
-
* Cb for when the `drop` event occurs.
|
2494
|
-
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
2495
|
-
*
|
2496
|
-
* Files are accepted or rejected based on the `accept`, `multiple`, `minSize` and `maxSize` props.
|
2497
|
-
* `accept` must be a valid [MIME type](http://www.iana.org/assignments/media-types/media-types.xhtml) according to [input element specification](https://www.w3.org/wiki/HTML/Elements/input/file) or a valid file extension.
|
2498
|
-
* If `multiple` is set to false and additional files are dropped,
|
2499
|
-
* all files besides the first will be rejected.
|
2500
|
-
* Any file which does not have a size in the [`minSize`, `maxSize`] range, will be rejected as well.
|
2501
|
-
*
|
2502
|
-
* Note that the `onDrop` callback will always be invoked regardless if the dropped files were accepted or rejected.
|
2503
|
-
* If you'd like to react to a specific scenario, use the `onDropAccepted`/`onDropRejected` props.
|
2504
|
-
*
|
2505
|
-
* `onDrop` will provide you with an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File) objects which you can then process and send to a server.
|
2506
|
-
* For example, with [SuperAgent](https://github.com/visionmedia/superagent) as a http/ajax library:
|
2507
|
-
*
|
2508
|
-
* ```js
|
2509
|
-
* function onDrop(acceptedFiles) {
|
2510
|
-
* const req = request.post('/upload')
|
2511
|
-
* acceptedFiles.forEach(file => {
|
2512
|
-
* req.attach(file.name, file)
|
2513
|
-
* })
|
2514
|
-
* req.end(callback)
|
2515
|
-
* }
|
2516
|
-
* ```
|
2517
|
-
*
|
2518
|
-
* @param {File[]} acceptedFiles
|
2519
|
-
* @param {FileRejection[]} fileRejections
|
2520
|
-
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
2521
|
-
*/
|
2522
|
-
onDrop: R.func,
|
2523
|
-
/**
|
2524
|
-
* Cb for when the `drop` event occurs.
|
2525
|
-
* Note that if no files are accepted, this callback is not invoked.
|
2526
|
-
*
|
2527
|
-
* @param {File[]} files
|
2528
|
-
* @param {(DragEvent|Event)} event
|
2529
|
-
*/
|
2530
|
-
onDropAccepted: R.func,
|
2531
|
-
/**
|
2532
|
-
* Cb for when the `drop` event occurs.
|
2533
|
-
* Note that if no files are rejected, this callback is not invoked.
|
2534
|
-
*
|
2535
|
-
* @param {FileRejection[]} fileRejections
|
2536
|
-
* @param {(DragEvent|Event)} event
|
2537
|
-
*/
|
2538
|
-
onDropRejected: R.func,
|
2539
|
-
/**
|
2540
|
-
* Cb for when there's some error from any of the promises.
|
2541
|
-
*
|
2542
|
-
* @param {Error} error
|
2543
|
-
*/
|
2544
|
-
onError: R.func,
|
2545
|
-
/**
|
2546
|
-
* Custom validation function. It must return null if there's no errors.
|
2547
|
-
* @param {File} file
|
2548
|
-
* @returns {FileError|FileError[]|null}
|
2549
|
-
*/
|
2550
|
-
validator: R.func
|
2551
|
-
};
|
2552
|
-
var Je = {
|
2553
|
-
isFocused: !1,
|
2554
|
-
isFileDialogActive: !1,
|
2555
|
-
isDragActive: !1,
|
2556
|
-
isDragAccept: !1,
|
2557
|
-
isDragReject: !1,
|
2558
|
-
acceptedFiles: [],
|
2559
|
-
fileRejections: []
|
2560
|
-
};
|
2561
|
-
function Ra() {
|
2562
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, a = M(M({}, za), e), i = a.accept, t = a.disabled, n = a.getFilesFromEvent, o = a.maxSize, s = a.minSize, r = a.multiple, g = a.maxFiles, b = a.onDragEnter, v = a.onDragLeave, h = a.onDragOver, S = a.onDrop, C = a.onDropAccepted, L = a.onDropRejected, D = a.onFileDialogCancel, E = a.onFileDialogOpen, z = a.useFsAccessApi, F = a.autoFocus, q = a.preventDropOnDocument, I = a.noClick, d = a.noKeyboard, Q = a.noDrag, J = a.noDragEventsBubbling, pe = a.onError, ie = a.validator, te = fe(function() {
|
2563
|
-
return Ii(i);
|
2564
|
-
}, [i]), re = fe(function() {
|
2565
|
-
return Fi(i);
|
2566
|
-
}, [i]), ce = fe(function() {
|
2567
|
-
return typeof E == "function" ? E : ha;
|
2568
|
-
}, [E]), ne = fe(function() {
|
2569
|
-
return typeof D == "function" ? D : ha;
|
2570
|
-
}, [D]), $ = ke(null), H = ke(null), V = $a(Xi, Je), ee = Ke(V, 2), oe = ee[0], K = ee[1], p = oe.isFocused, m = oe.isFileDialogActive, y = ke(typeof window < "u" && window.isSecureContext && z && Ci()), w = function() {
|
2571
|
-
!y.current && m && setTimeout(function() {
|
2572
|
-
if (H.current) {
|
2573
|
-
var u = H.current.files;
|
2574
|
-
u.length || (K({
|
2575
|
-
type: "closeDialog"
|
2576
|
-
}), ne());
|
2577
|
-
}
|
2578
|
-
}, 300);
|
2579
|
-
};
|
2580
|
-
Oe(function() {
|
2581
|
-
return window.addEventListener("focus", w, !1), function() {
|
2582
|
-
window.removeEventListener("focus", w, !1);
|
2583
|
-
};
|
2584
|
-
}, [H, m, ne, y]);
|
2585
|
-
var f = ke([]), O = function(u) {
|
2586
|
-
$.current && $.current.contains(u.target) || (u.preventDefault(), f.current = []);
|
2587
|
-
};
|
2588
|
-
Oe(function() {
|
2589
|
-
return q && (document.addEventListener("dragover", ba, !1), document.addEventListener("drop", O, !1)), function() {
|
2590
|
-
q && (document.removeEventListener("dragover", ba), document.removeEventListener("drop", O));
|
2591
|
-
};
|
2592
|
-
}, [$, q]), Oe(function() {
|
2593
|
-
return !t && F && $.current && $.current.focus(), function() {
|
2594
|
-
};
|
2595
|
-
}, [$, F, t]);
|
2596
|
-
var x = G(function(l) {
|
2597
|
-
pe ? pe(l) : console.error(l);
|
2598
|
-
}, [pe]), k = G(function(l) {
|
2599
|
-
l.preventDefault(), l.persist(), he(l), f.current = [].concat(Ni(f.current), [l.target]), je(l) && Promise.resolve(n(l)).then(function(u) {
|
2600
|
-
if (!(_e(l) && !J)) {
|
2601
|
-
var W = u.length, N = W > 0 && Pi({
|
2602
|
-
files: u,
|
2603
|
-
accept: te,
|
2604
|
-
minSize: s,
|
2605
|
-
maxSize: o,
|
2606
|
-
multiple: r,
|
2607
|
-
maxFiles: g,
|
2608
|
-
validator: ie
|
2609
|
-
}), U = W > 0 && !N;
|
2610
|
-
K({
|
2611
|
-
isDragAccept: N,
|
2612
|
-
isDragReject: U,
|
2613
|
-
isDragActive: !0,
|
2614
|
-
type: "setDraggedFiles"
|
2615
|
-
}), b && b(l);
|
2616
|
-
}
|
2617
|
-
}).catch(function(u) {
|
2618
|
-
return x(u);
|
2619
|
-
});
|
2620
|
-
}, [n, b, x, J, te, s, o, r, g, ie]), T = G(function(l) {
|
2621
|
-
l.preventDefault(), l.persist(), he(l);
|
2622
|
-
var u = je(l);
|
2623
|
-
if (u && l.dataTransfer)
|
2624
|
-
try {
|
2625
|
-
l.dataTransfer.dropEffect = "copy";
|
2626
|
-
} catch {
|
2627
|
-
}
|
2628
|
-
return u && h && h(l), !1;
|
2629
|
-
}, [h, J]), _ = G(function(l) {
|
2630
|
-
l.preventDefault(), l.persist(), he(l);
|
2631
|
-
var u = f.current.filter(function(N) {
|
2632
|
-
return $.current && $.current.contains(N);
|
2633
|
-
}), W = u.indexOf(l.target);
|
2634
|
-
W !== -1 && u.splice(W, 1), f.current = u, !(u.length > 0) && (K({
|
2635
|
-
type: "setDraggedFiles",
|
2636
|
-
isDragActive: !1,
|
2637
|
-
isDragAccept: !1,
|
2638
|
-
isDragReject: !1
|
2639
|
-
}), je(l) && v && v(l));
|
2640
|
-
}, [$, v, J]), j = G(function(l, u) {
|
2641
|
-
var W = [], N = [];
|
2642
|
-
l.forEach(function(U) {
|
2643
|
-
var ge = _a(U, te), ue = Ke(ge, 2), Pe = ue[0], Se = ue[1], ze = Da(U, s, o), we = Ke(ze, 2), Re = we[0], Ce = we[1], Fe = ie ? ie(U) : null;
|
2644
|
-
if (Pe && Re && !Fe)
|
2645
|
-
W.push(U);
|
2646
|
-
else {
|
2647
|
-
var Ie = [Se, Ce];
|
2648
|
-
Fe && (Ie = Ie.concat(Fe)), N.push({
|
2649
|
-
file: U,
|
2650
|
-
errors: Ie.filter(function(qa) {
|
2651
|
-
return qa;
|
2652
|
-
})
|
2653
|
-
});
|
2654
|
-
}
|
2655
|
-
}), (!r && W.length > 1 || r && g >= 1 && W.length > g) && (W.forEach(function(U) {
|
2656
|
-
N.push({
|
2657
|
-
file: U,
|
2658
|
-
errors: [Ai]
|
2659
|
-
});
|
2660
|
-
}), W.splice(0)), K({
|
2661
|
-
acceptedFiles: W,
|
2662
|
-
fileRejections: N,
|
2663
|
-
isDragReject: N.length > 0,
|
2664
|
-
type: "setFiles"
|
2665
|
-
}), S && S(W, N, u), N.length > 0 && L && L(N, u), W.length > 0 && C && C(W, u);
|
2666
|
-
}, [K, r, te, s, o, g, S, C, L, ie]), Y = G(function(l) {
|
2667
|
-
l.preventDefault(), l.persist(), he(l), f.current = [], je(l) && Promise.resolve(n(l)).then(function(u) {
|
2668
|
-
_e(l) && !J || j(u, l);
|
2669
|
-
}).catch(function(u) {
|
2670
|
-
return x(u);
|
2671
|
-
}), K({
|
2672
|
-
type: "reset"
|
2673
|
-
});
|
2674
|
-
}, [n, j, x, J]), c = G(function() {
|
2675
|
-
if (y.current) {
|
2676
|
-
K({
|
2677
|
-
type: "openDialog"
|
2678
|
-
}), ce();
|
2679
|
-
var l = {
|
2680
|
-
multiple: r,
|
2681
|
-
types: re
|
2682
|
-
};
|
2683
|
-
window.showOpenFilePicker(l).then(function(u) {
|
2684
|
-
return n(u);
|
2685
|
-
}).then(function(u) {
|
2686
|
-
j(u, null), K({
|
2687
|
-
type: "closeDialog"
|
2688
|
-
});
|
2689
|
-
}).catch(function(u) {
|
2690
|
-
qi(u) ? (ne(u), K({
|
2691
|
-
type: "closeDialog"
|
2692
|
-
})) : Mi(u) ? (y.current = !1, H.current ? (H.current.value = null, H.current.click()) : x(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : x(u);
|
2693
|
-
});
|
2694
|
-
return;
|
2695
|
-
}
|
2696
|
-
H.current && (K({
|
2697
|
-
type: "openDialog"
|
2698
|
-
}), ce(), H.current.value = null, H.current.click());
|
2699
|
-
}, [K, ce, ne, z, j, x, re, r]), B = G(function(l) {
|
2700
|
-
!$.current || !$.current.isEqualNode(l.target) || (l.key === " " || l.key === "Enter" || l.keyCode === 32 || l.keyCode === 13) && (l.preventDefault(), c());
|
2701
|
-
}, [$, c]), le = G(function() {
|
2702
|
-
K({
|
2703
|
-
type: "focus"
|
2704
|
-
});
|
2705
|
-
}, []), xe = G(function() {
|
2706
|
-
K({
|
2707
|
-
type: "blur"
|
2708
|
-
});
|
2709
|
-
}, []), Qe = G(function() {
|
2710
|
-
I || (Ri() ? setTimeout(c, 0) : c());
|
2711
|
-
}, [I, c]), me = function(u) {
|
2712
|
-
return t ? null : u;
|
2713
|
-
}, Ae = function(u) {
|
2714
|
-
return d ? null : me(u);
|
2715
|
-
}, ye = function(u) {
|
2716
|
-
return Q ? null : me(u);
|
2717
|
-
}, he = function(u) {
|
2718
|
-
J && u.stopPropagation();
|
2719
|
-
}, Ca = fe(function() {
|
2720
|
-
return function() {
|
2721
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey, W = u === void 0 ? "ref" : u, N = l.role, U = l.onKeyDown, ge = l.onFocus, ue = l.onBlur, Pe = l.onClick, Se = l.onDragEnter, ze = l.onDragOver, we = l.onDragLeave, Re = l.onDrop, Ce = De(l, Wi);
|
2722
|
-
return M(M(Ge({
|
2723
|
-
onKeyDown: Ae(ae(U, B)),
|
2724
|
-
onFocus: Ae(ae(ge, le)),
|
2725
|
-
onBlur: Ae(ae(ue, xe)),
|
2726
|
-
onClick: me(ae(Pe, Qe)),
|
2727
|
-
onDragEnter: ye(ae(Se, k)),
|
2728
|
-
onDragOver: ye(ae(ze, T)),
|
2729
|
-
onDragLeave: ye(ae(we, _)),
|
2730
|
-
onDrop: ye(ae(Re, Y)),
|
2731
|
-
role: typeof N == "string" && N !== "" ? N : "presentation"
|
2732
|
-
}, W, $), !t && !d ? {
|
2733
|
-
tabIndex: 0
|
2734
|
-
} : {}), Ce);
|
2735
|
-
};
|
2736
|
-
}, [$, B, le, xe, Qe, k, T, _, Y, d, Q, t]), Fa = G(function(l) {
|
2737
|
-
l.stopPropagation();
|
2738
|
-
}, []), Ia = fe(function() {
|
2739
|
-
return function() {
|
2740
|
-
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, u = l.refKey, W = u === void 0 ? "ref" : u, N = l.onChange, U = l.onClick, ge = De(l, Yi), ue = Ge({
|
2741
|
-
accept: te,
|
2742
|
-
multiple: r,
|
2743
|
-
type: "file",
|
2744
|
-
style: {
|
2745
|
-
border: 0,
|
2746
|
-
clip: "rect(0, 0, 0, 0)",
|
2747
|
-
clipPath: "inset(50%)",
|
2748
|
-
height: "1px",
|
2749
|
-
margin: "0 -1px -1px 0",
|
2750
|
-
overflow: "hidden",
|
2751
|
-
padding: 0,
|
2752
|
-
position: "absolute",
|
2753
|
-
width: "1px",
|
2754
|
-
whiteSpace: "nowrap"
|
2755
|
-
},
|
2756
|
-
onChange: me(ae(N, Y)),
|
2757
|
-
onClick: me(ae(U, Fa)),
|
2758
|
-
tabIndex: -1
|
2759
|
-
}, W, H);
|
2760
|
-
return M(M({}, ue), ge);
|
2761
|
-
};
|
2762
|
-
}, [H, i, r, Y, t]);
|
2763
|
-
return M(M({}, oe), {}, {
|
2764
|
-
isFocused: p && !t,
|
2765
|
-
getRootProps: Ca,
|
2766
|
-
getInputProps: Ia,
|
2767
|
-
rootRef: $,
|
2768
|
-
inputRef: H,
|
2769
|
-
open: me(c)
|
2770
|
-
});
|
2771
|
-
}
|
2772
|
-
function Xi(e, a) {
|
2773
|
-
switch (a.type) {
|
2774
|
-
case "focus":
|
2775
|
-
return M(M({}, e), {}, {
|
2776
|
-
isFocused: !0
|
2777
|
-
});
|
2778
|
-
case "blur":
|
2779
|
-
return M(M({}, e), {}, {
|
2780
|
-
isFocused: !1
|
2781
|
-
});
|
2782
|
-
case "openDialog":
|
2783
|
-
return M(M({}, Je), {}, {
|
2784
|
-
isFileDialogActive: !0
|
2785
|
-
});
|
2786
|
-
case "closeDialog":
|
2787
|
-
return M(M({}, e), {}, {
|
2788
|
-
isFileDialogActive: !1
|
2789
|
-
});
|
2790
|
-
case "setDraggedFiles":
|
2791
|
-
return M(M({}, e), {}, {
|
2792
|
-
isDragActive: a.isDragActive,
|
2793
|
-
isDragAccept: a.isDragAccept,
|
2794
|
-
isDragReject: a.isDragReject
|
2795
|
-
});
|
2796
|
-
case "setFiles":
|
2797
|
-
return M(M({}, e), {}, {
|
2798
|
-
acceptedFiles: a.acceptedFiles,
|
2799
|
-
fileRejections: a.fileRejections,
|
2800
|
-
isDragReject: a.isDragReject
|
2801
|
-
});
|
2802
|
-
case "reset":
|
2803
|
-
return M({}, Je);
|
2804
|
-
default:
|
2805
|
-
return e;
|
2806
|
-
}
|
2807
|
-
}
|
2808
|
-
function ha() {
|
2809
|
-
}
|
2810
|
-
const nt = ({
|
2811
|
-
acceptTypes: e = Va,
|
1
|
+
import { jsxs as m, jsx as d } from "react/jsx-runtime";
|
2
|
+
import { useState as x, useEffect as z } from "react";
|
3
|
+
import { useDropzone as D } from "react-dropzone";
|
4
|
+
import { Card as F } from "../Card/Card.mjs";
|
5
|
+
import { File as P, X as T } from "lucide-react";
|
6
|
+
import { cn as k } from "@oneplatformdev/utils";
|
7
|
+
import { F as L, D as C } from "../FilePreview-C6IeuOqo.js";
|
8
|
+
const H = ({
|
9
|
+
acceptTypes: u = C,
|
2812
10
|
maxSizeMB: a,
|
2813
|
-
onFilesSelected:
|
2814
|
-
translations:
|
2815
|
-
maxFiles:
|
2816
|
-
onErrors:
|
2817
|
-
hideErrors:
|
11
|
+
onFilesSelected: f,
|
12
|
+
translations: e,
|
13
|
+
maxFiles: p = 1,
|
14
|
+
onErrors: h,
|
15
|
+
hideErrors: N = !1
|
2818
16
|
}) => {
|
2819
|
-
const [
|
2820
|
-
|
2821
|
-
if (
|
2822
|
-
const
|
17
|
+
const [o, s] = x([]), [i, n] = x([]), y = (l, c) => {
|
18
|
+
n(c), h && h(c), s((r) => {
|
19
|
+
if (r.length + l.length > p) {
|
20
|
+
const t = l.slice(
|
2823
21
|
0,
|
2824
|
-
|
22
|
+
p - r.length
|
2825
23
|
);
|
2826
|
-
return
|
24
|
+
return f([...r, ...t]), [...r, ...t];
|
2827
25
|
}
|
2828
|
-
return
|
26
|
+
return f([...r, ...l]), [...r, ...l];
|
2829
27
|
});
|
2830
|
-
},
|
2831
|
-
|
2832
|
-
const
|
2833
|
-
return
|
28
|
+
}, b = (l) => {
|
29
|
+
s((c) => {
|
30
|
+
const r = c.filter((g, t) => t !== l);
|
31
|
+
return f(r), r;
|
2834
32
|
});
|
2835
|
-
}, { getRootProps:
|
2836
|
-
onDrop:
|
2837
|
-
accept:
|
33
|
+
}, { getRootProps: v, getInputProps: w, isDragActive: E } = D({
|
34
|
+
onDrop: y,
|
35
|
+
accept: u.reduce((l, c) => (l[c] = [], l), {}),
|
2838
36
|
maxSize: a * 1024 * 1024,
|
2839
|
-
maxFiles:
|
37
|
+
maxFiles: p
|
2840
38
|
});
|
2841
|
-
return
|
2842
|
-
console.log("FILES ?? ",
|
2843
|
-
}, [
|
2844
|
-
|
39
|
+
return z(() => {
|
40
|
+
console.log("FILES ?? ", o);
|
41
|
+
}, [o]), /* @__PURE__ */ m(
|
42
|
+
F,
|
2845
43
|
{
|
2846
|
-
className:
|
44
|
+
className: k(
|
2847
45
|
"border-dashed border-2 p-6 text-center flex flex-col items-center justify-center",
|
2848
|
-
|
2849
|
-
|
46
|
+
i.length > 0 ? "border-red-500" : "border-gray-300",
|
47
|
+
E ? "bg-gray-100" : ""
|
2850
48
|
),
|
2851
|
-
...
|
49
|
+
...v(),
|
2852
50
|
children: [
|
2853
|
-
/* @__PURE__ */
|
2854
|
-
|
2855
|
-
/* @__PURE__ */
|
2856
|
-
/* @__PURE__ */
|
2857
|
-
/* @__PURE__ */
|
51
|
+
/* @__PURE__ */ d("input", { ...w() }),
|
52
|
+
o.length === 0 && i.length === 0 && /* @__PURE__ */ m("div", { className: "flex flex-col items-center gap-1", children: [
|
53
|
+
/* @__PURE__ */ d(P, { className: "w-8 h-8 text-gray-500" }),
|
54
|
+
/* @__PURE__ */ d("span", { className: "font-semibold text-gray-600", children: e == null ? void 0 : e.dropFileHere }),
|
55
|
+
/* @__PURE__ */ d("span", { className: "text-sm text-gray-500", children: e == null ? void 0 : e.orClickToSelect })
|
2858
56
|
] }),
|
2859
|
-
|
2860
|
-
/* @__PURE__ */
|
2861
|
-
|
57
|
+
o.length > 0 && /* @__PURE__ */ m("div", { className: "w-full mt-2", children: [
|
58
|
+
/* @__PURE__ */ m("span", { className: "font-semibold text-gray-600", children: [
|
59
|
+
e == null ? void 0 : e.selectedFiles,
|
2862
60
|
":"
|
2863
61
|
] }),
|
2864
|
-
/* @__PURE__ */
|
62
|
+
/* @__PURE__ */ d("ul", { className: "mt-2 text-sm text-gray-500 flex flex-wrap gap-2 items-center justify-center", children: o.map((l, c) => /* @__PURE__ */ m(
|
2865
63
|
"li",
|
2866
64
|
{
|
2867
65
|
className: "flex flex-col items-center gap-2 relative",
|
2868
66
|
children: [
|
2869
|
-
/* @__PURE__ */
|
2870
|
-
/* @__PURE__ */
|
2871
|
-
/* @__PURE__ */
|
2872
|
-
|
67
|
+
/* @__PURE__ */ m("div", { className: "relative", children: [
|
68
|
+
/* @__PURE__ */ d(L, { file: l }),
|
69
|
+
/* @__PURE__ */ d("div", { className: "absolute top-0 right-0 cursor-pointer bg-gray-300 rounded-sm", children: /* @__PURE__ */ d(
|
70
|
+
T,
|
2873
71
|
{
|
2874
72
|
size: 16,
|
2875
73
|
strokeWidth: 1,
|
2876
74
|
color: "black",
|
2877
|
-
onClick: (
|
2878
|
-
|
75
|
+
onClick: (r) => {
|
76
|
+
r.stopPropagation(), b(c);
|
2879
77
|
}
|
2880
78
|
}
|
2881
79
|
) })
|
2882
80
|
] }),
|
2883
|
-
/* @__PURE__ */
|
2884
|
-
/* @__PURE__ */
|
81
|
+
/* @__PURE__ */ m("span", { className: "inline-flex", children: [
|
82
|
+
/* @__PURE__ */ d(
|
2885
83
|
"span",
|
2886
84
|
{
|
2887
85
|
className: "max-w-[80px] truncate overflow-hidden items-center",
|
2888
|
-
children:
|
86
|
+
children: l.name
|
2889
87
|
}
|
2890
88
|
),
|
2891
89
|
"(",
|
2892
|
-
(
|
90
|
+
(l.size / (1024 * 1024)).toFixed(2),
|
2893
91
|
" MB)"
|
2894
92
|
] })
|
2895
93
|
]
|
2896
94
|
},
|
2897
|
-
|
95
|
+
c
|
2898
96
|
)) })
|
2899
97
|
] }),
|
2900
|
-
|
2901
|
-
/* @__PURE__ */
|
2902
|
-
|
98
|
+
i.length > 0 && /* @__PURE__ */ m("div", { className: "w-full mt-4", children: [
|
99
|
+
/* @__PURE__ */ m("span", { className: "font-semibold text-red-500", children: [
|
100
|
+
e == null ? void 0 : e.uploadErrors,
|
2903
101
|
":"
|
2904
102
|
] }),
|
2905
|
-
/* @__PURE__ */
|
2906
|
-
|
103
|
+
/* @__PURE__ */ d("ul", { className: "mt-2 text-sm text-red-500", children: i.map((l, c) => /* @__PURE__ */ m("li", { children: [
|
104
|
+
l.file.name,
|
2907
105
|
" (",
|
2908
|
-
(
|
106
|
+
(l.file.size / (1024 * 1024)).toFixed(2),
|
2909
107
|
" MB)",
|
2910
|
-
!
|
2911
|
-
|
2912
|
-
|
2913
|
-
|
2914
|
-
] },
|
2915
|
-
] },
|
108
|
+
!N && /* @__PURE__ */ d("ul", { className: "ml-4", children: l.errors.map((r, g) => /* @__PURE__ */ m("li", { children: [
|
109
|
+
r.code === "file-too-large" && (e == null ? void 0 : e.fileTooLarge),
|
110
|
+
r.code === "file-invalid-type" && (e == null ? void 0 : e.invalidFileType),
|
111
|
+
r.code !== "file-too-large" && r.code !== "file-invalid-type" && r.message
|
112
|
+
] }, g)) })
|
113
|
+
] }, c)) })
|
2916
114
|
] })
|
2917
115
|
]
|
2918
116
|
}
|
2919
117
|
);
|
2920
118
|
};
|
2921
119
|
export {
|
2922
|
-
|
120
|
+
H as Dropzone
|
2923
121
|
};
|