monoscribe 0.1.0-beta.0 → 0.1.0-beta.1
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.
- package/dist/monoscribe.es.js +1672 -0
- package/dist/monoscribe.umd.js +101 -0
- package/package.json +3 -1
- package/tsconfig.json +14 -6
|
@@ -0,0 +1,1672 @@
|
|
|
1
|
+
import ve, { createContext as _r, useContext as Et, useDebugValue as jt, createElement as Tr, useRef as Rr } from "react";
|
|
2
|
+
var Le = { exports: {} }, Pe = {};
|
|
3
|
+
/**
|
|
4
|
+
* @license React
|
|
5
|
+
* react-jsx-runtime.production.js
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the MIT license found in the
|
|
10
|
+
* LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
var $t;
|
|
13
|
+
function Nr() {
|
|
14
|
+
if ($t) return Pe;
|
|
15
|
+
$t = 1;
|
|
16
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
17
|
+
function r(o, a, s) {
|
|
18
|
+
var i = null;
|
|
19
|
+
if (s !== void 0 && (i = "" + s), a.key !== void 0 && (i = "" + a.key), "key" in a) {
|
|
20
|
+
s = {};
|
|
21
|
+
for (var f in a)
|
|
22
|
+
f !== "key" && (s[f] = a[f]);
|
|
23
|
+
} else s = a;
|
|
24
|
+
return a = s.ref, {
|
|
25
|
+
$$typeof: e,
|
|
26
|
+
type: o,
|
|
27
|
+
key: i,
|
|
28
|
+
ref: a !== void 0 ? a : null,
|
|
29
|
+
props: s
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
return Pe.Fragment = t, Pe.jsx = r, Pe.jsxs = r, Pe;
|
|
33
|
+
}
|
|
34
|
+
var je = {};
|
|
35
|
+
/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-jsx-runtime.development.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/
|
|
44
|
+
var It;
|
|
45
|
+
function Or() {
|
|
46
|
+
return It || (It = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
+
function e(n) {
|
|
48
|
+
if (n == null) return null;
|
|
49
|
+
if (typeof n == "function")
|
|
50
|
+
return n.$$typeof === ze ? null : n.displayName || n.name || null;
|
|
51
|
+
if (typeof n == "string") return n;
|
|
52
|
+
switch (n) {
|
|
53
|
+
case m:
|
|
54
|
+
return "Fragment";
|
|
55
|
+
case R:
|
|
56
|
+
return "Portal";
|
|
57
|
+
case F:
|
|
58
|
+
return "Profiler";
|
|
59
|
+
case p:
|
|
60
|
+
return "StrictMode";
|
|
61
|
+
case Te:
|
|
62
|
+
return "Suspense";
|
|
63
|
+
case de:
|
|
64
|
+
return "SuspenseList";
|
|
65
|
+
}
|
|
66
|
+
if (typeof n == "object")
|
|
67
|
+
switch (typeof n.tag == "number" && console.error(
|
|
68
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
+
), n.$$typeof) {
|
|
70
|
+
case De:
|
|
71
|
+
return (n.displayName || "Context") + ".Provider";
|
|
72
|
+
case U:
|
|
73
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
74
|
+
case _e:
|
|
75
|
+
var c = n.render;
|
|
76
|
+
return n = n.displayName, n || (n = c.displayName || c.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
77
|
+
case Re:
|
|
78
|
+
return c = n.displayName || null, c !== null ? c : e(n.type) || "Memo";
|
|
79
|
+
case Ne:
|
|
80
|
+
c = n._payload, n = n._init;
|
|
81
|
+
try {
|
|
82
|
+
return e(n(c));
|
|
83
|
+
} catch {
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
function t(n) {
|
|
89
|
+
return "" + n;
|
|
90
|
+
}
|
|
91
|
+
function r(n) {
|
|
92
|
+
try {
|
|
93
|
+
t(n);
|
|
94
|
+
var c = !1;
|
|
95
|
+
} catch {
|
|
96
|
+
c = !0;
|
|
97
|
+
}
|
|
98
|
+
if (c) {
|
|
99
|
+
c = console;
|
|
100
|
+
var u = c.error, E = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
101
|
+
return u.call(
|
|
102
|
+
c,
|
|
103
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
104
|
+
E
|
|
105
|
+
), t(n);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
function o() {
|
|
109
|
+
}
|
|
110
|
+
function a() {
|
|
111
|
+
if (q === 0) {
|
|
112
|
+
oe = console.log, ee = console.info, ae = console.warn, X = console.error, G = console.group, me = console.groupCollapsed, se = console.groupEnd;
|
|
113
|
+
var n = {
|
|
114
|
+
configurable: !0,
|
|
115
|
+
enumerable: !0,
|
|
116
|
+
value: o,
|
|
117
|
+
writable: !0
|
|
118
|
+
};
|
|
119
|
+
Object.defineProperties(console, {
|
|
120
|
+
info: n,
|
|
121
|
+
log: n,
|
|
122
|
+
warn: n,
|
|
123
|
+
error: n,
|
|
124
|
+
group: n,
|
|
125
|
+
groupCollapsed: n,
|
|
126
|
+
groupEnd: n
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
q++;
|
|
130
|
+
}
|
|
131
|
+
function s() {
|
|
132
|
+
if (q--, q === 0) {
|
|
133
|
+
var n = { configurable: !0, enumerable: !0, writable: !0 };
|
|
134
|
+
Object.defineProperties(console, {
|
|
135
|
+
log: L({}, n, { value: oe }),
|
|
136
|
+
info: L({}, n, { value: ee }),
|
|
137
|
+
warn: L({}, n, { value: ae }),
|
|
138
|
+
error: L({}, n, { value: X }),
|
|
139
|
+
group: L({}, n, { value: G }),
|
|
140
|
+
groupCollapsed: L({}, n, { value: me }),
|
|
141
|
+
groupEnd: L({}, n, { value: se })
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
0 > q && console.error(
|
|
145
|
+
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
function i(n) {
|
|
149
|
+
if (V === void 0)
|
|
150
|
+
try {
|
|
151
|
+
throw Error();
|
|
152
|
+
} catch (u) {
|
|
153
|
+
var c = u.stack.trim().match(/\n( *(at )?)/);
|
|
154
|
+
V = c && c[1] || "", Tt = -1 < u.stack.indexOf(`
|
|
155
|
+
at`) ? " (<anonymous>)" : -1 < u.stack.indexOf("@") ? "@unknown:0:0" : "";
|
|
156
|
+
}
|
|
157
|
+
return `
|
|
158
|
+
` + V + n + Tt;
|
|
159
|
+
}
|
|
160
|
+
function f(n, c) {
|
|
161
|
+
if (!n || st) return "";
|
|
162
|
+
var u = it.get(n);
|
|
163
|
+
if (u !== void 0) return u;
|
|
164
|
+
st = !0, u = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
|
|
165
|
+
var E = null;
|
|
166
|
+
E = I.H, I.H = null, a();
|
|
167
|
+
try {
|
|
168
|
+
var M = {
|
|
169
|
+
DetermineComponentFrameRoot: function() {
|
|
170
|
+
try {
|
|
171
|
+
if (c) {
|
|
172
|
+
var te = function() {
|
|
173
|
+
throw Error();
|
|
174
|
+
};
|
|
175
|
+
if (Object.defineProperty(te.prototype, "props", {
|
|
176
|
+
set: function() {
|
|
177
|
+
throw Error();
|
|
178
|
+
}
|
|
179
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
180
|
+
try {
|
|
181
|
+
Reflect.construct(te, []);
|
|
182
|
+
} catch (K) {
|
|
183
|
+
var Ye = K;
|
|
184
|
+
}
|
|
185
|
+
Reflect.construct(n, [], te);
|
|
186
|
+
} else {
|
|
187
|
+
try {
|
|
188
|
+
te.call();
|
|
189
|
+
} catch (K) {
|
|
190
|
+
Ye = K;
|
|
191
|
+
}
|
|
192
|
+
n.call(te.prototype);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
try {
|
|
196
|
+
throw Error();
|
|
197
|
+
} catch (K) {
|
|
198
|
+
Ye = K;
|
|
199
|
+
}
|
|
200
|
+
(te = n()) && typeof te.catch == "function" && te.catch(function() {
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
} catch (K) {
|
|
204
|
+
if (K && Ye && typeof K.stack == "string")
|
|
205
|
+
return [K.stack, Ye.stack];
|
|
206
|
+
}
|
|
207
|
+
return [null, null];
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
M.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
|
|
211
|
+
var O = Object.getOwnPropertyDescriptor(
|
|
212
|
+
M.DetermineComponentFrameRoot,
|
|
213
|
+
"name"
|
|
214
|
+
);
|
|
215
|
+
O && O.configurable && Object.defineProperty(
|
|
216
|
+
M.DetermineComponentFrameRoot,
|
|
217
|
+
"name",
|
|
218
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
219
|
+
);
|
|
220
|
+
var d = M.DetermineComponentFrameRoot(), J = d[0], ge = d[1];
|
|
221
|
+
if (J && ge) {
|
|
222
|
+
var D = J.split(`
|
|
223
|
+
`), ie = ge.split(`
|
|
224
|
+
`);
|
|
225
|
+
for (d = O = 0; O < D.length && !D[O].includes(
|
|
226
|
+
"DetermineComponentFrameRoot"
|
|
227
|
+
); )
|
|
228
|
+
O++;
|
|
229
|
+
for (; d < ie.length && !ie[d].includes(
|
|
230
|
+
"DetermineComponentFrameRoot"
|
|
231
|
+
); )
|
|
232
|
+
d++;
|
|
233
|
+
if (O === D.length || d === ie.length)
|
|
234
|
+
for (O = D.length - 1, d = ie.length - 1; 1 <= O && 0 <= d && D[O] !== ie[d]; )
|
|
235
|
+
d--;
|
|
236
|
+
for (; 1 <= O && 0 <= d; O--, d--)
|
|
237
|
+
if (D[O] !== ie[d]) {
|
|
238
|
+
if (O !== 1 || d !== 1)
|
|
239
|
+
do
|
|
240
|
+
if (O--, d--, 0 > d || D[O] !== ie[d]) {
|
|
241
|
+
var Oe = `
|
|
242
|
+
` + D[O].replace(
|
|
243
|
+
" at new ",
|
|
244
|
+
" at "
|
|
245
|
+
);
|
|
246
|
+
return n.displayName && Oe.includes("<anonymous>") && (Oe = Oe.replace("<anonymous>", n.displayName)), typeof n == "function" && it.set(n, Oe), Oe;
|
|
247
|
+
}
|
|
248
|
+
while (1 <= O && 0 <= d);
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
} finally {
|
|
253
|
+
st = !1, I.H = E, s(), Error.prepareStackTrace = u;
|
|
254
|
+
}
|
|
255
|
+
return D = (D = n ? n.displayName || n.name : "") ? i(D) : "", typeof n == "function" && it.set(n, D), D;
|
|
256
|
+
}
|
|
257
|
+
function l(n) {
|
|
258
|
+
if (n == null) return "";
|
|
259
|
+
if (typeof n == "function") {
|
|
260
|
+
var c = n.prototype;
|
|
261
|
+
return f(
|
|
262
|
+
n,
|
|
263
|
+
!(!c || !c.isReactComponent)
|
|
264
|
+
);
|
|
265
|
+
}
|
|
266
|
+
if (typeof n == "string") return i(n);
|
|
267
|
+
switch (n) {
|
|
268
|
+
case Te:
|
|
269
|
+
return i("Suspense");
|
|
270
|
+
case de:
|
|
271
|
+
return i("SuspenseList");
|
|
272
|
+
}
|
|
273
|
+
if (typeof n == "object")
|
|
274
|
+
switch (n.$$typeof) {
|
|
275
|
+
case _e:
|
|
276
|
+
return n = f(n.render, !1), n;
|
|
277
|
+
case Re:
|
|
278
|
+
return l(n.type);
|
|
279
|
+
case Ne:
|
|
280
|
+
c = n._payload, n = n._init;
|
|
281
|
+
try {
|
|
282
|
+
return l(n(c));
|
|
283
|
+
} catch {
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return "";
|
|
287
|
+
}
|
|
288
|
+
function y() {
|
|
289
|
+
var n = I.A;
|
|
290
|
+
return n === null ? null : n.getOwner();
|
|
291
|
+
}
|
|
292
|
+
function b(n) {
|
|
293
|
+
if (Q.call(n, "key")) {
|
|
294
|
+
var c = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
295
|
+
if (c && c.isReactWarning) return !1;
|
|
296
|
+
}
|
|
297
|
+
return n.key !== void 0;
|
|
298
|
+
}
|
|
299
|
+
function g(n, c) {
|
|
300
|
+
function u() {
|
|
301
|
+
Rt || (Rt = !0, console.error(
|
|
302
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
303
|
+
c
|
|
304
|
+
));
|
|
305
|
+
}
|
|
306
|
+
u.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
307
|
+
get: u,
|
|
308
|
+
configurable: !0
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
function w() {
|
|
312
|
+
var n = e(this.type);
|
|
313
|
+
return Nt[n] || (Nt[n] = !0, console.error(
|
|
314
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
315
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
316
|
+
}
|
|
317
|
+
function v(n, c, u, E, M, O) {
|
|
318
|
+
return u = O.ref, n = {
|
|
319
|
+
$$typeof: x,
|
|
320
|
+
type: n,
|
|
321
|
+
key: c,
|
|
322
|
+
props: O,
|
|
323
|
+
_owner: M
|
|
324
|
+
}, (u !== void 0 ? u : null) !== null ? Object.defineProperty(n, "ref", {
|
|
325
|
+
enumerable: !1,
|
|
326
|
+
get: w
|
|
327
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
328
|
+
configurable: !1,
|
|
329
|
+
enumerable: !1,
|
|
330
|
+
writable: !0,
|
|
331
|
+
value: 0
|
|
332
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
333
|
+
configurable: !1,
|
|
334
|
+
enumerable: !1,
|
|
335
|
+
writable: !0,
|
|
336
|
+
value: null
|
|
337
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
338
|
+
}
|
|
339
|
+
function C(n, c, u, E, M, O) {
|
|
340
|
+
if (typeof n == "string" || typeof n == "function" || n === m || n === F || n === p || n === Te || n === de || n === at || typeof n == "object" && n !== null && (n.$$typeof === Ne || n.$$typeof === Re || n.$$typeof === De || n.$$typeof === U || n.$$typeof === _e || n.$$typeof === z || n.getModuleId !== void 0)) {
|
|
341
|
+
var d = c.children;
|
|
342
|
+
if (d !== void 0)
|
|
343
|
+
if (E)
|
|
344
|
+
if (ne(d)) {
|
|
345
|
+
for (E = 0; E < d.length; E++)
|
|
346
|
+
_(d[E], n);
|
|
347
|
+
Object.freeze && Object.freeze(d);
|
|
348
|
+
} else
|
|
349
|
+
console.error(
|
|
350
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
351
|
+
);
|
|
352
|
+
else _(d, n);
|
|
353
|
+
} else
|
|
354
|
+
d = "", (n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (d += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), n === null ? E = "null" : ne(n) ? E = "array" : n !== void 0 && n.$$typeof === x ? (E = "<" + (e(n.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : E = typeof n, console.error(
|
|
355
|
+
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
356
|
+
E,
|
|
357
|
+
d
|
|
358
|
+
);
|
|
359
|
+
if (Q.call(c, "key")) {
|
|
360
|
+
d = e(n);
|
|
361
|
+
var J = Object.keys(c).filter(function(D) {
|
|
362
|
+
return D !== "key";
|
|
363
|
+
});
|
|
364
|
+
E = 0 < J.length ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}", Ot[d + E] || (J = 0 < J.length ? "{" + J.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
365
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
366
|
+
let props = %s;
|
|
367
|
+
<%s {...props} />
|
|
368
|
+
React keys must be passed directly to JSX without using spread:
|
|
369
|
+
let props = %s;
|
|
370
|
+
<%s key={someKey} {...props} />`,
|
|
371
|
+
E,
|
|
372
|
+
d,
|
|
373
|
+
J,
|
|
374
|
+
d
|
|
375
|
+
), Ot[d + E] = !0);
|
|
376
|
+
}
|
|
377
|
+
if (d = null, u !== void 0 && (r(u), d = "" + u), b(c) && (r(c.key), d = "" + c.key), "key" in c) {
|
|
378
|
+
u = {};
|
|
379
|
+
for (var ge in c)
|
|
380
|
+
ge !== "key" && (u[ge] = c[ge]);
|
|
381
|
+
} else u = c;
|
|
382
|
+
return d && g(
|
|
383
|
+
u,
|
|
384
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
385
|
+
), v(n, d, O, M, y(), u);
|
|
386
|
+
}
|
|
387
|
+
function _(n, c) {
|
|
388
|
+
if (typeof n == "object" && n && n.$$typeof !== Ar) {
|
|
389
|
+
if (ne(n))
|
|
390
|
+
for (var u = 0; u < n.length; u++) {
|
|
391
|
+
var E = n[u];
|
|
392
|
+
$(E) && N(E, c);
|
|
393
|
+
}
|
|
394
|
+
else if ($(n))
|
|
395
|
+
n._store && (n._store.validated = 1);
|
|
396
|
+
else if (n === null || typeof n != "object" ? u = null : (u = he && n[he] || n["@@iterator"], u = typeof u == "function" ? u : null), typeof u == "function" && u !== n.entries && (u = u.call(n), u !== n))
|
|
397
|
+
for (; !(n = u.next()).done; )
|
|
398
|
+
$(n.value) && N(n.value, c);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
function $(n) {
|
|
402
|
+
return typeof n == "object" && n !== null && n.$$typeof === x;
|
|
403
|
+
}
|
|
404
|
+
function N(n, c) {
|
|
405
|
+
if (n._store && !n._store.validated && n.key == null && (n._store.validated = 1, c = T(c), !Pt[c])) {
|
|
406
|
+
Pt[c] = !0;
|
|
407
|
+
var u = "";
|
|
408
|
+
n && n._owner != null && n._owner !== y() && (u = null, typeof n._owner.tag == "number" ? u = e(n._owner.type) : typeof n._owner.name == "string" && (u = n._owner.name), u = " It was passed a child from " + u + ".");
|
|
409
|
+
var E = I.getCurrentStack;
|
|
410
|
+
I.getCurrentStack = function() {
|
|
411
|
+
var M = l(n.type);
|
|
412
|
+
return E && (M += E() || ""), M;
|
|
413
|
+
}, console.error(
|
|
414
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
415
|
+
c,
|
|
416
|
+
u
|
|
417
|
+
), I.getCurrentStack = E;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
function T(n) {
|
|
421
|
+
var c = "", u = y();
|
|
422
|
+
return u && (u = e(u.type)) && (c = `
|
|
423
|
+
|
|
424
|
+
Check the render method of \`` + u + "`."), c || (n = e(n)) && (c = `
|
|
425
|
+
|
|
426
|
+
Check the top-level render call using <` + n + ">."), c;
|
|
427
|
+
}
|
|
428
|
+
var k = ve, x = Symbol.for("react.transitional.element"), R = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), F = Symbol.for("react.profiler"), U = Symbol.for("react.consumer"), De = Symbol.for("react.context"), _e = Symbol.for("react.forward_ref"), Te = Symbol.for("react.suspense"), de = Symbol.for("react.suspense_list"), Re = Symbol.for("react.memo"), Ne = Symbol.for("react.lazy"), at = Symbol.for("react.offscreen"), he = Symbol.iterator, ze = Symbol.for("react.client.reference"), I = k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Q = Object.prototype.hasOwnProperty, L = Object.assign, z = Symbol.for("react.client.reference"), ne = Array.isArray, q = 0, oe, ee, ae, X, G, me, se;
|
|
429
|
+
o.__reactDisabledLog = !0;
|
|
430
|
+
var V, Tt, st = !1, it = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ar = Symbol.for("react.client.reference"), Rt, Nt = {}, Ot = {}, Pt = {};
|
|
431
|
+
je.Fragment = m, je.jsx = function(n, c, u, E, M) {
|
|
432
|
+
return C(n, c, u, !1, E, M);
|
|
433
|
+
}, je.jsxs = function(n, c, u, E, M) {
|
|
434
|
+
return C(n, c, u, !0, E, M);
|
|
435
|
+
};
|
|
436
|
+
}()), je;
|
|
437
|
+
}
|
|
438
|
+
var Mt;
|
|
439
|
+
function Pr() {
|
|
440
|
+
return Mt || (Mt = 1, process.env.NODE_ENV === "production" ? Le.exports = Nr() : Le.exports = Or()), Le.exports;
|
|
441
|
+
}
|
|
442
|
+
var Me = Pr();
|
|
443
|
+
const pt = _r(
|
|
444
|
+
void 0
|
|
445
|
+
), jr = () => Et(pt) || {}, $r = ({ children: e, ...t }) => {
|
|
446
|
+
const r = Et(pt) || {};
|
|
447
|
+
return /* @__PURE__ */ Me.jsx(pt.Provider, { value: { ...r, ...t }, children: e });
|
|
448
|
+
};
|
|
449
|
+
var Y = function() {
|
|
450
|
+
return Y = Object.assign || function(t) {
|
|
451
|
+
for (var r, o = 1, a = arguments.length; o < a; o++) {
|
|
452
|
+
r = arguments[o];
|
|
453
|
+
for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
|
|
454
|
+
}
|
|
455
|
+
return t;
|
|
456
|
+
}, Y.apply(this, arguments);
|
|
457
|
+
};
|
|
458
|
+
function be(e, t, r) {
|
|
459
|
+
if (r || arguments.length === 2) for (var o = 0, a = t.length, s; o < a; o++)
|
|
460
|
+
(s || !(o in t)) && (s || (s = Array.prototype.slice.call(t, 0, o)), s[o] = t[o]);
|
|
461
|
+
return e.concat(s || Array.prototype.slice.call(t));
|
|
462
|
+
}
|
|
463
|
+
function Ir(e) {
|
|
464
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
465
|
+
return function(r) {
|
|
466
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
467
|
+
};
|
|
468
|
+
}
|
|
469
|
+
var Mr = /^((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)-.*))$/, Dr = /* @__PURE__ */ Ir(
|
|
470
|
+
function(e) {
|
|
471
|
+
return Mr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
472
|
+
}
|
|
473
|
+
/* Z+1 */
|
|
474
|
+
), A = "-ms-", Ie = "-moz-", S = "-webkit-", tr = "comm", Qe = "rule", St = "decl", zr = "@import", rr = "@keyframes", Yr = "@layer", nr = Math.abs, xt = String.fromCharCode, dt = Object.assign;
|
|
475
|
+
function Lr(e, t) {
|
|
476
|
+
return j(e, 0) ^ 45 ? (((t << 2 ^ j(e, 0)) << 2 ^ j(e, 1)) << 2 ^ j(e, 2)) << 2 ^ j(e, 3) : 0;
|
|
477
|
+
}
|
|
478
|
+
function or(e) {
|
|
479
|
+
return e.trim();
|
|
480
|
+
}
|
|
481
|
+
function Z(e, t) {
|
|
482
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
483
|
+
}
|
|
484
|
+
function h(e, t, r) {
|
|
485
|
+
return e.replace(t, r);
|
|
486
|
+
}
|
|
487
|
+
function Ge(e, t, r) {
|
|
488
|
+
return e.indexOf(t, r);
|
|
489
|
+
}
|
|
490
|
+
function j(e, t) {
|
|
491
|
+
return e.charCodeAt(t) | 0;
|
|
492
|
+
}
|
|
493
|
+
function we(e, t, r) {
|
|
494
|
+
return e.slice(t, r);
|
|
495
|
+
}
|
|
496
|
+
function H(e) {
|
|
497
|
+
return e.length;
|
|
498
|
+
}
|
|
499
|
+
function ar(e) {
|
|
500
|
+
return e.length;
|
|
501
|
+
}
|
|
502
|
+
function $e(e, t) {
|
|
503
|
+
return t.push(e), e;
|
|
504
|
+
}
|
|
505
|
+
function Vr(e, t) {
|
|
506
|
+
return e.map(t).join("");
|
|
507
|
+
}
|
|
508
|
+
function Dt(e, t) {
|
|
509
|
+
return e.filter(function(r) {
|
|
510
|
+
return !Z(r, t);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
var et = 1, Ee = 1, sr = 0, W = 0, P = 0, Ce = "";
|
|
514
|
+
function tt(e, t, r, o, a, s, i, f) {
|
|
515
|
+
return { value: e, root: t, parent: r, type: o, props: a, children: s, line: et, column: Ee, length: i, return: "", siblings: f };
|
|
516
|
+
}
|
|
517
|
+
function re(e, t) {
|
|
518
|
+
return dt(tt("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
519
|
+
}
|
|
520
|
+
function ye(e) {
|
|
521
|
+
for (; e.root; )
|
|
522
|
+
e = re(e.root, { children: [e] });
|
|
523
|
+
$e(e, e.siblings);
|
|
524
|
+
}
|
|
525
|
+
function Wr() {
|
|
526
|
+
return P;
|
|
527
|
+
}
|
|
528
|
+
function Fr() {
|
|
529
|
+
return P = W > 0 ? j(Ce, --W) : 0, Ee--, P === 10 && (Ee = 1, et--), P;
|
|
530
|
+
}
|
|
531
|
+
function B() {
|
|
532
|
+
return P = W < sr ? j(Ce, W++) : 0, Ee++, P === 10 && (Ee = 1, et++), P;
|
|
533
|
+
}
|
|
534
|
+
function le() {
|
|
535
|
+
return j(Ce, W);
|
|
536
|
+
}
|
|
537
|
+
function He() {
|
|
538
|
+
return W;
|
|
539
|
+
}
|
|
540
|
+
function rt(e, t) {
|
|
541
|
+
return we(Ce, e, t);
|
|
542
|
+
}
|
|
543
|
+
function ht(e) {
|
|
544
|
+
switch (e) {
|
|
545
|
+
// \0 \t \n \r \s whitespace token
|
|
546
|
+
case 0:
|
|
547
|
+
case 9:
|
|
548
|
+
case 10:
|
|
549
|
+
case 13:
|
|
550
|
+
case 32:
|
|
551
|
+
return 5;
|
|
552
|
+
// ! + , / > @ ~ isolate token
|
|
553
|
+
case 33:
|
|
554
|
+
case 43:
|
|
555
|
+
case 44:
|
|
556
|
+
case 47:
|
|
557
|
+
case 62:
|
|
558
|
+
case 64:
|
|
559
|
+
case 126:
|
|
560
|
+
// ; { } breakpoint token
|
|
561
|
+
case 59:
|
|
562
|
+
case 123:
|
|
563
|
+
case 125:
|
|
564
|
+
return 4;
|
|
565
|
+
// : accompanied token
|
|
566
|
+
case 58:
|
|
567
|
+
return 3;
|
|
568
|
+
// " ' ( [ opening delimit token
|
|
569
|
+
case 34:
|
|
570
|
+
case 39:
|
|
571
|
+
case 40:
|
|
572
|
+
case 91:
|
|
573
|
+
return 2;
|
|
574
|
+
// ) ] closing delimit token
|
|
575
|
+
case 41:
|
|
576
|
+
case 93:
|
|
577
|
+
return 1;
|
|
578
|
+
}
|
|
579
|
+
return 0;
|
|
580
|
+
}
|
|
581
|
+
function Br(e) {
|
|
582
|
+
return et = Ee = 1, sr = H(Ce = e), W = 0, [];
|
|
583
|
+
}
|
|
584
|
+
function Gr(e) {
|
|
585
|
+
return Ce = "", e;
|
|
586
|
+
}
|
|
587
|
+
function ct(e) {
|
|
588
|
+
return or(rt(W - 1, mt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
589
|
+
}
|
|
590
|
+
function Hr(e) {
|
|
591
|
+
for (; (P = le()) && P < 33; )
|
|
592
|
+
B();
|
|
593
|
+
return ht(e) > 2 || ht(P) > 3 ? "" : " ";
|
|
594
|
+
}
|
|
595
|
+
function Ur(e, t) {
|
|
596
|
+
for (; --t && B() && !(P < 48 || P > 102 || P > 57 && P < 65 || P > 70 && P < 97); )
|
|
597
|
+
;
|
|
598
|
+
return rt(e, He() + (t < 6 && le() == 32 && B() == 32));
|
|
599
|
+
}
|
|
600
|
+
function mt(e) {
|
|
601
|
+
for (; B(); )
|
|
602
|
+
switch (P) {
|
|
603
|
+
// ] ) " '
|
|
604
|
+
case e:
|
|
605
|
+
return W;
|
|
606
|
+
// " '
|
|
607
|
+
case 34:
|
|
608
|
+
case 39:
|
|
609
|
+
e !== 34 && e !== 39 && mt(P);
|
|
610
|
+
break;
|
|
611
|
+
// (
|
|
612
|
+
case 40:
|
|
613
|
+
e === 41 && mt(e);
|
|
614
|
+
break;
|
|
615
|
+
// \
|
|
616
|
+
case 92:
|
|
617
|
+
B();
|
|
618
|
+
break;
|
|
619
|
+
}
|
|
620
|
+
return W;
|
|
621
|
+
}
|
|
622
|
+
function qr(e, t) {
|
|
623
|
+
for (; B() && e + P !== 57; )
|
|
624
|
+
if (e + P === 84 && le() === 47)
|
|
625
|
+
break;
|
|
626
|
+
return "/*" + rt(t, W - 1) + "*" + xt(e === 47 ? e : B());
|
|
627
|
+
}
|
|
628
|
+
function Xr(e) {
|
|
629
|
+
for (; !ht(le()); )
|
|
630
|
+
B();
|
|
631
|
+
return rt(e, W);
|
|
632
|
+
}
|
|
633
|
+
function Jr(e) {
|
|
634
|
+
return Gr(Ue("", null, null, null, [""], e = Br(e), 0, [0], e));
|
|
635
|
+
}
|
|
636
|
+
function Ue(e, t, r, o, a, s, i, f, l) {
|
|
637
|
+
for (var y = 0, b = 0, g = i, w = 0, v = 0, C = 0, _ = 1, $ = 1, N = 1, T = 0, k = "", x = a, R = s, m = o, p = k; $; )
|
|
638
|
+
switch (C = T, T = B()) {
|
|
639
|
+
// (
|
|
640
|
+
case 40:
|
|
641
|
+
if (C != 108 && j(p, g - 1) == 58) {
|
|
642
|
+
Ge(p += h(ct(T), "&", "&\f"), "&\f", nr(y ? f[y - 1] : 0)) != -1 && (N = -1);
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
// " ' [
|
|
646
|
+
case 34:
|
|
647
|
+
case 39:
|
|
648
|
+
case 91:
|
|
649
|
+
p += ct(T);
|
|
650
|
+
break;
|
|
651
|
+
// \t \n \r \s
|
|
652
|
+
case 9:
|
|
653
|
+
case 10:
|
|
654
|
+
case 13:
|
|
655
|
+
case 32:
|
|
656
|
+
p += Hr(C);
|
|
657
|
+
break;
|
|
658
|
+
// \
|
|
659
|
+
case 92:
|
|
660
|
+
p += Ur(He() - 1, 7);
|
|
661
|
+
continue;
|
|
662
|
+
// /
|
|
663
|
+
case 47:
|
|
664
|
+
switch (le()) {
|
|
665
|
+
case 42:
|
|
666
|
+
case 47:
|
|
667
|
+
$e(Kr(qr(B(), He()), t, r, l), l);
|
|
668
|
+
break;
|
|
669
|
+
default:
|
|
670
|
+
p += "/";
|
|
671
|
+
}
|
|
672
|
+
break;
|
|
673
|
+
// {
|
|
674
|
+
case 123 * _:
|
|
675
|
+
f[y++] = H(p) * N;
|
|
676
|
+
// } ; \0
|
|
677
|
+
case 125 * _:
|
|
678
|
+
case 59:
|
|
679
|
+
case 0:
|
|
680
|
+
switch (T) {
|
|
681
|
+
// \0 }
|
|
682
|
+
case 0:
|
|
683
|
+
case 125:
|
|
684
|
+
$ = 0;
|
|
685
|
+
// ;
|
|
686
|
+
case 59 + b:
|
|
687
|
+
N == -1 && (p = h(p, /\f/g, "")), v > 0 && H(p) - g && $e(v > 32 ? Yt(p + ";", o, r, g - 1, l) : Yt(h(p, " ", "") + ";", o, r, g - 2, l), l);
|
|
688
|
+
break;
|
|
689
|
+
// @ ;
|
|
690
|
+
case 59:
|
|
691
|
+
p += ";";
|
|
692
|
+
// { rule/at-rule
|
|
693
|
+
default:
|
|
694
|
+
if ($e(m = zt(p, t, r, y, b, a, f, k, x = [], R = [], g, s), s), T === 123)
|
|
695
|
+
if (b === 0)
|
|
696
|
+
Ue(p, t, m, m, x, s, g, f, R);
|
|
697
|
+
else
|
|
698
|
+
switch (w === 99 && j(p, 3) === 110 ? 100 : w) {
|
|
699
|
+
// d l m s
|
|
700
|
+
case 100:
|
|
701
|
+
case 108:
|
|
702
|
+
case 109:
|
|
703
|
+
case 115:
|
|
704
|
+
Ue(e, m, m, o && $e(zt(e, m, m, 0, 0, a, f, k, a, x = [], g, R), R), a, R, g, f, o ? x : R);
|
|
705
|
+
break;
|
|
706
|
+
default:
|
|
707
|
+
Ue(p, m, m, m, [""], R, 0, f, R);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
y = b = v = 0, _ = N = 1, k = p = "", g = i;
|
|
711
|
+
break;
|
|
712
|
+
// :
|
|
713
|
+
case 58:
|
|
714
|
+
g = 1 + H(p), v = C;
|
|
715
|
+
default:
|
|
716
|
+
if (_ < 1) {
|
|
717
|
+
if (T == 123)
|
|
718
|
+
--_;
|
|
719
|
+
else if (T == 125 && _++ == 0 && Fr() == 125)
|
|
720
|
+
continue;
|
|
721
|
+
}
|
|
722
|
+
switch (p += xt(T), T * _) {
|
|
723
|
+
// &
|
|
724
|
+
case 38:
|
|
725
|
+
N = b > 0 ? 1 : (p += "\f", -1);
|
|
726
|
+
break;
|
|
727
|
+
// ,
|
|
728
|
+
case 44:
|
|
729
|
+
f[y++] = (H(p) - 1) * N, N = 1;
|
|
730
|
+
break;
|
|
731
|
+
// @
|
|
732
|
+
case 64:
|
|
733
|
+
le() === 45 && (p += ct(B())), w = le(), b = g = H(k = p += Xr(He())), T++;
|
|
734
|
+
break;
|
|
735
|
+
// -
|
|
736
|
+
case 45:
|
|
737
|
+
C === 45 && H(p) == 2 && (_ = 0);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
return s;
|
|
741
|
+
}
|
|
742
|
+
function zt(e, t, r, o, a, s, i, f, l, y, b, g) {
|
|
743
|
+
for (var w = a - 1, v = a === 0 ? s : [""], C = ar(v), _ = 0, $ = 0, N = 0; _ < o; ++_)
|
|
744
|
+
for (var T = 0, k = we(e, w + 1, w = nr($ = i[_])), x = e; T < C; ++T)
|
|
745
|
+
(x = or($ > 0 ? v[T] + " " + k : h(k, /&\f/g, v[T]))) && (l[N++] = x);
|
|
746
|
+
return tt(e, t, r, a === 0 ? Qe : f, l, y, b, g);
|
|
747
|
+
}
|
|
748
|
+
function Kr(e, t, r, o) {
|
|
749
|
+
return tt(e, t, r, tr, xt(Wr()), we(e, 2, -2), 0, o);
|
|
750
|
+
}
|
|
751
|
+
function Yt(e, t, r, o, a) {
|
|
752
|
+
return tt(e, t, r, St, we(e, 0, o), we(e, o + 1, -1), o, a);
|
|
753
|
+
}
|
|
754
|
+
function ir(e, t, r) {
|
|
755
|
+
switch (Lr(e, t)) {
|
|
756
|
+
// color-adjust
|
|
757
|
+
case 5103:
|
|
758
|
+
return S + "print-" + e + e;
|
|
759
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
760
|
+
case 5737:
|
|
761
|
+
case 4201:
|
|
762
|
+
case 3177:
|
|
763
|
+
case 3433:
|
|
764
|
+
case 1641:
|
|
765
|
+
case 4457:
|
|
766
|
+
case 2921:
|
|
767
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
768
|
+
case 5572:
|
|
769
|
+
case 6356:
|
|
770
|
+
case 5844:
|
|
771
|
+
case 3191:
|
|
772
|
+
case 6645:
|
|
773
|
+
case 3005:
|
|
774
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
775
|
+
case 6391:
|
|
776
|
+
case 5879:
|
|
777
|
+
case 5623:
|
|
778
|
+
case 6135:
|
|
779
|
+
case 4599:
|
|
780
|
+
case 4855:
|
|
781
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
782
|
+
case 4215:
|
|
783
|
+
case 6389:
|
|
784
|
+
case 5109:
|
|
785
|
+
case 5365:
|
|
786
|
+
case 5621:
|
|
787
|
+
case 3829:
|
|
788
|
+
return S + e + e;
|
|
789
|
+
// tab-size
|
|
790
|
+
case 4789:
|
|
791
|
+
return Ie + e + e;
|
|
792
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
793
|
+
case 5349:
|
|
794
|
+
case 4246:
|
|
795
|
+
case 4810:
|
|
796
|
+
case 6968:
|
|
797
|
+
case 2756:
|
|
798
|
+
return S + e + Ie + e + A + e + e;
|
|
799
|
+
// writing-mode
|
|
800
|
+
case 5936:
|
|
801
|
+
switch (j(e, t + 11)) {
|
|
802
|
+
// vertical-l(r)
|
|
803
|
+
case 114:
|
|
804
|
+
return S + e + A + h(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
805
|
+
// vertical-r(l)
|
|
806
|
+
case 108:
|
|
807
|
+
return S + e + A + h(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
808
|
+
// horizontal(-)tb
|
|
809
|
+
case 45:
|
|
810
|
+
return S + e + A + h(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
811
|
+
}
|
|
812
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
813
|
+
case 6828:
|
|
814
|
+
case 4268:
|
|
815
|
+
case 2903:
|
|
816
|
+
return S + e + A + e + e;
|
|
817
|
+
// order
|
|
818
|
+
case 6165:
|
|
819
|
+
return S + e + A + "flex-" + e + e;
|
|
820
|
+
// align-items
|
|
821
|
+
case 5187:
|
|
822
|
+
return S + e + h(e, /(\w+).+(:[^]+)/, S + "box-$1$2" + A + "flex-$1$2") + e;
|
|
823
|
+
// align-self
|
|
824
|
+
case 5443:
|
|
825
|
+
return S + e + A + "flex-item-" + h(e, /flex-|-self/g, "") + (Z(e, /flex-|baseline/) ? "" : A + "grid-row-" + h(e, /flex-|-self/g, "")) + e;
|
|
826
|
+
// align-content
|
|
827
|
+
case 4675:
|
|
828
|
+
return S + e + A + "flex-line-pack" + h(e, /align-content|flex-|-self/g, "") + e;
|
|
829
|
+
// flex-shrink
|
|
830
|
+
case 5548:
|
|
831
|
+
return S + e + A + h(e, "shrink", "negative") + e;
|
|
832
|
+
// flex-basis
|
|
833
|
+
case 5292:
|
|
834
|
+
return S + e + A + h(e, "basis", "preferred-size") + e;
|
|
835
|
+
// flex-grow
|
|
836
|
+
case 6060:
|
|
837
|
+
return S + "box-" + h(e, "-grow", "") + S + e + A + h(e, "grow", "positive") + e;
|
|
838
|
+
// transition
|
|
839
|
+
case 4554:
|
|
840
|
+
return S + h(e, /([^-])(transform)/g, "$1" + S + "$2") + e;
|
|
841
|
+
// cursor
|
|
842
|
+
case 6187:
|
|
843
|
+
return h(h(h(e, /(zoom-|grab)/, S + "$1"), /(image-set)/, S + "$1"), e, "") + e;
|
|
844
|
+
// background, background-image
|
|
845
|
+
case 5495:
|
|
846
|
+
case 3959:
|
|
847
|
+
return h(e, /(image-set\([^]*)/, S + "$1$`$1");
|
|
848
|
+
// justify-content
|
|
849
|
+
case 4968:
|
|
850
|
+
return h(h(e, /(.+:)(flex-)?(.*)/, S + "box-pack:$3" + A + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + S + e + e;
|
|
851
|
+
// justify-self
|
|
852
|
+
case 4200:
|
|
853
|
+
if (!Z(e, /flex-|baseline/)) return A + "grid-column-align" + we(e, t) + e;
|
|
854
|
+
break;
|
|
855
|
+
// grid-template-(columns|rows)
|
|
856
|
+
case 2592:
|
|
857
|
+
case 3360:
|
|
858
|
+
return A + h(e, "template-", "") + e;
|
|
859
|
+
// grid-(row|column)-start
|
|
860
|
+
case 4384:
|
|
861
|
+
case 3616:
|
|
862
|
+
return r && r.some(function(o, a) {
|
|
863
|
+
return t = a, Z(o.props, /grid-\w+-end/);
|
|
864
|
+
}) ? ~Ge(e + (r = r[t].value), "span", 0) ? e : A + h(e, "-start", "") + e + A + "grid-row-span:" + (~Ge(r, "span", 0) ? Z(r, /\d+/) : +Z(r, /\d+/) - +Z(e, /\d+/)) + ";" : A + h(e, "-start", "") + e;
|
|
865
|
+
// grid-(row|column)-end
|
|
866
|
+
case 4896:
|
|
867
|
+
case 4128:
|
|
868
|
+
return r && r.some(function(o) {
|
|
869
|
+
return Z(o.props, /grid-\w+-start/);
|
|
870
|
+
}) ? e : A + h(h(e, "-end", "-span"), "span ", "") + e;
|
|
871
|
+
// (margin|padding)-inline-(start|end)
|
|
872
|
+
case 4095:
|
|
873
|
+
case 3583:
|
|
874
|
+
case 4068:
|
|
875
|
+
case 2532:
|
|
876
|
+
return h(e, /(.+)-inline(.+)/, S + "$1$2") + e;
|
|
877
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
878
|
+
case 8116:
|
|
879
|
+
case 7059:
|
|
880
|
+
case 5753:
|
|
881
|
+
case 5535:
|
|
882
|
+
case 5445:
|
|
883
|
+
case 5701:
|
|
884
|
+
case 4933:
|
|
885
|
+
case 4677:
|
|
886
|
+
case 5533:
|
|
887
|
+
case 5789:
|
|
888
|
+
case 5021:
|
|
889
|
+
case 4765:
|
|
890
|
+
if (H(e) - 1 - t > 6)
|
|
891
|
+
switch (j(e, t + 1)) {
|
|
892
|
+
// (m)ax-content, (m)in-content
|
|
893
|
+
case 109:
|
|
894
|
+
if (j(e, t + 4) !== 45)
|
|
895
|
+
break;
|
|
896
|
+
// (f)ill-available, (f)it-content
|
|
897
|
+
case 102:
|
|
898
|
+
return h(e, /(.+:)(.+)-([^]+)/, "$1" + S + "$2-$3$1" + Ie + (j(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
899
|
+
// (s)tretch
|
|
900
|
+
case 115:
|
|
901
|
+
return ~Ge(e, "stretch", 0) ? ir(h(e, "stretch", "fill-available"), t, r) + e : e;
|
|
902
|
+
}
|
|
903
|
+
break;
|
|
904
|
+
// grid-(column|row)
|
|
905
|
+
case 5152:
|
|
906
|
+
case 5920:
|
|
907
|
+
return h(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(o, a, s, i, f, l, y) {
|
|
908
|
+
return A + a + ":" + s + y + (i ? A + a + "-span:" + (f ? l : +l - +s) + y : "") + e;
|
|
909
|
+
});
|
|
910
|
+
// position: sticky
|
|
911
|
+
case 4949:
|
|
912
|
+
if (j(e, t + 6) === 121)
|
|
913
|
+
return h(e, ":", ":" + S) + e;
|
|
914
|
+
break;
|
|
915
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
916
|
+
case 6444:
|
|
917
|
+
switch (j(e, j(e, 14) === 45 ? 18 : 11)) {
|
|
918
|
+
// (inline-)?fle(x)
|
|
919
|
+
case 120:
|
|
920
|
+
return h(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + S + (j(e, 14) === 45 ? "inline-" : "") + "box$3$1" + S + "$2$3$1" + A + "$2box$3") + e;
|
|
921
|
+
// (inline-)?gri(d)
|
|
922
|
+
case 100:
|
|
923
|
+
return h(e, ":", ":" + A) + e;
|
|
924
|
+
}
|
|
925
|
+
break;
|
|
926
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
927
|
+
case 5719:
|
|
928
|
+
case 2647:
|
|
929
|
+
case 2135:
|
|
930
|
+
case 3927:
|
|
931
|
+
case 2391:
|
|
932
|
+
return h(e, "scroll-", "scroll-snap-") + e;
|
|
933
|
+
}
|
|
934
|
+
return e;
|
|
935
|
+
}
|
|
936
|
+
function Je(e, t) {
|
|
937
|
+
for (var r = "", o = 0; o < e.length; o++)
|
|
938
|
+
r += t(e[o], o, e, t) || "";
|
|
939
|
+
return r;
|
|
940
|
+
}
|
|
941
|
+
function Zr(e, t, r, o) {
|
|
942
|
+
switch (e.type) {
|
|
943
|
+
case Yr:
|
|
944
|
+
if (e.children.length) break;
|
|
945
|
+
case zr:
|
|
946
|
+
case St:
|
|
947
|
+
return e.return = e.return || e.value;
|
|
948
|
+
case tr:
|
|
949
|
+
return "";
|
|
950
|
+
case rr:
|
|
951
|
+
return e.return = e.value + "{" + Je(e.children, o) + "}";
|
|
952
|
+
case Qe:
|
|
953
|
+
if (!H(e.value = e.props.join(","))) return "";
|
|
954
|
+
}
|
|
955
|
+
return H(r = Je(e.children, o)) ? e.return = e.value + "{" + r + "}" : "";
|
|
956
|
+
}
|
|
957
|
+
function Qr(e) {
|
|
958
|
+
var t = ar(e);
|
|
959
|
+
return function(r, o, a, s) {
|
|
960
|
+
for (var i = "", f = 0; f < t; f++)
|
|
961
|
+
i += e[f](r, o, a, s) || "";
|
|
962
|
+
return i;
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
function en(e) {
|
|
966
|
+
return function(t) {
|
|
967
|
+
t.root || (t = t.return) && e(t);
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
function tn(e, t, r, o) {
|
|
971
|
+
if (e.length > -1 && !e.return)
|
|
972
|
+
switch (e.type) {
|
|
973
|
+
case St:
|
|
974
|
+
e.return = ir(e.value, e.length, r);
|
|
975
|
+
return;
|
|
976
|
+
case rr:
|
|
977
|
+
return Je([re(e, { value: h(e.value, "@", "@" + S) })], o);
|
|
978
|
+
case Qe:
|
|
979
|
+
if (e.length)
|
|
980
|
+
return Vr(r = e.props, function(a) {
|
|
981
|
+
switch (Z(a, o = /(::plac\w+|:read-\w+)/)) {
|
|
982
|
+
// :read-(only|write)
|
|
983
|
+
case ":read-only":
|
|
984
|
+
case ":read-write":
|
|
985
|
+
ye(re(e, { props: [h(a, /:(read-\w+)/, ":" + Ie + "$1")] })), ye(re(e, { props: [a] })), dt(e, { props: Dt(r, o) });
|
|
986
|
+
break;
|
|
987
|
+
// :placeholder
|
|
988
|
+
case "::placeholder":
|
|
989
|
+
ye(re(e, { props: [h(a, /:(plac\w+)/, ":" + S + "input-$1")] })), ye(re(e, { props: [h(a, /:(plac\w+)/, ":" + Ie + "$1")] })), ye(re(e, { props: [h(a, /:(plac\w+)/, A + "input-$1")] })), ye(re(e, { props: [a] })), dt(e, { props: Dt(r, o) });
|
|
990
|
+
break;
|
|
991
|
+
}
|
|
992
|
+
return "";
|
|
993
|
+
});
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
var rn = {
|
|
997
|
+
animationIterationCount: 1,
|
|
998
|
+
aspectRatio: 1,
|
|
999
|
+
borderImageOutset: 1,
|
|
1000
|
+
borderImageSlice: 1,
|
|
1001
|
+
borderImageWidth: 1,
|
|
1002
|
+
boxFlex: 1,
|
|
1003
|
+
boxFlexGroup: 1,
|
|
1004
|
+
boxOrdinalGroup: 1,
|
|
1005
|
+
columnCount: 1,
|
|
1006
|
+
columns: 1,
|
|
1007
|
+
flex: 1,
|
|
1008
|
+
flexGrow: 1,
|
|
1009
|
+
flexPositive: 1,
|
|
1010
|
+
flexShrink: 1,
|
|
1011
|
+
flexNegative: 1,
|
|
1012
|
+
flexOrder: 1,
|
|
1013
|
+
gridRow: 1,
|
|
1014
|
+
gridRowEnd: 1,
|
|
1015
|
+
gridRowSpan: 1,
|
|
1016
|
+
gridRowStart: 1,
|
|
1017
|
+
gridColumn: 1,
|
|
1018
|
+
gridColumnEnd: 1,
|
|
1019
|
+
gridColumnSpan: 1,
|
|
1020
|
+
gridColumnStart: 1,
|
|
1021
|
+
msGridRow: 1,
|
|
1022
|
+
msGridRowSpan: 1,
|
|
1023
|
+
msGridColumn: 1,
|
|
1024
|
+
msGridColumnSpan: 1,
|
|
1025
|
+
fontWeight: 1,
|
|
1026
|
+
lineHeight: 1,
|
|
1027
|
+
opacity: 1,
|
|
1028
|
+
order: 1,
|
|
1029
|
+
orphans: 1,
|
|
1030
|
+
tabSize: 1,
|
|
1031
|
+
widows: 1,
|
|
1032
|
+
zIndex: 1,
|
|
1033
|
+
zoom: 1,
|
|
1034
|
+
WebkitLineClamp: 1,
|
|
1035
|
+
// SVG-related properties
|
|
1036
|
+
fillOpacity: 1,
|
|
1037
|
+
floodOpacity: 1,
|
|
1038
|
+
stopOpacity: 1,
|
|
1039
|
+
strokeDasharray: 1,
|
|
1040
|
+
strokeDashoffset: 1,
|
|
1041
|
+
strokeMiterlimit: 1,
|
|
1042
|
+
strokeOpacity: 1,
|
|
1043
|
+
strokeWidth: 1
|
|
1044
|
+
}, pe = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", cr = "active", ur = "data-styled-version", nt = "6.1.15", kt = `/*!sc*/
|
|
1045
|
+
`, Ke = typeof window < "u" && "HTMLElement" in window, nn = !!(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"), Lt = /invalid hook call/i, Ve = /* @__PURE__ */ new Set(), on = function(e, t) {
|
|
1046
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1047
|
+
var r = t ? ' with the id of "'.concat(t, '"') : "", o = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
1048
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
1049
|
+
To resolve this only create new StyledComponents outside of any render method and function component.`, a = console.error;
|
|
1050
|
+
try {
|
|
1051
|
+
var s = !0;
|
|
1052
|
+
console.error = function(i) {
|
|
1053
|
+
for (var f = [], l = 1; l < arguments.length; l++) f[l - 1] = arguments[l];
|
|
1054
|
+
Lt.test(i) ? (s = !1, Ve.delete(o)) : a.apply(void 0, be([i], f, !1));
|
|
1055
|
+
}, Rr(), s && !Ve.has(o) && (console.warn(o), Ve.add(o));
|
|
1056
|
+
} catch (i) {
|
|
1057
|
+
Lt.test(i.message) && Ve.delete(o);
|
|
1058
|
+
} finally {
|
|
1059
|
+
console.error = a;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
}, ot = Object.freeze([]), Se = Object.freeze({});
|
|
1063
|
+
function an(e, t, r) {
|
|
1064
|
+
return r === void 0 && (r = Se), e.theme !== r.theme && e.theme || t || r.theme;
|
|
1065
|
+
}
|
|
1066
|
+
var gt = /* @__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"]), sn = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, cn = /(^-|-$)/g;
|
|
1067
|
+
function Vt(e) {
|
|
1068
|
+
return e.replace(sn, "-").replace(cn, "");
|
|
1069
|
+
}
|
|
1070
|
+
var un = /(a)(d)/gi, We = 52, Wt = function(e) {
|
|
1071
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
1072
|
+
};
|
|
1073
|
+
function yt(e) {
|
|
1074
|
+
var t, r = "";
|
|
1075
|
+
for (t = Math.abs(e); t > We; t = t / We | 0) r = Wt(t % We) + r;
|
|
1076
|
+
return (Wt(t % We) + r).replace(un, "$1-$2");
|
|
1077
|
+
}
|
|
1078
|
+
var ut, lr = 5381, ce = function(e, t) {
|
|
1079
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
1080
|
+
return e;
|
|
1081
|
+
}, fr = function(e) {
|
|
1082
|
+
return ce(lr, e);
|
|
1083
|
+
};
|
|
1084
|
+
function ln(e) {
|
|
1085
|
+
return yt(fr(e) >>> 0);
|
|
1086
|
+
}
|
|
1087
|
+
function pr(e) {
|
|
1088
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
1089
|
+
}
|
|
1090
|
+
function lt(e) {
|
|
1091
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
1092
|
+
}
|
|
1093
|
+
var dr = typeof Symbol == "function" && Symbol.for, hr = dr ? Symbol.for("react.memo") : 60115, fn = dr ? Symbol.for("react.forward_ref") : 60112, pn = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, dn = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, mr = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, hn = ((ut = {})[fn] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, ut[hr] = mr, ut);
|
|
1094
|
+
function Ft(e) {
|
|
1095
|
+
return ("type" in (t = e) && t.type.$$typeof) === hr ? mr : "$$typeof" in e ? hn[e.$$typeof] : pn;
|
|
1096
|
+
var t;
|
|
1097
|
+
}
|
|
1098
|
+
var mn = Object.defineProperty, gn = Object.getOwnPropertyNames, Bt = Object.getOwnPropertySymbols, yn = Object.getOwnPropertyDescriptor, vn = Object.getPrototypeOf, Gt = Object.prototype;
|
|
1099
|
+
function gr(e, t, r) {
|
|
1100
|
+
if (typeof t != "string") {
|
|
1101
|
+
if (Gt) {
|
|
1102
|
+
var o = vn(t);
|
|
1103
|
+
o && o !== Gt && gr(e, o, r);
|
|
1104
|
+
}
|
|
1105
|
+
var a = gn(t);
|
|
1106
|
+
Bt && (a = a.concat(Bt(t)));
|
|
1107
|
+
for (var s = Ft(e), i = Ft(t), f = 0; f < a.length; ++f) {
|
|
1108
|
+
var l = a[f];
|
|
1109
|
+
if (!(l in dn || r && r[l] || i && l in i || s && l in s)) {
|
|
1110
|
+
var y = yn(t, l);
|
|
1111
|
+
try {
|
|
1112
|
+
mn(e, l, y);
|
|
1113
|
+
} catch {
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
return e;
|
|
1119
|
+
}
|
|
1120
|
+
function xe(e) {
|
|
1121
|
+
return typeof e == "function";
|
|
1122
|
+
}
|
|
1123
|
+
function Ct(e) {
|
|
1124
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
1125
|
+
}
|
|
1126
|
+
function ue(e, t) {
|
|
1127
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
1128
|
+
}
|
|
1129
|
+
function Ht(e, t) {
|
|
1130
|
+
if (e.length === 0) return "";
|
|
1131
|
+
for (var r = e[0], o = 1; o < e.length; o++) r += e[o];
|
|
1132
|
+
return r;
|
|
1133
|
+
}
|
|
1134
|
+
function ke(e) {
|
|
1135
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
1136
|
+
}
|
|
1137
|
+
function vt(e, t, r) {
|
|
1138
|
+
if (r === void 0 && (r = !1), !r && !ke(e) && !Array.isArray(e)) return t;
|
|
1139
|
+
if (Array.isArray(t)) for (var o = 0; o < t.length; o++) e[o] = vt(e[o], t[o]);
|
|
1140
|
+
else if (ke(t)) for (var o in t) e[o] = vt(e[o], t[o]);
|
|
1141
|
+
return e;
|
|
1142
|
+
}
|
|
1143
|
+
function At(e, t) {
|
|
1144
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1145
|
+
}
|
|
1146
|
+
var bn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1147
|
+
|
|
1148
|
+
`, 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.
|
|
1149
|
+
|
|
1150
|
+
- Are you trying to reuse it across renders?
|
|
1151
|
+
- Are you accidentally calling collectStyles twice?
|
|
1152
|
+
|
|
1153
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1154
|
+
|
|
1155
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1156
|
+
|
|
1157
|
+
- Does this error occur on the client and is your target falsy?
|
|
1158
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1159
|
+
|
|
1160
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1161
|
+
|
|
1162
|
+
- Are you running in a client-like environment on the server?
|
|
1163
|
+
- Are you trying to run SSR on the client?
|
|
1164
|
+
|
|
1165
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1166
|
+
|
|
1167
|
+
- Are you using a custom target that isn't mounted?
|
|
1168
|
+
- Does your document not have a valid head element?
|
|
1169
|
+
- Have you accidentally removed a style tag manually?
|
|
1170
|
+
|
|
1171
|
+
`, 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.
|
|
1172
|
+
|
|
1173
|
+
`, 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
|
|
1174
|
+
|
|
1175
|
+
`, 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.
|
|
1176
|
+
|
|
1177
|
+
`, 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.
|
|
1178
|
+
|
|
1179
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1180
|
+
|
|
1181
|
+
`, 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.
|
|
1182
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1183
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1184
|
+
|
|
1185
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1186
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1187
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1188
|
+
function wn() {
|
|
1189
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1190
|
+
for (var r = e[0], o = [], a = 1, s = e.length; a < s; a += 1) o.push(e[a]);
|
|
1191
|
+
return o.forEach(function(i) {
|
|
1192
|
+
r = r.replace(/%[a-z]/, i);
|
|
1193
|
+
}), r;
|
|
1194
|
+
}
|
|
1195
|
+
function Ae(e) {
|
|
1196
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1197
|
+
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(wn.apply(void 0, be([bn[e]], t, !1)).trim());
|
|
1198
|
+
}
|
|
1199
|
+
var En = function() {
|
|
1200
|
+
function e(t) {
|
|
1201
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1202
|
+
}
|
|
1203
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1204
|
+
for (var r = 0, o = 0; o < t; o++) r += this.groupSizes[o];
|
|
1205
|
+
return r;
|
|
1206
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
1207
|
+
if (t >= this.groupSizes.length) {
|
|
1208
|
+
for (var o = this.groupSizes, a = o.length, s = a; t >= s; ) if ((s <<= 1) < 0) throw Ae(16, "".concat(t));
|
|
1209
|
+
this.groupSizes = new Uint32Array(s), this.groupSizes.set(o), this.length = s;
|
|
1210
|
+
for (var i = a; i < s; i++) this.groupSizes[i] = 0;
|
|
1211
|
+
}
|
|
1212
|
+
for (var f = this.indexOfGroup(t + 1), l = (i = 0, r.length); i < l; i++) this.tag.insertRule(f, r[i]) && (this.groupSizes[t]++, f++);
|
|
1213
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1214
|
+
if (t < this.length) {
|
|
1215
|
+
var r = this.groupSizes[t], o = this.indexOfGroup(t), a = o + r;
|
|
1216
|
+
this.groupSizes[t] = 0;
|
|
1217
|
+
for (var s = o; s < a; s++) this.tag.deleteRule(o);
|
|
1218
|
+
}
|
|
1219
|
+
}, e.prototype.getGroup = function(t) {
|
|
1220
|
+
var r = "";
|
|
1221
|
+
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1222
|
+
for (var o = this.groupSizes[t], a = this.indexOfGroup(t), s = a + o, i = a; i < s; i++) r += "".concat(this.tag.getRule(i)).concat(kt);
|
|
1223
|
+
return r;
|
|
1224
|
+
}, e;
|
|
1225
|
+
}(), Sn = 1 << 30, qe = /* @__PURE__ */ new Map(), Ze = /* @__PURE__ */ new Map(), Xe = 1, Fe = function(e) {
|
|
1226
|
+
if (qe.has(e)) return qe.get(e);
|
|
1227
|
+
for (; Ze.has(Xe); ) Xe++;
|
|
1228
|
+
var t = Xe++;
|
|
1229
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > Sn)) throw Ae(16, "".concat(t));
|
|
1230
|
+
return qe.set(e, t), Ze.set(t, e), t;
|
|
1231
|
+
}, xn = function(e, t) {
|
|
1232
|
+
Xe = t + 1, qe.set(e, t), Ze.set(t, e);
|
|
1233
|
+
}, kn = "style[".concat(pe, "][").concat(ur, '="').concat(nt, '"]'), Cn = new RegExp("^".concat(pe, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), An = function(e, t, r) {
|
|
1234
|
+
for (var o, a = r.split(","), s = 0, i = a.length; s < i; s++) (o = a[s]) && e.registerName(t, o);
|
|
1235
|
+
}, _n = function(e, t) {
|
|
1236
|
+
for (var r, o = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(kt), a = [], s = 0, i = o.length; s < i; s++) {
|
|
1237
|
+
var f = o[s].trim();
|
|
1238
|
+
if (f) {
|
|
1239
|
+
var l = f.match(Cn);
|
|
1240
|
+
if (l) {
|
|
1241
|
+
var y = 0 | parseInt(l[1], 10), b = l[2];
|
|
1242
|
+
y !== 0 && (xn(b, y), An(e, b, l[3]), e.getTag().insertRules(y, a)), a.length = 0;
|
|
1243
|
+
} else a.push(f);
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
}, Ut = function(e) {
|
|
1247
|
+
for (var t = document.querySelectorAll(kn), r = 0, o = t.length; r < o; r++) {
|
|
1248
|
+
var a = t[r];
|
|
1249
|
+
a && a.getAttribute(pe) !== cr && (_n(e, a), a.parentNode && a.parentNode.removeChild(a));
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
function Tn() {
|
|
1253
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1254
|
+
}
|
|
1255
|
+
var yr = function(e) {
|
|
1256
|
+
var t = document.head, r = e || t, o = document.createElement("style"), a = function(f) {
|
|
1257
|
+
var l = Array.from(f.querySelectorAll("style[".concat(pe, "]")));
|
|
1258
|
+
return l[l.length - 1];
|
|
1259
|
+
}(r), s = a !== void 0 ? a.nextSibling : null;
|
|
1260
|
+
o.setAttribute(pe, cr), o.setAttribute(ur, nt);
|
|
1261
|
+
var i = Tn();
|
|
1262
|
+
return i && o.setAttribute("nonce", i), r.insertBefore(o, s), o;
|
|
1263
|
+
}, Rn = function() {
|
|
1264
|
+
function e(t) {
|
|
1265
|
+
this.element = yr(t), this.element.appendChild(document.createTextNode("")), this.sheet = function(r) {
|
|
1266
|
+
if (r.sheet) return r.sheet;
|
|
1267
|
+
for (var o = document.styleSheets, a = 0, s = o.length; a < s; a++) {
|
|
1268
|
+
var i = o[a];
|
|
1269
|
+
if (i.ownerNode === r) return i;
|
|
1270
|
+
}
|
|
1271
|
+
throw Ae(17);
|
|
1272
|
+
}(this.element), this.length = 0;
|
|
1273
|
+
}
|
|
1274
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1275
|
+
try {
|
|
1276
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1277
|
+
} catch {
|
|
1278
|
+
return !1;
|
|
1279
|
+
}
|
|
1280
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1281
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1282
|
+
}, e.prototype.getRule = function(t) {
|
|
1283
|
+
var r = this.sheet.cssRules[t];
|
|
1284
|
+
return r && r.cssText ? r.cssText : "";
|
|
1285
|
+
}, e;
|
|
1286
|
+
}(), Nn = function() {
|
|
1287
|
+
function e(t) {
|
|
1288
|
+
this.element = yr(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1289
|
+
}
|
|
1290
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1291
|
+
if (t <= this.length && t >= 0) {
|
|
1292
|
+
var o = document.createTextNode(r);
|
|
1293
|
+
return this.element.insertBefore(o, this.nodes[t] || null), this.length++, !0;
|
|
1294
|
+
}
|
|
1295
|
+
return !1;
|
|
1296
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1297
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1298
|
+
}, e.prototype.getRule = function(t) {
|
|
1299
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1300
|
+
}, e;
|
|
1301
|
+
}(), On = function() {
|
|
1302
|
+
function e(t) {
|
|
1303
|
+
this.rules = [], this.length = 0;
|
|
1304
|
+
}
|
|
1305
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1306
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1307
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1308
|
+
this.rules.splice(t, 1), this.length--;
|
|
1309
|
+
}, e.prototype.getRule = function(t) {
|
|
1310
|
+
return t < this.length ? this.rules[t] : "";
|
|
1311
|
+
}, e;
|
|
1312
|
+
}(), qt = Ke, Pn = { isServer: !Ke, useCSSOMInjection: !nn }, vr = function() {
|
|
1313
|
+
function e(t, r, o) {
|
|
1314
|
+
t === void 0 && (t = Se), r === void 0 && (r = {});
|
|
1315
|
+
var a = this;
|
|
1316
|
+
this.options = Y(Y({}, Pn), t), this.gs = r, this.names = new Map(o), this.server = !!t.isServer, !this.server && Ke && qt && (qt = !1, Ut(this)), At(this, function() {
|
|
1317
|
+
return function(s) {
|
|
1318
|
+
for (var i = s.getTag(), f = i.length, l = "", y = function(g) {
|
|
1319
|
+
var w = function(N) {
|
|
1320
|
+
return Ze.get(N);
|
|
1321
|
+
}(g);
|
|
1322
|
+
if (w === void 0) return "continue";
|
|
1323
|
+
var v = s.names.get(w), C = i.getGroup(g);
|
|
1324
|
+
if (v === void 0 || !v.size || C.length === 0) return "continue";
|
|
1325
|
+
var _ = "".concat(pe, ".g").concat(g, '[id="').concat(w, '"]'), $ = "";
|
|
1326
|
+
v !== void 0 && v.forEach(function(N) {
|
|
1327
|
+
N.length > 0 && ($ += "".concat(N, ","));
|
|
1328
|
+
}), l += "".concat(C).concat(_, '{content:"').concat($, '"}').concat(kt);
|
|
1329
|
+
}, b = 0; b < f; b++) y(b);
|
|
1330
|
+
return l;
|
|
1331
|
+
}(a);
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
return e.registerId = function(t) {
|
|
1335
|
+
return Fe(t);
|
|
1336
|
+
}, e.prototype.rehydrate = function() {
|
|
1337
|
+
!this.server && Ke && Ut(this);
|
|
1338
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1339
|
+
return r === void 0 && (r = !0), new e(Y(Y({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1340
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1341
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1342
|
+
}, e.prototype.getTag = function() {
|
|
1343
|
+
return this.tag || (this.tag = (t = function(r) {
|
|
1344
|
+
var o = r.useCSSOMInjection, a = r.target;
|
|
1345
|
+
return r.isServer ? new On(a) : o ? new Rn(a) : new Nn(a);
|
|
1346
|
+
}(this.options), new En(t)));
|
|
1347
|
+
var t;
|
|
1348
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
1349
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
1350
|
+
}, e.prototype.registerName = function(t, r) {
|
|
1351
|
+
if (Fe(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1352
|
+
else {
|
|
1353
|
+
var o = /* @__PURE__ */ new Set();
|
|
1354
|
+
o.add(r), this.names.set(t, o);
|
|
1355
|
+
}
|
|
1356
|
+
}, e.prototype.insertRules = function(t, r, o) {
|
|
1357
|
+
this.registerName(t, r), this.getTag().insertRules(Fe(t), o);
|
|
1358
|
+
}, e.prototype.clearNames = function(t) {
|
|
1359
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1360
|
+
}, e.prototype.clearRules = function(t) {
|
|
1361
|
+
this.getTag().clearGroup(Fe(t)), this.clearNames(t);
|
|
1362
|
+
}, e.prototype.clearTag = function() {
|
|
1363
|
+
this.tag = void 0;
|
|
1364
|
+
}, e;
|
|
1365
|
+
}(), jn = /&/g, $n = /^\s*\/\/.*$/gm;
|
|
1366
|
+
function br(e, t) {
|
|
1367
|
+
return e.map(function(r) {
|
|
1368
|
+
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(o) {
|
|
1369
|
+
return "".concat(t, " ").concat(o);
|
|
1370
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = br(r.children, t)), r;
|
|
1371
|
+
});
|
|
1372
|
+
}
|
|
1373
|
+
function In(e) {
|
|
1374
|
+
var t, r, o, a = Se, s = a.options, i = s === void 0 ? Se : s, f = a.plugins, l = f === void 0 ? ot : f, y = function(w, v, C) {
|
|
1375
|
+
return C.startsWith(r) && C.endsWith(r) && C.replaceAll(r, "").length > 0 ? ".".concat(t) : w;
|
|
1376
|
+
}, b = l.slice();
|
|
1377
|
+
b.push(function(w) {
|
|
1378
|
+
w.type === Qe && w.value.includes("&") && (w.props[0] = w.props[0].replace(jn, r).replace(o, y));
|
|
1379
|
+
}), i.prefix && b.push(tn), b.push(Zr);
|
|
1380
|
+
var g = function(w, v, C, _) {
|
|
1381
|
+
v === void 0 && (v = ""), C === void 0 && (C = ""), _ === void 0 && (_ = "&"), t = _, r = v, o = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1382
|
+
var $ = w.replace($n, ""), N = Jr(C || v ? "".concat(C, " ").concat(v, " { ").concat($, " }") : $);
|
|
1383
|
+
i.namespace && (N = br(N, i.namespace));
|
|
1384
|
+
var T = [];
|
|
1385
|
+
return Je(N, Qr(b.concat(en(function(k) {
|
|
1386
|
+
return T.push(k);
|
|
1387
|
+
})))), T;
|
|
1388
|
+
};
|
|
1389
|
+
return g.hash = l.length ? l.reduce(function(w, v) {
|
|
1390
|
+
return v.name || Ae(15), ce(w, v.name);
|
|
1391
|
+
}, lr).toString() : "", g;
|
|
1392
|
+
}
|
|
1393
|
+
var Mn = new vr(), bt = In(), wr = ve.createContext({ shouldForwardProp: void 0, styleSheet: Mn, stylis: bt });
|
|
1394
|
+
wr.Consumer;
|
|
1395
|
+
ve.createContext(void 0);
|
|
1396
|
+
function Xt() {
|
|
1397
|
+
return Et(wr);
|
|
1398
|
+
}
|
|
1399
|
+
var Jt = function() {
|
|
1400
|
+
function e(t, r) {
|
|
1401
|
+
var o = this;
|
|
1402
|
+
this.inject = function(a, s) {
|
|
1403
|
+
s === void 0 && (s = bt);
|
|
1404
|
+
var i = o.name + s.hash;
|
|
1405
|
+
a.hasNameForId(o.id, i) || a.insertRules(o.id, i, s(o.rules, i, "@keyframes"));
|
|
1406
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, At(this, function() {
|
|
1407
|
+
throw Ae(12, String(o.name));
|
|
1408
|
+
});
|
|
1409
|
+
}
|
|
1410
|
+
return e.prototype.getName = function(t) {
|
|
1411
|
+
return t === void 0 && (t = bt), this.name + t.hash;
|
|
1412
|
+
}, e;
|
|
1413
|
+
}(), Dn = function(e) {
|
|
1414
|
+
return e >= "A" && e <= "Z";
|
|
1415
|
+
};
|
|
1416
|
+
function Kt(e) {
|
|
1417
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
1418
|
+
var o = e[r];
|
|
1419
|
+
if (r === 1 && o === "-" && e[0] === "-") return e;
|
|
1420
|
+
Dn(o) ? t += "-" + o.toLowerCase() : t += o;
|
|
1421
|
+
}
|
|
1422
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1423
|
+
}
|
|
1424
|
+
var Er = function(e) {
|
|
1425
|
+
return e == null || e === !1 || e === "";
|
|
1426
|
+
}, Sr = function(e) {
|
|
1427
|
+
var t, r, o = [];
|
|
1428
|
+
for (var a in e) {
|
|
1429
|
+
var s = e[a];
|
|
1430
|
+
e.hasOwnProperty(a) && !Er(s) && (Array.isArray(s) && s.isCss || xe(s) ? o.push("".concat(Kt(a), ":"), s, ";") : ke(s) ? o.push.apply(o, be(be(["".concat(a, " {")], Sr(s), !1), ["}"], !1)) : o.push("".concat(Kt(a), ": ").concat((t = a, (r = s) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in rn || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1431
|
+
}
|
|
1432
|
+
return o;
|
|
1433
|
+
};
|
|
1434
|
+
function fe(e, t, r, o) {
|
|
1435
|
+
if (Er(e)) return [];
|
|
1436
|
+
if (Ct(e)) return [".".concat(e.styledComponentId)];
|
|
1437
|
+
if (xe(e)) {
|
|
1438
|
+
if (!xe(s = e) || s.prototype && s.prototype.isReactComponent || !t) return [e];
|
|
1439
|
+
var a = e(t);
|
|
1440
|
+
return process.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || a instanceof Jt || ke(a) || a === null || console.error("".concat(pr(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.")), fe(a, t, r, o);
|
|
1441
|
+
}
|
|
1442
|
+
var s;
|
|
1443
|
+
return e instanceof Jt ? r ? (e.inject(r, o), [e.getName(o)]) : [e] : ke(e) ? Sr(e) : Array.isArray(e) ? Array.prototype.concat.apply(ot, e.map(function(i) {
|
|
1444
|
+
return fe(i, t, r, o);
|
|
1445
|
+
})) : [e.toString()];
|
|
1446
|
+
}
|
|
1447
|
+
function zn(e) {
|
|
1448
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1449
|
+
var r = e[t];
|
|
1450
|
+
if (xe(r) && !Ct(r)) return !1;
|
|
1451
|
+
}
|
|
1452
|
+
return !0;
|
|
1453
|
+
}
|
|
1454
|
+
var Yn = fr(nt), Ln = function() {
|
|
1455
|
+
function e(t, r, o) {
|
|
1456
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (o === void 0 || o.isStatic) && zn(t), this.componentId = r, this.baseHash = ce(Yn, r), this.baseStyle = o, vr.registerId(r);
|
|
1457
|
+
}
|
|
1458
|
+
return e.prototype.generateAndInjectStyles = function(t, r, o) {
|
|
1459
|
+
var a = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, o) : "";
|
|
1460
|
+
if (this.isStatic && !o.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) a = ue(a, this.staticRulesId);
|
|
1461
|
+
else {
|
|
1462
|
+
var s = Ht(fe(this.rules, t, r, o)), i = yt(ce(this.baseHash, s) >>> 0);
|
|
1463
|
+
if (!r.hasNameForId(this.componentId, i)) {
|
|
1464
|
+
var f = o(s, ".".concat(i), void 0, this.componentId);
|
|
1465
|
+
r.insertRules(this.componentId, i, f);
|
|
1466
|
+
}
|
|
1467
|
+
a = ue(a, i), this.staticRulesId = i;
|
|
1468
|
+
}
|
|
1469
|
+
else {
|
|
1470
|
+
for (var l = ce(this.baseHash, o.hash), y = "", b = 0; b < this.rules.length; b++) {
|
|
1471
|
+
var g = this.rules[b];
|
|
1472
|
+
if (typeof g == "string") y += g, process.env.NODE_ENV !== "production" && (l = ce(l, g));
|
|
1473
|
+
else if (g) {
|
|
1474
|
+
var w = Ht(fe(g, t, r, o));
|
|
1475
|
+
l = ce(l, w + b), y += w;
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
if (y) {
|
|
1479
|
+
var v = yt(l >>> 0);
|
|
1480
|
+
r.hasNameForId(this.componentId, v) || r.insertRules(this.componentId, v, o(y, ".".concat(v), void 0, this.componentId)), a = ue(a, v);
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
return a;
|
|
1484
|
+
}, e;
|
|
1485
|
+
}(), xr = ve.createContext(void 0);
|
|
1486
|
+
xr.Consumer;
|
|
1487
|
+
var ft = {}, Zt = /* @__PURE__ */ new Set();
|
|
1488
|
+
function Vn(e, t, r) {
|
|
1489
|
+
var o = Ct(e), a = e, s = !lt(e), i = t.attrs, f = i === void 0 ? ot : i, l = t.componentId, y = l === void 0 ? function(x, R) {
|
|
1490
|
+
var m = typeof x != "string" ? "sc" : Vt(x);
|
|
1491
|
+
ft[m] = (ft[m] || 0) + 1;
|
|
1492
|
+
var p = "".concat(m, "-").concat(ln(nt + m + ft[m]));
|
|
1493
|
+
return R ? "".concat(R, "-").concat(p) : p;
|
|
1494
|
+
}(t.displayName, t.parentComponentId) : l, b = t.displayName, g = b === void 0 ? function(x) {
|
|
1495
|
+
return lt(x) ? "styled.".concat(x) : "Styled(".concat(pr(x), ")");
|
|
1496
|
+
}(e) : b, w = t.displayName && t.componentId ? "".concat(Vt(t.displayName), "-").concat(t.componentId) : t.componentId || y, v = o && a.attrs ? a.attrs.concat(f).filter(Boolean) : f, C = t.shouldForwardProp;
|
|
1497
|
+
if (o && a.shouldForwardProp) {
|
|
1498
|
+
var _ = a.shouldForwardProp;
|
|
1499
|
+
if (t.shouldForwardProp) {
|
|
1500
|
+
var $ = t.shouldForwardProp;
|
|
1501
|
+
C = function(x, R) {
|
|
1502
|
+
return _(x, R) && $(x, R);
|
|
1503
|
+
};
|
|
1504
|
+
} else C = _;
|
|
1505
|
+
}
|
|
1506
|
+
var N = new Ln(r, w, o ? a.componentStyle : void 0);
|
|
1507
|
+
function T(x, R) {
|
|
1508
|
+
return function(m, p, F) {
|
|
1509
|
+
var U = m.attrs, De = m.componentStyle, _e = m.defaultProps, Te = m.foldedComponentIds, de = m.styledComponentId, Re = m.target, Ne = ve.useContext(xr), at = Xt(), he = m.shouldForwardProp || at.shouldForwardProp;
|
|
1510
|
+
process.env.NODE_ENV !== "production" && jt(de);
|
|
1511
|
+
var ze = an(p, Ne, _e) || Se, I = function(oe, ee, ae) {
|
|
1512
|
+
for (var X, G = Y(Y({}, ee), { className: void 0, theme: ae }), me = 0; me < oe.length; me += 1) {
|
|
1513
|
+
var se = xe(X = oe[me]) ? X(G) : X;
|
|
1514
|
+
for (var V in se) G[V] = V === "className" ? ue(G[V], se[V]) : V === "style" ? Y(Y({}, G[V]), se[V]) : se[V];
|
|
1515
|
+
}
|
|
1516
|
+
return ee.className && (G.className = ue(G.className, ee.className)), G;
|
|
1517
|
+
}(U, p, ze), Q = I.as || Re, L = {};
|
|
1518
|
+
for (var z in I) I[z] === void 0 || z[0] === "$" || z === "as" || z === "theme" && I.theme === ze || (z === "forwardedAs" ? L.as = I.forwardedAs : he && !he(z, Q) || (L[z] = I[z], he || process.env.NODE_ENV !== "development" || Dr(z) || Zt.has(z) || !gt.has(Q) || (Zt.add(z), console.warn('styled-components: it looks like an unknown prop "'.concat(z, '" 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.)')))));
|
|
1519
|
+
var ne = function(oe, ee) {
|
|
1520
|
+
var ae = Xt(), X = oe.generateAndInjectStyles(ee, ae.styleSheet, ae.stylis);
|
|
1521
|
+
return process.env.NODE_ENV !== "production" && jt(X), X;
|
|
1522
|
+
}(De, I);
|
|
1523
|
+
process.env.NODE_ENV !== "production" && m.warnTooManyClasses && m.warnTooManyClasses(ne);
|
|
1524
|
+
var q = ue(Te, de);
|
|
1525
|
+
return ne && (q += " " + ne), I.className && (q += " " + I.className), L[lt(Q) && !gt.has(Q) ? "class" : "className"] = q, F && (L.ref = F), Tr(Q, L);
|
|
1526
|
+
}(k, x, R);
|
|
1527
|
+
}
|
|
1528
|
+
T.displayName = g;
|
|
1529
|
+
var k = ve.forwardRef(T);
|
|
1530
|
+
return k.attrs = v, k.componentStyle = N, k.displayName = g, k.shouldForwardProp = C, k.foldedComponentIds = o ? ue(a.foldedComponentIds, a.styledComponentId) : "", k.styledComponentId = w, k.target = o ? a.target : e, Object.defineProperty(k, "defaultProps", { get: function() {
|
|
1531
|
+
return this._foldedDefaultProps;
|
|
1532
|
+
}, set: function(x) {
|
|
1533
|
+
this._foldedDefaultProps = o ? function(R) {
|
|
1534
|
+
for (var m = [], p = 1; p < arguments.length; p++) m[p - 1] = arguments[p];
|
|
1535
|
+
for (var F = 0, U = m; F < U.length; F++) vt(R, U[F], !0);
|
|
1536
|
+
return R;
|
|
1537
|
+
}({}, a.defaultProps, x) : x;
|
|
1538
|
+
} }), process.env.NODE_ENV !== "production" && (on(g, w), k.warnTooManyClasses = /* @__PURE__ */ function(x, R) {
|
|
1539
|
+
var m = {}, p = !1;
|
|
1540
|
+
return function(F) {
|
|
1541
|
+
if (!p && (m[F] = !0, Object.keys(m).length >= 200)) {
|
|
1542
|
+
var U = R ? ' with the id of "'.concat(R, '"') : "";
|
|
1543
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(x).concat(U, `.
|
|
1544
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1545
|
+
Example:
|
|
1546
|
+
const Component = styled.div.attrs(props => ({
|
|
1547
|
+
style: {
|
|
1548
|
+
background: props.background,
|
|
1549
|
+
},
|
|
1550
|
+
}))\`width: 100%;\`
|
|
1551
|
+
|
|
1552
|
+
<Component />`), p = !0, m = {};
|
|
1553
|
+
}
|
|
1554
|
+
};
|
|
1555
|
+
}(g, w)), At(k, function() {
|
|
1556
|
+
return ".".concat(k.styledComponentId);
|
|
1557
|
+
}), s && gr(k, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), k;
|
|
1558
|
+
}
|
|
1559
|
+
function Qt(e, t) {
|
|
1560
|
+
for (var r = [e[0]], o = 0, a = t.length; o < a; o += 1) r.push(t[o], e[o + 1]);
|
|
1561
|
+
return r;
|
|
1562
|
+
}
|
|
1563
|
+
var er = function(e) {
|
|
1564
|
+
return Object.assign(e, { isCss: !0 });
|
|
1565
|
+
};
|
|
1566
|
+
function Wn(e) {
|
|
1567
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1568
|
+
if (xe(e) || ke(e)) return er(fe(Qt(ot, be([e], t, !0))));
|
|
1569
|
+
var o = e;
|
|
1570
|
+
return t.length === 0 && o.length === 1 && typeof o[0] == "string" ? fe(o) : er(fe(Qt(o, t)));
|
|
1571
|
+
}
|
|
1572
|
+
function wt(e, t, r) {
|
|
1573
|
+
if (r === void 0 && (r = Se), !t) throw Ae(1, t);
|
|
1574
|
+
var o = function(a) {
|
|
1575
|
+
for (var s = [], i = 1; i < arguments.length; i++) s[i - 1] = arguments[i];
|
|
1576
|
+
return e(t, r, Wn.apply(void 0, be([a], s, !1)));
|
|
1577
|
+
};
|
|
1578
|
+
return o.attrs = function(a) {
|
|
1579
|
+
return wt(e, t, Y(Y({}, r), { attrs: Array.prototype.concat(r.attrs, a).filter(Boolean) }));
|
|
1580
|
+
}, o.withConfig = function(a) {
|
|
1581
|
+
return wt(e, t, Y(Y({}, r), a));
|
|
1582
|
+
}, o;
|
|
1583
|
+
}
|
|
1584
|
+
var kr = function(e) {
|
|
1585
|
+
return wt(Vn, e);
|
|
1586
|
+
}, _t = kr;
|
|
1587
|
+
gt.forEach(function(e) {
|
|
1588
|
+
_t[e] = kr(e);
|
|
1589
|
+
});
|
|
1590
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1591
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1592
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1593
|
+
var Be = "__sc-".concat(pe, "__");
|
|
1594
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Be] || (window[Be] = 0), window[Be] === 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.
|
|
1595
|
+
|
|
1596
|
+
See https://s-c.sh/2BAXzed for more info.`), window[Be] += 1);
|
|
1597
|
+
const Fn = _t.span`
|
|
1598
|
+
color: ${({ color: e }) => e || "inherit"};
|
|
1599
|
+
font-family: ${({ font: e }) => e || '"Source Code Pro", monospace'};
|
|
1600
|
+
font-size: ${({ size: e }) => e || "inherit"};
|
|
1601
|
+
font-weight: ${({ weight: e }) => {
|
|
1602
|
+
switch (e) {
|
|
1603
|
+
case "light":
|
|
1604
|
+
return 300;
|
|
1605
|
+
case "normal":
|
|
1606
|
+
return 400;
|
|
1607
|
+
case "medium":
|
|
1608
|
+
return 500;
|
|
1609
|
+
case "semibold":
|
|
1610
|
+
return 600;
|
|
1611
|
+
case "bold":
|
|
1612
|
+
return 700;
|
|
1613
|
+
case "extrabold":
|
|
1614
|
+
return 800;
|
|
1615
|
+
default:
|
|
1616
|
+
return "inherit";
|
|
1617
|
+
}
|
|
1618
|
+
}};
|
|
1619
|
+
text-transform: ${({ uppercase: e }) => e ? "uppercase" : "none"};
|
|
1620
|
+
font-style: ${({ italic: e }) => e ? "italic" : "normal"};
|
|
1621
|
+
text-decoration: ${({ underline: e, strikethrough: t }) => e && t ? "underline line-through" : e ? "underline" : t ? "line-through" : "none"};
|
|
1622
|
+
text-align: ${({ align: e }) => e || "inherit"};
|
|
1623
|
+
line-height: ${({ lineHeight: e }) => e || "inherit"};
|
|
1624
|
+
letter-spacing: ${({ letterSpacing: e }) => e || "inherit"};
|
|
1625
|
+
`, Cr = ({
|
|
1626
|
+
as: e = "span",
|
|
1627
|
+
children: t,
|
|
1628
|
+
uppercase: r,
|
|
1629
|
+
italic: o,
|
|
1630
|
+
underline: a,
|
|
1631
|
+
strikethrough: s,
|
|
1632
|
+
...i
|
|
1633
|
+
}) => {
|
|
1634
|
+
const l = {
|
|
1635
|
+
...jr(),
|
|
1636
|
+
...i,
|
|
1637
|
+
...r && { uppercase: "true" },
|
|
1638
|
+
...o && { italic: "true" },
|
|
1639
|
+
...a && { underline: "true" },
|
|
1640
|
+
...s && { strikethrough: "true" }
|
|
1641
|
+
};
|
|
1642
|
+
return /* @__PURE__ */ Me.jsx(Fn, { as: e, ...l, children: t });
|
|
1643
|
+
}, Bn = _t.span`
|
|
1644
|
+
font-size: ${({ level: e }) => {
|
|
1645
|
+
switch (e) {
|
|
1646
|
+
case 1:
|
|
1647
|
+
return "32px";
|
|
1648
|
+
case 2:
|
|
1649
|
+
return "28px";
|
|
1650
|
+
case 3:
|
|
1651
|
+
return "24px";
|
|
1652
|
+
case 4:
|
|
1653
|
+
return "20px";
|
|
1654
|
+
case 5:
|
|
1655
|
+
return "18px";
|
|
1656
|
+
case 6:
|
|
1657
|
+
return "16px";
|
|
1658
|
+
default:
|
|
1659
|
+
return "16px";
|
|
1660
|
+
}
|
|
1661
|
+
}};
|
|
1662
|
+
`, Gn = ({ level: e, size: t, ...r }) => {
|
|
1663
|
+
const o = `h${e}`;
|
|
1664
|
+
return /* @__PURE__ */ Me.jsx(Bn, { level: e, children: /* @__PURE__ */ Me.jsx(Cr, { as: o, size: t || "inherit", ...r }) });
|
|
1665
|
+
}, Hn = (e) => /* @__PURE__ */ Me.jsx(Cr, { as: "p", ...e }), qn = {
|
|
1666
|
+
Group: $r,
|
|
1667
|
+
Heading: Gn,
|
|
1668
|
+
Paragraph: Hn
|
|
1669
|
+
};
|
|
1670
|
+
export {
|
|
1671
|
+
qn as default
|
|
1672
|
+
};
|