@bcgov-sso/common-react-components 1.18.4 → 1.19.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.
- package/dist/cjs/index.js +917 -64
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Accordion/Accordion.d.ts +2 -2
- package/dist/esm/index.js +917 -64
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Accordion/Accordion.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +7 -4
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,433 @@
|
|
|
1
1
|
import React, { useState, useContext, useMemo, useEffect, useRef, useDebugValue, createElement } from 'react';
|
|
2
2
|
|
|
3
|
+
function _extends() {
|
|
4
|
+
_extends = Object.assign || function (target) {
|
|
5
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
6
|
+
var source = arguments[i];
|
|
7
|
+
|
|
8
|
+
for (var key in source) {
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
10
|
+
target[key] = source[key];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
return target;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
return _extends.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
var _extends$1 = /*#__PURE__*/Object.freeze({
|
|
22
|
+
__proto__: null,
|
|
23
|
+
'default': _extends
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Actions represent the type of change to a location value.
|
|
28
|
+
*
|
|
29
|
+
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action
|
|
30
|
+
*/
|
|
31
|
+
var Action;
|
|
32
|
+
|
|
33
|
+
(function (Action) {
|
|
34
|
+
/**
|
|
35
|
+
* A POP indicates a change to an arbitrary index in the history stack, such
|
|
36
|
+
* as a back or forward navigation. It does not describe the direction of the
|
|
37
|
+
* navigation, only that the current index changed.
|
|
38
|
+
*
|
|
39
|
+
* Note: This is the default action for newly created history objects.
|
|
40
|
+
*/
|
|
41
|
+
Action["Pop"] = "POP";
|
|
42
|
+
/**
|
|
43
|
+
* A PUSH indicates a new entry being added to the history stack, such as when
|
|
44
|
+
* a link is clicked and a new page loads. When this happens, all subsequent
|
|
45
|
+
* entries in the stack are lost.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
Action["Push"] = "PUSH";
|
|
49
|
+
/**
|
|
50
|
+
* A REPLACE indicates the entry at the current index in the history stack
|
|
51
|
+
* being replaced by a new one.
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
Action["Replace"] = "REPLACE";
|
|
55
|
+
})(Action || (Action = {}));
|
|
56
|
+
|
|
57
|
+
var readOnly = process.env.NODE_ENV !== "production" ? function (obj) {
|
|
58
|
+
return Object.freeze(obj);
|
|
59
|
+
} : function (obj) {
|
|
60
|
+
return obj;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
function warning(cond, message) {
|
|
64
|
+
if (!cond) {
|
|
65
|
+
// eslint-disable-next-line no-console
|
|
66
|
+
if (typeof console !== 'undefined') console.warn(message);
|
|
67
|
+
|
|
68
|
+
try {
|
|
69
|
+
// Welcome to debugging history!
|
|
70
|
+
//
|
|
71
|
+
// This error is thrown as a convenience so you can more easily
|
|
72
|
+
// find the source for a warning that appears in the console by
|
|
73
|
+
// enabling "pause on exceptions" in your JavaScript debugger.
|
|
74
|
+
throw new Error(message); // eslint-disable-next-line no-empty
|
|
75
|
+
} catch (e) {}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
var BeforeUnloadEventType = 'beforeunload';
|
|
80
|
+
var HashChangeEventType = 'hashchange';
|
|
81
|
+
var PopStateEventType = 'popstate';
|
|
82
|
+
/**
|
|
83
|
+
* Hash history stores the location in window.location.hash. This makes it ideal
|
|
84
|
+
* for situations where you don't want to send the location to the server for
|
|
85
|
+
* some reason, either because you do cannot configure it or the URL space is
|
|
86
|
+
* reserved for something else.
|
|
87
|
+
*
|
|
88
|
+
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
function createHashHistory(options) {
|
|
92
|
+
if (options === void 0) {
|
|
93
|
+
options = {};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
var _options2 = options,
|
|
97
|
+
_options2$window = _options2.window,
|
|
98
|
+
window = _options2$window === void 0 ? document.defaultView : _options2$window;
|
|
99
|
+
var globalHistory = window.history;
|
|
100
|
+
|
|
101
|
+
function getIndexAndLocation() {
|
|
102
|
+
var _parsePath = parsePath(window.location.hash.substr(1)),
|
|
103
|
+
_parsePath$pathname = _parsePath.pathname,
|
|
104
|
+
pathname = _parsePath$pathname === void 0 ? '/' : _parsePath$pathname,
|
|
105
|
+
_parsePath$search = _parsePath.search,
|
|
106
|
+
search = _parsePath$search === void 0 ? '' : _parsePath$search,
|
|
107
|
+
_parsePath$hash = _parsePath.hash,
|
|
108
|
+
hash = _parsePath$hash === void 0 ? '' : _parsePath$hash;
|
|
109
|
+
|
|
110
|
+
var state = globalHistory.state || {};
|
|
111
|
+
return [state.idx, readOnly({
|
|
112
|
+
pathname: pathname,
|
|
113
|
+
search: search,
|
|
114
|
+
hash: hash,
|
|
115
|
+
state: state.usr || null,
|
|
116
|
+
key: state.key || 'default'
|
|
117
|
+
})];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
var blockedPopTx = null;
|
|
121
|
+
|
|
122
|
+
function handlePop() {
|
|
123
|
+
if (blockedPopTx) {
|
|
124
|
+
blockers.call(blockedPopTx);
|
|
125
|
+
blockedPopTx = null;
|
|
126
|
+
} else {
|
|
127
|
+
var nextAction = Action.Pop;
|
|
128
|
+
|
|
129
|
+
var _getIndexAndLocation4 = getIndexAndLocation(),
|
|
130
|
+
nextIndex = _getIndexAndLocation4[0],
|
|
131
|
+
nextLocation = _getIndexAndLocation4[1];
|
|
132
|
+
|
|
133
|
+
if (blockers.length) {
|
|
134
|
+
if (nextIndex != null) {
|
|
135
|
+
var delta = index - nextIndex;
|
|
136
|
+
|
|
137
|
+
if (delta) {
|
|
138
|
+
// Revert the POP
|
|
139
|
+
blockedPopTx = {
|
|
140
|
+
action: nextAction,
|
|
141
|
+
location: nextLocation,
|
|
142
|
+
retry: function retry() {
|
|
143
|
+
go(delta * -1);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
go(delta);
|
|
147
|
+
}
|
|
148
|
+
} else {
|
|
149
|
+
// Trying to POP to a location with no index. We did not create
|
|
150
|
+
// this location, so we can't effectively block the navigation.
|
|
151
|
+
process.env.NODE_ENV !== "production" ? warning(false, // TODO: Write up a doc that explains our blocking strategy in
|
|
152
|
+
// detail and link to it here so people can understand better
|
|
153
|
+
// what is going on and how to avoid it.
|
|
154
|
+
"You are trying to block a POP navigation to a location that was not " + "created by the history library. The block will fail silently in " + "production, but in general you should do all navigation with the " + "history library (instead of using window.history.pushState directly) " + "to avoid this situation.") : void 0;
|
|
155
|
+
}
|
|
156
|
+
} else {
|
|
157
|
+
applyTx(nextAction);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
window.addEventListener(PopStateEventType, handlePop); // popstate does not fire on hashchange in IE 11 and old (trident) Edge
|
|
163
|
+
// https://developer.mozilla.org/de/docs/Web/API/Window/popstate_event
|
|
164
|
+
|
|
165
|
+
window.addEventListener(HashChangeEventType, function () {
|
|
166
|
+
var _getIndexAndLocation5 = getIndexAndLocation(),
|
|
167
|
+
nextLocation = _getIndexAndLocation5[1]; // Ignore extraneous hashchange events.
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
if (createPath(nextLocation) !== createPath(location)) {
|
|
171
|
+
handlePop();
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
var action = Action.Pop;
|
|
175
|
+
|
|
176
|
+
var _getIndexAndLocation6 = getIndexAndLocation(),
|
|
177
|
+
index = _getIndexAndLocation6[0],
|
|
178
|
+
location = _getIndexAndLocation6[1];
|
|
179
|
+
|
|
180
|
+
var listeners = createEvents();
|
|
181
|
+
var blockers = createEvents();
|
|
182
|
+
|
|
183
|
+
if (index == null) {
|
|
184
|
+
index = 0;
|
|
185
|
+
globalHistory.replaceState(_extends({}, globalHistory.state, {
|
|
186
|
+
idx: index
|
|
187
|
+
}), '');
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function getBaseHref() {
|
|
191
|
+
var base = document.querySelector('base');
|
|
192
|
+
var href = '';
|
|
193
|
+
|
|
194
|
+
if (base && base.getAttribute('href')) {
|
|
195
|
+
var url = window.location.href;
|
|
196
|
+
var hashIndex = url.indexOf('#');
|
|
197
|
+
href = hashIndex === -1 ? url : url.slice(0, hashIndex);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
return href;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function createHref(to) {
|
|
204
|
+
return getBaseHref() + '#' + (typeof to === 'string' ? to : createPath(to));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
function getNextLocation(to, state) {
|
|
208
|
+
if (state === void 0) {
|
|
209
|
+
state = null;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
return readOnly(_extends({
|
|
213
|
+
pathname: location.pathname,
|
|
214
|
+
hash: '',
|
|
215
|
+
search: ''
|
|
216
|
+
}, typeof to === 'string' ? parsePath(to) : to, {
|
|
217
|
+
state: state,
|
|
218
|
+
key: createKey()
|
|
219
|
+
}));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
function getHistoryStateAndUrl(nextLocation, index) {
|
|
223
|
+
return [{
|
|
224
|
+
usr: nextLocation.state,
|
|
225
|
+
key: nextLocation.key,
|
|
226
|
+
idx: index
|
|
227
|
+
}, createHref(nextLocation)];
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function allowTx(action, location, retry) {
|
|
231
|
+
return !blockers.length || (blockers.call({
|
|
232
|
+
action: action,
|
|
233
|
+
location: location,
|
|
234
|
+
retry: retry
|
|
235
|
+
}), false);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function applyTx(nextAction) {
|
|
239
|
+
action = nextAction;
|
|
240
|
+
|
|
241
|
+
var _getIndexAndLocation7 = getIndexAndLocation();
|
|
242
|
+
|
|
243
|
+
index = _getIndexAndLocation7[0];
|
|
244
|
+
location = _getIndexAndLocation7[1];
|
|
245
|
+
listeners.call({
|
|
246
|
+
action: action,
|
|
247
|
+
location: location
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function push(to, state) {
|
|
252
|
+
var nextAction = Action.Push;
|
|
253
|
+
var nextLocation = getNextLocation(to, state);
|
|
254
|
+
|
|
255
|
+
function retry() {
|
|
256
|
+
push(to, state);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
process.env.NODE_ENV !== "production" ? warning(nextLocation.pathname.charAt(0) === '/', "Relative pathnames are not supported in hash history.push(" + JSON.stringify(to) + ")") : void 0;
|
|
260
|
+
|
|
261
|
+
if (allowTx(nextAction, nextLocation, retry)) {
|
|
262
|
+
var _getHistoryStateAndUr3 = getHistoryStateAndUrl(nextLocation, index + 1),
|
|
263
|
+
historyState = _getHistoryStateAndUr3[0],
|
|
264
|
+
url = _getHistoryStateAndUr3[1]; // TODO: Support forced reloading
|
|
265
|
+
// try...catch because iOS limits us to 100 pushState calls :/
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
try {
|
|
269
|
+
globalHistory.pushState(historyState, '', url);
|
|
270
|
+
} catch (error) {
|
|
271
|
+
// They are going to lose state here, but there is no real
|
|
272
|
+
// way to warn them about it since the page will refresh...
|
|
273
|
+
window.location.assign(url);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
applyTx(nextAction);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function replace(to, state) {
|
|
281
|
+
var nextAction = Action.Replace;
|
|
282
|
+
var nextLocation = getNextLocation(to, state);
|
|
283
|
+
|
|
284
|
+
function retry() {
|
|
285
|
+
replace(to, state);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
process.env.NODE_ENV !== "production" ? warning(nextLocation.pathname.charAt(0) === '/', "Relative pathnames are not supported in hash history.replace(" + JSON.stringify(to) + ")") : void 0;
|
|
289
|
+
|
|
290
|
+
if (allowTx(nextAction, nextLocation, retry)) {
|
|
291
|
+
var _getHistoryStateAndUr4 = getHistoryStateAndUrl(nextLocation, index),
|
|
292
|
+
historyState = _getHistoryStateAndUr4[0],
|
|
293
|
+
url = _getHistoryStateAndUr4[1]; // TODO: Support forced reloading
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
globalHistory.replaceState(historyState, '', url);
|
|
297
|
+
applyTx(nextAction);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
function go(delta) {
|
|
302
|
+
globalHistory.go(delta);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
var history = {
|
|
306
|
+
get action() {
|
|
307
|
+
return action;
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
get location() {
|
|
311
|
+
return location;
|
|
312
|
+
},
|
|
313
|
+
|
|
314
|
+
createHref: createHref,
|
|
315
|
+
push: push,
|
|
316
|
+
replace: replace,
|
|
317
|
+
go: go,
|
|
318
|
+
back: function back() {
|
|
319
|
+
go(-1);
|
|
320
|
+
},
|
|
321
|
+
forward: function forward() {
|
|
322
|
+
go(1);
|
|
323
|
+
},
|
|
324
|
+
listen: function listen(listener) {
|
|
325
|
+
return listeners.push(listener);
|
|
326
|
+
},
|
|
327
|
+
block: function block(blocker) {
|
|
328
|
+
var unblock = blockers.push(blocker);
|
|
329
|
+
|
|
330
|
+
if (blockers.length === 1) {
|
|
331
|
+
window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
return function () {
|
|
335
|
+
unblock(); // Remove the beforeunload listener so the document may
|
|
336
|
+
// still be salvageable in the pagehide event.
|
|
337
|
+
// See https://html.spec.whatwg.org/#unloading-documents
|
|
338
|
+
|
|
339
|
+
if (!blockers.length) {
|
|
340
|
+
window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
return history;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
function promptBeforeUnload(event) {
|
|
349
|
+
// Cancel the event.
|
|
350
|
+
event.preventDefault(); // Chrome (and legacy IE) requires returnValue to be set.
|
|
351
|
+
|
|
352
|
+
event.returnValue = '';
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function createEvents() {
|
|
356
|
+
var handlers = [];
|
|
357
|
+
return {
|
|
358
|
+
get length() {
|
|
359
|
+
return handlers.length;
|
|
360
|
+
},
|
|
361
|
+
|
|
362
|
+
push: function push(fn) {
|
|
363
|
+
handlers.push(fn);
|
|
364
|
+
return function () {
|
|
365
|
+
handlers = handlers.filter(function (handler) {
|
|
366
|
+
return handler !== fn;
|
|
367
|
+
});
|
|
368
|
+
};
|
|
369
|
+
},
|
|
370
|
+
call: function call(arg) {
|
|
371
|
+
handlers.forEach(function (fn) {
|
|
372
|
+
return fn && fn(arg);
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
function createKey() {
|
|
379
|
+
return Math.random().toString(36).substr(2, 8);
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Creates a string URL path from the given pathname, search, and hash components.
|
|
383
|
+
*
|
|
384
|
+
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
function createPath(_ref) {
|
|
389
|
+
var _ref$pathname = _ref.pathname,
|
|
390
|
+
pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,
|
|
391
|
+
_ref$search = _ref.search,
|
|
392
|
+
search = _ref$search === void 0 ? '' : _ref$search,
|
|
393
|
+
_ref$hash = _ref.hash,
|
|
394
|
+
hash = _ref$hash === void 0 ? '' : _ref$hash;
|
|
395
|
+
if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;
|
|
396
|
+
if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;
|
|
397
|
+
return pathname;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Parses a string URL path into its separate pathname, search, and hash components.
|
|
401
|
+
*
|
|
402
|
+
* @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath
|
|
403
|
+
*/
|
|
404
|
+
|
|
405
|
+
function parsePath(path) {
|
|
406
|
+
var parsedPath = {};
|
|
407
|
+
|
|
408
|
+
if (path) {
|
|
409
|
+
var hashIndex = path.indexOf('#');
|
|
410
|
+
|
|
411
|
+
if (hashIndex >= 0) {
|
|
412
|
+
parsedPath.hash = path.substr(hashIndex);
|
|
413
|
+
path = path.substr(0, hashIndex);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
var searchIndex = path.indexOf('?');
|
|
417
|
+
|
|
418
|
+
if (searchIndex >= 0) {
|
|
419
|
+
parsedPath.search = path.substr(searchIndex);
|
|
420
|
+
path = path.substr(0, searchIndex);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
if (path) {
|
|
424
|
+
parsedPath.pathname = path;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
return parsedPath;
|
|
429
|
+
}
|
|
430
|
+
|
|
3
431
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4
432
|
|
|
5
433
|
function getAugmentedNamespace(n) {
|
|
@@ -1058,23 +1486,23 @@ var hoistNonReactStatics_cjs = hoistNonReactStatics;
|
|
|
1058
1486
|
function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$1.exports.typeOf(t)},S=Object.freeze([]),w$1=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",A="5.3.3",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),P={},O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",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.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",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.\n\n',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\n\n",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.\n\n",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.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',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.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.3"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.3");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w$1),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.3"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w$1:e,i=s.options,a=void 0===i?w$1:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=React.createContext(),ue=ce.Consumer,le=React.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return useContext(ce)||de}function fe(){return useContext(le)||he}function me(e){var t=useState(e.stylisPlugins),n=t[0],s=t[1],c=pe(),u=useMemo((function(){var t=c;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=useMemo((function(){return ae({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return useEffect((function(){shallowequal(n,e.stylisPlugins)||s(e.stylisPlugins);}),[e.stylisPlugins]),React.createElement(ce.Provider,{value:u},React.createElement(le.Provider,{value:l},"production"!==process.env.NODE_ENV?React.Children.only(e.children):e.children))}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs$1.exports.isElement(u)&&console.warn(b(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."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w$1),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=React.createContext(),Ge=Me.Consumer;function Le(e){var t=useContext(Me),n=useMemo((function(){return function(e,t){if(!e)return D(14);if(E(e)){var n=e(t);return "production"===process.env.NODE_ENV||null!==n&&!Array.isArray(n)&&"object"==typeof n?n:D(7)}return Array.isArray(e)||"object"!=typeof e?D(8):t?y({},t,{},e):e}(e.theme,t)}),[e.theme,t]);return e.children?React.createElement(Me.Provider,{value:n},e.children):null}var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.3"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w$1);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,useContext(Me),a)||w$1,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w$1,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,index,_):!N||index(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=React.forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w$1),!reactIs$1.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["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","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","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","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));var He=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ne(e),X.registerId(this.componentId+1);}var t=e.prototype;return t.createStyles=function(e,t,n,r){var o=r(_e(this.rules,t,n,r).join(""),""),s=this.componentId+e;n.insertRules(s,s,o);},t.removeStyles=function(e,t){t.clearRules(this.componentId+e);},t.renderStyles=function(e,t,n,r){e>2&&X.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r);},e}();function $e(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var i=Ae.apply(void 0,[e].concat(n)),a="sc-global-"+Te(JSON.stringify(i)),u=new He(i,a);function l(e){var t=pe(),n=fe(),o=useContext(Me),u=useRef(t.allocateGSInstance(a)).current;return "production"!==process.env.NODE_ENV&&React.Children.count(e.children)&&console.warn("The global style component "+a+" was given child JSX. createGlobalStyle does not render children."),"production"!==process.env.NODE_ENV&&i.some((function(e){return "string"==typeof e&&-1!==e.indexOf("@import")}))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.server&&d(u,e,t,o,n),null}function d(e,t,n,r,o){if(u.isStatic)u.renderStyles(e,P,n,o);else {var s=y({},t,{theme:Oe(t,r,l.defaultProps)});u.renderStyles(e,s,n,o);}}return "production"!==process.env.NODE_ENV&&Pe(a),React.memo(l)}function We(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ae.apply(void 0,[e].concat(n)).join(""),s=Te(o);return new ye(s,o)}var Ue=/^\s*<\/[a-z]/i,Je=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return "";var n=Y();return "<style "+[n&&'nonce="'+n+'"',N+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?D(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return D(2);var n=((t={})[N]="",t["data-styled-version"]="5.3.3",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),o=Y();return o&&(n.nonce=o),[React.createElement("style",y({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0;},this.instance=new X({isServer:!0}),this.sealed=!1;}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?D(2):React.createElement(me,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){if(C)return D(3);if(this.sealed)return D(2);this.seal();var t=require("stream"),n=(t.Readable,t.Transform),r=e,o=this.instance,s=this._emitSheetCSS,i=new n({transform:function(e,t,n){var r=e.toString(),i=s();if(o.clearTag(),Ue.test(r)){var a=r.indexOf(">")+1,c=r.slice(0,a),u=r.slice(a);this.push(c+i+u);}else this.push(i+r);n();}});return r.on("error",(function(e){i.emit("error",e);})),r.pipe(i)},e}(),Xe=function(e){var t=React.forwardRef((function(t,n){var o=useContext(Me),i=e.defaultProps,a=Oe(t,o,i);return "production"!==process.env.NODE_ENV&&void 0===a&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'+b(e)+'"'),React.createElement(e,y({},t,{theme:a,ref:n}))}));return hoistNonReactStatics_cjs(t,e),t.displayName="WithTheme("+b(e)+")",t},Ze=function(){return useContext(Me)},Ke={StyleSheet:X,masterSheet:de};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&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.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);var styled = qe;
|
|
1059
1487
|
|
|
1060
1488
|
var styledComponents_esm = /*#__PURE__*/Object.freeze({
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1489
|
+
__proto__: null,
|
|
1490
|
+
'default': styled,
|
|
1491
|
+
ServerStyleSheet: Je,
|
|
1492
|
+
StyleSheetConsumer: ue,
|
|
1493
|
+
StyleSheetContext: ce,
|
|
1494
|
+
StyleSheetManager: me,
|
|
1495
|
+
ThemeConsumer: Ge,
|
|
1496
|
+
ThemeContext: Me,
|
|
1497
|
+
ThemeProvider: Le,
|
|
1498
|
+
__PRIVATE__: Ke,
|
|
1499
|
+
createGlobalStyle: $e,
|
|
1500
|
+
css: Ae,
|
|
1501
|
+
isStyledComponent: _,
|
|
1502
|
+
keyframes: We,
|
|
1503
|
+
useTheme: Ze,
|
|
1504
|
+
version: A,
|
|
1505
|
+
withTheme: Xe
|
|
1078
1506
|
});
|
|
1079
1507
|
|
|
1080
1508
|
/**
|
|
@@ -1095,13 +1523,13 @@ var argsTag$3 = '[object Arguments]',
|
|
|
1095
1523
|
genTag$1 = '[object GeneratorFunction]';
|
|
1096
1524
|
|
|
1097
1525
|
/** Detect free variable `global` from Node.js. */
|
|
1098
|
-
var freeGlobal$
|
|
1526
|
+
var freeGlobal$3 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
1099
1527
|
|
|
1100
1528
|
/** Detect free variable `self`. */
|
|
1101
|
-
var freeSelf$
|
|
1529
|
+
var freeSelf$2 = typeof self == 'object' && self && self.Object === Object && self;
|
|
1102
1530
|
|
|
1103
1531
|
/** Used as a reference to the global object. */
|
|
1104
|
-
var root$
|
|
1532
|
+
var root$a = freeGlobal$3 || freeSelf$2 || Function('return this')();
|
|
1105
1533
|
|
|
1106
1534
|
/**
|
|
1107
1535
|
* Appends the elements of `values` to `array`.
|
|
@@ -1123,22 +1551,22 @@ function arrayPush$3(array, values) {
|
|
|
1123
1551
|
}
|
|
1124
1552
|
|
|
1125
1553
|
/** Used for built-in method references. */
|
|
1126
|
-
var objectProto$
|
|
1554
|
+
var objectProto$g = Object.prototype;
|
|
1127
1555
|
|
|
1128
1556
|
/** Used to check objects for own properties. */
|
|
1129
|
-
var hasOwnProperty$d = objectProto$
|
|
1557
|
+
var hasOwnProperty$d = objectProto$g.hasOwnProperty;
|
|
1130
1558
|
|
|
1131
1559
|
/**
|
|
1132
1560
|
* Used to resolve the
|
|
1133
1561
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1134
1562
|
* of values.
|
|
1135
1563
|
*/
|
|
1136
|
-
var objectToString$
|
|
1564
|
+
var objectToString$3 = objectProto$g.toString;
|
|
1137
1565
|
|
|
1138
1566
|
/** Built-in value references. */
|
|
1139
|
-
var Symbol$
|
|
1140
|
-
propertyIsEnumerable$2 = objectProto$
|
|
1141
|
-
spreadableSymbol = Symbol$
|
|
1567
|
+
var Symbol$7 = root$a.Symbol,
|
|
1568
|
+
propertyIsEnumerable$2 = objectProto$g.propertyIsEnumerable,
|
|
1569
|
+
spreadableSymbol = Symbol$7 ? Symbol$7.isConcatSpreadable : undefined;
|
|
1142
1570
|
|
|
1143
1571
|
/**
|
|
1144
1572
|
* The base implementation of `_.flatten` with support for restricting flattening.
|
|
@@ -1226,7 +1654,7 @@ function flatten(array) {
|
|
|
1226
1654
|
function isArguments$3(value) {
|
|
1227
1655
|
// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
1228
1656
|
return isArrayLikeObject(value) && hasOwnProperty$d.call(value, 'callee') &&
|
|
1229
|
-
(!propertyIsEnumerable$2.call(value, 'callee') || objectToString$
|
|
1657
|
+
(!propertyIsEnumerable$2.call(value, 'callee') || objectToString$3.call(value) == argsTag$3);
|
|
1230
1658
|
}
|
|
1231
1659
|
|
|
1232
1660
|
/**
|
|
@@ -1309,7 +1737,7 @@ function isArrayLike$4(value) {
|
|
|
1309
1737
|
* // => false
|
|
1310
1738
|
*/
|
|
1311
1739
|
function isArrayLikeObject(value) {
|
|
1312
|
-
return isObjectLike$
|
|
1740
|
+
return isObjectLike$a(value) && isArrayLike$4(value);
|
|
1313
1741
|
}
|
|
1314
1742
|
|
|
1315
1743
|
/**
|
|
@@ -1332,7 +1760,7 @@ function isArrayLikeObject(value) {
|
|
|
1332
1760
|
function isFunction$3(value) {
|
|
1333
1761
|
// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
1334
1762
|
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
|
1335
|
-
var tag = isObject$6(value) ? objectToString$
|
|
1763
|
+
var tag = isObject$6(value) ? objectToString$3.call(value) : '';
|
|
1336
1764
|
return tag == funcTag$2 || tag == genTag$1;
|
|
1337
1765
|
}
|
|
1338
1766
|
|
|
@@ -1421,12 +1849,448 @@ function isObject$6(value) {
|
|
|
1421
1849
|
* _.isObjectLike(null);
|
|
1422
1850
|
* // => false
|
|
1423
1851
|
*/
|
|
1424
|
-
function isObjectLike$
|
|
1852
|
+
function isObjectLike$a(value) {
|
|
1425
1853
|
return !!value && typeof value == 'object';
|
|
1426
1854
|
}
|
|
1427
1855
|
|
|
1428
1856
|
var lodash_flatten = flatten;
|
|
1429
1857
|
|
|
1858
|
+
/**
|
|
1859
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
1860
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
1861
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1862
|
+
* Released under MIT license <https://lodash.com/license>
|
|
1863
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1864
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1865
|
+
*/
|
|
1866
|
+
|
|
1867
|
+
/** Used as references for various `Number` constants. */
|
|
1868
|
+
var INFINITY$2 = 1 / 0;
|
|
1869
|
+
|
|
1870
|
+
/** `Object#toString` result references. */
|
|
1871
|
+
var symbolTag$2 = '[object Symbol]';
|
|
1872
|
+
|
|
1873
|
+
/** Used to match words composed of alphanumeric characters. */
|
|
1874
|
+
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
|
1875
|
+
|
|
1876
|
+
/** Used to match Latin Unicode letters (excluding mathematical operators). */
|
|
1877
|
+
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
|
1878
|
+
|
|
1879
|
+
/** Used to compose unicode character classes. */
|
|
1880
|
+
var rsAstralRange = '\\ud800-\\udfff',
|
|
1881
|
+
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
|
|
1882
|
+
rsComboSymbolsRange = '\\u20d0-\\u20f0',
|
|
1883
|
+
rsDingbatRange = '\\u2700-\\u27bf',
|
|
1884
|
+
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
|
|
1885
|
+
rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
|
|
1886
|
+
rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
|
|
1887
|
+
rsPunctuationRange = '\\u2000-\\u206f',
|
|
1888
|
+
rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
|
|
1889
|
+
rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
|
|
1890
|
+
rsVarRange = '\\ufe0e\\ufe0f',
|
|
1891
|
+
rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
|
1892
|
+
|
|
1893
|
+
/** Used to compose unicode capture groups. */
|
|
1894
|
+
var rsApos = "['\u2019]",
|
|
1895
|
+
rsBreak = '[' + rsBreakRange + ']',
|
|
1896
|
+
rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',
|
|
1897
|
+
rsDigits = '\\d+',
|
|
1898
|
+
rsDingbat = '[' + rsDingbatRange + ']',
|
|
1899
|
+
rsLower = '[' + rsLowerRange + ']',
|
|
1900
|
+
rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
|
|
1901
|
+
rsFitz = '\\ud83c[\\udffb-\\udfff]',
|
|
1902
|
+
rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
|
|
1903
|
+
rsNonAstral = '[^' + rsAstralRange + ']',
|
|
1904
|
+
rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
|
|
1905
|
+
rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
|
|
1906
|
+
rsUpper = '[' + rsUpperRange + ']',
|
|
1907
|
+
rsZWJ = '\\u200d';
|
|
1908
|
+
|
|
1909
|
+
/** Used to compose unicode regexes. */
|
|
1910
|
+
var rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',
|
|
1911
|
+
rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',
|
|
1912
|
+
rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',
|
|
1913
|
+
rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',
|
|
1914
|
+
reOptMod = rsModifier + '?',
|
|
1915
|
+
rsOptVar = '[' + rsVarRange + ']?',
|
|
1916
|
+
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
|
1917
|
+
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
|
1918
|
+
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
|
|
1919
|
+
|
|
1920
|
+
/** Used to match apostrophes. */
|
|
1921
|
+
var reApos = RegExp(rsApos, 'g');
|
|
1922
|
+
|
|
1923
|
+
/**
|
|
1924
|
+
* Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
|
|
1925
|
+
* [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
|
|
1926
|
+
*/
|
|
1927
|
+
var reComboMark = RegExp(rsCombo, 'g');
|
|
1928
|
+
|
|
1929
|
+
/** Used to match complex or compound words. */
|
|
1930
|
+
var reUnicodeWord = RegExp([
|
|
1931
|
+
rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
|
|
1932
|
+
rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',
|
|
1933
|
+
rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,
|
|
1934
|
+
rsUpper + '+' + rsOptUpperContr,
|
|
1935
|
+
rsDigits,
|
|
1936
|
+
rsEmoji
|
|
1937
|
+
].join('|'), 'g');
|
|
1938
|
+
|
|
1939
|
+
/** Used to detect strings that need a more robust regexp to match words. */
|
|
1940
|
+
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
|
1941
|
+
|
|
1942
|
+
/** Used to map Latin Unicode letters to basic Latin letters. */
|
|
1943
|
+
var deburredLetters = {
|
|
1944
|
+
// Latin-1 Supplement block.
|
|
1945
|
+
'\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
|
|
1946
|
+
'\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
|
|
1947
|
+
'\xc7': 'C', '\xe7': 'c',
|
|
1948
|
+
'\xd0': 'D', '\xf0': 'd',
|
|
1949
|
+
'\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
|
|
1950
|
+
'\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
|
|
1951
|
+
'\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
|
|
1952
|
+
'\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
|
|
1953
|
+
'\xd1': 'N', '\xf1': 'n',
|
|
1954
|
+
'\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
|
|
1955
|
+
'\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
|
|
1956
|
+
'\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
|
|
1957
|
+
'\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
|
|
1958
|
+
'\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
|
|
1959
|
+
'\xc6': 'Ae', '\xe6': 'ae',
|
|
1960
|
+
'\xde': 'Th', '\xfe': 'th',
|
|
1961
|
+
'\xdf': 'ss',
|
|
1962
|
+
// Latin Extended-A block.
|
|
1963
|
+
'\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
|
|
1964
|
+
'\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
|
|
1965
|
+
'\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
|
|
1966
|
+
'\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
|
|
1967
|
+
'\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
|
|
1968
|
+
'\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
|
|
1969
|
+
'\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
|
|
1970
|
+
'\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
|
|
1971
|
+
'\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
|
|
1972
|
+
'\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
|
|
1973
|
+
'\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
|
|
1974
|
+
'\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
|
|
1975
|
+
'\u0134': 'J', '\u0135': 'j',
|
|
1976
|
+
'\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
|
|
1977
|
+
'\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
|
|
1978
|
+
'\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
|
|
1979
|
+
'\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
|
|
1980
|
+
'\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
|
|
1981
|
+
'\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
|
|
1982
|
+
'\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
|
|
1983
|
+
'\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
|
|
1984
|
+
'\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
|
|
1985
|
+
'\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
|
|
1986
|
+
'\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
|
|
1987
|
+
'\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
|
|
1988
|
+
'\u0163': 't', '\u0165': 't', '\u0167': 't',
|
|
1989
|
+
'\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
|
|
1990
|
+
'\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
|
|
1991
|
+
'\u0174': 'W', '\u0175': 'w',
|
|
1992
|
+
'\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
|
|
1993
|
+
'\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
|
|
1994
|
+
'\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
|
|
1995
|
+
'\u0132': 'IJ', '\u0133': 'ij',
|
|
1996
|
+
'\u0152': 'Oe', '\u0153': 'oe',
|
|
1997
|
+
'\u0149': "'n", '\u017f': 'ss'
|
|
1998
|
+
};
|
|
1999
|
+
|
|
2000
|
+
/** Detect free variable `global` from Node.js. */
|
|
2001
|
+
var freeGlobal$2 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
2002
|
+
|
|
2003
|
+
/** Detect free variable `self`. */
|
|
2004
|
+
var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
|
|
2005
|
+
|
|
2006
|
+
/** Used as a reference to the global object. */
|
|
2007
|
+
var root$9 = freeGlobal$2 || freeSelf$1 || Function('return this')();
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* A specialized version of `_.reduce` for arrays without support for
|
|
2011
|
+
* iteratee shorthands.
|
|
2012
|
+
*
|
|
2013
|
+
* @private
|
|
2014
|
+
* @param {Array} [array] The array to iterate over.
|
|
2015
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
2016
|
+
* @param {*} [accumulator] The initial value.
|
|
2017
|
+
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
2018
|
+
* the initial value.
|
|
2019
|
+
* @returns {*} Returns the accumulated value.
|
|
2020
|
+
*/
|
|
2021
|
+
function arrayReduce$2(array, iteratee, accumulator, initAccum) {
|
|
2022
|
+
var index = -1,
|
|
2023
|
+
length = array ? array.length : 0;
|
|
2024
|
+
|
|
2025
|
+
if (initAccum && length) {
|
|
2026
|
+
accumulator = array[++index];
|
|
2027
|
+
}
|
|
2028
|
+
while (++index < length) {
|
|
2029
|
+
accumulator = iteratee(accumulator, array[index], index, array);
|
|
2030
|
+
}
|
|
2031
|
+
return accumulator;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* Splits an ASCII `string` into an array of its words.
|
|
2036
|
+
*
|
|
2037
|
+
* @private
|
|
2038
|
+
* @param {string} The string to inspect.
|
|
2039
|
+
* @returns {Array} Returns the words of `string`.
|
|
2040
|
+
*/
|
|
2041
|
+
function asciiWords(string) {
|
|
2042
|
+
return string.match(reAsciiWord) || [];
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
/**
|
|
2046
|
+
* The base implementation of `_.propertyOf` without support for deep paths.
|
|
2047
|
+
*
|
|
2048
|
+
* @private
|
|
2049
|
+
* @param {Object} object The object to query.
|
|
2050
|
+
* @returns {Function} Returns the new accessor function.
|
|
2051
|
+
*/
|
|
2052
|
+
function basePropertyOf(object) {
|
|
2053
|
+
return function(key) {
|
|
2054
|
+
return object == null ? undefined : object[key];
|
|
2055
|
+
};
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
/**
|
|
2059
|
+
* Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
|
|
2060
|
+
* letters to basic Latin letters.
|
|
2061
|
+
*
|
|
2062
|
+
* @private
|
|
2063
|
+
* @param {string} letter The matched letter to deburr.
|
|
2064
|
+
* @returns {string} Returns the deburred letter.
|
|
2065
|
+
*/
|
|
2066
|
+
var deburrLetter = basePropertyOf(deburredLetters);
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Checks if `string` contains a word composed of Unicode symbols.
|
|
2070
|
+
*
|
|
2071
|
+
* @private
|
|
2072
|
+
* @param {string} string The string to inspect.
|
|
2073
|
+
* @returns {boolean} Returns `true` if a word is found, else `false`.
|
|
2074
|
+
*/
|
|
2075
|
+
function hasUnicodeWord(string) {
|
|
2076
|
+
return reHasUnicodeWord.test(string);
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* Splits a Unicode `string` into an array of its words.
|
|
2081
|
+
*
|
|
2082
|
+
* @private
|
|
2083
|
+
* @param {string} The string to inspect.
|
|
2084
|
+
* @returns {Array} Returns the words of `string`.
|
|
2085
|
+
*/
|
|
2086
|
+
function unicodeWords(string) {
|
|
2087
|
+
return string.match(reUnicodeWord) || [];
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
/** Used for built-in method references. */
|
|
2091
|
+
var objectProto$f = Object.prototype;
|
|
2092
|
+
|
|
2093
|
+
/**
|
|
2094
|
+
* Used to resolve the
|
|
2095
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
2096
|
+
* of values.
|
|
2097
|
+
*/
|
|
2098
|
+
var objectToString$2 = objectProto$f.toString;
|
|
2099
|
+
|
|
2100
|
+
/** Built-in value references. */
|
|
2101
|
+
var Symbol$6 = root$9.Symbol;
|
|
2102
|
+
|
|
2103
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2104
|
+
var symbolProto$2 = Symbol$6 ? Symbol$6.prototype : undefined,
|
|
2105
|
+
symbolToString$1 = symbolProto$2 ? symbolProto$2.toString : undefined;
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2109
|
+
* values to empty strings.
|
|
2110
|
+
*
|
|
2111
|
+
* @private
|
|
2112
|
+
* @param {*} value The value to process.
|
|
2113
|
+
* @returns {string} Returns the string.
|
|
2114
|
+
*/
|
|
2115
|
+
function baseToString$2(value) {
|
|
2116
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
2117
|
+
if (typeof value == 'string') {
|
|
2118
|
+
return value;
|
|
2119
|
+
}
|
|
2120
|
+
if (isSymbol$4(value)) {
|
|
2121
|
+
return symbolToString$1 ? symbolToString$1.call(value) : '';
|
|
2122
|
+
}
|
|
2123
|
+
var result = (value + '');
|
|
2124
|
+
return (result == '0' && (1 / value) == -INFINITY$2) ? '-0' : result;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Creates a function like `_.camelCase`.
|
|
2129
|
+
*
|
|
2130
|
+
* @private
|
|
2131
|
+
* @param {Function} callback The function to combine each word.
|
|
2132
|
+
* @returns {Function} Returns the new compounder function.
|
|
2133
|
+
*/
|
|
2134
|
+
function createCompounder(callback) {
|
|
2135
|
+
return function(string) {
|
|
2136
|
+
return arrayReduce$2(words(deburr(string).replace(reApos, '')), callback, '');
|
|
2137
|
+
};
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
/**
|
|
2141
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2142
|
+
* and has a `typeof` result of "object".
|
|
2143
|
+
*
|
|
2144
|
+
* @static
|
|
2145
|
+
* @memberOf _
|
|
2146
|
+
* @since 4.0.0
|
|
2147
|
+
* @category Lang
|
|
2148
|
+
* @param {*} value The value to check.
|
|
2149
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
2150
|
+
* @example
|
|
2151
|
+
*
|
|
2152
|
+
* _.isObjectLike({});
|
|
2153
|
+
* // => true
|
|
2154
|
+
*
|
|
2155
|
+
* _.isObjectLike([1, 2, 3]);
|
|
2156
|
+
* // => true
|
|
2157
|
+
*
|
|
2158
|
+
* _.isObjectLike(_.noop);
|
|
2159
|
+
* // => false
|
|
2160
|
+
*
|
|
2161
|
+
* _.isObjectLike(null);
|
|
2162
|
+
* // => false
|
|
2163
|
+
*/
|
|
2164
|
+
function isObjectLike$9(value) {
|
|
2165
|
+
return !!value && typeof value == 'object';
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
/**
|
|
2169
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
2170
|
+
*
|
|
2171
|
+
* @static
|
|
2172
|
+
* @memberOf _
|
|
2173
|
+
* @since 4.0.0
|
|
2174
|
+
* @category Lang
|
|
2175
|
+
* @param {*} value The value to check.
|
|
2176
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
2177
|
+
* @example
|
|
2178
|
+
*
|
|
2179
|
+
* _.isSymbol(Symbol.iterator);
|
|
2180
|
+
* // => true
|
|
2181
|
+
*
|
|
2182
|
+
* _.isSymbol('abc');
|
|
2183
|
+
* // => false
|
|
2184
|
+
*/
|
|
2185
|
+
function isSymbol$4(value) {
|
|
2186
|
+
return typeof value == 'symbol' ||
|
|
2187
|
+
(isObjectLike$9(value) && objectToString$2.call(value) == symbolTag$2);
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
/**
|
|
2191
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
2192
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2193
|
+
*
|
|
2194
|
+
* @static
|
|
2195
|
+
* @memberOf _
|
|
2196
|
+
* @since 4.0.0
|
|
2197
|
+
* @category Lang
|
|
2198
|
+
* @param {*} value The value to process.
|
|
2199
|
+
* @returns {string} Returns the string.
|
|
2200
|
+
* @example
|
|
2201
|
+
*
|
|
2202
|
+
* _.toString(null);
|
|
2203
|
+
* // => ''
|
|
2204
|
+
*
|
|
2205
|
+
* _.toString(-0);
|
|
2206
|
+
* // => '-0'
|
|
2207
|
+
*
|
|
2208
|
+
* _.toString([1, 2, 3]);
|
|
2209
|
+
* // => '1,2,3'
|
|
2210
|
+
*/
|
|
2211
|
+
function toString$2(value) {
|
|
2212
|
+
return value == null ? '' : baseToString$2(value);
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Deburrs `string` by converting
|
|
2217
|
+
* [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
|
|
2218
|
+
* and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
|
|
2219
|
+
* letters to basic Latin letters and removing
|
|
2220
|
+
* [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
|
|
2221
|
+
*
|
|
2222
|
+
* @static
|
|
2223
|
+
* @memberOf _
|
|
2224
|
+
* @since 3.0.0
|
|
2225
|
+
* @category String
|
|
2226
|
+
* @param {string} [string=''] The string to deburr.
|
|
2227
|
+
* @returns {string} Returns the deburred string.
|
|
2228
|
+
* @example
|
|
2229
|
+
*
|
|
2230
|
+
* _.deburr('déjà vu');
|
|
2231
|
+
* // => 'deja vu'
|
|
2232
|
+
*/
|
|
2233
|
+
function deburr(string) {
|
|
2234
|
+
string = toString$2(string);
|
|
2235
|
+
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
/**
|
|
2239
|
+
* Converts `string` to
|
|
2240
|
+
* [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).
|
|
2241
|
+
*
|
|
2242
|
+
* @static
|
|
2243
|
+
* @memberOf _
|
|
2244
|
+
* @since 3.0.0
|
|
2245
|
+
* @category String
|
|
2246
|
+
* @param {string} [string=''] The string to convert.
|
|
2247
|
+
* @returns {string} Returns the kebab cased string.
|
|
2248
|
+
* @example
|
|
2249
|
+
*
|
|
2250
|
+
* _.kebabCase('Foo Bar');
|
|
2251
|
+
* // => 'foo-bar'
|
|
2252
|
+
*
|
|
2253
|
+
* _.kebabCase('fooBar');
|
|
2254
|
+
* // => 'foo-bar'
|
|
2255
|
+
*
|
|
2256
|
+
* _.kebabCase('__FOO_BAR__');
|
|
2257
|
+
* // => 'foo-bar'
|
|
2258
|
+
*/
|
|
2259
|
+
var kebabCase = createCompounder(function(result, word, index) {
|
|
2260
|
+
return result + (index ? '-' : '') + word.toLowerCase();
|
|
2261
|
+
});
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* Splits `string` into an array of its words.
|
|
2265
|
+
*
|
|
2266
|
+
* @static
|
|
2267
|
+
* @memberOf _
|
|
2268
|
+
* @since 3.0.0
|
|
2269
|
+
* @category String
|
|
2270
|
+
* @param {string} [string=''] The string to inspect.
|
|
2271
|
+
* @param {RegExp|string} [pattern] The pattern to match words.
|
|
2272
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
2273
|
+
* @returns {Array} Returns the words of `string`.
|
|
2274
|
+
* @example
|
|
2275
|
+
*
|
|
2276
|
+
* _.words('fred, barney, & pebbles');
|
|
2277
|
+
* // => ['fred', 'barney', 'pebbles']
|
|
2278
|
+
*
|
|
2279
|
+
* _.words('fred, barney, & pebbles', /[^, ]+/g);
|
|
2280
|
+
* // => ['fred', 'barney', '&', 'pebbles']
|
|
2281
|
+
*/
|
|
2282
|
+
function words(string, pattern, guard) {
|
|
2283
|
+
string = toString$2(string);
|
|
2284
|
+
pattern = guard ? undefined : pattern;
|
|
2285
|
+
|
|
2286
|
+
if (pattern === undefined) {
|
|
2287
|
+
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
|
2288
|
+
}
|
|
2289
|
+
return string.match(pattern) || [];
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
var lodash_kebabcase = kebabCase;
|
|
2293
|
+
|
|
1430
2294
|
/*!
|
|
1431
2295
|
* Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
|
|
1432
2296
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -3866,7 +4730,8 @@ const Header = styled.div `
|
|
|
3866
4730
|
font-weight: bold;
|
|
3867
4731
|
}
|
|
3868
4732
|
`;
|
|
3869
|
-
function
|
|
4733
|
+
function AccordionPanel({ title, hash, allOpen, setAllOpen, children }) {
|
|
4734
|
+
const id = lodash_kebabcase(title);
|
|
3870
4735
|
const [open, setOpen] = useState(allOpen);
|
|
3871
4736
|
const handleClick = () => {
|
|
3872
4737
|
setOpen(!open);
|
|
@@ -3877,9 +4742,13 @@ function Accordionpanel({ title, allOpen, setAllOpen, children }) {
|
|
|
3877
4742
|
return;
|
|
3878
4743
|
setOpen(allOpen);
|
|
3879
4744
|
}, [allOpen]);
|
|
4745
|
+
useEffect(() => {
|
|
4746
|
+
if (hash === id)
|
|
4747
|
+
setOpen(true);
|
|
4748
|
+
}, [hash]);
|
|
3880
4749
|
return (React.createElement(Container, null,
|
|
3881
4750
|
React.createElement(Header, { onClick: handleClick },
|
|
3882
|
-
React.createElement("span",
|
|
4751
|
+
React.createElement("span", { id: id }, title),
|
|
3883
4752
|
React.createElement(FontAwesomeIcon, { icon: open ? faAngleUp : faAngleDown, size: "2x" })),
|
|
3884
4753
|
React.createElement(SmoothTransition, { open: open }, children)));
|
|
3885
4754
|
}
|
|
@@ -3898,8 +4767,15 @@ const Divider = styled.span `
|
|
|
3898
4767
|
margin: auto 0.5em;
|
|
3899
4768
|
`;
|
|
3900
4769
|
function Accordion({ children, open = false }) {
|
|
4770
|
+
const [hash, setHash] = useState('');
|
|
3901
4771
|
const [allOpen, setAllOpen] = useState(open);
|
|
3902
|
-
|
|
4772
|
+
useEffect(() => {
|
|
4773
|
+
let history = createHashHistory();
|
|
4774
|
+
let unlisten = history.listen(({ action, location }) => {
|
|
4775
|
+
setHash(location.pathname);
|
|
4776
|
+
});
|
|
4777
|
+
return () => unlisten();
|
|
4778
|
+
}, []);
|
|
3903
4779
|
const handleClose = () => {
|
|
3904
4780
|
setAllOpen(false);
|
|
3905
4781
|
};
|
|
@@ -3912,10 +4788,10 @@ function Accordion({ children, open = false }) {
|
|
|
3912
4788
|
React.createElement(Divider, null),
|
|
3913
4789
|
React.createElement("span", { onClick: handleClose }, "Collapse All")),
|
|
3914
4790
|
Array.isArray(children)
|
|
3915
|
-
? lodash_flatten(children).map((child) => React.cloneElement(child, { allOpen, setAllOpen }))
|
|
4791
|
+
? lodash_flatten(children).map((child) => React.cloneElement(child, { hash, allOpen, setAllOpen }))
|
|
3916
4792
|
: React.cloneElement(children, { allOpen, setAllOpen })));
|
|
3917
4793
|
}
|
|
3918
|
-
Accordion.Panel =
|
|
4794
|
+
Accordion.Panel = AccordionPanel;
|
|
3919
4795
|
|
|
3920
4796
|
const Circle = styled.div `
|
|
3921
4797
|
height: ${(props) => props.circleDiameter};
|
|
@@ -3973,29 +4849,6 @@ module.exports = _interopRequireDefault;
|
|
|
3973
4849
|
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
3974
4850
|
}(interopRequireDefault));
|
|
3975
4851
|
|
|
3976
|
-
function _extends() {
|
|
3977
|
-
_extends = Object.assign || function (target) {
|
|
3978
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3979
|
-
var source = arguments[i];
|
|
3980
|
-
|
|
3981
|
-
for (var key in source) {
|
|
3982
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3983
|
-
target[key] = source[key];
|
|
3984
|
-
}
|
|
3985
|
-
}
|
|
3986
|
-
}
|
|
3987
|
-
|
|
3988
|
-
return target;
|
|
3989
|
-
};
|
|
3990
|
-
|
|
3991
|
-
return _extends.apply(this, arguments);
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
|
-
var _extends$1 = /*#__PURE__*/Object.freeze({
|
|
3995
|
-
__proto__: null,
|
|
3996
|
-
'default': _extends
|
|
3997
|
-
});
|
|
3998
|
-
|
|
3999
4852
|
var require$$2 = /*@__PURE__*/getAugmentedNamespace(_extends$1);
|
|
4000
4853
|
|
|
4001
4854
|
function toVal(mix) {
|
|
@@ -4040,8 +4893,8 @@ function clsx_m () {
|
|
|
4040
4893
|
}
|
|
4041
4894
|
|
|
4042
4895
|
var clsx_m$1 = /*#__PURE__*/Object.freeze({
|
|
4043
|
-
|
|
4044
|
-
|
|
4896
|
+
__proto__: null,
|
|
4897
|
+
'default': clsx_m
|
|
4045
4898
|
});
|
|
4046
4899
|
|
|
4047
4900
|
var require$$6 = /*@__PURE__*/getAugmentedNamespace(clsx_m$1);
|
|
@@ -4058,8 +4911,8 @@ function _taggedTemplateLiteralLoose(strings, raw) {
|
|
|
4058
4911
|
}
|
|
4059
4912
|
|
|
4060
4913
|
var taggedTemplateLiteralLoose = /*#__PURE__*/Object.freeze({
|
|
4061
|
-
|
|
4062
|
-
|
|
4914
|
+
__proto__: null,
|
|
4915
|
+
'default': _taggedTemplateLiteralLoose
|
|
4063
4916
|
});
|
|
4064
4917
|
|
|
4065
4918
|
var require$$4 = /*@__PURE__*/getAugmentedNamespace(taggedTemplateLiteralLoose);
|
|
@@ -4080,8 +4933,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
4080
4933
|
}
|
|
4081
4934
|
|
|
4082
4935
|
var objectWithoutPropertiesLoose = /*#__PURE__*/Object.freeze({
|
|
4083
|
-
|
|
4084
|
-
|
|
4936
|
+
__proto__: null,
|
|
4937
|
+
'default': _objectWithoutPropertiesLoose
|
|
4085
4938
|
});
|
|
4086
4939
|
|
|
4087
4940
|
var require$$3 = /*@__PURE__*/getAugmentedNamespace(objectWithoutPropertiesLoose);
|