md-components-mdigial-azamat 0.0.112 → 0.0.113

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.
Files changed (147) hide show
  1. package/dist/ActionCardList/ActionCardList.js +28 -5
  2. package/dist/ActionCardList/index.js +1 -1
  3. package/dist/ActionCardList/info.js +1 -1
  4. package/dist/ActionCardSecondaryList/ActionCardSecondaryList.js +32 -0
  5. package/dist/ActionCardSecondaryList/index.js +6 -0
  6. package/dist/ActionCardSecondaryList/info.js +11 -0
  7. package/dist/ActionCardSecondaryList/schema.js +51 -0
  8. package/dist/ActionCardSecondaryList/types.js +4 -0
  9. package/dist/ActionIconList/ActionIconList.js +25 -2
  10. package/dist/AllComponents.js +28 -5
  11. package/dist/AllComponentsInfo.js +111 -95
  12. package/dist/AnimatedSwiper/index.js +40 -38
  13. package/dist/CardImageList/CardImageList.js +122 -81
  14. package/dist/CardImageList/schema.js +17 -12
  15. package/dist/Cards/ActionSecondaryCard/ActionSecondaryCard.js +77 -0
  16. package/dist/Cards/ActionSecondaryCard/index.js +6 -0
  17. package/dist/Cards/ActionSecondaryCard/info.js +11 -0
  18. package/dist/Cards/ActionSecondaryCard/types.js +4 -0
  19. package/dist/Cards/CardImage/CardImage.js +48 -50
  20. package/dist/Cards/InfoCard/InfoCard.js +114 -0
  21. package/dist/Cards/InfoCard/index.js +9 -0
  22. package/dist/Cards/InfoCard/info.js +11 -0
  23. package/dist/Cards/InfoCard/schema.js +60 -0
  24. package/dist/Cards/InfoCard/types.js +4 -0
  25. package/dist/Cards/PostCard/PostCard.js +60 -0
  26. package/dist/Cards/PostCard/index.js +6 -0
  27. package/dist/Cards/PostCard/info.js +11 -0
  28. package/dist/Cards/PostCard/types.js +4 -0
  29. package/dist/Cards/WarningCard/WarningCard.js +27 -4
  30. package/dist/Cards/WarningCard/index.js +1 -1
  31. package/dist/Cards/WarningCard/info.js +1 -1
  32. package/dist/Cards/WarningCard/model.js +1 -1
  33. package/dist/CurrencyRates/CurrencyRates.js +78 -0
  34. package/dist/CurrencyRates/components/Calculator.js +101 -0
  35. package/dist/CurrencyRates/components/RateCell.js +15 -0
  36. package/dist/CurrencyRates/components/RatesTable.js +134 -0
  37. package/dist/CurrencyRates/components/index.js +6 -0
  38. package/dist/CurrencyRates/index.js +8 -0
  39. package/dist/CurrencyRates/info.js +11 -0
  40. package/dist/CurrencyRates/schema.js +63 -0
  41. package/dist/CurrencyRates/types.js +4 -0
  42. package/dist/DownloadFile/components/DownloadFileBanner/DownloadFileBanner.js +1 -1
  43. package/dist/DownloadFile/components/DownloadFileFull/DownloadFileFull.js +1 -1
  44. package/dist/DownloadFile/components/DownloadFileHalf/DownloadFileHalf.js +1 -1
  45. package/dist/DownloadFile/components/DownloadFileMini/DownloadFileMini.js +1 -1
  46. package/dist/DownloadFile/components/FileBannerSecondary/FileBannerSecondary.js +1 -1
  47. package/dist/Faq/Faq.js +1 -1
  48. package/dist/Faq/components/FeedbackForm/FeedbackForm.js +55 -6
  49. package/dist/Faq/components/FeedbackForm/index.js +1 -1
  50. package/dist/FieldInput-ef2a18d4.js +2743 -0
  51. package/dist/Forms/FormDefault/FormDefault.js +12 -0
  52. package/dist/Forms/FormDefault/components/FieldCustom.js +11 -0
  53. package/dist/Forms/FormDefault/components/FieldInput.js +11 -0
  54. package/dist/Forms/FormDefault/components/FieldSection.js +10 -0
  55. package/dist/Forms/FormDefault/components/FormContent.js +10 -0
  56. package/dist/Forms/FormDefault/components/FormFields.js +7 -0
  57. package/dist/Forms/FormDefault/components/FormSuccessMessage.js +49 -0
  58. package/dist/Forms/FormDefault/components/index.js +6 -0
  59. package/dist/Forms/FormDefault/hooks/index.js +10 -0
  60. package/dist/Forms/FormDefault/hooks/useFieldOptions.js +32 -0
  61. package/dist/Forms/FormDefault/hooks/useFieldValidation.js +33 -0
  62. package/dist/Forms/FormDefault/hooks/useFieldVisibility.js +24 -0
  63. package/dist/Forms/FormDefault/hooks/useFormSubmission.js +64 -0
  64. package/dist/Forms/FormDefault/index.js +6 -12
  65. package/dist/Forms/FormDefault/info.js +3 -115
  66. package/dist/Forms/FormDefault/model/componentRegistry.js +134 -0
  67. package/dist/Forms/FormDefault/model/fieldTypes.js +18 -0
  68. package/dist/Forms/FormDefault/model/formElementTypes.js +18 -0
  69. package/dist/Forms/FormDefault/model/index.js +13 -0
  70. package/dist/Forms/FormDefault/model/requestForm.js +4 -0
  71. package/dist/Forms/{model/components.js → FormDefault/schema.js} +32 -5
  72. package/dist/Forms/FormDefault/utils.js +20 -0
  73. package/dist/Grid-331af266.js +80 -0
  74. package/dist/Header/Header.js +54 -42
  75. package/dist/Header/components/HeaderMainMobile/HeaderMainMobile.js +21 -19
  76. package/dist/Header/components/HeaderMobile/HeaderMobile.js +67 -52
  77. package/dist/Header/components/HeaderTab/HeaderTab.js +17 -15
  78. package/dist/Header/components/HeaderTabsMobile/HeaderTabsMobile.js +8 -7
  79. package/dist/Header/components/HeaderWeb/HeaderWeb.js +134 -114
  80. package/dist/Header/components/TabsOutlined/TabsOutlined.js +8 -7
  81. package/dist/HeroIconsBanner/HeroIconsBanner.js +25 -25
  82. package/dist/IconList/IconList.js +60 -54
  83. package/dist/InfoCardList/InfoCardList.js +100 -0
  84. package/dist/InfoCardList/index.js +6 -0
  85. package/dist/InfoCardList/info.js +11 -0
  86. package/dist/InfoCardList/schema.js +39 -0
  87. package/dist/InfoCardList/types.js +1 -0
  88. package/dist/PageViewer/renderComponents.js +1 -1
  89. package/dist/PostsList/PostsList.js +78 -0
  90. package/dist/PostsList/index.js +4 -0
  91. package/dist/PostsList/info.js +11 -0
  92. package/dist/PostsList/schema.js +49 -0
  93. package/dist/PostsList/types.js +1 -0
  94. package/dist/PostsSlider/PostsSlider.js +78 -0
  95. package/dist/PostsSlider/index.js +4 -0
  96. package/dist/PostsSlider/info.js +11 -0
  97. package/dist/PostsSlider/schema.js +49 -0
  98. package/dist/PostsSlider/types.js +1 -0
  99. package/dist/RenderAllComponents/RenderAllComponents.js +1 -1
  100. package/dist/RenderAllComponents/const.js +1 -1
  101. package/dist/SearchBlock/SearchBlock.js +36 -37
  102. package/dist/SegmentedContent/SegmentedContent.js +160 -0
  103. package/dist/SegmentedContent/components/ContentCard.js +50 -0
  104. package/dist/SegmentedContent/components/index.js +4 -0
  105. package/dist/SegmentedContent/index.js +8 -0
  106. package/dist/SegmentedContent/info.js +12 -0
  107. package/dist/SegmentedContent/schema.js +108 -0
  108. package/dist/SegmentedContent/types.js +1 -0
  109. package/dist/Segments/Segments.js +36 -28
  110. package/dist/Segments/index.js +8 -2
  111. package/dist/Segments/info.js +1 -1
  112. package/dist/Segments/schema.js +21 -0
  113. package/dist/Segments/types.js +4 -1
  114. package/dist/SegmentsIcons/SegmentsIcons.js +92 -0
  115. package/dist/SegmentsIcons/index.js +8 -0
  116. package/dist/SegmentsIcons/info.js +11 -0
  117. package/dist/SegmentsIcons/schema.js +14 -0
  118. package/dist/SegmentsIcons/types.js +1 -0
  119. package/dist/SwiperList/SwiperList.js +13 -11
  120. package/dist/assets/index.css +1 -1
  121. package/dist/{componentsMap-cac6c316.js → componentsMap-29ccdfcc.js} +5 -3
  122. package/dist/{data.mock-ebc679ec.js → data.mock-bb32e8ee.js} +420 -148
  123. package/dist/index-0791c17f.js +56 -0
  124. package/dist/index-2ec92a04.js +32 -0
  125. package/dist/index.esm-0558519f.js +1171 -0
  126. package/dist/info-72904479.js +791 -0
  127. package/dist/main.js +151 -119
  128. package/dist/{mousewheel-865ae601.js → mousewheel-afbc6d42.js} +1 -1
  129. package/dist/navigation-266856e7.js +136 -0
  130. package/dist/navigation-cd786a0d.js +133 -0
  131. package/dist/{palette-c2fe86ec.js → palette-256cf77a.js} +3 -1
  132. package/dist/{swiper-react-90953710.js → swiper-react-3c2710e8.js} +695 -825
  133. package/dist/types-c3843cc0.js +4 -0
  134. package/dist/useDraggableScroll-440da9b7.js +29 -0
  135. package/dist/useTranslation-d7a3ca6f.js +298 -0
  136. package/package.json +1 -1
  137. package/dist/FileLoader/fileLoader.js +0 -22
  138. package/dist/FileLoader/index.js +0 -8
  139. package/dist/Forms/FormDefault/componentTypes.js +0 -31
  140. package/dist/Forms/FormDefault/fieldTypesList.js +0 -45
  141. package/dist/Forms/helpers/renderFormFields.js +0 -7
  142. package/dist/Forms/model/requestForm.js +0 -4
  143. package/dist/index-6686852d.js +0 -1794
  144. package/dist/index-a0ed2e4a.js +0 -1221
  145. package/dist/info-d05a1f02.js +0 -1547
  146. package/dist/navigation-b894d0cd.js +0 -183
  147. /package/dist/Forms/{types/formItems.js → FormDefault/model/types.js} +0 -0
@@ -1,1794 +0,0 @@
1
- import { jsxs as H, jsx as k, Fragment as Pe } from "react/jsx-runtime";
2
- import ye, { createContext as In, useContext as nn, useMemo as rt, useRef as de, useCallback as ue, useState as Se, useEffect as Me, useDebugValue as Nt, createElement as Tn, forwardRef as Ln } from "react";
3
- import { c as $n } from "./cn-6a4bf187.js";
4
- import { FileLoaderIcon as Dn } from "./FileLoader/fileLoader.js";
5
- const jn = (e, t, n, r) => {
6
- var a, s, p, c;
7
- const o = [n, {
8
- code: t,
9
- ...r || {}
10
- }];
11
- if ((s = (a = e == null ? void 0 : e.services) == null ? void 0 : a.logger) != null && s.forward)
12
- return e.services.logger.forward(o, "warn", "react-i18next::", !0);
13
- ve(o[0]) && (o[0] = `react-i18next:: ${o[0]}`), (c = (p = e == null ? void 0 : e.services) == null ? void 0 : p.logger) != null && c.warn ? e.services.logger.warn(...o) : console != null && console.warn && console.warn(...o);
14
- }, Ot = {}, rn = (e, t, n, r) => {
15
- ve(n) && Ot[n] || (ve(n) && (Ot[n] = /* @__PURE__ */ new Date()), jn(e, t, n, r));
16
- }, on = (e, t) => () => {
17
- if (e.isInitialized)
18
- t();
19
- else {
20
- const n = () => {
21
- setTimeout(() => {
22
- e.off("initialized", n);
23
- }, 0), t();
24
- };
25
- e.on("initialized", n);
26
- }
27
- }, pt = (e, t, n) => {
28
- e.loadNamespaces(t, on(e, n));
29
- }, At = (e, t, n, r) => {
30
- if (ve(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1)
31
- return pt(e, n, r);
32
- n.forEach((o) => {
33
- e.options.ns.indexOf(o) < 0 && e.options.ns.push(o);
34
- }), e.loadLanguages(t, on(e, r));
35
- }, zn = (e, t, n = {}) => !t.languages || !t.languages.length ? (rn(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", {
36
- languages: t.languages
37
- }), !0) : t.hasLoadedNamespace(e, {
38
- lng: n.lng,
39
- precheck: (r, o) => {
40
- if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && r.services.backendConnector.backend && r.isLanguageChangingTo && !o(r.isLanguageChangingTo, e))
41
- return !1;
42
- }
43
- }), ve = (e) => typeof e == "string", Fn = (e) => typeof e == "object" && e !== null, Mn = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, Bn = {
44
- "&amp;": "&",
45
- "&#38;": "&",
46
- "&lt;": "<",
47
- "&#60;": "<",
48
- "&gt;": ">",
49
- "&#62;": ">",
50
- "&apos;": "'",
51
- "&#39;": "'",
52
- "&quot;": '"',
53
- "&#34;": '"',
54
- "&nbsp;": " ",
55
- "&#160;": " ",
56
- "&copy;": "©",
57
- "&#169;": "©",
58
- "&reg;": "®",
59
- "&#174;": "®",
60
- "&hellip;": "…",
61
- "&#8230;": "…",
62
- "&#x2F;": "/",
63
- "&#47;": "/"
64
- }, Vn = (e) => Bn[e], Hn = (e) => e.replace(Mn, Vn);
65
- let Gn = {
66
- bindI18n: "languageChanged",
67
- bindI18nStore: "",
68
- transEmptyNodeValue: "",
69
- transSupportBasicHtmlNodes: !0,
70
- transWrapTextNodes: "",
71
- transKeepBasicHtmlNodesFor: ["br", "strong", "i", "p"],
72
- useSuspense: !0,
73
- unescape: Hn,
74
- transDefaultProps: void 0
75
- };
76
- const Un = () => Gn;
77
- let Wn;
78
- const qn = () => Wn, Yn = In();
79
- class Kn {
80
- constructor() {
81
- this.usedNamespaces = {};
82
- }
83
- addUsedNamespaces(t) {
84
- t.forEach((n) => {
85
- this.usedNamespaces[n] || (this.usedNamespaces[n] = !0);
86
- });
87
- }
88
- getUsedNamespaces() {
89
- return Object.keys(this.usedNamespaces);
90
- }
91
- }
92
- var dt = { exports: {} }, ot = {};
93
- /**
94
- * @license React
95
- * use-sync-external-store-shim.production.js
96
- *
97
- * Copyright (c) Meta Platforms, Inc. and affiliates.
98
- *
99
- * This source code is licensed under the MIT license found in the
100
- * LICENSE file in the root directory of this source tree.
101
- */
102
- var Pt;
103
- function Xn() {
104
- if (Pt)
105
- return ot;
106
- Pt = 1;
107
- var e = ye;
108
- function t(l, d) {
109
- return l === d && (l !== 0 || 1 / l === 1 / d) || l !== l && d !== d;
110
- }
111
- var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, o = e.useEffect, a = e.useLayoutEffect, s = e.useDebugValue;
112
- function p(l, d) {
113
- var i = d(), f = r({ inst: { value: i, getSnapshot: d } }), m = f[0].inst, O = f[1];
114
- return a(
115
- function() {
116
- m.value = i, m.getSnapshot = d, c(m) && O({ inst: m });
117
- },
118
- [l, i, d]
119
- ), o(
120
- function() {
121
- return c(m) && O({ inst: m }), l(function() {
122
- c(m) && O({ inst: m });
123
- });
124
- },
125
- [l]
126
- ), s(i), i;
127
- }
128
- function c(l) {
129
- var d = l.getSnapshot;
130
- l = l.value;
131
- try {
132
- var i = d();
133
- return !n(l, i);
134
- } catch {
135
- return !0;
136
- }
137
- }
138
- function y(l, d) {
139
- return d();
140
- }
141
- var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : p;
142
- return ot.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v, ot;
143
- }
144
- var at = {};
145
- /**
146
- * @license React
147
- * use-sync-external-store-shim.development.js
148
- *
149
- * Copyright (c) Meta Platforms, Inc. and affiliates.
150
- *
151
- * This source code is licensed under the MIT license found in the
152
- * LICENSE file in the root directory of this source tree.
153
- */
154
- var Rt;
155
- function Zn() {
156
- return Rt || (Rt = 1, process.env.NODE_ENV !== "production" && function() {
157
- function e(i, f) {
158
- return i === f && (i !== 0 || 1 / i === 1 / f) || i !== i && f !== f;
159
- }
160
- function t(i, f) {
161
- v || o.startTransition === void 0 || (v = !0, console.error(
162
- "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."
163
- ));
164
- var m = f();
165
- if (!l) {
166
- var O = f();
167
- a(m, O) || (console.error(
168
- "The result of getSnapshot should be cached to avoid an infinite loop"
169
- ), l = !0);
170
- }
171
- O = s({
172
- inst: { value: m, getSnapshot: f }
173
- });
174
- var x = O[0].inst, E = O[1];
175
- return c(
176
- function() {
177
- x.value = m, x.getSnapshot = f, n(x) && E({ inst: x });
178
- },
179
- [i, m, f]
180
- ), p(
181
- function() {
182
- return n(x) && E({ inst: x }), i(function() {
183
- n(x) && E({ inst: x });
184
- });
185
- },
186
- [i]
187
- ), y(m), m;
188
- }
189
- function n(i) {
190
- var f = i.getSnapshot;
191
- i = i.value;
192
- try {
193
- var m = f();
194
- return !a(i, m);
195
- } catch {
196
- return !0;
197
- }
198
- }
199
- function r(i, f) {
200
- return f();
201
- }
202
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
203
- var o = ye, a = typeof Object.is == "function" ? Object.is : e, s = o.useState, p = o.useEffect, c = o.useLayoutEffect, y = o.useDebugValue, v = !1, l = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
204
- at.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());
205
- }()), at;
206
- }
207
- process.env.NODE_ENV === "production" ? dt.exports = Xn() : dt.exports = Zn();
208
- var Jn = dt.exports;
209
- const Qn = (e, t) => ve(t) ? t : Fn(t) && ve(t.defaultValue) ? t.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, er = {
210
- t: Qn,
211
- ready: !1
212
- }, tr = () => () => {
213
- }, nr = (e, t = {}) => {
214
- var F, ee, te;
215
- const {
216
- i18n: n
217
- } = t, {
218
- i18n: r,
219
- defaultNS: o
220
- } = nn(Yn) || {}, a = n || r || qn();
221
- a && !a.reportNamespaces && (a.reportNamespaces = new Kn()), a || rn(a, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
222
- const s = rt(() => {
223
- var _;
224
- return {
225
- ...Un(),
226
- ...(_ = a == null ? void 0 : a.options) == null ? void 0 : _.react,
227
- ...t
228
- };
229
- }, [a, t]), {
230
- useSuspense: p,
231
- keyPrefix: c
232
- } = s, y = e || o || ((F = a == null ? void 0 : a.options) == null ? void 0 : F.defaultNS), v = ve(y) ? [y] : y || ["translation"], l = rt(() => v, v);
233
- (te = (ee = a == null ? void 0 : a.reportNamespaces) == null ? void 0 : ee.addUsedNamespaces) == null || te.call(ee, l);
234
- const d = de(0), i = ue((_) => {
235
- if (!a)
236
- return tr;
237
- const {
238
- bindI18n: A,
239
- bindI18nStore: R
240
- } = s, $ = () => {
241
- d.current += 1, _();
242
- };
243
- return A && a.on(A, $), R && a.store.on(R, $), () => {
244
- A && A.split(" ").forEach((X) => a.off(X, $)), R && R.split(" ").forEach((X) => a.store.off(X, $));
245
- };
246
- }, [a, s]), f = de(), m = ue(() => {
247
- if (!a)
248
- return er;
249
- const _ = !!(a.isInitialized || a.initializedStoreOnce) && l.every((ie) => zn(ie, a, s)), A = t.lng || a.language, R = d.current, $ = f.current;
250
- if ($ && $.ready === _ && $.lng === A && $.keyPrefix === c && $.revision === R)
251
- return $;
252
- const U = {
253
- t: a.getFixedT(A, s.nsMode === "fallback" ? l : l[0], c),
254
- ready: _,
255
- lng: A,
256
- keyPrefix: c,
257
- revision: R
258
- };
259
- return f.current = U, U;
260
- }, [a, l, c, s, t.lng]), [O, x] = Se(0), {
261
- t: E,
262
- ready: S
263
- } = Jn.useSyncExternalStore(i, m, m);
264
- Me(() => {
265
- if (a && !S && !p) {
266
- const _ = () => x((A) => A + 1);
267
- t.lng ? At(a, t.lng, l, _) : pt(a, l, _);
268
- }
269
- }, [a, t.lng, l, S, p, O]);
270
- const u = a || {}, b = de(null), h = de(), g = (_) => {
271
- const A = Object.getOwnPropertyDescriptors(_);
272
- A.__original && delete A.__original;
273
- const R = Object.create(Object.getPrototypeOf(_), A);
274
- if (!Object.prototype.hasOwnProperty.call(R, "__original"))
275
- try {
276
- Object.defineProperty(R, "__original", {
277
- value: _,
278
- writable: !1,
279
- enumerable: !1,
280
- configurable: !1
281
- });
282
- } catch {
283
- }
284
- return R;
285
- }, P = rt(() => {
286
- const _ = u, A = _ == null ? void 0 : _.language;
287
- let R = _;
288
- _ && (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));
289
- const $ = [E, R, S];
290
- return $.t = E, $.i18n = R, $.ready = S, $;
291
- }, [E, u, S, u.resolvedLanguage, u.language, u.languages]);
292
- if (a && p && !S)
293
- throw new Promise((_) => {
294
- const A = () => _();
295
- t.lng ? At(a, t.lng, l, A) : pt(a, l, A);
296
- });
297
- return P;
298
- };
299
- var M = function() {
300
- return M = Object.assign || function(t) {
301
- for (var n, r = 1, o = arguments.length; r < o; r++) {
302
- n = arguments[r];
303
- for (var a in n)
304
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
305
- }
306
- return t;
307
- }, M.apply(this, arguments);
308
- };
309
- function xe(e, t, n) {
310
- if (n || arguments.length === 2)
311
- for (var r = 0, o = t.length, a; r < o; r++)
312
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
313
- return e.concat(a || Array.prototype.slice.call(t));
314
- }
315
- function rr(e) {
316
- var t = /* @__PURE__ */ Object.create(null);
317
- return function(n) {
318
- return t[n] === void 0 && (t[n] = e(n)), t[n];
319
- };
320
- }
321
- var or = /^((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)-.*))$/, ar = /* @__PURE__ */ rr(
322
- function(e) {
323
- return or.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
324
- }
325
- /* Z+1 */
326
- ), L = "-ms-", Ie = "-moz-", N = "-webkit-", an = "comm", Ke = "rule", St = "decl", sr = "@import", sn = "@keyframes", ir = "@layer", cn = Math.abs, xt = String.fromCharCode, ft = Object.assign;
327
- function cr(e, t) {
328
- return j(e, 0) ^ 45 ? (((t << 2 ^ j(e, 0)) << 2 ^ j(e, 1)) << 2 ^ j(e, 2)) << 2 ^ j(e, 3) : 0;
329
- }
330
- function ln(e) {
331
- return e.trim();
332
- }
333
- function Q(e, t) {
334
- return (e = t.exec(e)) ? e[0] : e;
335
- }
336
- function w(e, t, n) {
337
- return e.replace(t, n);
338
- }
339
- function Be(e, t, n) {
340
- return e.indexOf(t, n);
341
- }
342
- function j(e, t) {
343
- return e.charCodeAt(t) | 0;
344
- }
345
- function Ee(e, t, n) {
346
- return e.slice(t, n);
347
- }
348
- function K(e) {
349
- return e.length;
350
- }
351
- function un(e) {
352
- return e.length;
353
- }
354
- function Re(e, t) {
355
- return t.push(e), e;
356
- }
357
- function lr(e, t) {
358
- return e.map(t).join("");
359
- }
360
- function It(e, t) {
361
- return e.filter(function(n) {
362
- return !Q(n, t);
363
- });
364
- }
365
- var Xe = 1, ke = 1, pn = 0, G = 0, D = 0, Oe = "";
366
- function Ze(e, t, n, r, o, a, s, p) {
367
- return { value: e, root: t, parent: n, type: r, props: o, children: a, line: Xe, column: ke, length: s, return: "", siblings: p };
368
- }
369
- function ae(e, t) {
370
- return ft(Ze("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
371
- }
372
- function we(e) {
373
- for (; e.root; )
374
- e = ae(e.root, { children: [e] });
375
- Re(e, e.siblings);
376
- }
377
- function ur() {
378
- return D;
379
- }
380
- function pr() {
381
- return D = G > 0 ? j(Oe, --G) : 0, ke--, D === 10 && (ke = 1, Xe--), D;
382
- }
383
- function Y() {
384
- return D = G < pn ? j(Oe, G++) : 0, ke++, D === 10 && (ke = 1, Xe++), D;
385
- }
386
- function he() {
387
- return j(Oe, G);
388
- }
389
- function Ve() {
390
- return G;
391
- }
392
- function Je(e, t) {
393
- return Ee(Oe, e, t);
394
- }
395
- function ht(e) {
396
- switch (e) {
397
- case 0:
398
- case 9:
399
- case 10:
400
- case 13:
401
- case 32:
402
- return 5;
403
- case 33:
404
- case 43:
405
- case 44:
406
- case 47:
407
- case 62:
408
- case 64:
409
- case 126:
410
- case 59:
411
- case 123:
412
- case 125:
413
- return 4;
414
- case 58:
415
- return 3;
416
- case 34:
417
- case 39:
418
- case 40:
419
- case 91:
420
- return 2;
421
- case 41:
422
- case 93:
423
- return 1;
424
- }
425
- return 0;
426
- }
427
- function dr(e) {
428
- return Xe = ke = 1, pn = K(Oe = e), G = 0, [];
429
- }
430
- function fr(e) {
431
- return Oe = "", e;
432
- }
433
- function st(e) {
434
- return ln(Je(G - 1, gt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
435
- }
436
- function hr(e) {
437
- for (; (D = he()) && D < 33; )
438
- Y();
439
- return ht(e) > 2 || ht(D) > 3 ? "" : " ";
440
- }
441
- function gr(e, t) {
442
- for (; --t && Y() && !(D < 48 || D > 102 || D > 57 && D < 65 || D > 70 && D < 97); )
443
- ;
444
- return Je(e, Ve() + (t < 6 && he() == 32 && Y() == 32));
445
- }
446
- function gt(e) {
447
- for (; Y(); )
448
- switch (D) {
449
- case e:
450
- return G;
451
- case 34:
452
- case 39:
453
- e !== 34 && e !== 39 && gt(D);
454
- break;
455
- case 40:
456
- e === 41 && gt(e);
457
- break;
458
- case 92:
459
- Y();
460
- break;
461
- }
462
- return G;
463
- }
464
- function mr(e, t) {
465
- for (; Y() && e + D !== 47 + 10; )
466
- if (e + D === 42 + 42 && he() === 47)
467
- break;
468
- return "/*" + Je(t, G - 1) + "*" + xt(e === 47 ? e : Y());
469
- }
470
- function yr(e) {
471
- for (; !ht(he()); )
472
- Y();
473
- return Je(e, G);
474
- }
475
- function vr(e) {
476
- return fr(He("", null, null, null, [""], e = dr(e), 0, [0], e));
477
- }
478
- function He(e, t, n, r, o, a, s, p, c) {
479
- for (var y = 0, v = 0, l = s, d = 0, i = 0, f = 0, m = 1, O = 1, x = 1, E = 0, S = "", u = o, b = a, h = r, g = S; O; )
480
- switch (f = E, E = Y()) {
481
- case 40:
482
- if (f != 108 && j(g, l - 1) == 58) {
483
- Be(g += w(st(E), "&", "&\f"), "&\f", cn(y ? p[y - 1] : 0)) != -1 && (x = -1);
484
- break;
485
- }
486
- case 34:
487
- case 39:
488
- case 91:
489
- g += st(E);
490
- break;
491
- case 9:
492
- case 10:
493
- case 13:
494
- case 32:
495
- g += hr(f);
496
- break;
497
- case 92:
498
- g += gr(Ve() - 1, 7);
499
- continue;
500
- case 47:
501
- switch (he()) {
502
- case 42:
503
- case 47:
504
- Re(br(mr(Y(), Ve()), t, n, c), c);
505
- break;
506
- default:
507
- g += "/";
508
- }
509
- break;
510
- case 123 * m:
511
- p[y++] = K(g) * x;
512
- case 125 * m:
513
- case 59:
514
- case 0:
515
- switch (E) {
516
- case 0:
517
- case 125:
518
- O = 0;
519
- case 59 + v:
520
- x == -1 && (g = w(g, /\f/g, "")), i > 0 && K(g) - l && Re(i > 32 ? Lt(g + ";", r, n, l - 1, c) : Lt(w(g, " ", "") + ";", r, n, l - 2, c), c);
521
- break;
522
- case 59:
523
- g += ";";
524
- default:
525
- if (Re(h = Tt(g, t, n, y, v, o, p, S, u = [], b = [], l, a), a), E === 123)
526
- if (v === 0)
527
- He(g, t, h, h, u, a, l, p, b);
528
- else
529
- switch (d === 99 && j(g, 3) === 110 ? 100 : d) {
530
- case 100:
531
- case 108:
532
- case 109:
533
- case 115:
534
- He(e, h, h, r && Re(Tt(e, h, h, 0, 0, o, p, S, o, u = [], l, b), b), o, b, l, p, r ? u : b);
535
- break;
536
- default:
537
- He(g, h, h, h, [""], b, 0, p, b);
538
- }
539
- }
540
- y = v = i = 0, m = x = 1, S = g = "", l = s;
541
- break;
542
- case 58:
543
- l = 1 + K(g), i = f;
544
- default:
545
- if (m < 1) {
546
- if (E == 123)
547
- --m;
548
- else if (E == 125 && m++ == 0 && pr() == 125)
549
- continue;
550
- }
551
- switch (g += xt(E), E * m) {
552
- case 38:
553
- x = v > 0 ? 1 : (g += "\f", -1);
554
- break;
555
- case 44:
556
- p[y++] = (K(g) - 1) * x, x = 1;
557
- break;
558
- case 64:
559
- he() === 45 && (g += st(Y())), d = he(), v = l = K(S = g += yr(Ve())), E++;
560
- break;
561
- case 45:
562
- f === 45 && K(g) == 2 && (m = 0);
563
- }
564
- }
565
- return a;
566
- }
567
- function Tt(e, t, n, r, o, a, s, p, c, y, v, l) {
568
- for (var d = o - 1, i = o === 0 ? a : [""], f = un(i), m = 0, O = 0, x = 0; m < r; ++m)
569
- for (var E = 0, S = Ee(e, d + 1, d = cn(O = s[m])), u = e; E < f; ++E)
570
- (u = ln(O > 0 ? i[E] + " " + S : w(S, /&\f/g, i[E]))) && (c[x++] = u);
571
- return Ze(e, t, n, o === 0 ? Ke : p, c, y, v, l);
572
- }
573
- function br(e, t, n, r) {
574
- return Ze(e, t, n, an, xt(ur()), Ee(e, 2, -2), 0, r);
575
- }
576
- function Lt(e, t, n, r, o) {
577
- return Ze(e, t, n, St, Ee(e, 0, r), Ee(e, r + 1, -1), r, o);
578
- }
579
- function dn(e, t, n) {
580
- switch (cr(e, t)) {
581
- case 5103:
582
- return N + "print-" + e + e;
583
- case 5737:
584
- case 4201:
585
- case 3177:
586
- case 3433:
587
- case 1641:
588
- case 4457:
589
- case 2921:
590
- case 5572:
591
- case 6356:
592
- case 5844:
593
- case 3191:
594
- case 6645:
595
- case 3005:
596
- case 6391:
597
- case 5879:
598
- case 5623:
599
- case 6135:
600
- case 4599:
601
- case 4855:
602
- case 4215:
603
- case 6389:
604
- case 5109:
605
- case 5365:
606
- case 5621:
607
- case 3829:
608
- return N + e + e;
609
- case 4789:
610
- return Ie + e + e;
611
- case 5349:
612
- case 4246:
613
- case 4810:
614
- case 6968:
615
- case 2756:
616
- return N + e + Ie + e + L + e + e;
617
- case 5936:
618
- switch (j(e, t + 11)) {
619
- case 114:
620
- return N + e + L + w(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
621
- case 108:
622
- return N + e + L + w(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
623
- case 45:
624
- return N + e + L + w(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
625
- }
626
- case 6828:
627
- case 4268:
628
- case 2903:
629
- return N + e + L + e + e;
630
- case 6165:
631
- return N + e + L + "flex-" + e + e;
632
- case 5187:
633
- return N + e + w(e, /(\w+).+(:[^]+)/, N + "box-$1$2" + L + "flex-$1$2") + e;
634
- case 5443:
635
- return N + e + L + "flex-item-" + w(e, /flex-|-self/g, "") + (Q(e, /flex-|baseline/) ? "" : L + "grid-row-" + w(e, /flex-|-self/g, "")) + e;
636
- case 4675:
637
- return N + e + L + "flex-line-pack" + w(e, /align-content|flex-|-self/g, "") + e;
638
- case 5548:
639
- return N + e + L + w(e, "shrink", "negative") + e;
640
- case 5292:
641
- return N + e + L + w(e, "basis", "preferred-size") + e;
642
- case 6060:
643
- return N + "box-" + w(e, "-grow", "") + N + e + L + w(e, "grow", "positive") + e;
644
- case 4554:
645
- return N + w(e, /([^-])(transform)/g, "$1" + N + "$2") + e;
646
- case 6187:
647
- return w(w(w(e, /(zoom-|grab)/, N + "$1"), /(image-set)/, N + "$1"), e, "") + e;
648
- case 5495:
649
- case 3959:
650
- return w(e, /(image-set\([^]*)/, N + "$1$`$1");
651
- case 4968:
652
- return w(w(e, /(.+:)(flex-)?(.*)/, N + "box-pack:$3" + L + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + N + e + e;
653
- case 4200:
654
- if (!Q(e, /flex-|baseline/))
655
- return L + "grid-column-align" + Ee(e, t) + e;
656
- break;
657
- case 2592:
658
- case 3360:
659
- return L + w(e, "template-", "") + e;
660
- case 4384:
661
- case 3616:
662
- return n && n.some(function(r, o) {
663
- return t = o, Q(r.props, /grid-\w+-end/);
664
- }) ? ~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;
665
- case 4896:
666
- case 4128:
667
- return n && n.some(function(r) {
668
- return Q(r.props, /grid-\w+-start/);
669
- }) ? e : L + w(w(e, "-end", "-span"), "span ", "") + e;
670
- case 4095:
671
- case 3583:
672
- case 4068:
673
- case 2532:
674
- return w(e, /(.+)-inline(.+)/, N + "$1$2") + e;
675
- case 8116:
676
- case 7059:
677
- case 5753:
678
- case 5535:
679
- case 5445:
680
- case 5701:
681
- case 4933:
682
- case 4677:
683
- case 5533:
684
- case 5789:
685
- case 5021:
686
- case 4765:
687
- if (K(e) - 1 - t > 6)
688
- switch (j(e, t + 1)) {
689
- case 109:
690
- if (j(e, t + 4) !== 45)
691
- break;
692
- case 102:
693
- return w(e, /(.+:)(.+)-([^]+)/, "$1" + N + "$2-$3$1" + Ie + (j(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
694
- case 115:
695
- return ~Be(e, "stretch", 0) ? dn(w(e, "stretch", "fill-available"), t, n) + e : e;
696
- }
697
- break;
698
- case 5152:
699
- case 5920:
700
- return w(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(r, o, a, s, p, c, y) {
701
- return L + o + ":" + a + y + (s ? L + o + "-span:" + (p ? c : +c - +a) + y : "") + e;
702
- });
703
- case 4949:
704
- if (j(e, t + 6) === 121)
705
- return w(e, ":", ":" + N) + e;
706
- break;
707
- case 6444:
708
- switch (j(e, j(e, 14) === 45 ? 18 : 11)) {
709
- case 120:
710
- return w(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + N + (j(e, 14) === 45 ? "inline-" : "") + "box$3$1" + N + "$2$3$1" + L + "$2box$3") + e;
711
- case 100:
712
- return w(e, ":", ":" + L) + e;
713
- }
714
- break;
715
- case 5719:
716
- case 2647:
717
- case 2135:
718
- case 3927:
719
- case 2391:
720
- return w(e, "scroll-", "scroll-snap-") + e;
721
- }
722
- return e;
723
- }
724
- function We(e, t) {
725
- for (var n = "", r = 0; r < e.length; r++)
726
- n += t(e[r], r, e, t) || "";
727
- return n;
728
- }
729
- function wr(e, t, n, r) {
730
- switch (e.type) {
731
- case ir:
732
- if (e.children.length)
733
- break;
734
- case sr:
735
- case St:
736
- return e.return = e.return || e.value;
737
- case an:
738
- return "";
739
- case sn:
740
- return e.return = e.value + "{" + We(e.children, r) + "}";
741
- case Ke:
742
- if (!K(e.value = e.props.join(",")))
743
- return "";
744
- }
745
- return K(n = We(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
746
- }
747
- function Sr(e) {
748
- var t = un(e);
749
- return function(n, r, o, a) {
750
- for (var s = "", p = 0; p < t; p++)
751
- s += e[p](n, r, o, a) || "";
752
- return s;
753
- };
754
- }
755
- function xr(e) {
756
- return function(t) {
757
- t.root || (t = t.return) && e(t);
758
- };
759
- }
760
- function Er(e, t, n, r) {
761
- if (e.length > -1 && !e.return)
762
- switch (e.type) {
763
- case St:
764
- e.return = dn(e.value, e.length, n);
765
- return;
766
- case sn:
767
- return We([ae(e, { value: w(e.value, "@", "@" + N) })], r);
768
- case Ke:
769
- if (e.length)
770
- return lr(n = e.props, function(o) {
771
- switch (Q(o, r = /(::plac\w+|:read-\w+)/)) {
772
- case ":read-only":
773
- case ":read-write":
774
- we(ae(e, { props: [w(o, /:(read-\w+)/, ":" + Ie + "$1")] })), we(ae(e, { props: [o] })), ft(e, { props: It(n, r) });
775
- break;
776
- case "::placeholder":
777
- 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] })), ft(e, { props: It(n, r) });
778
- break;
779
- }
780
- return "";
781
- });
782
- }
783
- }
784
- var kr = {
785
- animationIterationCount: 1,
786
- aspectRatio: 1,
787
- borderImageOutset: 1,
788
- borderImageSlice: 1,
789
- borderImageWidth: 1,
790
- boxFlex: 1,
791
- boxFlexGroup: 1,
792
- boxOrdinalGroup: 1,
793
- columnCount: 1,
794
- columns: 1,
795
- flex: 1,
796
- flexGrow: 1,
797
- flexPositive: 1,
798
- flexShrink: 1,
799
- flexNegative: 1,
800
- flexOrder: 1,
801
- gridRow: 1,
802
- gridRowEnd: 1,
803
- gridRowSpan: 1,
804
- gridRowStart: 1,
805
- gridColumn: 1,
806
- gridColumnEnd: 1,
807
- gridColumnSpan: 1,
808
- gridColumnStart: 1,
809
- msGridRow: 1,
810
- msGridRowSpan: 1,
811
- msGridColumn: 1,
812
- msGridColumnSpan: 1,
813
- fontWeight: 1,
814
- lineHeight: 1,
815
- opacity: 1,
816
- order: 1,
817
- orphans: 1,
818
- tabSize: 1,
819
- widows: 1,
820
- zIndex: 1,
821
- zoom: 1,
822
- WebkitLineClamp: 1,
823
- // SVG-related properties
824
- fillOpacity: 1,
825
- floodOpacity: 1,
826
- stopOpacity: 1,
827
- strokeDasharray: 1,
828
- strokeDashoffset: 1,
829
- strokeMiterlimit: 1,
830
- strokeOpacity: 1,
831
- strokeWidth: 1
832
- }, be = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", fn = "active", hn = "data-styled-version", Qe = "6.1.19", Et = `/*!sc*/
833
- `, qe = typeof window < "u" && typeof document < "u", _r = !!(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"), $t = /invalid hook call/i, De = /* @__PURE__ */ new Set(), Cr = function(e, t) {
834
- if (process.env.NODE_ENV !== "production") {
835
- var n = t ? ' with the id of "'.concat(t, '"') : "", r = "The component ".concat(e).concat(n, ` has been created dynamically.
836
- `) + `You may see this warning because you've called styled inside another component.
837
- To resolve this only create new StyledComponents outside of any render method and function component.
838
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
839
- `, o = console.error;
840
- try {
841
- var a = !0;
842
- console.error = function(s) {
843
- for (var p = [], c = 1; c < arguments.length; c++)
844
- p[c - 1] = arguments[c];
845
- $t.test(s) ? (a = !1, De.delete(r)) : o.apply(void 0, xe([s], p, !1));
846
- }, de(), a && !De.has(r) && (console.warn(r), De.add(r));
847
- } catch (s) {
848
- $t.test(s.message) && De.delete(r);
849
- } finally {
850
- console.error = o;
851
- }
852
- }
853
- }, et = Object.freeze([]), _e = Object.freeze({});
854
- function Nr(e, t, n) {
855
- return n === void 0 && (n = _e), e.theme !== n.theme && e.theme || t || n.theme;
856
- }
857
- var mt = /* @__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"]), Or = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Ar = /(^-|-$)/g;
858
- function Dt(e) {
859
- return e.replace(Or, "-").replace(Ar, "");
860
- }
861
- var Pr = /(a)(d)/gi, je = 52, jt = function(e) {
862
- return String.fromCharCode(e + (e > 25 ? 39 : 97));
863
- };
864
- function yt(e) {
865
- var t, n = "";
866
- for (t = Math.abs(e); t > je; t = t / je | 0)
867
- n = jt(t % je) + n;
868
- return (jt(t % je) + n).replace(Pr, "$1-$2");
869
- }
870
- var it, gn = 5381, pe = function(e, t) {
871
- for (var n = t.length; n; )
872
- e = 33 * e ^ t.charCodeAt(--n);
873
- return e;
874
- }, mn = function(e) {
875
- return pe(gn, e);
876
- };
877
- function Rr(e) {
878
- return yt(mn(e) >>> 0);
879
- }
880
- function yn(e) {
881
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
882
- }
883
- function ct(e) {
884
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
885
- }
886
- var vn = typeof Symbol == "function" && Symbol.for, bn = vn ? Symbol.for("react.memo") : 60115, Ir = vn ? Symbol.for("react.forward_ref") : 60112, Tr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Lr = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, wn = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, $r = ((it = {})[Ir] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, it[bn] = wn, it);
887
- function zt(e) {
888
- return ("type" in (t = e) && t.type.$$typeof) === bn ? wn : "$$typeof" in e ? $r[e.$$typeof] : Tr;
889
- var t;
890
- }
891
- var Dr = Object.defineProperty, jr = Object.getOwnPropertyNames, Ft = Object.getOwnPropertySymbols, zr = Object.getOwnPropertyDescriptor, Fr = Object.getPrototypeOf, Mt = Object.prototype;
892
- function Sn(e, t, n) {
893
- if (typeof t != "string") {
894
- if (Mt) {
895
- var r = Fr(t);
896
- r && r !== Mt && Sn(e, r, n);
897
- }
898
- var o = jr(t);
899
- Ft && (o = o.concat(Ft(t)));
900
- for (var a = zt(e), s = zt(t), p = 0; p < o.length; ++p) {
901
- var c = o[p];
902
- if (!(c in Lr || n && n[c] || s && c in s || a && c in a)) {
903
- var y = zr(t, c);
904
- try {
905
- Dr(e, c, y);
906
- } catch {
907
- }
908
- }
909
- }
910
- }
911
- return e;
912
- }
913
- function Ce(e) {
914
- return typeof e == "function";
915
- }
916
- function kt(e) {
917
- return typeof e == "object" && "styledComponentId" in e;
918
- }
919
- function fe(e, t) {
920
- return e && t ? "".concat(e, " ").concat(t) : e || t || "";
921
- }
922
- function Bt(e, t) {
923
- if (e.length === 0)
924
- return "";
925
- for (var n = e[0], r = 1; r < e.length; r++)
926
- n += t ? t + e[r] : e[r];
927
- return n;
928
- }
929
- function Ne(e) {
930
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
931
- }
932
- function vt(e, t, n) {
933
- if (n === void 0 && (n = !1), !n && !Ne(e) && !Array.isArray(e))
934
- return t;
935
- if (Array.isArray(t))
936
- for (var r = 0; r < t.length; r++)
937
- e[r] = vt(e[r], t[r]);
938
- else if (Ne(t))
939
- for (var r in t)
940
- e[r] = vt(e[r], t[r]);
941
- return e;
942
- }
943
- function _t(e, t) {
944
- Object.defineProperty(e, "toString", { value: t });
945
- }
946
- var Mr = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
947
-
948
- `, 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.
949
-
950
- - Are you trying to reuse it across renders?
951
- - Are you accidentally calling collectStyles twice?
952
-
953
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
954
-
955
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
956
-
957
- - Does this error occur on the client and is your target falsy?
958
- - Does this error occur on the server and is the sheet falsy?
959
-
960
- `, 5: `The clone method cannot be used on the client!
961
-
962
- - Are you running in a client-like environment on the server?
963
- - Are you trying to run SSR on the client?
964
-
965
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
966
-
967
- - Are you using a custom target that isn't mounted?
968
- - Does your document not have a valid head element?
969
- - Have you accidentally removed a style tag manually?
970
-
971
- `, 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.
972
-
973
- `, 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
974
-
975
- `, 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.
976
-
977
- `, 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.
978
-
979
- `, 14: `ThemeProvider: "theme" prop is required.
980
-
981
- `, 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.
982
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
983
- as for instance in your render method then you may be running into this limitation.
984
-
985
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
986
- Has styled-components' style tag been unmounted or altered by another script?
987
- `, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
988
- function Br() {
989
- for (var e = [], t = 0; t < arguments.length; t++)
990
- e[t] = arguments[t];
991
- for (var n = e[0], r = [], o = 1, a = e.length; o < a; o += 1)
992
- r.push(e[o]);
993
- return r.forEach(function(s) {
994
- n = n.replace(/%[a-z]/, s);
995
- }), n;
996
- }
997
- function Ae(e) {
998
- for (var t = [], n = 1; n < arguments.length; n++)
999
- t[n - 1] = arguments[n];
1000
- 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(Br.apply(void 0, xe([Mr[e]], t, !1)).trim());
1001
- }
1002
- var Vr = function() {
1003
- function e(t) {
1004
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
1005
- }
1006
- return e.prototype.indexOfGroup = function(t) {
1007
- for (var n = 0, r = 0; r < t; r++)
1008
- n += this.groupSizes[r];
1009
- return n;
1010
- }, e.prototype.insertRules = function(t, n) {
1011
- if (t >= this.groupSizes.length) {
1012
- for (var r = this.groupSizes, o = r.length, a = o; t >= a; )
1013
- if ((a <<= 1) < 0)
1014
- throw Ae(16, "".concat(t));
1015
- this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
1016
- for (var s = o; s < a; s++)
1017
- this.groupSizes[s] = 0;
1018
- }
1019
- for (var p = this.indexOfGroup(t + 1), c = (s = 0, n.length); s < c; s++)
1020
- this.tag.insertRule(p, n[s]) && (this.groupSizes[t]++, p++);
1021
- }, e.prototype.clearGroup = function(t) {
1022
- if (t < this.length) {
1023
- var n = this.groupSizes[t], r = this.indexOfGroup(t), o = r + n;
1024
- this.groupSizes[t] = 0;
1025
- for (var a = r; a < o; a++)
1026
- this.tag.deleteRule(r);
1027
- }
1028
- }, e.prototype.getGroup = function(t) {
1029
- var n = "";
1030
- if (t >= this.length || this.groupSizes[t] === 0)
1031
- return n;
1032
- for (var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r, s = o; s < a; s++)
1033
- n += "".concat(this.tag.getRule(s)).concat(Et);
1034
- return n;
1035
- }, e;
1036
- }(), Hr = 1 << 30, Ge = /* @__PURE__ */ new Map(), Ye = /* @__PURE__ */ new Map(), Ue = 1, ze = function(e) {
1037
- if (Ge.has(e))
1038
- return Ge.get(e);
1039
- for (; Ye.has(Ue); )
1040
- Ue++;
1041
- var t = Ue++;
1042
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Hr))
1043
- throw Ae(16, "".concat(t));
1044
- return Ge.set(e, t), Ye.set(t, e), t;
1045
- }, Gr = function(e, t) {
1046
- Ue = t + 1, Ge.set(e, t), Ye.set(t, e);
1047
- }, Ur = "style[".concat(be, "][").concat(hn, '="').concat(Qe, '"]'), Wr = new RegExp("^".concat(be, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), qr = function(e, t, n) {
1048
- for (var r, o = n.split(","), a = 0, s = o.length; a < s; a++)
1049
- (r = o[a]) && e.registerName(t, r);
1050
- }, Yr = function(e, t) {
1051
- for (var n, r = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(Et), o = [], a = 0, s = r.length; a < s; a++) {
1052
- var p = r[a].trim();
1053
- if (p) {
1054
- var c = p.match(Wr);
1055
- if (c) {
1056
- var y = 0 | parseInt(c[1], 10), v = c[2];
1057
- y !== 0 && (Gr(v, y), qr(e, v, c[3]), e.getTag().insertRules(y, o)), o.length = 0;
1058
- } else
1059
- o.push(p);
1060
- }
1061
- }
1062
- }, Vt = function(e) {
1063
- for (var t = document.querySelectorAll(Ur), n = 0, r = t.length; n < r; n++) {
1064
- var o = t[n];
1065
- o && o.getAttribute(be) !== fn && (Yr(e, o), o.parentNode && o.parentNode.removeChild(o));
1066
- }
1067
- };
1068
- function Kr() {
1069
- return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
1070
- }
1071
- var xn = function(e) {
1072
- var t = document.head, n = e || t, r = document.createElement("style"), o = function(p) {
1073
- var c = Array.from(p.querySelectorAll("style[".concat(be, "]")));
1074
- return c[c.length - 1];
1075
- }(n), a = o !== void 0 ? o.nextSibling : null;
1076
- r.setAttribute(be, fn), r.setAttribute(hn, Qe);
1077
- var s = Kr();
1078
- return s && r.setAttribute("nonce", s), n.insertBefore(r, a), r;
1079
- }, Xr = function() {
1080
- function e(t) {
1081
- this.element = xn(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(n) {
1082
- if (n.sheet)
1083
- return n.sheet;
1084
- for (var r = document.styleSheets, o = 0, a = r.length; o < a; o++) {
1085
- var s = r[o];
1086
- if (s.ownerNode === n)
1087
- return s;
1088
- }
1089
- throw Ae(17);
1090
- }(this.element), this.length = 0;
1091
- }
1092
- return e.prototype.insertRule = function(t, n) {
1093
- try {
1094
- return this.sheet.insertRule(n, t), this.length++, !0;
1095
- } catch {
1096
- return !1;
1097
- }
1098
- }, e.prototype.deleteRule = function(t) {
1099
- this.sheet.deleteRule(t), this.length--;
1100
- }, e.prototype.getRule = function(t) {
1101
- var n = this.sheet.cssRules[t];
1102
- return n && n.cssText ? n.cssText : "";
1103
- }, e;
1104
- }(), Zr = function() {
1105
- function e(t) {
1106
- this.element = xn(t), this.nodes = this.element.childNodes, this.length = 0;
1107
- }
1108
- return e.prototype.insertRule = function(t, n) {
1109
- if (t <= this.length && t >= 0) {
1110
- var r = document.createTextNode(n);
1111
- return this.element.insertBefore(r, this.nodes[t] || null), this.length++, !0;
1112
- }
1113
- return !1;
1114
- }, e.prototype.deleteRule = function(t) {
1115
- this.element.removeChild(this.nodes[t]), this.length--;
1116
- }, e.prototype.getRule = function(t) {
1117
- return t < this.length ? this.nodes[t].textContent : "";
1118
- }, e;
1119
- }(), Jr = function() {
1120
- function e(t) {
1121
- this.rules = [], this.length = 0;
1122
- }
1123
- return e.prototype.insertRule = function(t, n) {
1124
- return t <= this.length && (this.rules.splice(t, 0, n), this.length++, !0);
1125
- }, e.prototype.deleteRule = function(t) {
1126
- this.rules.splice(t, 1), this.length--;
1127
- }, e.prototype.getRule = function(t) {
1128
- return t < this.length ? this.rules[t] : "";
1129
- }, e;
1130
- }(), Ht = qe, Qr = { isServer: !qe, useCSSOMInjection: !_r }, En = function() {
1131
- function e(t, n, r) {
1132
- t === void 0 && (t = _e), n === void 0 && (n = {});
1133
- var o = this;
1134
- this.options = M(M({}, Qr), t), this.gs = n, this.names = new Map(r), this.server = !!t.isServer, !this.server && qe && Ht && (Ht = !1, Vt(this)), _t(this, function() {
1135
- return function(a) {
1136
- for (var s = a.getTag(), p = s.length, c = "", y = function(l) {
1137
- var d = function(x) {
1138
- return Ye.get(x);
1139
- }(l);
1140
- if (d === void 0)
1141
- return "continue";
1142
- var i = a.names.get(d), f = s.getGroup(l);
1143
- if (i === void 0 || !i.size || f.length === 0)
1144
- return "continue";
1145
- var m = "".concat(be, ".g").concat(l, '[id="').concat(d, '"]'), O = "";
1146
- i !== void 0 && i.forEach(function(x) {
1147
- x.length > 0 && (O += "".concat(x, ","));
1148
- }), c += "".concat(f).concat(m, '{content:"').concat(O, '"}').concat(Et);
1149
- }, v = 0; v < p; v++)
1150
- y(v);
1151
- return c;
1152
- }(o);
1153
- });
1154
- }
1155
- return e.registerId = function(t) {
1156
- return ze(t);
1157
- }, e.prototype.rehydrate = function() {
1158
- !this.server && qe && Vt(this);
1159
- }, e.prototype.reconstructWithOptions = function(t, n) {
1160
- return n === void 0 && (n = !0), new e(M(M({}, this.options), t), this.gs, n && this.names || void 0);
1161
- }, e.prototype.allocateGSInstance = function(t) {
1162
- return this.gs[t] = (this.gs[t] || 0) + 1;
1163
- }, e.prototype.getTag = function() {
1164
- return this.tag || (this.tag = (t = function(n) {
1165
- var r = n.useCSSOMInjection, o = n.target;
1166
- return n.isServer ? new Jr(o) : r ? new Xr(o) : new Zr(o);
1167
- }(this.options), new Vr(t)));
1168
- var t;
1169
- }, e.prototype.hasNameForId = function(t, n) {
1170
- return this.names.has(t) && this.names.get(t).has(n);
1171
- }, e.prototype.registerName = function(t, n) {
1172
- if (ze(t), this.names.has(t))
1173
- this.names.get(t).add(n);
1174
- else {
1175
- var r = /* @__PURE__ */ new Set();
1176
- r.add(n), this.names.set(t, r);
1177
- }
1178
- }, e.prototype.insertRules = function(t, n, r) {
1179
- this.registerName(t, n), this.getTag().insertRules(ze(t), r);
1180
- }, e.prototype.clearNames = function(t) {
1181
- this.names.has(t) && this.names.get(t).clear();
1182
- }, e.prototype.clearRules = function(t) {
1183
- this.getTag().clearGroup(ze(t)), this.clearNames(t);
1184
- }, e.prototype.clearTag = function() {
1185
- this.tag = void 0;
1186
- }, e;
1187
- }(), eo = /&/g, to = /^\s*\/\/.*$/gm;
1188
- function kn(e, t) {
1189
- return e.map(function(n) {
1190
- 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) {
1191
- return "".concat(t, " ").concat(r);
1192
- })), Array.isArray(n.children) && n.type !== "@keyframes" && (n.children = kn(n.children, t)), n;
1193
- });
1194
- }
1195
- function no(e) {
1196
- var t, n, r, o = e === void 0 ? _e : e, a = o.options, s = a === void 0 ? _e : a, p = o.plugins, c = p === void 0 ? et : p, y = function(d, i, f) {
1197
- return f.startsWith(n) && f.endsWith(n) && f.replaceAll(n, "").length > 0 ? ".".concat(t) : d;
1198
- }, v = c.slice();
1199
- v.push(function(d) {
1200
- d.type === Ke && d.value.includes("&") && (d.props[0] = d.props[0].replace(eo, n).replace(r, y));
1201
- }), s.prefix && v.push(Er), v.push(wr);
1202
- var l = function(d, i, f, m) {
1203
- i === void 0 && (i = ""), f === void 0 && (f = ""), m === void 0 && (m = "&"), t = m, n = i, r = new RegExp("\\".concat(n, "\\b"), "g");
1204
- var O = d.replace(to, ""), x = vr(f || i ? "".concat(f, " ").concat(i, " { ").concat(O, " }") : O);
1205
- s.namespace && (x = kn(x, s.namespace));
1206
- var E = [];
1207
- return We(x, Sr(v.concat(xr(function(S) {
1208
- return E.push(S);
1209
- })))), E;
1210
- };
1211
- return l.hash = c.length ? c.reduce(function(d, i) {
1212
- return i.name || Ae(15), pe(d, i.name);
1213
- }, gn).toString() : "", l;
1214
- }
1215
- var ro = new En(), bt = no(), _n = ye.createContext({ shouldForwardProp: void 0, styleSheet: ro, stylis: bt });
1216
- _n.Consumer;
1217
- ye.createContext(void 0);
1218
- function Gt() {
1219
- return nn(_n);
1220
- }
1221
- var Ut = function() {
1222
- function e(t, n) {
1223
- var r = this;
1224
- this.inject = function(o, a) {
1225
- a === void 0 && (a = bt);
1226
- var s = r.name + a.hash;
1227
- o.hasNameForId(r.id, s) || o.insertRules(r.id, s, a(r.rules, s, "@keyframes"));
1228
- }, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = n, _t(this, function() {
1229
- throw Ae(12, String(r.name));
1230
- });
1231
- }
1232
- return e.prototype.getName = function(t) {
1233
- return t === void 0 && (t = bt), this.name + t.hash;
1234
- }, e;
1235
- }(), oo = function(e) {
1236
- return e >= "A" && e <= "Z";
1237
- };
1238
- function Wt(e) {
1239
- for (var t = "", n = 0; n < e.length; n++) {
1240
- var r = e[n];
1241
- if (n === 1 && r === "-" && e[0] === "-")
1242
- return e;
1243
- oo(r) ? t += "-" + r.toLowerCase() : t += r;
1244
- }
1245
- return t.startsWith("ms-") ? "-" + t : t;
1246
- }
1247
- var Cn = function(e) {
1248
- return e == null || e === !1 || e === "";
1249
- }, Nn = function(e) {
1250
- var t, n, r = [];
1251
- for (var o in e) {
1252
- var a = e[o];
1253
- e.hasOwnProperty(o) && !Cn(a) && (Array.isArray(a) && a.isCss || Ce(a) ? r.push("".concat(Wt(o), ":"), a, ";") : Ne(a) ? r.push.apply(r, xe(xe(["".concat(o, " {")], Nn(a), !1), ["}"], !1)) : r.push("".concat(Wt(o), ": ").concat((t = o, (n = a) == null || typeof n == "boolean" || n === "" ? "" : typeof n != "number" || n === 0 || t in kr || t.startsWith("--") ? String(n).trim() : "".concat(n, "px")), ";")));
1254
- }
1255
- return r;
1256
- };
1257
- function ge(e, t, n, r) {
1258
- if (Cn(e))
1259
- return [];
1260
- if (kt(e))
1261
- return [".".concat(e.styledComponentId)];
1262
- if (Ce(e)) {
1263
- if (!Ce(a = e) || a.prototype && a.prototype.isReactComponent || !t)
1264
- return [e];
1265
- var o = e(t);
1266
- return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Ut || Ne(o) || o === null || console.error("".concat(yn(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);
1267
- }
1268
- var a;
1269
- return e instanceof Ut ? n ? (e.inject(n, r), [e.getName(r)]) : [e] : Ne(e) ? Nn(e) : Array.isArray(e) ? Array.prototype.concat.apply(et, e.map(function(s) {
1270
- return ge(s, t, n, r);
1271
- })) : [e.toString()];
1272
- }
1273
- function ao(e) {
1274
- for (var t = 0; t < e.length; t += 1) {
1275
- var n = e[t];
1276
- if (Ce(n) && !kt(n))
1277
- return !1;
1278
- }
1279
- return !0;
1280
- }
1281
- var so = mn(Qe), io = function() {
1282
- function e(t, n, r) {
1283
- this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (r === void 0 || r.isStatic) && ao(t), this.componentId = n, this.baseHash = pe(so, n), this.baseStyle = r, En.registerId(n);
1284
- }
1285
- return e.prototype.generateAndInjectStyles = function(t, n, r) {
1286
- var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, r) : "";
1287
- if (this.isStatic && !r.hash)
1288
- if (this.staticRulesId && n.hasNameForId(this.componentId, this.staticRulesId))
1289
- o = fe(o, this.staticRulesId);
1290
- else {
1291
- var a = Bt(ge(this.rules, t, n, r)), s = yt(pe(this.baseHash, a) >>> 0);
1292
- if (!n.hasNameForId(this.componentId, s)) {
1293
- var p = r(a, ".".concat(s), void 0, this.componentId);
1294
- n.insertRules(this.componentId, s, p);
1295
- }
1296
- o = fe(o, s), this.staticRulesId = s;
1297
- }
1298
- else {
1299
- for (var c = pe(this.baseHash, r.hash), y = "", v = 0; v < this.rules.length; v++) {
1300
- var l = this.rules[v];
1301
- if (typeof l == "string")
1302
- y += l, process.env.NODE_ENV !== "production" && (c = pe(c, l));
1303
- else if (l) {
1304
- var d = Bt(ge(l, t, n, r));
1305
- c = pe(c, d + v), y += d;
1306
- }
1307
- }
1308
- if (y) {
1309
- var i = yt(c >>> 0);
1310
- n.hasNameForId(this.componentId, i) || n.insertRules(this.componentId, i, r(y, ".".concat(i), void 0, this.componentId)), o = fe(o, i);
1311
- }
1312
- }
1313
- return o;
1314
- }, e;
1315
- }(), On = ye.createContext(void 0);
1316
- On.Consumer;
1317
- var lt = {}, qt = /* @__PURE__ */ new Set();
1318
- function co(e, t, n) {
1319
- var r = kt(e), o = e, a = !ct(e), s = t.attrs, p = s === void 0 ? et : s, c = t.componentId, y = c === void 0 ? function(u, b) {
1320
- var h = typeof u != "string" ? "sc" : Dt(u);
1321
- lt[h] = (lt[h] || 0) + 1;
1322
- var g = "".concat(h, "-").concat(Rr(Qe + h + lt[h]));
1323
- return b ? "".concat(b, "-").concat(g) : g;
1324
- }(t.displayName, t.parentComponentId) : c, v = t.displayName, l = v === void 0 ? function(u) {
1325
- return ct(u) ? "styled.".concat(u) : "Styled(".concat(yn(u), ")");
1326
- }(e) : v, d = t.displayName && t.componentId ? "".concat(Dt(t.displayName), "-").concat(t.componentId) : t.componentId || y, i = r && o.attrs ? o.attrs.concat(p).filter(Boolean) : p, f = t.shouldForwardProp;
1327
- if (r && o.shouldForwardProp) {
1328
- var m = o.shouldForwardProp;
1329
- if (t.shouldForwardProp) {
1330
- var O = t.shouldForwardProp;
1331
- f = function(u, b) {
1332
- return m(u, b) && O(u, b);
1333
- };
1334
- } else
1335
- f = m;
1336
- }
1337
- var x = new io(n, d, r ? o.componentStyle : void 0);
1338
- function E(u, b) {
1339
- return function(h, g, P) {
1340
- var F = h.attrs, ee = h.componentStyle, te = h.defaultProps, _ = h.foldedComponentIds, A = h.styledComponentId, R = h.target, $ = ye.useContext(On), X = Gt(), U = h.shouldForwardProp || X.shouldForwardProp;
1341
- process.env.NODE_ENV !== "production" && Nt(A);
1342
- var ie = Nr(g, $, te) || _e, B = function(J, ne, ce) {
1343
- for (var re, q = M(M({}, ne), { className: void 0, theme: ce }), le = 0; le < J.length; le += 1) {
1344
- var oe = Ce(re = J[le]) ? re(q) : re;
1345
- for (var V in oe)
1346
- q[V] = V === "className" ? fe(q[V], oe[V]) : V === "style" ? M(M({}, q[V]), oe[V]) : oe[V];
1347
- }
1348
- return ne.className && (q.className = fe(q.className, ne.className)), q;
1349
- }(F, g, ie), Z = B.as || R, C = {};
1350
- for (var I in B)
1351
- 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" || ar(I) || qt.has(I) || !mt.has(Z) || (qt.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.)')))));
1352
- var z = function(J, ne) {
1353
- var ce = Gt(), re = J.generateAndInjectStyles(ne, ce.styleSheet, ce.stylis);
1354
- return process.env.NODE_ENV !== "production" && Nt(re), re;
1355
- }(ee, B);
1356
- process.env.NODE_ENV !== "production" && h.warnTooManyClasses && h.warnTooManyClasses(z);
1357
- var W = fe(_, A);
1358
- return z && (W += " " + z), B.className && (W += " " + B.className), C[ct(Z) && !mt.has(Z) ? "class" : "className"] = W, P && (C.ref = P), Tn(Z, C);
1359
- }(S, u, b);
1360
- }
1361
- E.displayName = l;
1362
- var S = ye.forwardRef(E);
1363
- return S.attrs = i, S.componentStyle = x, S.displayName = l, 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() {
1364
- return this._foldedDefaultProps;
1365
- }, set: function(u) {
1366
- this._foldedDefaultProps = r ? function(b) {
1367
- for (var h = [], g = 1; g < arguments.length; g++)
1368
- h[g - 1] = arguments[g];
1369
- for (var P = 0, F = h; P < F.length; P++)
1370
- vt(b, F[P], !0);
1371
- return b;
1372
- }({}, o.defaultProps, u) : u;
1373
- } }), process.env.NODE_ENV !== "production" && (Cr(l, d), S.warnTooManyClasses = function(u, b) {
1374
- var h = {}, g = !1;
1375
- return function(P) {
1376
- if (!g && (h[P] = !0, Object.keys(h).length >= 200)) {
1377
- var F = b ? ' with the id of "'.concat(b, '"') : "";
1378
- console.warn("Over ".concat(200, " classes were generated for component ").concat(u).concat(F, `.
1379
- `) + `Consider using the attrs method, together with a style object for frequently changed styles.
1380
- Example:
1381
- const Component = styled.div.attrs(props => ({
1382
- style: {
1383
- background: props.background,
1384
- },
1385
- }))\`width: 100%;\`
1386
-
1387
- <Component />`), g = !0, h = {};
1388
- }
1389
- };
1390
- }(l, d)), _t(S, function() {
1391
- return ".".concat(S.styledComponentId);
1392
- }), a && Sn(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
1393
- }
1394
- function Yt(e, t) {
1395
- for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1)
1396
- n.push(t[r], e[r + 1]);
1397
- return n;
1398
- }
1399
- var Kt = function(e) {
1400
- return Object.assign(e, { isCss: !0 });
1401
- };
1402
- function An(e) {
1403
- for (var t = [], n = 1; n < arguments.length; n++)
1404
- t[n - 1] = arguments[n];
1405
- if (Ce(e) || Ne(e))
1406
- return Kt(ge(Yt(et, xe([e], t, !0))));
1407
- var r = e;
1408
- return t.length === 0 && r.length === 1 && typeof r[0] == "string" ? ge(r) : Kt(ge(Yt(r, t)));
1409
- }
1410
- function wt(e, t, n) {
1411
- if (n === void 0 && (n = _e), !t)
1412
- throw Ae(1, t);
1413
- var r = function(o) {
1414
- for (var a = [], s = 1; s < arguments.length; s++)
1415
- a[s - 1] = arguments[s];
1416
- return e(t, n, An.apply(void 0, xe([o], a, !1)));
1417
- };
1418
- return r.attrs = function(o) {
1419
- return wt(e, t, M(M({}, n), { attrs: Array.prototype.concat(n.attrs, o).filter(Boolean) }));
1420
- }, r.withConfig = function(o) {
1421
- return wt(e, t, M(M({}, n), o));
1422
- }, r;
1423
- }
1424
- var Pn = function(e) {
1425
- return wt(co, e);
1426
- }, Te = Pn;
1427
- mt.forEach(function(e) {
1428
- Te[e] = Pn(e);
1429
- });
1430
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
1431
- Perhaps you're looking to import 'styled-components/native'?
1432
- Read more about this at https://www.styled-components.com/docs/basics#react-native`);
1433
- var Fe = "__sc-".concat(be, "__");
1434
- 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.
1435
-
1436
- See https://s-c.sh/2BAXzed for more info.`), window[Fe] += 1);
1437
- var me = function() {
1438
- return me = Object.assign || function(e) {
1439
- for (var t, n = 1, r = arguments.length; n < r; n++)
1440
- for (var o in t = arguments[n])
1441
- Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
1442
- return e;
1443
- }, me.apply(this, arguments);
1444
- };
1445
- function Le(e, t) {
1446
- return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
1447
- }
1448
- var Xt, Zt, Jt, Qt, en, se = "#666", lo = An(Xt || (Xt = Le([`
1449
- display: flex;
1450
- align-items: center;
1451
- min-width: 322px;
1452
- max-width: 508px;
1453
- height: 48px;
1454
- border: dashed 2px `, `;
1455
- padding: 8px 16px 8px 8px;
1456
- border-radius: 5px;
1457
- cursor: pointer;
1458
- flex-grow: 0;
1459
-
1460
- &.is-disabled {
1461
- border: dashed 2px `, `;
1462
- cursor: no-drop;
1463
- svg {
1464
- fill: `, `;
1465
- color: `, `;
1466
- path {
1467
- fill: `, `;
1468
- color: `, `;
1469
- }
1470
- }
1471
- }
1472
- `], [`
1473
- display: flex;
1474
- align-items: center;
1475
- min-width: 322px;
1476
- max-width: 508px;
1477
- height: 48px;
1478
- border: dashed 2px `, `;
1479
- padding: 8px 16px 8px 8px;
1480
- border-radius: 5px;
1481
- cursor: pointer;
1482
- flex-grow: 0;
1483
-
1484
- &.is-disabled {
1485
- border: dashed 2px `, `;
1486
- cursor: no-drop;
1487
- svg {
1488
- fill: `, `;
1489
- color: `, `;
1490
- path {
1491
- fill: `, `;
1492
- color: `, `;
1493
- }
1494
- }
1495
- }
1496
- `])), "#0658c2", se, se, se, se, se), uo = Te.label(Zt || (Zt = Le([`
1497
- position: relative;
1498
- `, `;
1499
- &:focus-within {
1500
- outline: 2px solid black;
1501
- }
1502
- & > input {
1503
- display: block;
1504
- opacity: 0;
1505
- position: absolute;
1506
- pointer-events: none;
1507
- }
1508
- `], [`
1509
- position: relative;
1510
- `, `;
1511
- &:focus-within {
1512
- outline: 2px solid black;
1513
- }
1514
- & > input {
1515
- display: block;
1516
- opacity: 0;
1517
- position: absolute;
1518
- pointer-events: none;
1519
- }
1520
- `])), function(e) {
1521
- return e.override ? "" : lo;
1522
- }), po = Te.div(Jt || (Jt = Le([`
1523
- border: dashed 2px `, `;
1524
- border-radius: 5px;
1525
- background-color: `, `;
1526
- opacity: 0.9;
1527
- position: absolute;
1528
- top: 0;
1529
- right: 0;
1530
- left: 0;
1531
- bottom: 0;
1532
- z-index: 999;
1533
- & > span {
1534
- position: absolute;
1535
- top: 50%;
1536
- left: 50%;
1537
- transform: translateX(-50%) translateY(-50%);
1538
- }
1539
- `], [`
1540
- border: dashed 2px `, `;
1541
- border-radius: 5px;
1542
- background-color: `, `;
1543
- opacity: 0.9;
1544
- position: absolute;
1545
- top: 0;
1546
- right: 0;
1547
- left: 0;
1548
- bottom: 0;
1549
- z-index: 999;
1550
- & > span {
1551
- position: absolute;
1552
- top: 50%;
1553
- left: 50%;
1554
- transform: translateX(-50%) translateY(-50%);
1555
- }
1556
- `])), se, "#999"), fo = Te.div(Qt || (Qt = Le([`
1557
- display: flex;
1558
- justify-content: space-between;
1559
- flex-grow: 1;
1560
- & > span {
1561
- font-size: 12px;
1562
- color: `, `;
1563
- }
1564
- .file-types {
1565
- overflow: hidden;
1566
- white-space: nowrap;
1567
- text-overflow: ellipsis;
1568
- max-width: 100px;
1569
- }
1570
- `], [`
1571
- display: flex;
1572
- justify-content: space-between;
1573
- flex-grow: 1;
1574
- & > span {
1575
- font-size: 12px;
1576
- color: `, `;
1577
- }
1578
- .file-types {
1579
- overflow: hidden;
1580
- white-space: nowrap;
1581
- text-overflow: ellipsis;
1582
- max-width: 100px;
1583
- }
1584
- `])), function(e) {
1585
- return e.$error ? "red" : se;
1586
- }), ho = Te.span(en || (en = Le([`
1587
- font-size: 14px;
1588
- color: `, `;
1589
- span {
1590
- text-decoration: underline;
1591
- }
1592
- `], [`
1593
- font-size: 14px;
1594
- color: `, `;
1595
- span {
1596
- text-decoration: underline;
1597
- }
1598
- `])), se), tn = function(e) {
1599
- return e / 1024 / 1024;
1600
- }, go = function(e) {
1601
- return e === void 0 ? "" : e.map(function(t) {
1602
- return ".".concat(t.toLowerCase());
1603
- }).join(",");
1604
- };
1605
- function mo(e) {
1606
- var t = e.types, n = e.minSize, r = e.maxSize;
1607
- if (t) {
1608
- var o = t.toString(), a = "";
1609
- 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 }));
1610
- }
1611
- return null;
1612
- }
1613
- function yo() {
1614
- 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" })] }));
1615
- }
1616
- var ut = 0, vo = function(e, t, n, r, o, a) {
1617
- return n ? k("span", { children: "File type/size error, Hovered on types!" }) : k(ho, { 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"] }) }) });
1618
- }, bo = function(e) {
1619
- var t = e.name, n = e.hoverTitle, r = e.types, o = e.handleChange, a = e.classes, s = e.children, p = e.maxSize, c = e.minSize, y = e.fileOrFiles, v = e.onSizeError, l = e.onTypeError, d = e.onSelect, i = 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) {
1620
- return r && !function(I, z) {
1621
- var W = I.name.split(".").pop();
1622
- return z.map(function(J) {
1623
- return J.toLowerCase();
1624
- }).includes(W.toLowerCase());
1625
- }(C, r) ? (U(!0), l && l("File type is not supported"), !1) : p && tn(C.size) > p ? (U(!0), v && v("File size is too big"), !1) : !(c && tn(C.size) < c) || (U(!0), v && v("File size is too small"), !1);
1626
- }, B = function(C) {
1627
- var I = !1;
1628
- if (C) {
1629
- if (C instanceof File)
1630
- I = !ie(C);
1631
- else
1632
- for (var z = 0; z < C.length; z++) {
1633
- var W = C[z];
1634
- I = !ie(W) || I;
1635
- }
1636
- return !I && (o && o(C), R(C), te(!0), U(!1), !0);
1637
- }
1638
- return !1;
1639
- }, Z = function(C) {
1640
- var I = C.labelRef, z = C.inputRef, W = C.multiple, J = C.handleChanges, ne = C.onDrop, ce = Se(!1), re = ce[0], q = ce[1], le = ue(function() {
1641
- z.current.click();
1642
- }, [z]), oe = ue(function(T) {
1643
- T.preventDefault(), T.stopPropagation(), ut++, T.dataTransfer.items && T.dataTransfer.items.length !== 0 && q(!0);
1644
- }, []), V = ue(function(T) {
1645
- T.preventDefault(), T.stopPropagation(), --ut > 0 || q(!1);
1646
- }, []), tt = ue(function(T) {
1647
- T.preventDefault(), T.stopPropagation();
1648
- }, []), nt = ue(function(T) {
1649
- T.preventDefault(), T.stopPropagation(), q(!1), ut = 0;
1650
- var $e = T.dataTransfer.files;
1651
- if ($e && $e.length > 0) {
1652
- var Ct = W ? $e : $e[0], Rn = J(Ct);
1653
- ne && Rn && ne(Ct);
1654
- }
1655
- }, [J]);
1656
- return Me(function() {
1657
- var T = I.current;
1658
- return T.addEventListener("click", le), T.addEventListener("dragenter", oe), T.addEventListener("dragleave", V), T.addEventListener("dragover", tt), T.addEventListener("drop", nt), function() {
1659
- T.removeEventListener("click", le), T.removeEventListener("dragenter", oe), T.removeEventListener("dragleave", V), T.removeEventListener("dragover", tt), T.removeEventListener("drop", nt);
1660
- };
1661
- }, [le, oe, V, tt, nt, I]), re;
1662
- }({ labelRef: g, inputRef: P, multiple: x, handleChanges: B, onDrop: i });
1663
- return Me(function() {
1664
- S == null || S(Z);
1665
- }, [Z]), Me(function() {
1666
- y ? (te(!0), R(y)) : (P.current && (P.current.value = ""), te(!1), R(null));
1667
- }, [y]), H(uo, me({ override: s, className: "".concat(a || "", " ").concat(f ? "is-disabled" : ""), ref: g, htmlFor: t, onClick: function(C) {
1668
- C.preventDefault(), C.stopPropagation();
1669
- }, "aria-describedby": h, role: "button", "aria-label": b }, { children: [k("input", { onClick: function(C) {
1670
- C.stopPropagation(), P && P.current && (P.current.value = "", P.current.click());
1671
- }, onChange: function(C) {
1672
- var I = C.target.files, z = x ? I : I[0], W = B(z);
1673
- d && W && d(z);
1674
- }, accept: go(r), ref: P, type: "file", id: t, name: t, disabled: f, multiple: x, required: E }), Z && k(po, me({ style: u }, { children: k("span", { children: n || "Drop Here" }) })), !s && H(Pe, { children: [k(yo, {}), H(fo, me({ $error: X }, { children: [vo(A, ee, X, f, m, O), k(mo, { types: r, minSize: c, maxSize: p })] }))] }), s] }));
1675
- };
1676
- const wo = Ln(
1677
- ({
1678
- onChange: e,
1679
- error: t,
1680
- hoverTitle: n = "tenders.drag_file",
1681
- maxSize: r = 10,
1682
- fileTypes: o,
1683
- value: a,
1684
- isDeleteBtn: s = !0,
1685
- label: p,
1686
- onRemove: c,
1687
- multiple: y = !0,
1688
- ...v
1689
- }) => {
1690
- const [l, d] = Se(""), { t: i } = nr(), f = (u) => Number.isNaN(u) || u === void 0 || u === null ? "" : u < 1024 ? `${u} ${i("file.b", "B")}` : u < 1024 * 1024 ? `${(u / 1024).toFixed(2)} ${i("file.kb", "KB")}` : `${(u / (1024 * 1024)).toFixed(2)} ${i("file.mb", "MB")}`, m = (u, b) => {
1691
- if (u instanceof File)
1692
- return {
1693
- name: u.name,
1694
- size: f(u.size)
1695
- };
1696
- if (typeof u == "string") {
1697
- const h = u.trim(), g = h.match(/^data:([^;]+);base64,(.+)$/);
1698
- if (g) {
1699
- const P = g[2], F = P.length * 3 / 4 - (P.endsWith("==") ? 2 : P.endsWith("=") ? 1 : 0);
1700
- return {
1701
- name: b ? `Base64 ${b.split("/")[1].toUpperCase()}` : i("file.base64", "Base64 File"),
1702
- size: f(F)
1703
- };
1704
- } else if (/^[A-Za-z0-9+/=]+$/.test(h)) {
1705
- const P = h.length * 3 / 4 - (h.endsWith("==") ? 2 : h.endsWith("=") ? 1 : 0);
1706
- return {
1707
- name: b ? `Base64 ${b.split("/")[1].toUpperCase()}` : i("file.raw_base64", "Raw Base64 File"),
1708
- size: f(P)
1709
- };
1710
- }
1711
- }
1712
- return null;
1713
- }, O = () => {
1714
- d(
1715
- `${i("academy.max_size", { size: r, defaultValue: `Максимальный размер: ${r}MB` })}`
1716
- );
1717
- }, x = () => {
1718
- d(`${i("academy.type_error", "Неверный тип файла")}`);
1719
- }, E = (u) => {
1720
- d("");
1721
- let b = [];
1722
- 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(
1723
- (h) => h instanceof File || typeof h == "string"
1724
- ))), y) {
1725
- const h = Array.isArray(a) ? a : [];
1726
- e([...h, ...b]);
1727
- } else
1728
- e(b);
1729
- }, S = Array.isArray(a) ? a : [];
1730
- return /* @__PURE__ */ H("div", { className: "flex flex-col gap-[12px]", children: [
1731
- p && /* @__PURE__ */ k("p", { className: "text-[16px] leading-[24px] font-medium m-0", children: i(p, p) }),
1732
- (S.length === 0 || y) && /* @__PURE__ */ k(
1733
- bo,
1734
- {
1735
- hoverTitle: i(n, "Загрузить файл"),
1736
- handleChange: E,
1737
- types: o,
1738
- maxSize: r,
1739
- onSizeError: O,
1740
- onTypeError: x,
1741
- multiple: y,
1742
- ...v,
1743
- 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: [
1744
- /* @__PURE__ */ H(
1745
- "p",
1746
- {
1747
- className: $n(
1748
- "text-blackBG text-center lining-nums tabular-nums stacked-fractions",
1749
- "no-ligatures text-[16px] leading-[24px] m-0"
1750
- ),
1751
- children: [
1752
- i("academy.drop_file", "Перетащите файл"),
1753
- " ",
1754
- /* @__PURE__ */ k("span", { className: "text-greenLight m-0", children: i("academy.or_load", "или загрузите") })
1755
- ]
1756
- }
1757
- ),
1758
- /* @__PURE__ */ k("p", { className: "text-[13px] leading-[16px] text-center text-gray9 m-0", children: i("academy.max_size", {
1759
- size: r,
1760
- defaultValue: `Максимальный размер: ${r}MB`
1761
- }) })
1762
- ] }) })
1763
- }
1764
- ),
1765
- !!t && /* @__PURE__ */ k("div", { className: "text-red text-[14px] font-regular", children: i((t == null ? void 0 : t.message) || "", t == null ? void 0 : t.message) }),
1766
- !!l && /* @__PURE__ */ k("div", { className: "text-red text-[14px] font-regular", children: l }),
1767
- S.length > 0 && /* @__PURE__ */ k("div", { className: "flex flex-col gap-[8px]", children: S.map((u, b) => {
1768
- var h;
1769
- return /* @__PURE__ */ k(
1770
- "div",
1771
- {
1772
- className: "flex items-start justify-between p-[12px] border-b border-greyLight bg-white ",
1773
- children: /* @__PURE__ */ H("div", { className: "flex items-start gap-[16px]", children: [
1774
- /* @__PURE__ */ k(Dn, {}),
1775
- u instanceof File ? /* @__PURE__ */ H("div", { children: [
1776
- /* @__PURE__ */ k("p", { className: "text-[16px] font-medium leading-[24px] m-0", children: u == null ? void 0 : u.name }),
1777
- /* @__PURE__ */ k("span", { className: "text-[13px] leading-[16px] text-gray9", children: f(u == null ? void 0 : u.size) })
1778
- ] }) : /* @__PURE__ */ H("div", { children: [
1779
- /* @__PURE__ */ k("p", { className: "text-[16px] font-medium leading-[24px] m-0", children: i("tenders.Loaded", "Загружено") }),
1780
- /* @__PURE__ */ k("span", { className: "text-[13px] leading-[16px] text-gray9", children: (h = m(u)) == null ? void 0 : h.size })
1781
- ] })
1782
- ] })
1783
- },
1784
- b
1785
- );
1786
- }) })
1787
- ] });
1788
- }
1789
- );
1790
- wo.displayName = "FileLoader";
1791
- export {
1792
- wo as F,
1793
- nr as u
1794
- };