tcce-design-system-test 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,1185 @@
|
|
|
1
|
+
import { jsx as Ut } from "react/jsx-runtime";
|
|
2
|
+
import ie, { useDebugValue as Je, createElement as Xt, useRef as Kt, useContext as Zt } from "react";
|
|
3
|
+
var N = function() {
|
|
4
|
+
return N = Object.assign || function(t) {
|
|
5
|
+
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
6
|
+
r = arguments[n];
|
|
7
|
+
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
}, N.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
function U(e, t, r) {
|
|
13
|
+
if (r || arguments.length === 2) for (var n = 0, o = t.length, s; n < o; n++)
|
|
14
|
+
(s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
|
|
15
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
16
|
+
}
|
|
17
|
+
function Jt(e) {
|
|
18
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
19
|
+
return function(r) {
|
|
20
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
var Qt = /^((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)-.*))$/, er = /* @__PURE__ */ Jt(
|
|
24
|
+
function(e) {
|
|
25
|
+
return Qt.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
26
|
+
}
|
|
27
|
+
/* Z+1 */
|
|
28
|
+
), w = "-ms-", ae = "-moz-", h = "-webkit-", yt = "comm", xe = "rule", Ye = "decl", tr = "@import", vt = "@keyframes", rr = "@layer", wt = Math.abs, We = String.fromCharCode, ze = Object.assign;
|
|
29
|
+
function nr(e, t) {
|
|
30
|
+
return P(e, 0) ^ 45 ? (((t << 2 ^ P(e, 0)) << 2 ^ P(e, 1)) << 2 ^ P(e, 2)) << 2 ^ P(e, 3) : 0;
|
|
31
|
+
}
|
|
32
|
+
function bt(e) {
|
|
33
|
+
return e.trim();
|
|
34
|
+
}
|
|
35
|
+
function $(e, t) {
|
|
36
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
37
|
+
}
|
|
38
|
+
function u(e, t, r) {
|
|
39
|
+
return e.replace(t, r);
|
|
40
|
+
}
|
|
41
|
+
function me(e, t, r) {
|
|
42
|
+
return e.indexOf(t, r);
|
|
43
|
+
}
|
|
44
|
+
function P(e, t) {
|
|
45
|
+
return e.charCodeAt(t) | 0;
|
|
46
|
+
}
|
|
47
|
+
function X(e, t, r) {
|
|
48
|
+
return e.slice(t, r);
|
|
49
|
+
}
|
|
50
|
+
function T(e) {
|
|
51
|
+
return e.length;
|
|
52
|
+
}
|
|
53
|
+
function St(e) {
|
|
54
|
+
return e.length;
|
|
55
|
+
}
|
|
56
|
+
function se(e, t) {
|
|
57
|
+
return t.push(e), e;
|
|
58
|
+
}
|
|
59
|
+
function or(e, t) {
|
|
60
|
+
return e.map(t).join("");
|
|
61
|
+
}
|
|
62
|
+
function Qe(e, t) {
|
|
63
|
+
return e.filter(function(r) {
|
|
64
|
+
return !$(r, t);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
var Ee = 1, K = 1, kt = 0, I = 0, A = 0, ee = "";
|
|
68
|
+
function Ce(e, t, r, n, o, s, a, c) {
|
|
69
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: s, line: Ee, column: K, length: a, return: "", siblings: c };
|
|
70
|
+
}
|
|
71
|
+
function M(e, t) {
|
|
72
|
+
return ze(Ce("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
73
|
+
}
|
|
74
|
+
function q(e) {
|
|
75
|
+
for (; e.root; )
|
|
76
|
+
e = M(e.root, { children: [e] });
|
|
77
|
+
se(e, e.siblings);
|
|
78
|
+
}
|
|
79
|
+
function sr() {
|
|
80
|
+
return A;
|
|
81
|
+
}
|
|
82
|
+
function ar() {
|
|
83
|
+
return A = I > 0 ? P(ee, --I) : 0, K--, A === 10 && (K = 1, Ee--), A;
|
|
84
|
+
}
|
|
85
|
+
function _() {
|
|
86
|
+
return A = I < kt ? P(ee, I++) : 0, K++, A === 10 && (K = 1, Ee++), A;
|
|
87
|
+
}
|
|
88
|
+
function V() {
|
|
89
|
+
return P(ee, I);
|
|
90
|
+
}
|
|
91
|
+
function ge() {
|
|
92
|
+
return I;
|
|
93
|
+
}
|
|
94
|
+
function Ae(e, t) {
|
|
95
|
+
return X(ee, e, t);
|
|
96
|
+
}
|
|
97
|
+
function Me(e) {
|
|
98
|
+
switch (e) {
|
|
99
|
+
// \0 \t \n \r \s whitespace token
|
|
100
|
+
case 0:
|
|
101
|
+
case 9:
|
|
102
|
+
case 10:
|
|
103
|
+
case 13:
|
|
104
|
+
case 32:
|
|
105
|
+
return 5;
|
|
106
|
+
// ! + , / > @ ~ isolate token
|
|
107
|
+
case 33:
|
|
108
|
+
case 43:
|
|
109
|
+
case 44:
|
|
110
|
+
case 47:
|
|
111
|
+
case 62:
|
|
112
|
+
case 64:
|
|
113
|
+
case 126:
|
|
114
|
+
// ; { } breakpoint token
|
|
115
|
+
case 59:
|
|
116
|
+
case 123:
|
|
117
|
+
case 125:
|
|
118
|
+
return 4;
|
|
119
|
+
// : accompanied token
|
|
120
|
+
case 58:
|
|
121
|
+
return 3;
|
|
122
|
+
// " ' ( [ opening delimit token
|
|
123
|
+
case 34:
|
|
124
|
+
case 39:
|
|
125
|
+
case 40:
|
|
126
|
+
case 91:
|
|
127
|
+
return 2;
|
|
128
|
+
// ) ] closing delimit token
|
|
129
|
+
case 41:
|
|
130
|
+
case 93:
|
|
131
|
+
return 1;
|
|
132
|
+
}
|
|
133
|
+
return 0;
|
|
134
|
+
}
|
|
135
|
+
function ir(e) {
|
|
136
|
+
return Ee = K = 1, kt = T(ee = e), I = 0, [];
|
|
137
|
+
}
|
|
138
|
+
function cr(e) {
|
|
139
|
+
return ee = "", e;
|
|
140
|
+
}
|
|
141
|
+
function Te(e) {
|
|
142
|
+
return bt(Ae(I - 1, Le(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
143
|
+
}
|
|
144
|
+
function ur(e) {
|
|
145
|
+
for (; (A = V()) && A < 33; )
|
|
146
|
+
_();
|
|
147
|
+
return Me(e) > 2 || Me(A) > 3 ? "" : " ";
|
|
148
|
+
}
|
|
149
|
+
function lr(e, t) {
|
|
150
|
+
for (; --t && _() && !(A < 48 || A > 102 || A > 57 && A < 65 || A > 70 && A < 97); )
|
|
151
|
+
;
|
|
152
|
+
return Ae(e, ge() + (t < 6 && V() == 32 && _() == 32));
|
|
153
|
+
}
|
|
154
|
+
function Le(e) {
|
|
155
|
+
for (; _(); )
|
|
156
|
+
switch (A) {
|
|
157
|
+
// ] ) " '
|
|
158
|
+
case e:
|
|
159
|
+
return I;
|
|
160
|
+
// " '
|
|
161
|
+
case 34:
|
|
162
|
+
case 39:
|
|
163
|
+
e !== 34 && e !== 39 && Le(A);
|
|
164
|
+
break;
|
|
165
|
+
// (
|
|
166
|
+
case 40:
|
|
167
|
+
e === 41 && Le(e);
|
|
168
|
+
break;
|
|
169
|
+
// \
|
|
170
|
+
case 92:
|
|
171
|
+
_();
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
return I;
|
|
175
|
+
}
|
|
176
|
+
function pr(e, t) {
|
|
177
|
+
for (; _() && e + A !== 57; )
|
|
178
|
+
if (e + A === 84 && V() === 47)
|
|
179
|
+
break;
|
|
180
|
+
return "/*" + Ae(t, I - 1) + "*" + We(e === 47 ? e : _());
|
|
181
|
+
}
|
|
182
|
+
function dr(e) {
|
|
183
|
+
for (; !Me(V()); )
|
|
184
|
+
_();
|
|
185
|
+
return Ae(e, I);
|
|
186
|
+
}
|
|
187
|
+
function fr(e) {
|
|
188
|
+
return cr(ye("", null, null, null, [""], e = ir(e), 0, [0], e));
|
|
189
|
+
}
|
|
190
|
+
function ye(e, t, r, n, o, s, a, c, i) {
|
|
191
|
+
for (var y = 0, m = 0, d = a, g = 0, f = 0, S = 0, E = 1, O = 1, C = 1, k = 0, v = "", b = o, x = s, p = n, l = v; O; )
|
|
192
|
+
switch (S = k, k = _()) {
|
|
193
|
+
// (
|
|
194
|
+
case 40:
|
|
195
|
+
if (S != 108 && P(l, d - 1) == 58) {
|
|
196
|
+
me(l += u(Te(k), "&", "&\f"), "&\f", wt(y ? c[y - 1] : 0)) != -1 && (C = -1);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
// " ' [
|
|
200
|
+
case 34:
|
|
201
|
+
case 39:
|
|
202
|
+
case 91:
|
|
203
|
+
l += Te(k);
|
|
204
|
+
break;
|
|
205
|
+
// \t \n \r \s
|
|
206
|
+
case 9:
|
|
207
|
+
case 10:
|
|
208
|
+
case 13:
|
|
209
|
+
case 32:
|
|
210
|
+
l += ur(S);
|
|
211
|
+
break;
|
|
212
|
+
// \
|
|
213
|
+
case 92:
|
|
214
|
+
l += lr(ge() - 1, 7);
|
|
215
|
+
continue;
|
|
216
|
+
// /
|
|
217
|
+
case 47:
|
|
218
|
+
switch (V()) {
|
|
219
|
+
case 42:
|
|
220
|
+
case 47:
|
|
221
|
+
se(hr(pr(_(), ge()), t, r, i), i);
|
|
222
|
+
break;
|
|
223
|
+
default:
|
|
224
|
+
l += "/";
|
|
225
|
+
}
|
|
226
|
+
break;
|
|
227
|
+
// {
|
|
228
|
+
case 123 * E:
|
|
229
|
+
c[y++] = T(l) * C;
|
|
230
|
+
// } ; \0
|
|
231
|
+
case 125 * E:
|
|
232
|
+
case 59:
|
|
233
|
+
case 0:
|
|
234
|
+
switch (k) {
|
|
235
|
+
// \0 }
|
|
236
|
+
case 0:
|
|
237
|
+
case 125:
|
|
238
|
+
O = 0;
|
|
239
|
+
// ;
|
|
240
|
+
case 59 + m:
|
|
241
|
+
C == -1 && (l = u(l, /\f/g, "")), f > 0 && T(l) - d && se(f > 32 ? tt(l + ";", n, r, d - 1, i) : tt(u(l, " ", "") + ";", n, r, d - 2, i), i);
|
|
242
|
+
break;
|
|
243
|
+
// @ ;
|
|
244
|
+
case 59:
|
|
245
|
+
l += ";";
|
|
246
|
+
// { rule/at-rule
|
|
247
|
+
default:
|
|
248
|
+
if (se(p = et(l, t, r, y, m, o, c, v, b = [], x = [], d, s), s), k === 123)
|
|
249
|
+
if (m === 0)
|
|
250
|
+
ye(l, t, p, p, b, s, d, c, x);
|
|
251
|
+
else
|
|
252
|
+
switch (g === 99 && P(l, 3) === 110 ? 100 : g) {
|
|
253
|
+
// d l m s
|
|
254
|
+
case 100:
|
|
255
|
+
case 108:
|
|
256
|
+
case 109:
|
|
257
|
+
case 115:
|
|
258
|
+
ye(e, p, p, n && se(et(e, p, p, 0, 0, o, c, v, o, b = [], d, x), x), o, x, d, c, n ? b : x);
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
ye(l, p, p, p, [""], x, 0, c, x);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
y = m = f = 0, E = C = 1, v = l = "", d = a;
|
|
265
|
+
break;
|
|
266
|
+
// :
|
|
267
|
+
case 58:
|
|
268
|
+
d = 1 + T(l), f = S;
|
|
269
|
+
default:
|
|
270
|
+
if (E < 1) {
|
|
271
|
+
if (k == 123)
|
|
272
|
+
--E;
|
|
273
|
+
else if (k == 125 && E++ == 0 && ar() == 125)
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
switch (l += We(k), k * E) {
|
|
277
|
+
// &
|
|
278
|
+
case 38:
|
|
279
|
+
C = m > 0 ? 1 : (l += "\f", -1);
|
|
280
|
+
break;
|
|
281
|
+
// ,
|
|
282
|
+
case 44:
|
|
283
|
+
c[y++] = (T(l) - 1) * C, C = 1;
|
|
284
|
+
break;
|
|
285
|
+
// @
|
|
286
|
+
case 64:
|
|
287
|
+
V() === 45 && (l += Te(_())), g = V(), m = d = T(v = l += dr(ge())), k++;
|
|
288
|
+
break;
|
|
289
|
+
// -
|
|
290
|
+
case 45:
|
|
291
|
+
S === 45 && T(l) == 2 && (E = 0);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return s;
|
|
295
|
+
}
|
|
296
|
+
function et(e, t, r, n, o, s, a, c, i, y, m, d) {
|
|
297
|
+
for (var g = o - 1, f = o === 0 ? s : [""], S = St(f), E = 0, O = 0, C = 0; E < n; ++E)
|
|
298
|
+
for (var k = 0, v = X(e, g + 1, g = wt(O = a[E])), b = e; k < S; ++k)
|
|
299
|
+
(b = bt(O > 0 ? f[k] + " " + v : u(v, /&\f/g, f[k]))) && (i[C++] = b);
|
|
300
|
+
return Ce(e, t, r, o === 0 ? xe : c, i, y, m, d);
|
|
301
|
+
}
|
|
302
|
+
function hr(e, t, r, n) {
|
|
303
|
+
return Ce(e, t, r, yt, We(sr()), X(e, 2, -2), 0, n);
|
|
304
|
+
}
|
|
305
|
+
function tt(e, t, r, n, o) {
|
|
306
|
+
return Ce(e, t, r, Ye, X(e, 0, n), X(e, n + 1, -1), n, o);
|
|
307
|
+
}
|
|
308
|
+
function xt(e, t, r) {
|
|
309
|
+
switch (nr(e, t)) {
|
|
310
|
+
// color-adjust
|
|
311
|
+
case 5103:
|
|
312
|
+
return h + "print-" + e + e;
|
|
313
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
314
|
+
case 5737:
|
|
315
|
+
case 4201:
|
|
316
|
+
case 3177:
|
|
317
|
+
case 3433:
|
|
318
|
+
case 1641:
|
|
319
|
+
case 4457:
|
|
320
|
+
case 2921:
|
|
321
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
322
|
+
case 5572:
|
|
323
|
+
case 6356:
|
|
324
|
+
case 5844:
|
|
325
|
+
case 3191:
|
|
326
|
+
case 6645:
|
|
327
|
+
case 3005:
|
|
328
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
329
|
+
case 6391:
|
|
330
|
+
case 5879:
|
|
331
|
+
case 5623:
|
|
332
|
+
case 6135:
|
|
333
|
+
case 4599:
|
|
334
|
+
case 4855:
|
|
335
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
336
|
+
case 4215:
|
|
337
|
+
case 6389:
|
|
338
|
+
case 5109:
|
|
339
|
+
case 5365:
|
|
340
|
+
case 5621:
|
|
341
|
+
case 3829:
|
|
342
|
+
return h + e + e;
|
|
343
|
+
// tab-size
|
|
344
|
+
case 4789:
|
|
345
|
+
return ae + e + e;
|
|
346
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
347
|
+
case 5349:
|
|
348
|
+
case 4246:
|
|
349
|
+
case 4810:
|
|
350
|
+
case 6968:
|
|
351
|
+
case 2756:
|
|
352
|
+
return h + e + ae + e + w + e + e;
|
|
353
|
+
// writing-mode
|
|
354
|
+
case 5936:
|
|
355
|
+
switch (P(e, t + 11)) {
|
|
356
|
+
// vertical-l(r)
|
|
357
|
+
case 114:
|
|
358
|
+
return h + e + w + u(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
359
|
+
// vertical-r(l)
|
|
360
|
+
case 108:
|
|
361
|
+
return h + e + w + u(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
362
|
+
// horizontal(-)tb
|
|
363
|
+
case 45:
|
|
364
|
+
return h + e + w + u(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
365
|
+
}
|
|
366
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
367
|
+
case 6828:
|
|
368
|
+
case 4268:
|
|
369
|
+
case 2903:
|
|
370
|
+
return h + e + w + e + e;
|
|
371
|
+
// order
|
|
372
|
+
case 6165:
|
|
373
|
+
return h + e + w + "flex-" + e + e;
|
|
374
|
+
// align-items
|
|
375
|
+
case 5187:
|
|
376
|
+
return h + e + u(e, /(\w+).+(:[^]+)/, h + "box-$1$2" + w + "flex-$1$2") + e;
|
|
377
|
+
// align-self
|
|
378
|
+
case 5443:
|
|
379
|
+
return h + e + w + "flex-item-" + u(e, /flex-|-self/g, "") + ($(e, /flex-|baseline/) ? "" : w + "grid-row-" + u(e, /flex-|-self/g, "")) + e;
|
|
380
|
+
// align-content
|
|
381
|
+
case 4675:
|
|
382
|
+
return h + e + w + "flex-line-pack" + u(e, /align-content|flex-|-self/g, "") + e;
|
|
383
|
+
// flex-shrink
|
|
384
|
+
case 5548:
|
|
385
|
+
return h + e + w + u(e, "shrink", "negative") + e;
|
|
386
|
+
// flex-basis
|
|
387
|
+
case 5292:
|
|
388
|
+
return h + e + w + u(e, "basis", "preferred-size") + e;
|
|
389
|
+
// flex-grow
|
|
390
|
+
case 6060:
|
|
391
|
+
return h + "box-" + u(e, "-grow", "") + h + e + w + u(e, "grow", "positive") + e;
|
|
392
|
+
// transition
|
|
393
|
+
case 4554:
|
|
394
|
+
return h + u(e, /([^-])(transform)/g, "$1" + h + "$2") + e;
|
|
395
|
+
// cursor
|
|
396
|
+
case 6187:
|
|
397
|
+
return u(u(u(e, /(zoom-|grab)/, h + "$1"), /(image-set)/, h + "$1"), e, "") + e;
|
|
398
|
+
// background, background-image
|
|
399
|
+
case 5495:
|
|
400
|
+
case 3959:
|
|
401
|
+
return u(e, /(image-set\([^]*)/, h + "$1$`$1");
|
|
402
|
+
// justify-content
|
|
403
|
+
case 4968:
|
|
404
|
+
return u(u(e, /(.+:)(flex-)?(.*)/, h + "box-pack:$3" + w + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + h + e + e;
|
|
405
|
+
// justify-self
|
|
406
|
+
case 4200:
|
|
407
|
+
if (!$(e, /flex-|baseline/)) return w + "grid-column-align" + X(e, t) + e;
|
|
408
|
+
break;
|
|
409
|
+
// grid-template-(columns|rows)
|
|
410
|
+
case 2592:
|
|
411
|
+
case 3360:
|
|
412
|
+
return w + u(e, "template-", "") + e;
|
|
413
|
+
// grid-(row|column)-start
|
|
414
|
+
case 4384:
|
|
415
|
+
case 3616:
|
|
416
|
+
return r && r.some(function(n, o) {
|
|
417
|
+
return t = o, $(n.props, /grid-\w+-end/);
|
|
418
|
+
}) ? ~me(e + (r = r[t].value), "span", 0) ? e : w + u(e, "-start", "") + e + w + "grid-row-span:" + (~me(r, "span", 0) ? $(r, /\d+/) : +$(r, /\d+/) - +$(e, /\d+/)) + ";" : w + u(e, "-start", "") + e;
|
|
419
|
+
// grid-(row|column)-end
|
|
420
|
+
case 4896:
|
|
421
|
+
case 4128:
|
|
422
|
+
return r && r.some(function(n) {
|
|
423
|
+
return $(n.props, /grid-\w+-start/);
|
|
424
|
+
}) ? e : w + u(u(e, "-end", "-span"), "span ", "") + e;
|
|
425
|
+
// (margin|padding)-inline-(start|end)
|
|
426
|
+
case 4095:
|
|
427
|
+
case 3583:
|
|
428
|
+
case 4068:
|
|
429
|
+
case 2532:
|
|
430
|
+
return u(e, /(.+)-inline(.+)/, h + "$1$2") + e;
|
|
431
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
432
|
+
case 8116:
|
|
433
|
+
case 7059:
|
|
434
|
+
case 5753:
|
|
435
|
+
case 5535:
|
|
436
|
+
case 5445:
|
|
437
|
+
case 5701:
|
|
438
|
+
case 4933:
|
|
439
|
+
case 4677:
|
|
440
|
+
case 5533:
|
|
441
|
+
case 5789:
|
|
442
|
+
case 5021:
|
|
443
|
+
case 4765:
|
|
444
|
+
if (T(e) - 1 - t > 6)
|
|
445
|
+
switch (P(e, t + 1)) {
|
|
446
|
+
// (m)ax-content, (m)in-content
|
|
447
|
+
case 109:
|
|
448
|
+
if (P(e, t + 4) !== 45)
|
|
449
|
+
break;
|
|
450
|
+
// (f)ill-available, (f)it-content
|
|
451
|
+
case 102:
|
|
452
|
+
return u(e, /(.+:)(.+)-([^]+)/, "$1" + h + "$2-$3$1" + ae + (P(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
453
|
+
// (s)tretch
|
|
454
|
+
case 115:
|
|
455
|
+
return ~me(e, "stretch", 0) ? xt(u(e, "stretch", "fill-available"), t, r) + e : e;
|
|
456
|
+
}
|
|
457
|
+
break;
|
|
458
|
+
// grid-(column|row)
|
|
459
|
+
case 5152:
|
|
460
|
+
case 5920:
|
|
461
|
+
return u(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, s, a, c, i, y) {
|
|
462
|
+
return w + o + ":" + s + y + (a ? w + o + "-span:" + (c ? i : +i - +s) + y : "") + e;
|
|
463
|
+
});
|
|
464
|
+
// position: sticky
|
|
465
|
+
case 4949:
|
|
466
|
+
if (P(e, t + 6) === 121)
|
|
467
|
+
return u(e, ":", ":" + h) + e;
|
|
468
|
+
break;
|
|
469
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
470
|
+
case 6444:
|
|
471
|
+
switch (P(e, P(e, 14) === 45 ? 18 : 11)) {
|
|
472
|
+
// (inline-)?fle(x)
|
|
473
|
+
case 120:
|
|
474
|
+
return u(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + h + (P(e, 14) === 45 ? "inline-" : "") + "box$3$1" + h + "$2$3$1" + w + "$2box$3") + e;
|
|
475
|
+
// (inline-)?gri(d)
|
|
476
|
+
case 100:
|
|
477
|
+
return u(e, ":", ":" + w) + e;
|
|
478
|
+
}
|
|
479
|
+
break;
|
|
480
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
481
|
+
case 5719:
|
|
482
|
+
case 2647:
|
|
483
|
+
case 2135:
|
|
484
|
+
case 3927:
|
|
485
|
+
case 2391:
|
|
486
|
+
return u(e, "scroll-", "scroll-snap-") + e;
|
|
487
|
+
}
|
|
488
|
+
return e;
|
|
489
|
+
}
|
|
490
|
+
function be(e, t) {
|
|
491
|
+
for (var r = "", n = 0; n < e.length; n++)
|
|
492
|
+
r += t(e[n], n, e, t) || "";
|
|
493
|
+
return r;
|
|
494
|
+
}
|
|
495
|
+
function mr(e, t, r, n) {
|
|
496
|
+
switch (e.type) {
|
|
497
|
+
case rr:
|
|
498
|
+
if (e.children.length) break;
|
|
499
|
+
case tr:
|
|
500
|
+
case Ye:
|
|
501
|
+
return e.return = e.return || e.value;
|
|
502
|
+
case yt:
|
|
503
|
+
return "";
|
|
504
|
+
case vt:
|
|
505
|
+
return e.return = e.value + "{" + be(e.children, n) + "}";
|
|
506
|
+
case xe:
|
|
507
|
+
if (!T(e.value = e.props.join(","))) return "";
|
|
508
|
+
}
|
|
509
|
+
return T(r = be(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
510
|
+
}
|
|
511
|
+
function gr(e) {
|
|
512
|
+
var t = St(e);
|
|
513
|
+
return function(r, n, o, s) {
|
|
514
|
+
for (var a = "", c = 0; c < t; c++)
|
|
515
|
+
a += e[c](r, n, o, s) || "";
|
|
516
|
+
return a;
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
function yr(e) {
|
|
520
|
+
return function(t) {
|
|
521
|
+
t.root || (t = t.return) && e(t);
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
function vr(e, t, r, n) {
|
|
525
|
+
if (e.length > -1 && !e.return)
|
|
526
|
+
switch (e.type) {
|
|
527
|
+
case Ye:
|
|
528
|
+
e.return = xt(e.value, e.length, r);
|
|
529
|
+
return;
|
|
530
|
+
case vt:
|
|
531
|
+
return be([M(e, { value: u(e.value, "@", "@" + h) })], n);
|
|
532
|
+
case xe:
|
|
533
|
+
if (e.length)
|
|
534
|
+
return or(r = e.props, function(o) {
|
|
535
|
+
switch ($(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
536
|
+
// :read-(only|write)
|
|
537
|
+
case ":read-only":
|
|
538
|
+
case ":read-write":
|
|
539
|
+
q(M(e, { props: [u(o, /:(read-\w+)/, ":" + ae + "$1")] })), q(M(e, { props: [o] })), ze(e, { props: Qe(r, n) });
|
|
540
|
+
break;
|
|
541
|
+
// :placeholder
|
|
542
|
+
case "::placeholder":
|
|
543
|
+
q(M(e, { props: [u(o, /:(plac\w+)/, ":" + h + "input-$1")] })), q(M(e, { props: [u(o, /:(plac\w+)/, ":" + ae + "$1")] })), q(M(e, { props: [u(o, /:(plac\w+)/, w + "input-$1")] })), q(M(e, { props: [o] })), ze(e, { props: Qe(r, n) });
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
return "";
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
var wr = {
|
|
551
|
+
animationIterationCount: 1,
|
|
552
|
+
aspectRatio: 1,
|
|
553
|
+
borderImageOutset: 1,
|
|
554
|
+
borderImageSlice: 1,
|
|
555
|
+
borderImageWidth: 1,
|
|
556
|
+
boxFlex: 1,
|
|
557
|
+
boxFlexGroup: 1,
|
|
558
|
+
boxOrdinalGroup: 1,
|
|
559
|
+
columnCount: 1,
|
|
560
|
+
columns: 1,
|
|
561
|
+
flex: 1,
|
|
562
|
+
flexGrow: 1,
|
|
563
|
+
flexPositive: 1,
|
|
564
|
+
flexShrink: 1,
|
|
565
|
+
flexNegative: 1,
|
|
566
|
+
flexOrder: 1,
|
|
567
|
+
gridRow: 1,
|
|
568
|
+
gridRowEnd: 1,
|
|
569
|
+
gridRowSpan: 1,
|
|
570
|
+
gridRowStart: 1,
|
|
571
|
+
gridColumn: 1,
|
|
572
|
+
gridColumnEnd: 1,
|
|
573
|
+
gridColumnSpan: 1,
|
|
574
|
+
gridColumnStart: 1,
|
|
575
|
+
msGridRow: 1,
|
|
576
|
+
msGridRowSpan: 1,
|
|
577
|
+
msGridColumn: 1,
|
|
578
|
+
msGridColumnSpan: 1,
|
|
579
|
+
fontWeight: 1,
|
|
580
|
+
lineHeight: 1,
|
|
581
|
+
opacity: 1,
|
|
582
|
+
order: 1,
|
|
583
|
+
orphans: 1,
|
|
584
|
+
tabSize: 1,
|
|
585
|
+
widows: 1,
|
|
586
|
+
zIndex: 1,
|
|
587
|
+
zoom: 1,
|
|
588
|
+
WebkitLineClamp: 1,
|
|
589
|
+
// SVG-related properties
|
|
590
|
+
fillOpacity: 1,
|
|
591
|
+
floodOpacity: 1,
|
|
592
|
+
stopOpacity: 1,
|
|
593
|
+
strokeDasharray: 1,
|
|
594
|
+
strokeDashoffset: 1,
|
|
595
|
+
strokeMiterlimit: 1,
|
|
596
|
+
strokeOpacity: 1,
|
|
597
|
+
strokeWidth: 1
|
|
598
|
+
}, H = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Et = "active", Ct = "data-styled-version", Pe = "6.1.19", qe = `/*!sc*/
|
|
599
|
+
`, Se = typeof window < "u" && typeof document < "u", br = !!(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, pe = /* @__PURE__ */ new Set(), Sr = function(e, t) {
|
|
600
|
+
if (process.env.NODE_ENV !== "production") {
|
|
601
|
+
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
602
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
603
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
604
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
605
|
+
`, o = console.error;
|
|
606
|
+
try {
|
|
607
|
+
var s = !0;
|
|
608
|
+
console.error = function(a) {
|
|
609
|
+
for (var c = [], i = 1; i < arguments.length; i++) c[i - 1] = arguments[i];
|
|
610
|
+
rt.test(a) ? (s = !1, pe.delete(n)) : o.apply(void 0, U([a], c, !1));
|
|
611
|
+
}, Kt(), s && !pe.has(n) && (console.warn(n), pe.add(n));
|
|
612
|
+
} catch (a) {
|
|
613
|
+
rt.test(a.message) && pe.delete(n);
|
|
614
|
+
} finally {
|
|
615
|
+
console.error = o;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}, Ne = Object.freeze([]), Z = Object.freeze({});
|
|
619
|
+
function kr(e, t, r) {
|
|
620
|
+
return r === void 0 && (r = Z), e.theme !== r.theme && e.theme || t || r.theme;
|
|
621
|
+
}
|
|
622
|
+
var Fe = /* @__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"]), xr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Er = /(^-|-$)/g;
|
|
623
|
+
function nt(e) {
|
|
624
|
+
return e.replace(xr, "-").replace(Er, "");
|
|
625
|
+
}
|
|
626
|
+
var Cr = /(a)(d)/gi, de = 52, ot = function(e) {
|
|
627
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
628
|
+
};
|
|
629
|
+
function Be(e) {
|
|
630
|
+
var t, r = "";
|
|
631
|
+
for (t = Math.abs(e); t > de; t = t / de | 0) r = ot(t % de) + r;
|
|
632
|
+
return (ot(t % de) + r).replace(Cr, "$1-$2");
|
|
633
|
+
}
|
|
634
|
+
var De, At = 5381, F = function(e, t) {
|
|
635
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
636
|
+
return e;
|
|
637
|
+
}, Pt = function(e) {
|
|
638
|
+
return F(At, e);
|
|
639
|
+
};
|
|
640
|
+
function Ar(e) {
|
|
641
|
+
return Be(Pt(e) >>> 0);
|
|
642
|
+
}
|
|
643
|
+
function Nt(e) {
|
|
644
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
645
|
+
}
|
|
646
|
+
function $e(e) {
|
|
647
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
648
|
+
}
|
|
649
|
+
var Ot = typeof Symbol == "function" && Symbol.for, Rt = Ot ? Symbol.for("react.memo") : 60115, Pr = Ot ? Symbol.for("react.forward_ref") : 60112, Nr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Or = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, It = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Rr = ((De = {})[Pr] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, De[Rt] = It, De);
|
|
650
|
+
function st(e) {
|
|
651
|
+
return ("type" in (t = e) && t.type.$$typeof) === Rt ? It : "$$typeof" in e ? Rr[e.$$typeof] : Nr;
|
|
652
|
+
var t;
|
|
653
|
+
}
|
|
654
|
+
var Ir = Object.defineProperty, _r = Object.getOwnPropertyNames, at = Object.getOwnPropertySymbols, Tr = Object.getOwnPropertyDescriptor, Dr = Object.getPrototypeOf, it = Object.prototype;
|
|
655
|
+
function _t(e, t, r) {
|
|
656
|
+
if (typeof t != "string") {
|
|
657
|
+
if (it) {
|
|
658
|
+
var n = Dr(t);
|
|
659
|
+
n && n !== it && _t(e, n, r);
|
|
660
|
+
}
|
|
661
|
+
var o = _r(t);
|
|
662
|
+
at && (o = o.concat(at(t)));
|
|
663
|
+
for (var s = st(e), a = st(t), c = 0; c < o.length; ++c) {
|
|
664
|
+
var i = o[c];
|
|
665
|
+
if (!(i in Or || r && r[i] || a && i in a || s && i in s)) {
|
|
666
|
+
var y = Tr(t, i);
|
|
667
|
+
try {
|
|
668
|
+
Ir(e, i, y);
|
|
669
|
+
} catch {
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return e;
|
|
675
|
+
}
|
|
676
|
+
function J(e) {
|
|
677
|
+
return typeof e == "function";
|
|
678
|
+
}
|
|
679
|
+
function Ue(e) {
|
|
680
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
681
|
+
}
|
|
682
|
+
function B(e, t) {
|
|
683
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
684
|
+
}
|
|
685
|
+
function ct(e, t) {
|
|
686
|
+
if (e.length === 0) return "";
|
|
687
|
+
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
688
|
+
return r;
|
|
689
|
+
}
|
|
690
|
+
function Q(e) {
|
|
691
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
692
|
+
}
|
|
693
|
+
function Ve(e, t, r) {
|
|
694
|
+
if (r === void 0 && (r = !1), !r && !Q(e) && !Array.isArray(e)) return t;
|
|
695
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = Ve(e[n], t[n]);
|
|
696
|
+
else if (Q(t)) for (var n in t) e[n] = Ve(e[n], t[n]);
|
|
697
|
+
return e;
|
|
698
|
+
}
|
|
699
|
+
function Xe(e, t) {
|
|
700
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
701
|
+
}
|
|
702
|
+
var $r = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
703
|
+
|
|
704
|
+
`, 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.
|
|
705
|
+
|
|
706
|
+
- Are you trying to reuse it across renders?
|
|
707
|
+
- Are you accidentally calling collectStyles twice?
|
|
708
|
+
|
|
709
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
710
|
+
|
|
711
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
712
|
+
|
|
713
|
+
- Does this error occur on the client and is your target falsy?
|
|
714
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
715
|
+
|
|
716
|
+
`, 5: `The clone method cannot be used on the client!
|
|
717
|
+
|
|
718
|
+
- Are you running in a client-like environment on the server?
|
|
719
|
+
- Are you trying to run SSR on the client?
|
|
720
|
+
|
|
721
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
722
|
+
|
|
723
|
+
- Are you using a custom target that isn't mounted?
|
|
724
|
+
- Does your document not have a valid head element?
|
|
725
|
+
- Have you accidentally removed a style tag manually?
|
|
726
|
+
|
|
727
|
+
`, 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.
|
|
728
|
+
|
|
729
|
+
`, 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
|
|
730
|
+
|
|
731
|
+
`, 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.
|
|
732
|
+
|
|
733
|
+
`, 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.
|
|
734
|
+
|
|
735
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
736
|
+
|
|
737
|
+
`, 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.
|
|
738
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
739
|
+
as for instance in your render method then you may be running into this limitation.
|
|
740
|
+
|
|
741
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
742
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
743
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
744
|
+
function jr() {
|
|
745
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
746
|
+
for (var r = e[0], n = [], o = 1, s = e.length; o < s; o += 1) n.push(e[o]);
|
|
747
|
+
return n.forEach(function(a) {
|
|
748
|
+
r = r.replace(/%[a-z]/, a);
|
|
749
|
+
}), r;
|
|
750
|
+
}
|
|
751
|
+
function te(e) {
|
|
752
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
753
|
+
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(jr.apply(void 0, U([$r[e]], t, !1)).trim());
|
|
754
|
+
}
|
|
755
|
+
var zr = (function() {
|
|
756
|
+
function e(t) {
|
|
757
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
758
|
+
}
|
|
759
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
760
|
+
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
761
|
+
return r;
|
|
762
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
763
|
+
if (t >= this.groupSizes.length) {
|
|
764
|
+
for (var n = this.groupSizes, o = n.length, s = o; t >= s; ) if ((s <<= 1) < 0) throw te(16, "".concat(t));
|
|
765
|
+
this.groupSizes = new Uint32Array(s), this.groupSizes.set(n), this.length = s;
|
|
766
|
+
for (var a = o; a < s; a++) this.groupSizes[a] = 0;
|
|
767
|
+
}
|
|
768
|
+
for (var c = this.indexOfGroup(t + 1), i = (a = 0, r.length); a < i; a++) this.tag.insertRule(c, r[a]) && (this.groupSizes[t]++, c++);
|
|
769
|
+
}, e.prototype.clearGroup = function(t) {
|
|
770
|
+
if (t < this.length) {
|
|
771
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
772
|
+
this.groupSizes[t] = 0;
|
|
773
|
+
for (var s = n; s < o; s++) this.tag.deleteRule(n);
|
|
774
|
+
}
|
|
775
|
+
}, e.prototype.getGroup = function(t) {
|
|
776
|
+
var r = "";
|
|
777
|
+
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
778
|
+
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), s = o + n, a = o; a < s; a++) r += "".concat(this.tag.getRule(a)).concat(qe);
|
|
779
|
+
return r;
|
|
780
|
+
}, e;
|
|
781
|
+
})(), Mr = 1 << 30, ve = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Map(), we = 1, fe = function(e) {
|
|
782
|
+
if (ve.has(e)) return ve.get(e);
|
|
783
|
+
for (; ke.has(we); ) we++;
|
|
784
|
+
var t = we++;
|
|
785
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Mr)) throw te(16, "".concat(t));
|
|
786
|
+
return ve.set(e, t), ke.set(t, e), t;
|
|
787
|
+
}, Lr = function(e, t) {
|
|
788
|
+
we = t + 1, ve.set(e, t), ke.set(t, e);
|
|
789
|
+
}, Fr = "style[".concat(H, "][").concat(Ct, '="').concat(Pe, '"]'), Br = new RegExp("^".concat(H, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), Vr = function(e, t, r) {
|
|
790
|
+
for (var n, o = r.split(","), s = 0, a = o.length; s < a; s++) (n = o[s]) && e.registerName(t, n);
|
|
791
|
+
}, Gr = function(e, t) {
|
|
792
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(qe), o = [], s = 0, a = n.length; s < a; s++) {
|
|
793
|
+
var c = n[s].trim();
|
|
794
|
+
if (c) {
|
|
795
|
+
var i = c.match(Br);
|
|
796
|
+
if (i) {
|
|
797
|
+
var y = 0 | parseInt(i[1], 10), m = i[2];
|
|
798
|
+
y !== 0 && (Lr(m, y), Vr(e, m, i[3]), e.getTag().insertRules(y, o)), o.length = 0;
|
|
799
|
+
} else o.push(c);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}, ut = function(e) {
|
|
803
|
+
for (var t = document.querySelectorAll(Fr), r = 0, n = t.length; r < n; r++) {
|
|
804
|
+
var o = t[r];
|
|
805
|
+
o && o.getAttribute(H) !== Et && (Gr(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
806
|
+
}
|
|
807
|
+
};
|
|
808
|
+
function Hr() {
|
|
809
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
810
|
+
}
|
|
811
|
+
var Tt = function(e) {
|
|
812
|
+
var t = document.head, r = e || t, n = document.createElement("style"), o = (function(c) {
|
|
813
|
+
var i = Array.from(c.querySelectorAll("style[".concat(H, "]")));
|
|
814
|
+
return i[i.length - 1];
|
|
815
|
+
})(r), s = o !== void 0 ? o.nextSibling : null;
|
|
816
|
+
n.setAttribute(H, Et), n.setAttribute(Ct, Pe);
|
|
817
|
+
var a = Hr();
|
|
818
|
+
return a && n.setAttribute("nonce", a), r.insertBefore(n, s), n;
|
|
819
|
+
}, Yr = (function() {
|
|
820
|
+
function e(t) {
|
|
821
|
+
this.element = Tt(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
822
|
+
if (r.sheet) return r.sheet;
|
|
823
|
+
for (var n = document.styleSheets, o = 0, s = n.length; o < s; o++) {
|
|
824
|
+
var a = n[o];
|
|
825
|
+
if (a.ownerNode === r) return a;
|
|
826
|
+
}
|
|
827
|
+
throw te(17);
|
|
828
|
+
})(this.element), this.length = 0;
|
|
829
|
+
}
|
|
830
|
+
return e.prototype.insertRule = function(t, r) {
|
|
831
|
+
try {
|
|
832
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
833
|
+
} catch {
|
|
834
|
+
return !1;
|
|
835
|
+
}
|
|
836
|
+
}, e.prototype.deleteRule = function(t) {
|
|
837
|
+
this.sheet.deleteRule(t), this.length--;
|
|
838
|
+
}, e.prototype.getRule = function(t) {
|
|
839
|
+
var r = this.sheet.cssRules[t];
|
|
840
|
+
return r && r.cssText ? r.cssText : "";
|
|
841
|
+
}, e;
|
|
842
|
+
})(), Wr = (function() {
|
|
843
|
+
function e(t) {
|
|
844
|
+
this.element = Tt(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
845
|
+
}
|
|
846
|
+
return e.prototype.insertRule = function(t, r) {
|
|
847
|
+
if (t <= this.length && t >= 0) {
|
|
848
|
+
var n = document.createTextNode(r);
|
|
849
|
+
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
850
|
+
}
|
|
851
|
+
return !1;
|
|
852
|
+
}, e.prototype.deleteRule = function(t) {
|
|
853
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
854
|
+
}, e.prototype.getRule = function(t) {
|
|
855
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
856
|
+
}, e;
|
|
857
|
+
})(), qr = (function() {
|
|
858
|
+
function e(t) {
|
|
859
|
+
this.rules = [], this.length = 0;
|
|
860
|
+
}
|
|
861
|
+
return e.prototype.insertRule = function(t, r) {
|
|
862
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
863
|
+
}, e.prototype.deleteRule = function(t) {
|
|
864
|
+
this.rules.splice(t, 1), this.length--;
|
|
865
|
+
}, e.prototype.getRule = function(t) {
|
|
866
|
+
return t < this.length ? this.rules[t] : "";
|
|
867
|
+
}, e;
|
|
868
|
+
})(), lt = Se, Ur = { isServer: !Se, useCSSOMInjection: !br }, Dt = (function() {
|
|
869
|
+
function e(t, r, n) {
|
|
870
|
+
t === void 0 && (t = Z), r === void 0 && (r = {});
|
|
871
|
+
var o = this;
|
|
872
|
+
this.options = N(N({}, Ur), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && Se && lt && (lt = !1, ut(this)), Xe(this, function() {
|
|
873
|
+
return (function(s) {
|
|
874
|
+
for (var a = s.getTag(), c = a.length, i = "", y = function(d) {
|
|
875
|
+
var g = (function(C) {
|
|
876
|
+
return ke.get(C);
|
|
877
|
+
})(d);
|
|
878
|
+
if (g === void 0) return "continue";
|
|
879
|
+
var f = s.names.get(g), S = a.getGroup(d);
|
|
880
|
+
if (f === void 0 || !f.size || S.length === 0) return "continue";
|
|
881
|
+
var E = "".concat(H, ".g").concat(d, '[id="').concat(g, '"]'), O = "";
|
|
882
|
+
f !== void 0 && f.forEach(function(C) {
|
|
883
|
+
C.length > 0 && (O += "".concat(C, ","));
|
|
884
|
+
}), i += "".concat(S).concat(E, '{content:"').concat(O, '"}').concat(qe);
|
|
885
|
+
}, m = 0; m < c; m++) y(m);
|
|
886
|
+
return i;
|
|
887
|
+
})(o);
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
return e.registerId = function(t) {
|
|
891
|
+
return fe(t);
|
|
892
|
+
}, e.prototype.rehydrate = function() {
|
|
893
|
+
!this.server && Se && ut(this);
|
|
894
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
895
|
+
return r === void 0 && (r = !0), new e(N(N({}, this.options), t), this.gs, r && this.names || void 0);
|
|
896
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
897
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
898
|
+
}, e.prototype.getTag = function() {
|
|
899
|
+
return this.tag || (this.tag = (t = (function(r) {
|
|
900
|
+
var n = r.useCSSOMInjection, o = r.target;
|
|
901
|
+
return r.isServer ? new qr(o) : n ? new Yr(o) : new Wr(o);
|
|
902
|
+
})(this.options), new zr(t)));
|
|
903
|
+
var t;
|
|
904
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
905
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
906
|
+
}, e.prototype.registerName = function(t, r) {
|
|
907
|
+
if (fe(t), this.names.has(t)) this.names.get(t).add(r);
|
|
908
|
+
else {
|
|
909
|
+
var n = /* @__PURE__ */ new Set();
|
|
910
|
+
n.add(r), this.names.set(t, n);
|
|
911
|
+
}
|
|
912
|
+
}, e.prototype.insertRules = function(t, r, n) {
|
|
913
|
+
this.registerName(t, r), this.getTag().insertRules(fe(t), n);
|
|
914
|
+
}, e.prototype.clearNames = function(t) {
|
|
915
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
916
|
+
}, e.prototype.clearRules = function(t) {
|
|
917
|
+
this.getTag().clearGroup(fe(t)), this.clearNames(t);
|
|
918
|
+
}, e.prototype.clearTag = function() {
|
|
919
|
+
this.tag = void 0;
|
|
920
|
+
}, e;
|
|
921
|
+
})(), Xr = /&/g, Kr = /^\s*\/\/.*$/gm;
|
|
922
|
+
function $t(e, t) {
|
|
923
|
+
return e.map(function(r) {
|
|
924
|
+
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
925
|
+
return "".concat(t, " ").concat(n);
|
|
926
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = $t(r.children, t)), r;
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
function Zr(e) {
|
|
930
|
+
var t, r, n, o = Z, s = o.options, a = s === void 0 ? Z : s, c = o.plugins, i = c === void 0 ? Ne : c, y = function(g, f, S) {
|
|
931
|
+
return S.startsWith(r) && S.endsWith(r) && S.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
932
|
+
}, m = i.slice();
|
|
933
|
+
m.push(function(g) {
|
|
934
|
+
g.type === xe && g.value.includes("&") && (g.props[0] = g.props[0].replace(Xr, r).replace(n, y));
|
|
935
|
+
}), a.prefix && m.push(vr), m.push(mr);
|
|
936
|
+
var d = function(g, f, S, E) {
|
|
937
|
+
f === void 0 && (f = ""), S === void 0 && (S = ""), E === void 0 && (E = "&"), t = E, r = f, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
938
|
+
var O = g.replace(Kr, ""), C = fr(S || f ? "".concat(S, " ").concat(f, " { ").concat(O, " }") : O);
|
|
939
|
+
a.namespace && (C = $t(C, a.namespace));
|
|
940
|
+
var k = [];
|
|
941
|
+
return be(C, gr(m.concat(yr(function(v) {
|
|
942
|
+
return k.push(v);
|
|
943
|
+
})))), k;
|
|
944
|
+
};
|
|
945
|
+
return d.hash = i.length ? i.reduce(function(g, f) {
|
|
946
|
+
return f.name || te(15), F(g, f.name);
|
|
947
|
+
}, At).toString() : "", d;
|
|
948
|
+
}
|
|
949
|
+
var Jr = new Dt(), Ge = Zr(), jt = ie.createContext({ shouldForwardProp: void 0, styleSheet: Jr, stylis: Ge });
|
|
950
|
+
jt.Consumer;
|
|
951
|
+
ie.createContext(void 0);
|
|
952
|
+
function pt() {
|
|
953
|
+
return Zt(jt);
|
|
954
|
+
}
|
|
955
|
+
var dt = (function() {
|
|
956
|
+
function e(t, r) {
|
|
957
|
+
var n = this;
|
|
958
|
+
this.inject = function(o, s) {
|
|
959
|
+
s === void 0 && (s = Ge);
|
|
960
|
+
var a = n.name + s.hash;
|
|
961
|
+
o.hasNameForId(n.id, a) || o.insertRules(n.id, a, s(n.rules, a, "@keyframes"));
|
|
962
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, Xe(this, function() {
|
|
963
|
+
throw te(12, String(n.name));
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
return e.prototype.getName = function(t) {
|
|
967
|
+
return t === void 0 && (t = Ge), this.name + t.hash;
|
|
968
|
+
}, e;
|
|
969
|
+
})(), Qr = function(e) {
|
|
970
|
+
return e >= "A" && e <= "Z";
|
|
971
|
+
};
|
|
972
|
+
function ft(e) {
|
|
973
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
974
|
+
var n = e[r];
|
|
975
|
+
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
976
|
+
Qr(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
977
|
+
}
|
|
978
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
979
|
+
}
|
|
980
|
+
var zt = function(e) {
|
|
981
|
+
return e == null || e === !1 || e === "";
|
|
982
|
+
}, Mt = function(e) {
|
|
983
|
+
var t, r, n = [];
|
|
984
|
+
for (var o in e) {
|
|
985
|
+
var s = e[o];
|
|
986
|
+
e.hasOwnProperty(o) && !zt(s) && (Array.isArray(s) && s.isCss || J(s) ? n.push("".concat(ft(o), ":"), s, ";") : Q(s) ? n.push.apply(n, U(U(["".concat(o, " {")], Mt(s), !1), ["}"], !1)) : n.push("".concat(ft(o), ": ").concat((t = o, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in wr || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
987
|
+
}
|
|
988
|
+
return n;
|
|
989
|
+
};
|
|
990
|
+
function G(e, t, r, n) {
|
|
991
|
+
if (zt(e)) return [];
|
|
992
|
+
if (Ue(e)) return [".".concat(e.styledComponentId)];
|
|
993
|
+
if (J(e)) {
|
|
994
|
+
if (!J(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
995
|
+
var o = e(t);
|
|
996
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof dt || Q(o) || o === null || console.error("".concat(Nt(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.")), G(o, t, r, n);
|
|
997
|
+
}
|
|
998
|
+
var s;
|
|
999
|
+
return e instanceof dt ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : Q(e) ? Mt(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ne, e.map(function(a) {
|
|
1000
|
+
return G(a, t, r, n);
|
|
1001
|
+
})) : [e.toString()];
|
|
1002
|
+
}
|
|
1003
|
+
function en(e) {
|
|
1004
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1005
|
+
var r = e[t];
|
|
1006
|
+
if (J(r) && !Ue(r)) return !1;
|
|
1007
|
+
}
|
|
1008
|
+
return !0;
|
|
1009
|
+
}
|
|
1010
|
+
var tn = Pt(Pe), rn = (function() {
|
|
1011
|
+
function e(t, r, n) {
|
|
1012
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && en(t), this.componentId = r, this.baseHash = F(tn, r), this.baseStyle = n, Dt.registerId(r);
|
|
1013
|
+
}
|
|
1014
|
+
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1015
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1016
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = B(o, this.staticRulesId);
|
|
1017
|
+
else {
|
|
1018
|
+
var s = ct(G(this.rules, t, r, n)), a = Be(F(this.baseHash, s) >>> 0);
|
|
1019
|
+
if (!r.hasNameForId(this.componentId, a)) {
|
|
1020
|
+
var c = n(s, ".".concat(a), void 0, this.componentId);
|
|
1021
|
+
r.insertRules(this.componentId, a, c);
|
|
1022
|
+
}
|
|
1023
|
+
o = B(o, a), this.staticRulesId = a;
|
|
1024
|
+
}
|
|
1025
|
+
else {
|
|
1026
|
+
for (var i = F(this.baseHash, n.hash), y = "", m = 0; m < this.rules.length; m++) {
|
|
1027
|
+
var d = this.rules[m];
|
|
1028
|
+
if (typeof d == "string") y += d, process.env.NODE_ENV !== "production" && (i = F(i, d));
|
|
1029
|
+
else if (d) {
|
|
1030
|
+
var g = ct(G(d, t, r, n));
|
|
1031
|
+
i = F(i, g + m), y += g;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
if (y) {
|
|
1035
|
+
var f = Be(i >>> 0);
|
|
1036
|
+
r.hasNameForId(this.componentId, f) || r.insertRules(this.componentId, f, n(y, ".".concat(f), void 0, this.componentId)), o = B(o, f);
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
return o;
|
|
1040
|
+
}, e;
|
|
1041
|
+
})(), Lt = ie.createContext(void 0);
|
|
1042
|
+
Lt.Consumer;
|
|
1043
|
+
var je = {}, ht = /* @__PURE__ */ new Set();
|
|
1044
|
+
function nn(e, t, r) {
|
|
1045
|
+
var n = Ue(e), o = e, s = !$e(e), a = t.attrs, c = a === void 0 ? Ne : a, i = t.componentId, y = i === void 0 ? (function(b, x) {
|
|
1046
|
+
var p = typeof b != "string" ? "sc" : nt(b);
|
|
1047
|
+
je[p] = (je[p] || 0) + 1;
|
|
1048
|
+
var l = "".concat(p, "-").concat(Ar(Pe + p + je[p]));
|
|
1049
|
+
return x ? "".concat(x, "-").concat(l) : l;
|
|
1050
|
+
})(t.displayName, t.parentComponentId) : i, m = t.displayName, d = m === void 0 ? (function(b) {
|
|
1051
|
+
return $e(b) ? "styled.".concat(b) : "Styled(".concat(Nt(b), ")");
|
|
1052
|
+
})(e) : m, g = t.displayName && t.componentId ? "".concat(nt(t.displayName), "-").concat(t.componentId) : t.componentId || y, f = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, S = t.shouldForwardProp;
|
|
1053
|
+
if (n && o.shouldForwardProp) {
|
|
1054
|
+
var E = o.shouldForwardProp;
|
|
1055
|
+
if (t.shouldForwardProp) {
|
|
1056
|
+
var O = t.shouldForwardProp;
|
|
1057
|
+
S = function(b, x) {
|
|
1058
|
+
return E(b, x) && O(b, x);
|
|
1059
|
+
};
|
|
1060
|
+
} else S = E;
|
|
1061
|
+
}
|
|
1062
|
+
var C = new rn(r, g, n ? o.componentStyle : void 0);
|
|
1063
|
+
function k(b, x) {
|
|
1064
|
+
return (function(p, l, j) {
|
|
1065
|
+
var Y = p.attrs, Vt = p.componentStyle, Gt = p.defaultProps, Ht = p.foldedComponentIds, Ke = p.styledComponentId, Yt = p.target, Wt = ie.useContext(Lt), qt = pt(), Oe = p.shouldForwardProp || qt.shouldForwardProp;
|
|
1066
|
+
process.env.NODE_ENV !== "production" && Je(Ke);
|
|
1067
|
+
var Ze = kr(l, Wt, Gt) || Z, D = (function(ce, oe, ue) {
|
|
1068
|
+
for (var W, L = N(N({}, oe), { className: void 0, theme: ue }), _e = 0; _e < ce.length; _e += 1) {
|
|
1069
|
+
var le = J(W = ce[_e]) ? W(L) : W;
|
|
1070
|
+
for (var z in le) L[z] = z === "className" ? B(L[z], le[z]) : z === "style" ? N(N({}, L[z]), le[z]) : le[z];
|
|
1071
|
+
}
|
|
1072
|
+
return oe.className && (L.className = B(L.className, oe.className)), L;
|
|
1073
|
+
})(Y, l, Ze), re = D.as || Yt, ne = {};
|
|
1074
|
+
for (var R in D) D[R] === void 0 || R[0] === "$" || R === "as" || R === "theme" && D.theme === Ze || (R === "forwardedAs" ? ne.as = D.forwardedAs : Oe && !Oe(R, re) || (ne[R] = D[R], Oe || process.env.NODE_ENV !== "development" || er(R) || ht.has(R) || !Fe.has(re) || (ht.add(R), console.warn('styled-components: it looks like an unknown prop "'.concat(R, '" 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.)')))));
|
|
1075
|
+
var Re = (function(ce, oe) {
|
|
1076
|
+
var ue = pt(), W = ce.generateAndInjectStyles(oe, ue.styleSheet, ue.stylis);
|
|
1077
|
+
return process.env.NODE_ENV !== "production" && Je(W), W;
|
|
1078
|
+
})(Vt, D);
|
|
1079
|
+
process.env.NODE_ENV !== "production" && p.warnTooManyClasses && p.warnTooManyClasses(Re);
|
|
1080
|
+
var Ie = B(Ht, Ke);
|
|
1081
|
+
return Re && (Ie += " " + Re), D.className && (Ie += " " + D.className), ne[$e(re) && !Fe.has(re) ? "class" : "className"] = Ie, j && (ne.ref = j), Xt(re, ne);
|
|
1082
|
+
})(v, b, x);
|
|
1083
|
+
}
|
|
1084
|
+
k.displayName = d;
|
|
1085
|
+
var v = ie.forwardRef(k);
|
|
1086
|
+
return v.attrs = f, v.componentStyle = C, v.displayName = d, v.shouldForwardProp = S, v.foldedComponentIds = n ? B(o.foldedComponentIds, o.styledComponentId) : "", v.styledComponentId = g, v.target = n ? o.target : e, Object.defineProperty(v, "defaultProps", { get: function() {
|
|
1087
|
+
return this._foldedDefaultProps;
|
|
1088
|
+
}, set: function(b) {
|
|
1089
|
+
this._foldedDefaultProps = n ? (function(x) {
|
|
1090
|
+
for (var p = [], l = 1; l < arguments.length; l++) p[l - 1] = arguments[l];
|
|
1091
|
+
for (var j = 0, Y = p; j < Y.length; j++) Ve(x, Y[j], !0);
|
|
1092
|
+
return x;
|
|
1093
|
+
})({}, o.defaultProps, b) : b;
|
|
1094
|
+
} }), process.env.NODE_ENV !== "production" && (Sr(d, g), v.warnTooManyClasses = /* @__PURE__ */ (function(b, x) {
|
|
1095
|
+
var p = {}, l = !1;
|
|
1096
|
+
return function(j) {
|
|
1097
|
+
if (!l && (p[j] = !0, Object.keys(p).length >= 200)) {
|
|
1098
|
+
var Y = x ? ' with the id of "'.concat(x, '"') : "";
|
|
1099
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(b).concat(Y, `.
|
|
1100
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1101
|
+
Example:
|
|
1102
|
+
const Component = styled.div.attrs(props => ({
|
|
1103
|
+
style: {
|
|
1104
|
+
background: props.background,
|
|
1105
|
+
},
|
|
1106
|
+
}))\`width: 100%;\`
|
|
1107
|
+
|
|
1108
|
+
<Component />`), l = !0, p = {};
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
})(d, g)), Xe(v, function() {
|
|
1112
|
+
return ".".concat(v.styledComponentId);
|
|
1113
|
+
}), s && _t(v, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), v;
|
|
1114
|
+
}
|
|
1115
|
+
function mt(e, t) {
|
|
1116
|
+
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1117
|
+
return r;
|
|
1118
|
+
}
|
|
1119
|
+
var gt = function(e) {
|
|
1120
|
+
return Object.assign(e, { isCss: !0 });
|
|
1121
|
+
};
|
|
1122
|
+
function on(e) {
|
|
1123
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1124
|
+
if (J(e) || Q(e)) return gt(G(mt(Ne, U([e], t, !0))));
|
|
1125
|
+
var n = e;
|
|
1126
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? G(n) : gt(G(mt(n, t)));
|
|
1127
|
+
}
|
|
1128
|
+
function He(e, t, r) {
|
|
1129
|
+
if (r === void 0 && (r = Z), !t) throw te(1, t);
|
|
1130
|
+
var n = function(o) {
|
|
1131
|
+
for (var s = [], a = 1; a < arguments.length; a++) s[a - 1] = arguments[a];
|
|
1132
|
+
return e(t, r, on.apply(void 0, U([o], s, !1)));
|
|
1133
|
+
};
|
|
1134
|
+
return n.attrs = function(o) {
|
|
1135
|
+
return He(e, t, N(N({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1136
|
+
}, n.withConfig = function(o) {
|
|
1137
|
+
return He(e, t, N(N({}, r), o));
|
|
1138
|
+
}, n;
|
|
1139
|
+
}
|
|
1140
|
+
var Ft = function(e) {
|
|
1141
|
+
return He(nn, e);
|
|
1142
|
+
}, Bt = Ft;
|
|
1143
|
+
Fe.forEach(function(e) {
|
|
1144
|
+
Bt[e] = Ft(e);
|
|
1145
|
+
});
|
|
1146
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1147
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1148
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1149
|
+
var he = "__sc-".concat(H, "__");
|
|
1150
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[he] || (window[he] = 0), window[he] === 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.
|
|
1151
|
+
|
|
1152
|
+
See https://s-c.sh/2BAXzed for more info.`), window[he] += 1);
|
|
1153
|
+
const sn = Bt.button`
|
|
1154
|
+
border-radius: var(--border-radius-button);
|
|
1155
|
+
background-color: var(--color-blue-primary);
|
|
1156
|
+
color: var(--white);
|
|
1157
|
+
padding: 1.25rem 0.625rem;
|
|
1158
|
+
transition: all 0.3s ease-in-out;
|
|
1159
|
+
&:hover {
|
|
1160
|
+
cursor: pointer;
|
|
1161
|
+
background-color: var(--purple-600);
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
&:disabled {
|
|
1165
|
+
cursor: not-allowed;
|
|
1166
|
+
background-color: var(--grey);
|
|
1167
|
+
box-shadow: none;
|
|
1168
|
+
}
|
|
1169
|
+
`, un = ({ ...e }) => {
|
|
1170
|
+
const { slot: t, type: r = "button", name: n, onClick: o, disabled: s, className: a } = e;
|
|
1171
|
+
return /* @__PURE__ */ Ut(
|
|
1172
|
+
sn,
|
|
1173
|
+
{
|
|
1174
|
+
className: `body-text-normal-20 ${a ?? ""}`,
|
|
1175
|
+
type: r,
|
|
1176
|
+
name: n,
|
|
1177
|
+
onClick: o,
|
|
1178
|
+
disabled: s,
|
|
1179
|
+
children: t
|
|
1180
|
+
}
|
|
1181
|
+
);
|
|
1182
|
+
};
|
|
1183
|
+
export {
|
|
1184
|
+
un as PrimaryButton
|
|
1185
|
+
};
|