md-components-mdigial-azamat 0.0.98 → 0.0.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1787 +1,8 @@
1
- import { jsxs as H, jsx as k, Fragment as Pe } from "react/jsx-runtime";
2
- import ye, { useRef as de, useDebugValue as Nt, createElement as In, useContext as nn, useState as Se, useCallback as ue, useEffect as Me, createContext as Tn, useMemo as rt, forwardRef as Ln } from "react";
3
- import { c as $n } from "../cn-6a4bf187.js";
4
- import { FileLoaderIcon as Dn } from "./fileLoader.js";
5
- var M = function() {
6
- return M = Object.assign || function(t) {
7
- for (var n, r = 1, o = arguments.length; r < o; r++) {
8
- n = arguments[r];
9
- for (var a in n)
10
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
11
- }
12
- return t;
13
- }, M.apply(this, arguments);
14
- };
15
- function xe(e, t, n) {
16
- if (n || arguments.length === 2)
17
- for (var r = 0, o = t.length, a; r < o; r++)
18
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
19
- return e.concat(a || Array.prototype.slice.call(t));
20
- }
21
- function zn(e) {
22
- var t = /* @__PURE__ */ Object.create(null);
23
- return function(n) {
24
- return t[n] === void 0 && (t[n] = e(n)), t[n];
25
- };
26
- }
27
- var jn = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Fn = /* @__PURE__ */ zn(
28
- function(e) {
29
- return jn.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
30
- }
31
- /* Z+1 */
32
- ), L = "-ms-", Ie = "-moz-", N = "-webkit-", rn = "comm", Ke = "rule", St = "decl", Mn = "@import", on = "@keyframes", Bn = "@layer", an = Math.abs, xt = String.fromCharCode, pt = Object.assign;
33
- function Vn(e, t) {
34
- return z(e, 0) ^ 45 ? (((t << 2 ^ z(e, 0)) << 2 ^ z(e, 1)) << 2 ^ z(e, 2)) << 2 ^ z(e, 3) : 0;
35
- }
36
- function sn(e) {
37
- return e.trim();
38
- }
39
- function Q(e, t) {
40
- return (e = t.exec(e)) ? e[0] : e;
41
- }
42
- function w(e, t, n) {
43
- return e.replace(t, n);
44
- }
45
- function Be(e, t, n) {
46
- return e.indexOf(t, n);
47
- }
48
- function z(e, t) {
49
- return e.charCodeAt(t) | 0;
50
- }
51
- function Ee(e, t, n) {
52
- return e.slice(t, n);
53
- }
54
- function K(e) {
55
- return e.length;
56
- }
57
- function cn(e) {
58
- return e.length;
59
- }
60
- function Re(e, t) {
61
- return t.push(e), e;
62
- }
63
- function Hn(e, t) {
64
- return e.map(t).join("");
65
- }
66
- function Ot(e, t) {
67
- return e.filter(function(n) {
68
- return !Q(n, t);
69
- });
70
- }
71
- var Xe = 1, ke = 1, ln = 0, G = 0, D = 0, Oe = "";
72
- function Ze(e, t, n, r, o, a, s, p) {
73
- return { value: e, root: t, parent: n, type: r, props: o, children: a, line: Xe, column: ke, length: s, return: "", siblings: p };
74
- }
75
- function ae(e, t) {
76
- return pt(Ze("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
77
- }
78
- function we(e) {
79
- for (; e.root; )
80
- e = ae(e.root, { children: [e] });
81
- Re(e, e.siblings);
82
- }
83
- function Gn() {
84
- return D;
85
- }
86
- function Un() {
87
- return D = G > 0 ? z(Oe, --G) : 0, ke--, D === 10 && (ke = 1, Xe--), D;
88
- }
89
- function Y() {
90
- return D = G < ln ? z(Oe, G++) : 0, ke++, D === 10 && (ke = 1, Xe++), D;
91
- }
92
- function he() {
93
- return z(Oe, G);
94
- }
95
- function Ve() {
96
- return G;
97
- }
98
- function Je(e, t) {
99
- return Ee(Oe, e, t);
100
- }
101
- function dt(e) {
102
- switch (e) {
103
- case 0:
104
- case 9:
105
- case 10:
106
- case 13:
107
- case 32:
108
- return 5;
109
- case 33:
110
- case 43:
111
- case 44:
112
- case 47:
113
- case 62:
114
- case 64:
115
- case 126:
116
- case 59:
117
- case 123:
118
- case 125:
119
- return 4;
120
- case 58:
121
- return 3;
122
- case 34:
123
- case 39:
124
- case 40:
125
- case 91:
126
- return 2;
127
- case 41:
128
- case 93:
129
- return 1;
130
- }
131
- return 0;
132
- }
133
- function Wn(e) {
134
- return Xe = ke = 1, ln = K(Oe = e), G = 0, [];
135
- }
136
- function qn(e) {
137
- return Oe = "", e;
138
- }
139
- function ot(e) {
140
- return sn(Je(G - 1, ft(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
141
- }
142
- function Yn(e) {
143
- for (; (D = he()) && D < 33; )
144
- Y();
145
- return dt(e) > 2 || dt(D) > 3 ? "" : " ";
146
- }
147
- function Kn(e, t) {
148
- for (; --t && Y() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); )
149
- ;
150
- return Je(e, Ve() + (t < 6 && he() == 32 && Y() == 32));
151
- }
152
- function ft(e) {
153
- for (; Y(); )
154
- switch (D) {
155
- case e:
156
- return G;
157
- case 34:
158
- case 39:
159
- e !== 34 && e !== 39 && ft(D);
160
- break;
161
- case 40:
162
- e === 41 && ft(e);
163
- break;
164
- case 92:
165
- Y();
166
- break;
167
- }
168
- return G;
169
- }
170
- function Xn(e, t) {
171
- for (; Y() && e + D !== 47 + 10; )
172
- if (e + D === 42 + 42 && he() === 47)
173
- break;
174
- return "/*" + Je(t, G - 1) + "*" + xt(e === 47 ? e : Y());
175
- }
176
- function Zn(e) {
177
- for (; !dt(he()); )
178
- Y();
179
- return Je(e, G);
180
- }
181
- function Jn(e) {
182
- return qn(He("", null, null, null, [""], e = Wn(e), 0, [0], e));
183
- }
184
- function He(e, t, n, r, o, a, s, p, i) {
185
- for (var y = 0, v = 0, c = s, d = 0, l = 0, f = 0, m = 1, O = 1, x = 1, E = 0, S = "", u = o, b = a, h = r, g = S; O; )
186
- switch (f = E, E = Y()) {
187
- case 40:
188
- if (f != 108 && z(g, c - 1) == 58) {
189
- Be(g += w(ot(E), "&", "&\f"), "&\f", an(y ? p[y - 1] : 0)) != -1 && (x = -1);
190
- break;
191
- }
192
- case 34:
193
- case 39:
194
- case 91:
195
- g += ot(E);
196
- break;
197
- case 9:
198
- case 10:
199
- case 13:
200
- case 32:
201
- g += Yn(f);
202
- break;
203
- case 92:
204
- g += Kn(Ve() - 1, 7);
205
- continue;
206
- case 47:
207
- switch (he()) {
208
- case 42:
209
- case 47:
210
- Re(Qn(Xn(Y(), Ve()), t, n, i), i);
211
- break;
212
- default:
213
- g += "/";
214
- }
215
- break;
216
- case 123 * m:
217
- p[y++] = K(g) * x;
218
- case 125 * m:
219
- case 59:
220
- case 0:
221
- switch (E) {
222
- case 0:
223
- case 125:
224
- O = 0;
225
- case 59 + v:
226
- x == -1 && (g = w(g, /\f/g, "")), l > 0 && K(g) - c && Re(l > 32 ? Pt(g + ";", r, n, c - 1, i) : Pt(w(g, " ", "") + ";", r, n, c - 2, i), i);
227
- break;
228
- case 59:
229
- g += ";";
230
- default:
231
- if (Re(h = At(g, t, n, y, v, o, p, S, u = [], b = [], c, a), a), E === 123)
232
- if (v === 0)
233
- He(g, t, h, h, u, a, c, p, b);
234
- else
235
- switch (d === 99 && z(g, 3) === 110 ? 100 : d) {
236
- case 100:
237
- case 108:
238
- case 109:
239
- case 115:
240
- He(e, h, h, r && Re(At(e, h, h, 0, 0, o, p, S, o, u = [], c, b), b), o, b, c, p, r ? u : b);
241
- break;
242
- default:
243
- He(g, h, h, h, [""], b, 0, p, b);
244
- }
245
- }
246
- y = v = l = 0, m = x = 1, S = g = "", c = s;
247
- break;
248
- case 58:
249
- c = 1 + K(g), l = f;
250
- default:
251
- if (m < 1) {
252
- if (E == 123)
253
- --m;
254
- else if (E == 125 && m++ == 0 && Un() == 125)
255
- continue;
256
- }
257
- switch (g += xt(E), E * m) {
258
- case 38:
259
- x = v > 0 ? 1 : (g += "\f", -1);
260
- break;
261
- case 44:
262
- p[y++] = (K(g) - 1) * x, x = 1;
263
- break;
264
- case 64:
265
- he() === 45 && (g += ot(Y())), d = he(), v = c = K(S = g += Zn(Ve())), E++;
266
- break;
267
- case 45:
268
- f === 45 && K(g) == 2 && (m = 0);
269
- }
270
- }
271
- return a;
272
- }
273
- function At(e, t, n, r, o, a, s, p, i, y, v, c) {
274
- for (var d = o - 1, l = o === 0 ? a : [""], f = cn(l), m = 0, O = 0, x = 0; m < r; ++m)
275
- for (var E = 0, S = Ee(e, d + 1, d = an(O = s[m])), u = e; E < f; ++E)
276
- (u = sn(O > 0 ? l[E] + " " + S : w(S, /&\f/g, l[E]))) && (i[x++] = u);
277
- return Ze(e, t, n, o === 0 ? Ke : p, i, y, v, c);
278
- }
279
- function Qn(e, t, n, r) {
280
- return Ze(e, t, n, rn, xt(Gn()), Ee(e, 2, -2), 0, r);
281
- }
282
- function Pt(e, t, n, r, o) {
283
- return Ze(e, t, n, St, Ee(e, 0, r), Ee(e, r + 1, -1), r, o);
284
- }
285
- function un(e, t, n) {
286
- switch (Vn(e, t)) {
287
- case 5103:
288
- return N + "print-" + e + e;
289
- case 5737:
290
- case 4201:
291
- case 3177:
292
- case 3433:
293
- case 1641:
294
- case 4457:
295
- case 2921:
296
- case 5572:
297
- case 6356:
298
- case 5844:
299
- case 3191:
300
- case 6645:
301
- case 3005:
302
- case 6391:
303
- case 5879:
304
- case 5623:
305
- case 6135:
306
- case 4599:
307
- case 4855:
308
- case 4215:
309
- case 6389:
310
- case 5109:
311
- case 5365:
312
- case 5621:
313
- case 3829:
314
- return N + e + e;
315
- case 4789:
316
- return Ie + e + e;
317
- case 5349:
318
- case 4246:
319
- case 4810:
320
- case 6968:
321
- case 2756:
322
- return N + e + Ie + e + L + e + e;
323
- case 5936:
324
- switch (z(e, t + 11)) {
325
- case 114:
326
- return N + e + L + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
327
- case 108:
328
- return N + e + L + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
329
- case 45:
330
- return N + e + L + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
331
- }
332
- case 6828:
333
- case 4268:
334
- case 2903:
335
- return N + e + L + e + e;
336
- case 6165:
337
- return N + e + L + "flex-" + e + e;
338
- case 5187:
339
- return N + e + w(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + L + "flex-$1$2") + e;
340
- case 5443:
341
- return N + e + L + "flex-item-" + w(e, /flex-|-self/g, "") + (Q(e, /flex-|baseline/) ? "" : L + "grid-row-" + w(e, /flex-|-self/g, "")) + e;
342
- case 4675:
343
- return N + e + L + "flex-line-pack" + w(e, /align-content|flex-|-self/g, "") + e;
344
- case 5548:
345
- return N + e + L + w(e, "shrink", "negative") + e;
346
- case 5292:
347
- return N + e + L + w(e, "basis", "preferred-size") + e;
348
- case 6060:
349
- return N + "box-" + w(e, "-grow", "") + N + e + L + w(e, "grow", "positive") + e;
350
- case 4554:
351
- return N + w(e, /([^-])(transform)/g, "$1" + N + "$2") + e;
352
- case 6187:
353
- return w(w(w(e, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), e, "") + e;
354
- case 5495:
355
- case 3959:
356
- return w(e, /(image-set\([^]*)/, N + "$1$`$1");
357
- case 4968:
358
- return w(w(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
359
- case 4200:
360
- if (!Q(e, /flex-|baseline/))
361
- return L + "grid-column-align" + Ee(e, t) + e;
362
- break;
363
- case 2592:
364
- case 3360:
365
- return L + w(e, "template-", "") + e;
366
- case 4384:
367
- case 3616:
368
- return n && n.some(function(r, o) {
369
- return t = o, Q(r.props, /grid-\w+-end/);
370
- }) ? ~Be(e + (n = n[t].value), "span", 0) ? e : L + w(e, "-start", "") + e + L + "grid-row-span:" + (~Be(n, "span", 0) ? Q(n, /\d+/) : +Q(n, /\d+/) - +Q(e, /\d+/)) + ";" : L + w(e, "-start", "") + e;
371
- case 4896:
372
- case 4128:
373
- return n && n.some(function(r) {
374
- return Q(r.props, /grid-\w+-start/);
375
- }) ? e : L + w(w(e, "-end", "-span"), "span ", "") + e;
376
- case 4095:
377
- case 3583:
378
- case 4068:
379
- case 2532:
380
- return w(e, /(.+)-inline(.+)/, N + "$1$2") + e;
381
- case 8116:
382
- case 7059:
383
- case 5753:
384
- case 5535:
385
- case 5445:
386
- case 5701:
387
- case 4933:
388
- case 4677:
389
- case 5533:
390
- case 5789:
391
- case 5021:
392
- case 4765:
393
- if (K(e) - 1 - t > 6)
394
- switch (z(e, t + 1)) {
395
- case 109:
396
- if (z(e, t + 4) !== 45)
397
- break;
398
- case 102:
399
- return w(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + Ie + (z(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
400
- case 115:
401
- return ~Be(e, "stretch", 0) ? un(w(e, "stretch", "fill-available"), t, n) + e : e;
402
- }
403
- break;
404
- case 5152:
405
- case 5920:
406
- return w(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, s, p, i, y) {
407
- return L + o + ":" + a + y + (s ? L + o + "-span:" + (p ? i : +i - +a) + y : "") + e;
408
- });
409
- case 4949:
410
- if (z(e, t + 6) === 121)
411
- return w(e, ":", ":" + N) + e;
412
- break;
413
- case 6444:
414
- switch (z(e, z(e, 14) === 45 ? 18 : 11)) {
415
- case 120:
416
- return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (z(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + L + "$2box$3") + e;
417
- case 100:
418
- return w(e, ":", ":" + L) + e;
419
- }
420
- break;
421
- case 5719:
422
- case 2647:
423
- case 2135:
424
- case 3927:
425
- case 2391:
426
- return w(e, "scroll-", "scroll-snap-") + e;
427
- }
428
- return e;
429
- }
430
- function We(e, t) {
431
- for (var n = "", r = 0; r < e.length; r++)
432
- n += t(e[r], r, e, t) || "";
433
- return n;
434
- }
435
- function er(e, t, n, r) {
436
- switch (e.type) {
437
- case Bn:
438
- if (e.children.length)
439
- break;
440
- case Mn:
441
- case St:
442
- return e.return = e.return || e.value;
443
- case rn:
444
- return "";
445
- case on:
446
- return e.return = e.value + "{" + We(e.children, r) + "}";
447
- case Ke:
448
- if (!K(e.value = e.props.join(",")))
449
- return "";
450
- }
451
- return K(n = We(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
452
- }
453
- function tr(e) {
454
- var t = cn(e);
455
- return function(n, r, o, a) {
456
- for (var s = "", p = 0; p < t; p++)
457
- s += e[p](n, r, o, a) || "";
458
- return s;
459
- };
460
- }
461
- function nr(e) {
462
- return function(t) {
463
- t.root || (t = t.return) && e(t);
464
- };
465
- }
466
- function rr(e, t, n, r) {
467
- if (e.length > -1 && !e.return)
468
- switch (e.type) {
469
- case St:
470
- e.return = un(e.value, e.length, n);
471
- return;
472
- case on:
473
- return We([ae(e, { value: w(e.value, "@", "@" + N) })], r);
474
- case Ke:
475
- if (e.length)
476
- return Hn(n = e.props, function(o) {
477
- switch (Q(o, r = /(::plac\w+|:read-\w+)/)) {
478
- case ":read-only":
479
- case ":read-write":
480
- we(ae(e, { props: [w(o, /:(read-\w+)/, ":" + Ie + "$1")] })), we(ae(e, { props: [o] })), pt(e, { props: Ot(n, r) });
481
- break;
482
- case "::placeholder":
483
- we(ae(e, { props: [w(o, /:(plac\w+)/, ":" + N + "input-$1")] })), we(ae(e, { props: [w(o, /:(plac\w+)/, ":" + Ie + "$1")] })), we(ae(e, { props: [w(o, /:(plac\w+)/, L + "input-$1")] })), we(ae(e, { props: [o] })), pt(e, { props: Ot(n, r) });
484
- break;
485
- }
486
- return "";
487
- });
488
- }
489
- }
490
- var or = {
491
- animationIterationCount: 1,
492
- aspectRatio: 1,
493
- borderImageOutset: 1,
494
- borderImageSlice: 1,
495
- borderImageWidth: 1,
496
- boxFlex: 1,
497
- boxFlexGroup: 1,
498
- boxOrdinalGroup: 1,
499
- columnCount: 1,
500
- columns: 1,
501
- flex: 1,
502
- flexGrow: 1,
503
- flexPositive: 1,
504
- flexShrink: 1,
505
- flexNegative: 1,
506
- flexOrder: 1,
507
- gridRow: 1,
508
- gridRowEnd: 1,
509
- gridRowSpan: 1,
510
- gridRowStart: 1,
511
- gridColumn: 1,
512
- gridColumnEnd: 1,
513
- gridColumnSpan: 1,
514
- gridColumnStart: 1,
515
- msGridRow: 1,
516
- msGridRowSpan: 1,
517
- msGridColumn: 1,
518
- msGridColumnSpan: 1,
519
- fontWeight: 1,
520
- lineHeight: 1,
521
- opacity: 1,
522
- order: 1,
523
- orphans: 1,
524
- tabSize: 1,
525
- widows: 1,
526
- zIndex: 1,
527
- zoom: 1,
528
- WebkitLineClamp: 1,
529
- // SVG-related properties
530
- fillOpacity: 1,
531
- floodOpacity: 1,
532
- stopOpacity: 1,
533
- strokeDasharray: 1,
534
- strokeDashoffset: 1,
535
- strokeMiterlimit: 1,
536
- strokeOpacity: 1,
537
- strokeWidth: 1
538
- }, ve = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", pn = "active", dn = "data-styled-version", Qe = "6.1.19", Et = `/*!sc*/
539
- `, qe = typeof window < "u" && typeof document < "u", ar = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Rt = /invalid hook call/i, De = /* @__PURE__ */ new Set(), sr = function(e, t) {
540
- if (process.env.NODE_ENV !== "production") {
541
- var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
542
- `) + `You may see this warning because you've called styled inside another component.
543
- To resolve this only create new StyledComponents outside of any render method and function component.
544
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
545
- `, o = console.error;
546
- try {
547
- var a = !0;
548
- console.error = function(s) {
549
- for (var p = [], i = 1; i < arguments.length; i++)
550
- p[i - 1] = arguments[i];
551
- Rt.test(s) ? (a = !1, De.delete(r)) : o.apply(void 0, xe([s], p, !1));
552
- }, de(), a && !De.has(r) && (console.warn(r), De.add(r));
553
- } catch (s) {
554
- Rt.test(s.message) && De.delete(r);
555
- } finally {
556
- console.error = o;
557
- }
558
- }
559
- }, et = Object.freeze([]), _e = Object.freeze({});
560
- function ir(e, t, n) {
561
- return n === void 0 && (n = _e), e.theme !== n.theme && e.theme || t || n.theme;
562
- }
563
- var ht = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), cr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, lr = /(^-|-$)/g;
564
- function It(e) {
565
- return e.replace(cr, "-").replace(lr, "");
566
- }
567
- var ur = /(a)(d)/gi, ze = 52, Tt = function(e) {
568
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
569
- };
570
- function gt(e) {
571
- var t, n = "";
572
- for (t = Math.abs(e); t > ze; t = t / ze | 0)
573
- n = Tt(t % ze) + n;
574
- return (Tt(t % ze) + n).replace(ur, "$1-$2");
575
- }
576
- var at, fn = 5381, pe = function(e, t) {
577
- for (var n = t.length; n; )
578
- e = 33 * e ^ t.charCodeAt(--n);
579
- return e;
580
- }, hn = function(e) {
581
- return pe(fn, e);
582
- };
583
- function pr(e) {
584
- return gt(hn(e) >>> 0);
585
- }
586
- function gn(e) {
587
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
588
- }
589
- function st(e) {
590
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
591
- }
592
- var mn = typeof Symbol == "function" && Symbol.for, yn = mn ? Symbol.for("react.memo") : 60115, dr = mn ? Symbol.for("react.forward_ref") : 60112, fr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, hr = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, vn = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, gr = ((at = {})[dr] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, at[yn] = vn, at);
593
- function Lt(e) {
594
- return ("type" in (t = e) && t.type.$$typeof) === yn ? vn : "$$typeof" in e ? gr[e.$$typeof] : fr;
595
- var t;
596
- }
597
- var mr = Object.defineProperty, yr = Object.getOwnPropertyNames, $t = Object.getOwnPropertySymbols, vr = Object.getOwnPropertyDescriptor, br = Object.getPrototypeOf, Dt = Object.prototype;
598
- function bn(e, t, n) {
599
- if (typeof t != "string") {
600
- if (Dt) {
601
- var r = br(t);
602
- r && r !== Dt && bn(e, r, n);
603
- }
604
- var o = yr(t);
605
- $t && (o = o.concat($t(t)));
606
- for (var a = Lt(e), s = Lt(t), p = 0; p < o.length; ++p) {
607
- var i = o[p];
608
- if (!(i in hr || n && n[i] || s && i in s || a && i in a)) {
609
- var y = vr(t, i);
610
- try {
611
- mr(e, i, y);
612
- } catch {
613
- }
614
- }
615
- }
616
- }
617
- return e;
618
- }
619
- function Ce(e) {
620
- return typeof e == "function";
621
- }
622
- function kt(e) {
623
- return typeof e == "object" && "styledComponentId" in e;
624
- }
625
- function fe(e, t) {
626
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
627
- }
628
- function zt(e, t) {
629
- if (e.length === 0)
630
- return "";
631
- for (var n = e[0], r = 1; r < e.length; r++)
632
- n += t ? t + e[r] : e[r];
633
- return n;
634
- }
635
- function Ne(e) {
636
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
637
- }
638
- function mt(e, t, n) {
639
- if (n === void 0 && (n = !1), !n && !Ne(e) && !Array.isArray(e))
640
- return t;
641
- if (Array.isArray(t))
642
- for (var r = 0; r < t.length; r++)
643
- e[r] = mt(e[r], t[r]);
644
- else if (Ne(t))
645
- for (var r in t)
646
- e[r] = mt(e[r], t[r]);
647
- return e;
648
- }
649
- function _t(e, t) {
650
- Object.defineProperty(e, "toString", { value: t });
651
- }
652
- var wr = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
653
-
654
- `, 2: `Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
655
-
656
- - Are you trying to reuse it across renders?
657
- - Are you accidentally calling collectStyles twice?
658
-
659
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
660
-
661
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
662
-
663
- - Does this error occur on the client and is your target falsy?
664
- - Does this error occur on the server and is the sheet falsy?
665
-
666
- `, 5: `The clone method cannot be used on the client!
667
-
668
- - Are you running in a client-like environment on the server?
669
- - Are you trying to run SSR on the client?
670
-
671
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
672
-
673
- - Are you using a custom target that isn't mounted?
674
- - Does your document not have a valid head element?
675
- - Have you accidentally removed a style tag manually?
676
-
677
- `, 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n', 8: `ThemeProvider: Please make your "theme" prop an object.
678
-
679
- `, 9: "Missing document `<head>`\n\n", 10: `Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
680
-
681
- `, 11: `_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
682
-
683
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n", 13: `%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
684
-
685
- `, 14: `ThemeProvider: "theme" prop is required.
686
-
687
- `, 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n", 16: `Reached the limit of how many styled components may be created at group %s.
688
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
689
- as for instance in your render method then you may be running into this limitation.
690
-
691
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
692
- Has styled-components' style tag been unmounted or altered by another script?
693
- `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
694
- function Sr() {
695
- for (var e = [], t = 0; t < arguments.length; t++)
696
- e[t] = arguments[t];
697
- for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1)
698
- r.push(e[o]);
699
- return r.forEach(function(s) {
700
- n = n.replace(/%[a-z]/, s);
701
- }), n;
702
- }
703
- function Ae(e) {
704
- for (var t = [], n = 1; n < arguments.length; n++)
705
- t[n - 1] = arguments[n];
706
- return process.env.NODE_ENV === "production" ? new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(Sr.apply(void 0, xe([wr[e]], t, !1)).trim());
707
- }
708
- var xr = function() {
709
- function e(t) {
710
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
711
- }
712
- return e.prototype.indexOfGroup = function(t) {
713
- for (var n = 0, r = 0; r < t; r++)
714
- n += this.groupSizes[r];
715
- return n;
716
- }, e.prototype.insertRules = function(t, n) {
717
- if (t >= this.groupSizes.length) {
718
- for (var r = this.groupSizes, o = r.length, a = o; t >= a; )
719
- if ((a <<= 1) < 0)
720
- throw Ae(16, "".concat(t));
721
- this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
722
- for (var s = o; s < a; s++)
723
- this.groupSizes[s] = 0;
724
- }
725
- for (var p = this.indexOfGroup(t + 1), i = (s = 0, n.length); s < i; s++)
726
- this.tag.insertRule(p, n[s]) && (this.groupSizes[t]++, p++);
727
- }, e.prototype.clearGroup = function(t) {
728
- if (t < this.length) {
729
- var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
730
- this.groupSizes[t] = 0;
731
- for (var a = r; a < o; a++)
732
- this.tag.deleteRule(r);
733
- }
734
- }, e.prototype.getGroup = function(t) {
735
- var n = "";
736
- if (t >= this.length || this.groupSizes[t] === 0)
737
- return n;
738
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, s = o; s < a; s++)
739
- n += "".concat(this.tag.getRule(s)).concat(Et);
740
- return n;
741
- }, e;
742
- }(), Er = 1 << 30, Ge = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Map(), Ue = 1, je = function(e) {
743
- if (Ge.has(e))
744
- return Ge.get(e);
745
- for (; Ye.has(Ue); )
746
- Ue++;
747
- var t = Ue++;
748
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Er))
749
- throw Ae(16, "".concat(t));
750
- return Ge.set(e, t), Ye.set(t, e), t;
751
- }, kr = function(e, t) {
752
- Ue = t + 1, Ge.set(e, t), Ye.set(t, e);
753
- }, _r = "style[".concat(ve, "][").concat(dn, '="').concat(Qe, '"]'), Cr = new RegExp("^".concat(ve, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Nr = function(e, t, n) {
754
- for (var r, o = n.split(","), a = 0, s = o.length; a < s; a++)
755
- (r = o[a]) && e.registerName(t, r);
756
- }, Or = function(e, t) {
757
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Et), o = [], a = 0, s = r.length; a < s; a++) {
758
- var p = r[a].trim();
759
- if (p) {
760
- var i = p.match(Cr);
761
- if (i) {
762
- var y = 0 | parseInt(i[1], 10), v = i[2];
763
- y !== 0 && (kr(v, y), Nr(e, v, i[3]), e.getTag().insertRules(y, o)), o.length = 0;
764
- } else
765
- o.push(p);
766
- }
767
- }
768
- }, jt = function(e) {
769
- for (var t = document.querySelectorAll(_r), n = 0, r = t.length; n < r; n++) {
770
- var o = t[n];
771
- o && o.getAttribute(ve) !== pn && (Or(e, o), o.parentNode && o.parentNode.removeChild(o));
772
- }
773
- };
774
- function Ar() {
775
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
776
- }
777
- var wn = function(e) {
778
- var t = document.head, n = e || t, r = document.createElement("style"), o = function(p) {
779
- var i = Array.from(p.querySelectorAll("style[".concat(ve, "]")));
780
- return i[i.length - 1];
781
- }(n), a = o !== void 0 ? o.nextSibling : null;
782
- r.setAttribute(ve, pn), r.setAttribute(dn, Qe);
783
- var s = Ar();
784
- return s && r.setAttribute("nonce", s), n.insertBefore(r, a), r;
785
- }, Pr = function() {
786
- function e(t) {
787
- this.element = wn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
788
- if (n.sheet)
789
- return n.sheet;
790
- for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
791
- var s = r[o];
792
- if (s.ownerNode === n)
793
- return s;
794
- }
795
- throw Ae(17);
796
- }(this.element), this.length = 0;
797
- }
798
- return e.prototype.insertRule = function(t, n) {
799
- try {
800
- return this.sheet.insertRule(n, t), this.length++, !0;
801
- } catch {
802
- return !1;
803
- }
804
- }, e.prototype.deleteRule = function(t) {
805
- this.sheet.deleteRule(t), this.length--;
806
- }, e.prototype.getRule = function(t) {
807
- var n = this.sheet.cssRules[t];
808
- return n && n.cssText ? n.cssText : "";
809
- }, e;
810
- }(), Rr = function() {
811
- function e(t) {
812
- this.element = wn(t), this.nodes = this.element.childNodes, this.length = 0;
813
- }
814
- return e.prototype.insertRule = function(t, n) {
815
- if (t <= this.length && t >= 0) {
816
- var r = document.createTextNode(n);
817
- return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
818
- }
819
- return !1;
820
- }, e.prototype.deleteRule = function(t) {
821
- this.element.removeChild(this.nodes[t]), this.length--;
822
- }, e.prototype.getRule = function(t) {
823
- return t < this.length ? this.nodes[t].textContent : "";
824
- }, e;
825
- }(), Ir = function() {
826
- function e(t) {
827
- this.rules = [], this.length = 0;
828
- }
829
- return e.prototype.insertRule = function(t, n) {
830
- return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
831
- }, e.prototype.deleteRule = function(t) {
832
- this.rules.splice(t, 1), this.length--;
833
- }, e.prototype.getRule = function(t) {
834
- return t < this.length ? this.rules[t] : "";
835
- }, e;
836
- }(), Ft = qe, Tr = { isServer: !qe, useCSSOMInjection: !ar }, Sn = function() {
837
- function e(t, n, r) {
838
- t === void 0 && (t = _e), n === void 0 && (n = {});
839
- var o = this;
840
- this.options = M(M({}, Tr), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && qe && Ft && (Ft = !1, jt(this)), _t(this, function() {
841
- return function(a) {
842
- for (var s = a.getTag(), p = s.length, i = "", y = function(c) {
843
- var d = function(x) {
844
- return Ye.get(x);
845
- }(c);
846
- if (d === void 0)
847
- return "continue";
848
- var l = a.names.get(d), f = s.getGroup(c);
849
- if (l === void 0 || !l.size || f.length === 0)
850
- return "continue";
851
- var m = "".concat(ve, ".g").concat(c, '[id="').concat(d, '"]'), O = "";
852
- l !== void 0 && l.forEach(function(x) {
853
- x.length > 0 && (O += "".concat(x, ","));
854
- }), i += "".concat(f).concat(m, '{content:"').concat(O, '"}').concat(Et);
855
- }, v = 0; v < p; v++)
856
- y(v);
857
- return i;
858
- }(o);
859
- });
860
- }
861
- return e.registerId = function(t) {
862
- return je(t);
863
- }, e.prototype.rehydrate = function() {
864
- !this.server && qe && jt(this);
865
- }, e.prototype.reconstructWithOptions = function(t, n) {
866
- return n === void 0 && (n = !0), new e(M(M({}, this.options), t), this.gs, n && this.names || void 0);
867
- }, e.prototype.allocateGSInstance = function(t) {
868
- return this.gs[t] = (this.gs[t] || 0) + 1;
869
- }, e.prototype.getTag = function() {
870
- return this.tag || (this.tag = (t = function(n) {
871
- var r = n.useCSSOMInjection, o = n.target;
872
- return n.isServer ? new Ir(o) : r ? new Pr(o) : new Rr(o);
873
- }(this.options), new xr(t)));
874
- var t;
875
- }, e.prototype.hasNameForId = function(t, n) {
876
- return this.names.has(t) && this.names.get(t).has(n);
877
- }, e.prototype.registerName = function(t, n) {
878
- if (je(t), this.names.has(t))
879
- this.names.get(t).add(n);
880
- else {
881
- var r = /* @__PURE__ */ new Set();
882
- r.add(n), this.names.set(t, r);
883
- }
884
- }, e.prototype.insertRules = function(t, n, r) {
885
- this.registerName(t, n), this.getTag().insertRules(je(t), r);
886
- }, e.prototype.clearNames = function(t) {
887
- this.names.has(t) && this.names.get(t).clear();
888
- }, e.prototype.clearRules = function(t) {
889
- this.getTag().clearGroup(je(t)), this.clearNames(t);
890
- }, e.prototype.clearTag = function() {
891
- this.tag = void 0;
892
- }, e;
893
- }(), Lr = /&/g, $r = /^\s*\/\/.*$/gm;
894
- function xn(e, t) {
895
- return e.map(function(n) {
896
- return n.type === "rule" && (n.value = "".concat(t, " ").concat(n.value), n.value = n.value.replaceAll(",", ",".concat(t, " ")), n.props = n.props.map(function(r) {
897
- return "".concat(t, " ").concat(r);
898
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = xn(n.children, t)), n;
899
- });
900
- }
901
- function Dr(e) {
902
- var t, n, r, o = e === void 0 ? _e : e, a = o.options, s = a === void 0 ? _e : a, p = o.plugins, i = p === void 0 ? et : p, y = function(d, l, f) {
903
- return f.startsWith(n) && f.endsWith(n) && f.replaceAll(n, "").length > 0 ? ".".concat(t) : d;
904
- }, v = i.slice();
905
- v.push(function(d) {
906
- d.type === Ke && d.value.includes("&") && (d.props[0] = d.props[0].replace(Lr, n).replace(r, y));
907
- }), s.prefix && v.push(rr), v.push(er);
908
- var c = function(d, l, f, m) {
909
- l === void 0 && (l = ""), f === void 0 && (f = ""), m === void 0 && (m = "&"), t = m, n = l, r = new RegExp("\\".concat(n, "\\b"), "g");
910
- var O = d.replace($r, ""), x = Jn(f || l ? "".concat(f, " ").concat(l, " { ").concat(O, " }") : O);
911
- s.namespace && (x = xn(x, s.namespace));
912
- var E = [];
913
- return We(x, tr(v.concat(nr(function(S) {
914
- return E.push(S);
915
- })))), E;
916
- };
917
- return c.hash = i.length ? i.reduce(function(d, l) {
918
- return l.name || Ae(15), pe(d, l.name);
919
- }, fn).toString() : "", c;
920
- }
921
- var zr = new Sn(), yt = Dr(), En = ye.createContext({ shouldForwardProp: void 0, styleSheet: zr, stylis: yt });
922
- En.Consumer;
923
- ye.createContext(void 0);
924
- function Mt() {
925
- return nn(En);
926
- }
927
- var Bt = function() {
928
- function e(t, n) {
929
- var r = this;
930
- this.inject = function(o, a) {
931
- a === void 0 && (a = yt);
932
- var s = r.name + a.hash;
933
- o.hasNameForId(r.id, s) || o.insertRules(r.id, s, a(r.rules, s, "@keyframes"));
934
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, _t(this, function() {
935
- throw Ae(12, String(r.name));
936
- });
937
- }
938
- return e.prototype.getName = function(t) {
939
- return t === void 0 && (t = yt), this.name + t.hash;
940
- }, e;
941
- }(), jr = function(e) {
942
- return e >= "A" && e <= "Z";
943
- };
944
- function Vt(e) {
945
- for (var t = "", n = 0; n < e.length; n++) {
946
- var r = e[n];
947
- if (n === 1 && r === "-" && e[0] === "-")
948
- return e;
949
- jr(r) ? t += "-" + r.toLowerCase() : t += r;
950
- }
951
- return t.startsWith("ms-") ? "-" + t : t;
952
- }
953
- var kn = function(e) {
954
- return e == null || e === !1 || e === "";
955
- }, _n = function(e) {
956
- var t, n, r = [];
957
- for (var o in e) {
958
- var a = e[o];
959
- e.hasOwnProperty(o) && !kn(a) && (Array.isArray(a) && a.isCss || Ce(a) ? r.push("".concat(Vt(o), ":"), a, ";") : Ne(a) ? r.push.apply(r, xe(xe(["".concat(o, " {")], _n(a), !1), ["}"], !1)) : r.push("".concat(Vt(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in or || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
960
- }
961
- return r;
962
- };
963
- function ge(e, t, n, r) {
964
- if (kn(e))
965
- return [];
966
- if (kt(e))
967
- return [".".concat(e.styledComponentId)];
968
- if (Ce(e)) {
969
- if (!Ce(a = e) || a.prototype && a.prototype.isReactComponent || !t)
970
- return [e];
971
- var o = e(t);
972
- return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Bt || Ne(o) || o === null || console.error("".concat(gn(e), " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")), ge(o, t, n, r);
973
- }
974
- var a;
975
- return e instanceof Bt ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Ne(e) ? _n(e) : Array.isArray(e) ? Array.prototype.concat.apply(et, e.map(function(s) {
976
- return ge(s, t, n, r);
977
- })) : [e.toString()];
978
- }
979
- function Fr(e) {
980
- for (var t = 0; t < e.length; t += 1) {
981
- var n = e[t];
982
- if (Ce(n) && !kt(n))
983
- return !1;
984
- }
985
- return !0;
986
- }
987
- var Mr = hn(Qe), Br = function() {
988
- function e(t, n, r) {
989
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && Fr(t), this.componentId = n, this.baseHash = pe(Mr, n), this.baseStyle = r, Sn.registerId(n);
990
- }
991
- return e.prototype.generateAndInjectStyles = function(t, n, r) {
992
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
993
- if (this.isStatic && !r.hash)
994
- if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
995
- o = fe(o, this.staticRulesId);
996
- else {
997
- var a = zt(ge(this.rules, t, n, r)), s = gt(pe(this.baseHash, a) >>> 0);
998
- if (!n.hasNameForId(this.componentId, s)) {
999
- var p = r(a, ".".concat(s), void 0, this.componentId);
1000
- n.insertRules(this.componentId, s, p);
1001
- }
1002
- o = fe(o, s), this.staticRulesId = s;
1003
- }
1004
- else {
1005
- for (var i = pe(this.baseHash, r.hash), y = "", v = 0; v < this.rules.length; v++) {
1006
- var c = this.rules[v];
1007
- if (typeof c == "string")
1008
- y += c, process.env.NODE_ENV !== "production" && (i = pe(i, c));
1009
- else if (c) {
1010
- var d = zt(ge(c, t, n, r));
1011
- i = pe(i, d + v), y += d;
1012
- }
1013
- }
1014
- if (y) {
1015
- var l = gt(i >>> 0);
1016
- n.hasNameForId(this.componentId, l) || n.insertRules(this.componentId, l, r(y, ".".concat(l), void 0, this.componentId)), o = fe(o, l);
1017
- }
1018
- }
1019
- return o;
1020
- }, e;
1021
- }(), Cn = ye.createContext(void 0);
1022
- Cn.Consumer;
1023
- var it = {}, Ht = /* @__PURE__ */ new Set();
1024
- function Vr(e, t, n) {
1025
- var r = kt(e), o = e, a = !st(e), s = t.attrs, p = s === void 0 ? et : s, i = t.componentId, y = i === void 0 ? function(u, b) {
1026
- var h = typeof u != "string" ? "sc" : It(u);
1027
- it[h] = (it[h] || 0) + 1;
1028
- var g = "".concat(h, "-").concat(pr(Qe + h + it[h]));
1029
- return b ? "".concat(b, "-").concat(g) : g;
1030
- }(t.displayName, t.parentComponentId) : i, v = t.displayName, c = v === void 0 ? function(u) {
1031
- return st(u) ? "styled.".concat(u) : "Styled(".concat(gn(u), ")");
1032
- }(e) : v, d = t.displayName && t.componentId ? "".concat(It(t.displayName), "-").concat(t.componentId) : t.componentId || y, l = r && o.attrs ? o.attrs.concat(p).filter(Boolean) : p, f = t.shouldForwardProp;
1033
- if (r && o.shouldForwardProp) {
1034
- var m = o.shouldForwardProp;
1035
- if (t.shouldForwardProp) {
1036
- var O = t.shouldForwardProp;
1037
- f = function(u, b) {
1038
- return m(u, b) && O(u, b);
1039
- };
1040
- } else
1041
- f = m;
1042
- }
1043
- var x = new Br(n, d, r ? o.componentStyle : void 0);
1044
- function E(u, b) {
1045
- return function(h, g, P) {
1046
- var F = h.attrs, ee = h.componentStyle, te = h.defaultProps, _ = h.foldedComponentIds, A = h.styledComponentId, R = h.target, $ = ye.useContext(Cn), X = Mt(), U = h.shouldForwardProp || X.shouldForwardProp;
1047
- process.env.NODE_ENV !== "production" && Nt(A);
1048
- var ie = ir(g, $, te) || _e, B = function(J, ne, ce) {
1049
- for (var re, q = M(M({}, ne), { className: void 0, theme: ce }), le = 0; le < J.length; le += 1) {
1050
- var oe = Ce(re = J[le]) ? re(q) : re;
1051
- for (var V in oe)
1052
- q[V] = V === "className" ? fe(q[V], oe[V]) : V === "style" ? M(M({}, q[V]), oe[V]) : oe[V];
1053
- }
1054
- return ne.className && (q.className = fe(q.className, ne.className)), q;
1055
- }(F, g, ie), Z = B.as || R, C = {};
1056
- for (var I in B)
1057
- B[I] === void 0 || I[0] === "$" || I === "as" || I === "theme" && B.theme === ie || (I === "forwardedAs" ? C.as = B.forwardedAs : U && !U(I, Z) || (C[I] = B[I], U || process.env.NODE_ENV !== "development" || Fn(I) || Ht.has(I) || !ht.has(Z) || (Ht.add(I), console.warn('styled-components: it looks like an unknown prop "'.concat(I, '" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));
1058
- var j = function(J, ne) {
1059
- var ce = Mt(), re = J.generateAndInjectStyles(ne, ce.styleSheet, ce.stylis);
1060
- return process.env.NODE_ENV !== "production" && Nt(re), re;
1061
- }(ee, B);
1062
- process.env.NODE_ENV !== "production" && h.warnTooManyClasses && h.warnTooManyClasses(j);
1063
- var W = fe(_, A);
1064
- return j && (W += " " + j), B.className && (W += " " + B.className), C[st(Z) && !ht.has(Z) ? "class" : "className"] = W, P && (C.ref = P), In(Z, C);
1065
- }(S, u, b);
1066
- }
1067
- E.displayName = c;
1068
- var S = ye.forwardRef(E);
1069
- return S.attrs = l, S.componentStyle = x, S.displayName = c, S.shouldForwardProp = f, S.foldedComponentIds = r ? fe(o.foldedComponentIds, o.styledComponentId) : "", S.styledComponentId = d, S.target = r ? o.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
1070
- return this._foldedDefaultProps;
1071
- }, set: function(u) {
1072
- this._foldedDefaultProps = r ? function(b) {
1073
- for (var h = [], g = 1; g < arguments.length; g++)
1074
- h[g - 1] = arguments[g];
1075
- for (var P = 0, F = h; P < F.length; P++)
1076
- mt(b, F[P], !0);
1077
- return b;
1078
- }({}, o.defaultProps, u) : u;
1079
- } }), process.env.NODE_ENV !== "production" && (sr(c, d), S.warnTooManyClasses = function(u, b) {
1080
- var h = {}, g = !1;
1081
- return function(P) {
1082
- if (!g && (h[P] = !0, Object.keys(h).length >= 200)) {
1083
- var F = b ? ' with the id of "'.concat(b, '"') : "";
1084
- console.warn("Over ".concat(200, " classes were generated for component ").concat(u).concat(F, `.
1085
- `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1086
- Example:
1087
- const Component = styled.div.attrs(props => ({
1088
- style: {
1089
- background: props.background,
1090
- },
1091
- }))\`width: 100%;\`
1092
-
1093
- <Component />`), g = !0, h = {};
1094
- }
1095
- };
1096
- }(c, d)), _t(S, function() {
1097
- return ".".concat(S.styledComponentId);
1098
- }), a && bn(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
1099
- }
1100
- function Gt(e, t) {
1101
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1)
1102
- n.push(t[r], e[r + 1]);
1103
- return n;
1104
- }
1105
- var Ut = function(e) {
1106
- return Object.assign(e, { isCss: !0 });
1107
- };
1108
- function Nn(e) {
1109
- for (var t = [], n = 1; n < arguments.length; n++)
1110
- t[n - 1] = arguments[n];
1111
- if (Ce(e) || Ne(e))
1112
- return Ut(ge(Gt(et, xe([e], t, !0))));
1113
- var r = e;
1114
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? ge(r) : Ut(ge(Gt(r, t)));
1115
- }
1116
- function vt(e, t, n) {
1117
- if (n === void 0 && (n = _e), !t)
1118
- throw Ae(1, t);
1119
- var r = function(o) {
1120
- for (var a = [], s = 1; s < arguments.length; s++)
1121
- a[s - 1] = arguments[s];
1122
- return e(t, n, Nn.apply(void 0, xe([o], a, !1)));
1123
- };
1124
- return r.attrs = function(o) {
1125
- return vt(e, t, M(M({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1126
- }, r.withConfig = function(o) {
1127
- return vt(e, t, M(M({}, n), o));
1128
- }, r;
1129
- }
1130
- var On = function(e) {
1131
- return vt(Vr, e);
1132
- }, Te = On;
1133
- ht.forEach(function(e) {
1134
- Te[e] = On(e);
1135
- });
1136
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1137
- Perhaps you're looking to import 'styled-components/native'?
1138
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1139
- var Fe = "__sc-".concat(ve, "__");
1140
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Fe] || (window[Fe] = 0), window[Fe] === 1 && console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
1141
-
1142
- See https://s-c.sh/2BAXzed for more info.`), window[Fe] += 1);
1143
- var me = function() {
1144
- return me = Object.assign || function(e) {
1145
- for (var t, n = 1, r = arguments.length; n < r; n++)
1146
- for (var o in t = arguments[n])
1147
- Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
1148
- return e;
1149
- }, me.apply(this, arguments);
1150
- };
1151
- function Le(e, t) {
1152
- return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
1153
- }
1154
- var Wt, qt, Yt, Kt, Xt, se = "#666", Hr = Nn(Wt || (Wt = Le([`
1155
- display: flex;
1156
- align-items: center;
1157
- min-width: 322px;
1158
- max-width: 508px;
1159
- height: 48px;
1160
- border: dashed 2px `, `;
1161
- padding: 8px 16px 8px 8px;
1162
- border-radius: 5px;
1163
- cursor: pointer;
1164
- flex-grow: 0;
1165
-
1166
- &.is-disabled {
1167
- border: dashed 2px `, `;
1168
- cursor: no-drop;
1169
- svg {
1170
- fill: `, `;
1171
- color: `, `;
1172
- path {
1173
- fill: `, `;
1174
- color: `, `;
1175
- }
1176
- }
1177
- }
1178
- `], [`
1179
- display: flex;
1180
- align-items: center;
1181
- min-width: 322px;
1182
- max-width: 508px;
1183
- height: 48px;
1184
- border: dashed 2px `, `;
1185
- padding: 8px 16px 8px 8px;
1186
- border-radius: 5px;
1187
- cursor: pointer;
1188
- flex-grow: 0;
1189
-
1190
- &.is-disabled {
1191
- border: dashed 2px `, `;
1192
- cursor: no-drop;
1193
- svg {
1194
- fill: `, `;
1195
- color: `, `;
1196
- path {
1197
- fill: `, `;
1198
- color: `, `;
1199
- }
1200
- }
1201
- }
1202
- `])), "#0658c2", se, se, se, se, se), Gr = Te.label(qt || (qt = Le([`
1203
- position: relative;
1204
- `, `;
1205
- &:focus-within {
1206
- outline: 2px solid black;
1207
- }
1208
- & > input {
1209
- display: block;
1210
- opacity: 0;
1211
- position: absolute;
1212
- pointer-events: none;
1213
- }
1214
- `], [`
1215
- position: relative;
1216
- `, `;
1217
- &:focus-within {
1218
- outline: 2px solid black;
1219
- }
1220
- & > input {
1221
- display: block;
1222
- opacity: 0;
1223
- position: absolute;
1224
- pointer-events: none;
1225
- }
1226
- `])), function(e) {
1227
- return e.override ? "" : Hr;
1228
- }), Ur = Te.div(Yt || (Yt = Le([`
1229
- border: dashed 2px `, `;
1230
- border-radius: 5px;
1231
- background-color: `, `;
1232
- opacity: 0.9;
1233
- position: absolute;
1234
- top: 0;
1235
- right: 0;
1236
- left: 0;
1237
- bottom: 0;
1238
- z-index: 999;
1239
- & > span {
1240
- position: absolute;
1241
- top: 50%;
1242
- left: 50%;
1243
- transform: translateX(-50%) translateY(-50%);
1244
- }
1245
- `], [`
1246
- border: dashed 2px `, `;
1247
- border-radius: 5px;
1248
- background-color: `, `;
1249
- opacity: 0.9;
1250
- position: absolute;
1251
- top: 0;
1252
- right: 0;
1253
- left: 0;
1254
- bottom: 0;
1255
- z-index: 999;
1256
- & > span {
1257
- position: absolute;
1258
- top: 50%;
1259
- left: 50%;
1260
- transform: translateX(-50%) translateY(-50%);
1261
- }
1262
- `])), se, "#999"), Wr = Te.div(Kt || (Kt = Le([`
1263
- display: flex;
1264
- justify-content: space-between;
1265
- flex-grow: 1;
1266
- & > span {
1267
- font-size: 12px;
1268
- color: `, `;
1269
- }
1270
- .file-types {
1271
- overflow: hidden;
1272
- white-space: nowrap;
1273
- text-overflow: ellipsis;
1274
- max-width: 100px;
1275
- }
1276
- `], [`
1277
- display: flex;
1278
- justify-content: space-between;
1279
- flex-grow: 1;
1280
- & > span {
1281
- font-size: 12px;
1282
- color: `, `;
1283
- }
1284
- .file-types {
1285
- overflow: hidden;
1286
- white-space: nowrap;
1287
- text-overflow: ellipsis;
1288
- max-width: 100px;
1289
- }
1290
- `])), function(e) {
1291
- return e.$error ? "red" : se;
1292
- }), qr = Te.span(Xt || (Xt = Le([`
1293
- font-size: 14px;
1294
- color: `, `;
1295
- span {
1296
- text-decoration: underline;
1297
- }
1298
- `], [`
1299
- font-size: 14px;
1300
- color: `, `;
1301
- span {
1302
- text-decoration: underline;
1303
- }
1304
- `])), se), Zt = function(e) {
1305
- return e / 1024 / 1024;
1306
- }, Yr = function(e) {
1307
- return e === void 0 ? "" : e.map(function(t) {
1308
- return ".".concat(t.toLowerCase());
1309
- }).join(",");
1310
- };
1311
- function Kr(e) {
1312
- var t = e.types, n = e.minSize, r = e.maxSize;
1313
- if (t) {
1314
- var o = t.toString(), a = "";
1315
- return r && (a += "size >= ".concat(r, ", ")), n && (a += "size <= ".concat(n, ", ")), k("span", me({ title: "".concat(a, "types: ").concat(o), className: "file-types" }, { children: o }));
1316
- }
1317
- return null;
1318
- }
1319
- function Xr() {
1320
- return H("svg", me({ width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [k("path", { d: "M5.33317 6.66667H22.6665V16H25.3332V6.66667C25.3332 5.196 24.1372 4 22.6665 4H5.33317C3.8625 4 2.6665 5.196 2.6665 6.66667V22.6667C2.6665 24.1373 3.8625 25.3333 5.33317 25.3333H15.9998V22.6667H5.33317V6.66667Z", fill: "#0658C2" }), k("path", { d: "M10.6665 14.6667L6.6665 20H21.3332L15.9998 12L11.9998 17.3333L10.6665 14.6667Z", fill: "#0658C2" }), k("path", { d: "M25.3332 18.6667H22.6665V22.6667H18.6665V25.3333H22.6665V29.3333H25.3332V25.3333H29.3332V22.6667H25.3332V18.6667Z", fill: "#0658C2" })] }));
1321
- }
1322
- var ct = 0, Zr = function(e, t, n, r, o, a) {
1323
- return n ? k("span", { children: "File type/size error, Hovered on types!" }) : k(qr, { children: r ? k("span", { children: "Upload disabled" }) : k(Pe, e || t ? { children: a ? k(Pe, { children: k("span", { children: a }) }) : H(Pe, { children: [k("span", { children: "Uploaded Successfully!" }), " Upload another?"] }) } : { children: H(Pe, o ? { children: [k("span", { children: o.split(" ")[0] }), " ", o.substr(o.indexOf(" ") + 1)] } : { children: [k("span", { children: "Upload" }), " or drop a file right here"] }) }) });
1324
- }, Jr = function(e) {
1325
- var t = e.name, n = e.hoverTitle, r = e.types, o = e.handleChange, a = e.classes, s = e.children, p = e.maxSize, i = e.minSize, y = e.fileOrFiles, v = e.onSizeError, c = e.onTypeError, d = e.onSelect, l = e.onDrop, f = e.disabled, m = e.label, O = e.uploadedLabel, x = e.multiple, E = e.required, S = e.onDraggingStateChange, u = e.dropMessageStyle, b = e.ariaLabel, h = e.ariaDescribedby, g = de(null), P = de(null), F = Se(!1), ee = F[0], te = F[1], _ = Se(null), A = _[0], R = _[1], $ = Se(!1), X = $[0], U = $[1], ie = function(C) {
1326
- return r && !function(I, j) {
1327
- var W = I.name.split(".").pop();
1328
- return j.map(function(J) {
1329
- return J.toLowerCase();
1330
- }).includes(W.toLowerCase());
1331
- }(C, r) ? (U(!0), c && c("File type is not supported"), !1) : p && Zt(C.size) > p ? (U(!0), v && v("File size is too big"), !1) : !(i && Zt(C.size) < i) || (U(!0), v && v("File size is too small"), !1);
1332
- }, B = function(C) {
1333
- var I = !1;
1334
- if (C) {
1335
- if (C instanceof File)
1336
- I = !ie(C);
1337
- else
1338
- for (var j = 0; j < C.length; j++) {
1339
- var W = C[j];
1340
- I = !ie(W) || I;
1341
- }
1342
- return !I && (o && o(C), R(C), te(!0), U(!1), !0);
1343
- }
1344
- return !1;
1345
- }, Z = function(C) {
1346
- var I = C.labelRef, j = C.inputRef, W = C.multiple, J = C.handleChanges, ne = C.onDrop, ce = Se(!1), re = ce[0], q = ce[1], le = ue(function() {
1347
- j.current.click();
1348
- }, [j]), oe = ue(function(T) {
1349
- T.preventDefault(), T.stopPropagation(), ct++, T.dataTransfer.items && T.dataTransfer.items.length !== 0 && q(!0);
1350
- }, []), V = ue(function(T) {
1351
- T.preventDefault(), T.stopPropagation(), --ct > 0 || q(!1);
1352
- }, []), tt = ue(function(T) {
1353
- T.preventDefault(), T.stopPropagation();
1354
- }, []), nt = ue(function(T) {
1355
- T.preventDefault(), T.stopPropagation(), q(!1), ct = 0;
1356
- var $e = T.dataTransfer.files;
1357
- if ($e && $e.length > 0) {
1358
- var Ct = W ? $e : $e[0], Rn = J(Ct);
1359
- ne && Rn && ne(Ct);
1360
- }
1361
- }, [J]);
1362
- return Me(function() {
1363
- var T = I.current;
1364
- return T.addEventListener("click", le), T.addEventListener("dragenter", oe), T.addEventListener("dragleave", V), T.addEventListener("dragover", tt), T.addEventListener("drop", nt), function() {
1365
- T.removeEventListener("click", le), T.removeEventListener("dragenter", oe), T.removeEventListener("dragleave", V), T.removeEventListener("dragover", tt), T.removeEventListener("drop", nt);
1366
- };
1367
- }, [le, oe, V, tt, nt, I]), re;
1368
- }({ labelRef: g, inputRef: P, multiple: x, handleChanges: B, onDrop: l });
1369
- return Me(function() {
1370
- S == null || S(Z);
1371
- }, [Z]), Me(function() {
1372
- y ? (te(!0), R(y)) : (P.current && (P.current.value = ""), te(!1), R(null));
1373
- }, [y]), H(Gr, me({ override: s, className: "".concat(a || "", " ").concat(f ? "is-disabled" : ""), ref: g, htmlFor: t, onClick: function(C) {
1374
- C.preventDefault(), C.stopPropagation();
1375
- }, "aria-describedby": h, role: "button", "aria-label": b }, { children: [k("input", { onClick: function(C) {
1376
- C.stopPropagation(), P && P.current && (P.current.value = "", P.current.click());
1377
- }, onChange: function(C) {
1378
- var I = C.target.files, j = x ? I : I[0], W = B(j);
1379
- d && W && d(j);
1380
- }, accept: Yr(r), ref: P, type: "file", id: t, name: t, disabled: f, multiple: x, required: E }), Z && k(Ur, me({ style: u }, { children: k("span", { children: n || "Drop Here" }) })), !s && H(Pe, { children: [k(Xr, {}), H(Wr, me({ $error: X }, { children: [Zr(A, ee, X, f, m, O), k(Kr, { types: r, minSize: i, maxSize: p })] }))] }), s] }));
1381
- };
1382
- const Qr = (e, t, n, r) => {
1383
- var a, s, p, i;
1384
- const o = [n, {
1385
- code: t,
1386
- ...r || {}
1387
- }];
1388
- if ((s = (a = e == null ? void 0 : e.services) == null ? void 0 : a.logger) != null && s.forward)
1389
- return e.services.logger.forward(o, "warn", "react-i18next::", !0);
1390
- be(o[0]) && (o[0] = `react-i18next:: ${o[0]}`), (i = (p = e == null ? void 0 : e.services) == null ? void 0 : p.logger) != null && i.warn ? e.services.logger.warn(...o) : console != null && console.warn && console.warn(...o);
1391
- }, Jt = {}, An = (e, t, n, r) => {
1392
- be(n) && Jt[n] || (be(n) && (Jt[n] = /* @__PURE__ */ new Date()), Qr(e, t, n, r));
1393
- }, Pn = (e, t) => () => {
1394
- if (e.isInitialized)
1395
- t();
1396
- else {
1397
- const n = () => {
1398
- setTimeout(() => {
1399
- e.off("initialized", n);
1400
- }, 0), t();
1401
- };
1402
- e.on("initialized", n);
1403
- }
1404
- }, bt = (e, t, n) => {
1405
- e.loadNamespaces(t, Pn(e, n));
1406
- }, Qt = (e, t, n, r) => {
1407
- if (be(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1)
1408
- return bt(e, n, r);
1409
- n.forEach((o) => {
1410
- e.options.ns.indexOf(o) < 0 && e.options.ns.push(o);
1411
- }), e.loadLanguages(t, Pn(e, r));
1412
- }, eo = (e, t, n = {}) => !t.languages || !t.languages.length ? (An(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
1413
- languages: t.languages
1414
- }), !0) : t.hasLoadedNamespace(e, {
1415
- lng: n.lng,
1416
- precheck: (r, o) => {
1417
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !o(r.isLanguageChangingTo, e))
1418
- return !1;
1419
- }
1420
- }), be = (e) => typeof e == "string", to = (e) => typeof e == "object" && e !== null, no = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, ro = {
1421
- "&amp;": "&",
1422
- "&#38;": "&",
1423
- "&lt;": "<",
1424
- "&#60;": "<",
1425
- "&gt;": ">",
1426
- "&#62;": ">",
1427
- "&apos;": "'",
1428
- "&#39;": "'",
1429
- "&quot;": '"',
1430
- "&#34;": '"',
1431
- "&nbsp;": " ",
1432
- "&#160;": " ",
1433
- "&copy;": "©",
1434
- "&#169;": "©",
1435
- "&reg;": "®",
1436
- "&#174;": "®",
1437
- "&hellip;": "…",
1438
- "&#8230;": "…",
1439
- "&#x2F;": "/",
1440
- "&#47;": "/"
1441
- }, oo = (e) => ro[e], ao = (e) => e.replace(no, oo);
1442
- let so = {
1443
- bindI18n: "languageChanged",
1444
- bindI18nStore: "",
1445
- transEmptyNodeValue: "",
1446
- transSupportBasicHtmlNodes: !0,
1447
- transWrapTextNodes: "",
1448
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
1449
- useSuspense: !0,
1450
- unescape: ao,
1451
- transDefaultProps: void 0
1452
- };
1453
- const io = () => so;
1454
- let co;
1455
- const lo = () => co, uo = Tn();
1456
- class po {
1457
- constructor() {
1458
- this.usedNamespaces = {};
1459
- }
1460
- addUsedNamespaces(t) {
1461
- t.forEach((n) => {
1462
- this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
1463
- });
1464
- }
1465
- getUsedNamespaces() {
1466
- return Object.keys(this.usedNamespaces);
1467
- }
1468
- }
1469
- var wt = { exports: {} }, lt = {};
1470
- /**
1471
- * @license React
1472
- * use-sync-external-store-shim.production.js
1473
- *
1474
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1475
- *
1476
- * This source code is licensed under the MIT license found in the
1477
- * LICENSE file in the root directory of this source tree.
1478
- */
1479
- var en;
1480
- function fo() {
1481
- if (en)
1482
- return lt;
1483
- en = 1;
1484
- var e = ye;
1485
- function t(c, d) {
1486
- return c === d && (c !== 0 || 1 / c === 1 / d) || c !== c && d !== d;
1487
- }
1488
- var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, a = e.useLayoutEffect, s = e.useDebugValue;
1489
- function p(c, d) {
1490
- var l = d(), f = r({ inst: { value: l, getSnapshot: d } }), m = f[0].inst, O = f[1];
1491
- return a(
1492
- function() {
1493
- m.value = l, m.getSnapshot = d, i(m) && O({ inst: m });
1494
- },
1495
- [c, l, d]
1496
- ), o(
1497
- function() {
1498
- return i(m) && O({ inst: m }), c(function() {
1499
- i(m) && O({ inst: m });
1500
- });
1501
- },
1502
- [c]
1503
- ), s(l), l;
1504
- }
1505
- function i(c) {
1506
- var d = c.getSnapshot;
1507
- c = c.value;
1508
- try {
1509
- var l = d();
1510
- return !n(c, l);
1511
- } catch {
1512
- return !0;
1513
- }
1514
- }
1515
- function y(c, d) {
1516
- return d();
1517
- }
1518
- var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : p;
1519
- return lt.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v, lt;
1520
- }
1521
- var ut = {};
1522
- /**
1523
- * @license React
1524
- * use-sync-external-store-shim.development.js
1525
- *
1526
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1527
- *
1528
- * This source code is licensed under the MIT license found in the
1529
- * LICENSE file in the root directory of this source tree.
1530
- */
1531
- var tn;
1532
- function ho() {
1533
- return tn || (tn = 1, process.env.NODE_ENV !== "production" && function() {
1534
- function e(l, f) {
1535
- return l === f && (l !== 0 || 1 / l === 1 / f) || l !== l && f !== f;
1536
- }
1537
- function t(l, f) {
1538
- v || o.startTransition === void 0 || (v = !0, console.error(
1539
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1540
- ));
1541
- var m = f();
1542
- if (!c) {
1543
- var O = f();
1544
- a(m, O) || (console.error(
1545
- "The result of getSnapshot should be cached to avoid an infinite loop"
1546
- ), c = !0);
1547
- }
1548
- O = s({
1549
- inst: { value: m, getSnapshot: f }
1550
- });
1551
- var x = O[0].inst, E = O[1];
1552
- return i(
1553
- function() {
1554
- x.value = m, x.getSnapshot = f, n(x) && E({ inst: x });
1555
- },
1556
- [l, m, f]
1557
- ), p(
1558
- function() {
1559
- return n(x) && E({ inst: x }), l(function() {
1560
- n(x) && E({ inst: x });
1561
- });
1562
- },
1563
- [l]
1564
- ), y(m), m;
1565
- }
1566
- function n(l) {
1567
- var f = l.getSnapshot;
1568
- l = l.value;
1569
- try {
1570
- var m = f();
1571
- return !a(l, m);
1572
- } catch {
1573
- return !0;
1574
- }
1575
- }
1576
- function r(l, f) {
1577
- return f();
1578
- }
1579
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1580
- var o = ye, a = typeof Object.is == "function" ? Object.is : e, s = o.useState, p = o.useEffect, i = o.useLayoutEffect, y = o.useDebugValue, v = !1, c = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
1581
- ut.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1582
- }()), ut;
1583
- }
1584
- process.env.NODE_ENV === "production" ? wt.exports = fo() : wt.exports = ho();
1585
- var go = wt.exports;
1586
- const mo = (e, t) => be(t) ? t : to(t) && be(t.defaultValue) ? t.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, yo = {
1587
- t: mo,
1588
- ready: !1
1589
- }, vo = () => () => {
1590
- }, bo = (e, t = {}) => {
1591
- var F, ee, te;
1592
- const {
1593
- i18n: n
1594
- } = t, {
1595
- i18n: r,
1596
- defaultNS: o
1597
- } = nn(uo) || {}, a = n || r || lo();
1598
- a && !a.reportNamespaces && (a.reportNamespaces = new po()), a || An(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
1599
- const s = rt(() => {
1600
- var _;
1601
- return {
1602
- ...io(),
1603
- ...(_ = a == null ? void 0 : a.options) == null ? void 0 : _.react,
1604
- ...t
1605
- };
1606
- }, [a, t]), {
1607
- useSuspense: p,
1608
- keyPrefix: i
1609
- } = s, y = e || o || ((F = a == null ? void 0 : a.options) == null ? void 0 : F.defaultNS), v = be(y) ? [y] : y || ["translation"], c = rt(() => v, v);
1610
- (te = (ee = a == null ? void 0 : a.reportNamespaces) == null ? void 0 : ee.addUsedNamespaces) == null || te.call(ee, c);
1611
- const d = de(0), l = ue((_) => {
1612
- if (!a)
1613
- return vo;
1614
- const {
1615
- bindI18n: A,
1616
- bindI18nStore: R
1617
- } = s, $ = () => {
1618
- d.current += 1, _();
1619
- };
1620
- return A && a.on(A, $), R && a.store.on(R, $), () => {
1621
- A && A.split(" ").forEach((X) => a.off(X, $)), R && R.split(" ").forEach((X) => a.store.off(X, $));
1622
- };
1623
- }, [a, s]), f = de(), m = ue(() => {
1624
- if (!a)
1625
- return yo;
1626
- const _ = !!(a.isInitialized || a.initializedStoreOnce) && c.every((ie) => eo(ie, a, s)), A = t.lng || a.language, R = d.current, $ = f.current;
1627
- if ($ && $.ready === _ && $.lng === A && $.keyPrefix === i && $.revision === R)
1628
- return $;
1629
- const U = {
1630
- t: a.getFixedT(A, s.nsMode === "fallback" ? c : c[0], i),
1631
- ready: _,
1632
- lng: A,
1633
- keyPrefix: i,
1634
- revision: R
1635
- };
1636
- return f.current = U, U;
1637
- }, [a, c, i, s, t.lng]), [O, x] = Se(0), {
1638
- t: E,
1639
- ready: S
1640
- } = go.useSyncExternalStore(l, m, m);
1641
- Me(() => {
1642
- if (a && !S && !p) {
1643
- const _ = () => x((A) => A + 1);
1644
- t.lng ? Qt(a, t.lng, c, _) : bt(a, c, _);
1645
- }
1646
- }, [a, t.lng, c, S, p, O]);
1647
- const u = a || {}, b = de(null), h = de(), g = (_) => {
1648
- const A = Object.getOwnPropertyDescriptors(_);
1649
- A.__original && delete A.__original;
1650
- const R = Object.create(Object.getPrototypeOf(_), A);
1651
- if (!Object.prototype.hasOwnProperty.call(R, "__original"))
1652
- try {
1653
- Object.defineProperty(R, "__original", {
1654
- value: _,
1655
- writable: !1,
1656
- enumerable: !1,
1657
- configurable: !1
1658
- });
1659
- } catch {
1660
- }
1661
- return R;
1662
- }, P = rt(() => {
1663
- const _ = u, A = _ == null ? void 0 : _.language;
1664
- let R = _;
1665
- _ && (b.current && b.current.__original === _ ? h.current !== A ? (R = g(_), b.current = R, h.current = A) : R = b.current : (R = g(_), b.current = R, h.current = A));
1666
- const $ = [E, R, S];
1667
- return $.t = E, $.i18n = R, $.ready = S, $;
1668
- }, [E, u, S, u.resolvedLanguage, u.language, u.languages]);
1669
- if (a && p && !S)
1670
- throw new Promise((_) => {
1671
- const A = () => _();
1672
- t.lng ? Qt(a, t.lng, c, A) : bt(a, c, A);
1673
- });
1674
- return P;
1675
- }, wo = Ln(
1676
- ({
1677
- onChange: e,
1678
- error: t,
1679
- hoverTitle: n = "tenders.drag_file",
1680
- maxSize: r = 10,
1681
- fileTypes: o,
1682
- value: a,
1683
- isDeleteBtn: s = !0,
1684
- label: p,
1685
- onRemove: i,
1686
- multiple: y = !0,
1687
- ...v
1688
- }) => {
1689
- const [c, d] = Se(""), { t: l } = bo(), f = (u) => Number.isNaN(u) || u === void 0 || u === null ? "" : u < 1024 ? `${u} B` : u < 1024 * 1024 ? `${(u / 1024).toFixed(2)} KB` : `${(u / (1024 * 1024)).toFixed(2)} MB`, m = (u, b) => {
1690
- if (u instanceof File)
1691
- return {
1692
- name: u.name,
1693
- size: f(u.size)
1694
- };
1695
- if (typeof u == "string") {
1696
- const h = u.trim(), g = h.match(/^data:([^;]+);base64,(.+)$/);
1697
- if (g) {
1698
- const P = g[2], F = P.length * 3 / 4 - (P.endsWith("==") ? 2 : P.endsWith("=") ? 1 : 0);
1699
- return {
1700
- name: b ? `Base64 ${b.split("/")[1].toUpperCase()}` : "Base64 File",
1701
- size: f(F)
1702
- };
1703
- } else if (/^[A-Za-z0-9+/=]+$/.test(h)) {
1704
- const P = h.length * 3 / 4 - (h.endsWith("==") ? 2 : h.endsWith("=") ? 1 : 0);
1705
- return {
1706
- name: b ? `Base64 ${b.split("/")[1].toUpperCase()}` : "Raw Base64 File",
1707
- size: f(P)
1708
- };
1709
- }
1710
- }
1711
- return null;
1712
- }, O = () => {
1713
- d(`${l("academy.max_size", { size: r })}`);
1714
- }, x = () => {
1715
- d(`${l("academy.type_error", "Неверный тип файла")}`);
1716
- }, E = (u) => {
1717
- d("");
1718
- let b = [];
1719
- if (u && (u instanceof FileList || Array.isArray(u) ? b = Array.from(u) : u instanceof File || typeof u == "string" ? b = [u] : typeof u == "object" && (b = Object.values(u).filter(
1720
- (h) => h instanceof File || typeof h == "string"
1721
- ))), y) {
1722
- const h = Array.isArray(a) ? a : [];
1723
- e([...h, ...b]);
1724
- } else
1725
- e(b);
1726
- }, S = Array.isArray(a) ? a : [];
1727
- return /* @__PURE__ */ H("div", { className: "flex flex-col gap-[12px]", children: [
1728
- p && /* @__PURE__ */ k("p", { className: "text-[16px] leading-[24px] font-medium m-0", children: p }),
1729
- (S.length === 0 || y) && /* @__PURE__ */ k(
1730
- Jr,
1731
- {
1732
- hoverTitle: l(n, "tenders.drag_file"),
1733
- handleChange: E,
1734
- types: o,
1735
- maxSize: r,
1736
- onSizeError: O,
1737
- onTypeError: x,
1738
- multiple: y,
1739
- ...v,
1740
- children: /* @__PURE__ */ k("div", { className: "p-[20px] rounded-[16px] border border-dashed border-lightGray5 flex flex-col items-center gap-[16px] cursor-pointer", children: /* @__PURE__ */ H("div", { className: "flex flex-col gap-[8px]", children: [
1741
- /* @__PURE__ */ H(
1742
- "p",
1743
- {
1744
- className: $n(
1745
- "text-blackBG text-center lining-nums tabular-nums stacked-fractions",
1746
- "no-ligatures text-[16px] leading-[24px] m-0"
1747
- ),
1748
- children: [
1749
- l("academy.drop_file"),
1750
- " ",
1751
- /* @__PURE__ */ k("span", { className: "text-greenLight m-0", children: l("academy.or_load") })
1752
- ]
1753
- }
1754
- ),
1755
- /* @__PURE__ */ k("p", { className: "text-[13px] leading-[16px] text-center text-gray9 m-0", children: `${l("academy.max_size", { size: r })}` })
1756
- ] }) })
1757
- }
1758
- ),
1759
- !!t && /* @__PURE__ */ k("div", { className: "text-red text-[14px] font-regular", children: t == null ? void 0 : t.message }),
1760
- !!c && /* @__PURE__ */ k("div", { className: "text-red text-[14px] font-regular", children: c }),
1761
- S.length > 0 && /* @__PURE__ */ k("div", { className: "flex flex-col gap-[8px]", children: S.map((u, b) => {
1762
- var h;
1763
- return /* @__PURE__ */ k(
1764
- "div",
1765
- {
1766
- className: "flex items-start justify-between p-[12px] border-b border-greyLight bg-white ",
1767
- children: /* @__PURE__ */ H("div", { className: "flex items-start gap-[16px]", children: [
1768
- /* @__PURE__ */ k(Dn, {}),
1769
- u instanceof File ? /* @__PURE__ */ H("div", { children: [
1770
- /* @__PURE__ */ k("p", { className: "text-[16px] font-medium leading-[24px] m-0", children: u == null ? void 0 : u.name }),
1771
- /* @__PURE__ */ k("span", { className: "text-[13px] leading-[16px] text-gray9", children: f(u == null ? void 0 : u.size) })
1772
- ] }) : /* @__PURE__ */ H("div", { children: [
1773
- /* @__PURE__ */ k("p", { className: "text-[16px] font-medium leading-[24px] m-0", children: `${l("tenders.Loaded", "Загруженно")}` }),
1774
- /* @__PURE__ */ k("span", { className: "text-[13px] leading-[16px] text-gray9", children: (h = m(u)) == null ? void 0 : h.size })
1775
- ] })
1776
- ] })
1777
- },
1778
- b
1779
- );
1780
- }) })
1781
- ] });
1782
- }
1783
- );
1784
- wo.displayName = "FileLoader";
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { F as a } from "../index-6686852d.js";
4
+ import "../cn-6a4bf187.js";
5
+ import "./fileLoader.js";
1785
6
  export {
1786
- wo as default
7
+ a as default
1787
8
  };