@bcgov-sso/common-react-components 1.4.0 → 1.15.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/esm/index.js CHANGED
@@ -1,2478 +1,22 @@
1
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
- function getAugmentedNamespace(n) {
4
- if (n.__esModule) return n;
5
- var a = Object.defineProperty({}, '__esModule', {value: true});
6
- Object.keys(n).forEach(function (k) {
7
- var d = Object.getOwnPropertyDescriptor(n, k);
8
- Object.defineProperty(a, k, d.get ? d : {
9
- enumerable: true,
10
- get: function () {
11
- return n[k];
12
- }
13
- });
14
- });
15
- return a;
16
- }
17
-
18
- var react = {exports: {}};
19
-
20
- var react_production_min = {};
21
-
22
- /*
23
- object-assign
24
- (c) Sindre Sorhus
25
- @license MIT
26
- */
27
- /* eslint-disable no-unused-vars */
28
- var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
29
- var hasOwnProperty$d = Object.prototype.hasOwnProperty;
30
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
31
-
32
- function toObject(val) {
33
- if (val === null || val === undefined) {
34
- throw new TypeError('Object.assign cannot be called with null or undefined');
35
- }
36
-
37
- return Object(val);
38
- }
39
-
40
- function shouldUseNative() {
41
- try {
42
- if (!Object.assign) {
43
- return false;
44
- }
45
-
46
- // Detect buggy property enumeration order in older V8 versions.
47
-
48
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
49
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
50
- test1[5] = 'de';
51
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
52
- return false;
53
- }
54
-
55
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
56
- var test2 = {};
57
- for (var i = 0; i < 10; i++) {
58
- test2['_' + String.fromCharCode(i)] = i;
59
- }
60
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
61
- return test2[n];
62
- });
63
- if (order2.join('') !== '0123456789') {
64
- return false;
65
- }
66
-
67
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
68
- var test3 = {};
69
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
70
- test3[letter] = letter;
71
- });
72
- if (Object.keys(Object.assign({}, test3)).join('') !==
73
- 'abcdefghijklmnopqrst') {
74
- return false;
75
- }
76
-
77
- return true;
78
- } catch (err) {
79
- // We don't expect any of the above to throw, but better to be safe.
80
- return false;
81
- }
82
- }
83
-
84
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
85
- var from;
86
- var to = toObject(target);
87
- var symbols;
88
-
89
- for (var s = 1; s < arguments.length; s++) {
90
- from = Object(arguments[s]);
91
-
92
- for (var key in from) {
93
- if (hasOwnProperty$d.call(from, key)) {
94
- to[key] = from[key];
95
- }
96
- }
97
-
98
- if (getOwnPropertySymbols$1) {
99
- symbols = getOwnPropertySymbols$1(from);
100
- for (var i = 0; i < symbols.length; i++) {
101
- if (propIsEnumerable.call(from, symbols[i])) {
102
- to[symbols[i]] = from[symbols[i]];
103
- }
104
- }
105
- }
106
- }
107
-
108
- return to;
109
- };
110
-
111
- /** @license React v17.0.2
112
- * react.production.min.js
113
- *
114
- * Copyright (c) Facebook, Inc. and its affiliates.
115
- *
116
- * This source code is licensed under the MIT license found in the
117
- * LICENSE file in the root directory of this source tree.
118
- */
119
- var l$1=objectAssign,n$1=60103,p$1=60106;react_production_min.Fragment=60107;react_production_min.StrictMode=60108;react_production_min.Profiler=60114;var q$2=60109,r$1=60110,t$1=60112;react_production_min.Suspense=60113;var u=60115,v$2=60116;
120
- if("function"===typeof Symbol&&Symbol.for){var w$3=Symbol.for;n$1=w$3("react.element");p$1=w$3("react.portal");react_production_min.Fragment=w$3("react.fragment");react_production_min.StrictMode=w$3("react.strict_mode");react_production_min.Profiler=w$3("react.profiler");q$2=w$3("react.provider");r$1=w$3("react.context");t$1=w$3("react.forward_ref");react_production_min.Suspense=w$3("react.suspense");u=w$3("react.memo");v$2=w$3("react.lazy");}var x$2="function"===typeof Symbol&&Symbol.iterator;
121
- function y$2(a){if(null===a||"object"!==typeof a)return null;a=x$2&&a[x$2]||a["@@iterator"];return "function"===typeof a?a:null}function z$2(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
122
- var A$2={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B$1={};function C$1(a,b,c){this.props=a;this.context=b;this.refs=B$1;this.updater=c||A$2;}C$1.prototype.isReactComponent={};C$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z$2(85));this.updater.enqueueSetState(this,a,b,"setState");};C$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
123
- function D$1(){}D$1.prototype=C$1.prototype;function E$1(a,b,c){this.props=a;this.context=b;this.refs=B$1;this.updater=c||A$2;}var F$1=E$1.prototype=new D$1;F$1.constructor=E$1;l$1(F$1,C$1.prototype);F$1.isPureReactComponent=!0;var G$1={current:null},H$1=Object.prototype.hasOwnProperty,I$1={key:!0,ref:!0,__self:!0,__source:!0};
124
- function J$1(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H$1.call(b,e)&&!I$1.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];d.children=f;}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return {$$typeof:n$1,type:a,key:k,ref:h,props:d,_owner:G$1.current}}
125
- function K$1(a,b){return {$$typeof:n$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===n$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var M$1=/\/+/g;function N$1(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
126
- function O$1(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n$1:case p$1:h=!0;}}if(h)return h=a,d=d(h),a=""===e?"."+N$1(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M$1,"$&/")+"/"),O$1(d,b,c,"",function(a){return a})):null!=d&&(L$1(d)&&(d=K$1(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M$1,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
127
- 0;g<a.length;g++){k=a[g];var f=e+N$1(k,g);h+=O$1(k,b,c,f,d);}else if(f=y$2(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N$1(k,g++),h+=O$1(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z$2(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function P$1(a,b,c){if(null==a)return a;var e=[],d=0;O$1(a,e,"","",function(a){return b.call(c,a,d++)});return e}
128
- function Q$1(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b);},function(b){0===a._status&&(a._status=2,a._result=b);});}if(1===a._status)return a._result;throw a._result;}var R$1={current:null};function S$1(){var a=R$1.current;if(null===a)throw Error(z$2(321));return a}var T$1={ReactCurrentDispatcher:R$1,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G$1,IsSomeRendererActing:{current:!1},assign:l$1};
129
- react_production_min.Children={map:P$1,forEach:function(a,b,c){P$1(a,function(){b.apply(this,arguments);},c);},count:function(a){var b=0;P$1(a,function(){b++;});return b},toArray:function(a){return P$1(a,function(a){return a})||[]},only:function(a){if(!L$1(a))throw Error(z$2(143));return a}};react_production_min.Component=C$1;react_production_min.PureComponent=E$1;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T$1;
130
- react_production_min.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z$2(267,a));var e=l$1({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G$1.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H$1.call(b,f)&&!I$1.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g;}return {$$typeof:n$1,type:a.type,
131
- key:d,ref:k,props:e,_owner:h}};react_production_min.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r$1,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q$2,_context:a};return a.Consumer=a};react_production_min.createElement=J$1;react_production_min.createFactory=function(a){var b=J$1.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};react_production_min.forwardRef=function(a){return {$$typeof:t$1,render:a}};react_production_min.isValidElement=L$1;
132
- react_production_min.lazy=function(a){return {$$typeof:v$2,_payload:{_status:-1,_result:a},_init:Q$1}};react_production_min.memo=function(a,b){return {$$typeof:u,type:a,compare:void 0===b?null:b}};react_production_min.useCallback=function(a,b){return S$1().useCallback(a,b)};react_production_min.useContext=function(a,b){return S$1().useContext(a,b)};react_production_min.useDebugValue=function(){};react_production_min.useEffect=function(a,b){return S$1().useEffect(a,b)};react_production_min.useImperativeHandle=function(a,b,c){return S$1().useImperativeHandle(a,b,c)};
133
- react_production_min.useLayoutEffect=function(a,b){return S$1().useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return S$1().useMemo(a,b)};react_production_min.useReducer=function(a,b,c){return S$1().useReducer(a,b,c)};react_production_min.useRef=function(a){return S$1().useRef(a)};react_production_min.useState=function(a){return S$1().useState(a)};react_production_min.version="17.0.2";
134
-
135
- var react_development = {};
136
-
137
- /** @license React v17.0.2
138
- * react.development.js
139
- *
140
- * Copyright (c) Facebook, Inc. and its affiliates.
141
- *
142
- * This source code is licensed under the MIT license found in the
143
- * LICENSE file in the root directory of this source tree.
144
- */
145
-
146
- (function (exports) {
147
-
148
- if (process.env.NODE_ENV !== "production") {
149
- (function() {
150
-
151
- var _assign = objectAssign;
152
-
153
- // TODO: this is special because it gets imported during build.
154
- var ReactVersion = '17.0.2';
155
-
156
- // ATTENTION
157
- // When adding new symbols to this file,
158
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
159
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
160
- // nor polyfill, then a plain number is used for performance.
161
- var REACT_ELEMENT_TYPE = 0xeac7;
162
- var REACT_PORTAL_TYPE = 0xeaca;
163
- exports.Fragment = 0xeacb;
164
- exports.StrictMode = 0xeacc;
165
- exports.Profiler = 0xead2;
166
- var REACT_PROVIDER_TYPE = 0xeacd;
167
- var REACT_CONTEXT_TYPE = 0xeace;
168
- var REACT_FORWARD_REF_TYPE = 0xead0;
169
- exports.Suspense = 0xead1;
170
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
171
- var REACT_MEMO_TYPE = 0xead3;
172
- var REACT_LAZY_TYPE = 0xead4;
173
- var REACT_BLOCK_TYPE = 0xead9;
174
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
175
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
176
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
177
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
178
-
179
- if (typeof Symbol === 'function' && Symbol.for) {
180
- var symbolFor = Symbol.for;
181
- REACT_ELEMENT_TYPE = symbolFor('react.element');
182
- REACT_PORTAL_TYPE = symbolFor('react.portal');
183
- exports.Fragment = symbolFor('react.fragment');
184
- exports.StrictMode = symbolFor('react.strict_mode');
185
- exports.Profiler = symbolFor('react.profiler');
186
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
187
- REACT_CONTEXT_TYPE = symbolFor('react.context');
188
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
189
- exports.Suspense = symbolFor('react.suspense');
190
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
191
- REACT_MEMO_TYPE = symbolFor('react.memo');
192
- REACT_LAZY_TYPE = symbolFor('react.lazy');
193
- REACT_BLOCK_TYPE = symbolFor('react.block');
194
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
195
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
196
- symbolFor('react.scope');
197
- symbolFor('react.opaque.id');
198
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
199
- symbolFor('react.offscreen');
200
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
201
- }
202
-
203
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
204
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
205
- function getIteratorFn(maybeIterable) {
206
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
207
- return null;
208
- }
209
-
210
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
211
-
212
- if (typeof maybeIterator === 'function') {
213
- return maybeIterator;
214
- }
215
-
216
- return null;
217
- }
218
-
219
- /**
220
- * Keeps track of the current dispatcher.
221
- */
222
- var ReactCurrentDispatcher = {
223
- /**
224
- * @internal
225
- * @type {ReactComponent}
226
- */
227
- current: null
228
- };
229
-
230
- /**
231
- * Keeps track of the current batch's configuration such as how long an update
232
- * should suspend for if it needs to.
233
- */
234
- var ReactCurrentBatchConfig = {
235
- transition: 0
236
- };
237
-
238
- /**
239
- * Keeps track of the current owner.
240
- *
241
- * The current owner is the component who should own any components that are
242
- * currently being constructed.
243
- */
244
- var ReactCurrentOwner = {
245
- /**
246
- * @internal
247
- * @type {ReactComponent}
248
- */
249
- current: null
250
- };
251
-
252
- var ReactDebugCurrentFrame = {};
253
- var currentExtraStackFrame = null;
254
- function setExtraStackFrame(stack) {
255
- {
256
- currentExtraStackFrame = stack;
257
- }
258
- }
259
-
260
- {
261
- ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
262
- {
263
- currentExtraStackFrame = stack;
264
- }
265
- }; // Stack implementation injected by the current renderer.
266
-
267
-
268
- ReactDebugCurrentFrame.getCurrentStack = null;
269
-
270
- ReactDebugCurrentFrame.getStackAddendum = function () {
271
- var stack = ''; // Add an extra top frame while an element is being validated
272
-
273
- if (currentExtraStackFrame) {
274
- stack += currentExtraStackFrame;
275
- } // Delegate to the injected renderer-specific implementation
276
-
277
-
278
- var impl = ReactDebugCurrentFrame.getCurrentStack;
279
-
280
- if (impl) {
281
- stack += impl() || '';
282
- }
283
-
284
- return stack;
285
- };
286
- }
287
-
288
- /**
289
- * Used by act() to track whether you're inside an act() scope.
290
- */
291
- var IsSomeRendererActing = {
292
- current: false
293
- };
294
-
295
- var ReactSharedInternals = {
296
- ReactCurrentDispatcher: ReactCurrentDispatcher,
297
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
298
- ReactCurrentOwner: ReactCurrentOwner,
299
- IsSomeRendererActing: IsSomeRendererActing,
300
- // Used by renderers to avoid bundling object-assign twice in UMD bundles:
301
- assign: _assign
302
- };
303
-
304
- {
305
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
306
- }
307
-
308
- // by calls to these methods by a Babel plugin.
309
- //
310
- // In PROD (or in packages without access to React internals),
311
- // they are left as they are instead.
312
-
313
- function warn(format) {
314
- {
315
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
316
- args[_key - 1] = arguments[_key];
317
- }
318
-
319
- printWarning('warn', format, args);
320
- }
321
- }
322
- function error(format) {
323
- {
324
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
325
- args[_key2 - 1] = arguments[_key2];
326
- }
327
-
328
- printWarning('error', format, args);
329
- }
330
- }
331
-
332
- function printWarning(level, format, args) {
333
- // When changing this logic, you might want to also
334
- // update consoleWithStackDev.www.js as well.
335
- {
336
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
337
- var stack = ReactDebugCurrentFrame.getStackAddendum();
338
-
339
- if (stack !== '') {
340
- format += '%s';
341
- args = args.concat([stack]);
342
- }
343
-
344
- var argsWithFormat = args.map(function (item) {
345
- return '' + item;
346
- }); // Careful: RN currently depends on this prefix
347
-
348
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
349
- // breaks IE9: https://github.com/facebook/react/issues/13610
350
- // eslint-disable-next-line react-internal/no-production-logging
351
-
352
- Function.prototype.apply.call(console[level], console, argsWithFormat);
353
- }
354
- }
355
-
356
- var didWarnStateUpdateForUnmountedComponent = {};
357
-
358
- function warnNoop(publicInstance, callerName) {
359
- {
360
- var _constructor = publicInstance.constructor;
361
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
362
- var warningKey = componentName + "." + callerName;
363
-
364
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
365
- return;
366
- }
367
-
368
- error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
369
-
370
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
371
- }
372
- }
373
- /**
374
- * This is the abstract API for an update queue.
375
- */
376
-
377
-
378
- var ReactNoopUpdateQueue = {
379
- /**
380
- * Checks whether or not this composite component is mounted.
381
- * @param {ReactClass} publicInstance The instance we want to test.
382
- * @return {boolean} True if mounted, false otherwise.
383
- * @protected
384
- * @final
385
- */
386
- isMounted: function (publicInstance) {
387
- return false;
388
- },
389
-
390
- /**
391
- * Forces an update. This should only be invoked when it is known with
392
- * certainty that we are **not** in a DOM transaction.
393
- *
394
- * You may want to call this when you know that some deeper aspect of the
395
- * component's state has changed but `setState` was not called.
396
- *
397
- * This will not invoke `shouldComponentUpdate`, but it will invoke
398
- * `componentWillUpdate` and `componentDidUpdate`.
399
- *
400
- * @param {ReactClass} publicInstance The instance that should rerender.
401
- * @param {?function} callback Called after component is updated.
402
- * @param {?string} callerName name of the calling function in the public API.
403
- * @internal
404
- */
405
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
406
- warnNoop(publicInstance, 'forceUpdate');
407
- },
408
-
409
- /**
410
- * Replaces all of the state. Always use this or `setState` to mutate state.
411
- * You should treat `this.state` as immutable.
412
- *
413
- * There is no guarantee that `this.state` will be immediately updated, so
414
- * accessing `this.state` after calling this method may return the old value.
415
- *
416
- * @param {ReactClass} publicInstance The instance that should rerender.
417
- * @param {object} completeState Next state.
418
- * @param {?function} callback Called after component is updated.
419
- * @param {?string} callerName name of the calling function in the public API.
420
- * @internal
421
- */
422
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
423
- warnNoop(publicInstance, 'replaceState');
424
- },
425
-
426
- /**
427
- * Sets a subset of the state. This only exists because _pendingState is
428
- * internal. This provides a merging strategy that is not available to deep
429
- * properties which is confusing. TODO: Expose pendingState or don't use it
430
- * during the merge.
431
- *
432
- * @param {ReactClass} publicInstance The instance that should rerender.
433
- * @param {object} partialState Next partial state to be merged with state.
434
- * @param {?function} callback Called after component is updated.
435
- * @param {?string} Name of the calling function in the public API.
436
- * @internal
437
- */
438
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
439
- warnNoop(publicInstance, 'setState');
440
- }
441
- };
442
-
443
- var emptyObject = {};
444
-
445
- {
446
- Object.freeze(emptyObject);
447
- }
448
- /**
449
- * Base class helpers for the updating state of a component.
450
- */
451
-
452
-
453
- function Component(props, context, updater) {
454
- this.props = props;
455
- this.context = context; // If a component has string refs, we will assign a different object later.
456
-
457
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
458
- // renderer.
459
-
460
- this.updater = updater || ReactNoopUpdateQueue;
461
- }
462
-
463
- Component.prototype.isReactComponent = {};
464
- /**
465
- * Sets a subset of the state. Always use this to mutate
466
- * state. You should treat `this.state` as immutable.
467
- *
468
- * There is no guarantee that `this.state` will be immediately updated, so
469
- * accessing `this.state` after calling this method may return the old value.
470
- *
471
- * There is no guarantee that calls to `setState` will run synchronously,
472
- * as they may eventually be batched together. You can provide an optional
473
- * callback that will be executed when the call to setState is actually
474
- * completed.
475
- *
476
- * When a function is provided to setState, it will be called at some point in
477
- * the future (not synchronously). It will be called with the up to date
478
- * component arguments (state, props, context). These values can be different
479
- * from this.* because your function may be called after receiveProps but before
480
- * shouldComponentUpdate, and this new state, props, and context will not yet be
481
- * assigned to this.
482
- *
483
- * @param {object|function} partialState Next partial state or function to
484
- * produce next partial state to be merged with current state.
485
- * @param {?function} callback Called after state is updated.
486
- * @final
487
- * @protected
488
- */
489
-
490
- Component.prototype.setState = function (partialState, callback) {
491
- if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
492
- {
493
- throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
494
- }
495
- }
496
-
497
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
498
- };
499
- /**
500
- * Forces an update. This should only be invoked when it is known with
501
- * certainty that we are **not** in a DOM transaction.
502
- *
503
- * You may want to call this when you know that some deeper aspect of the
504
- * component's state has changed but `setState` was not called.
505
- *
506
- * This will not invoke `shouldComponentUpdate`, but it will invoke
507
- * `componentWillUpdate` and `componentDidUpdate`.
508
- *
509
- * @param {?function} callback Called after update is complete.
510
- * @final
511
- * @protected
512
- */
513
-
514
-
515
- Component.prototype.forceUpdate = function (callback) {
516
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
517
- };
518
- /**
519
- * Deprecated APIs. These APIs used to exist on classic React classes but since
520
- * we would like to deprecate them, we're not going to move them over to this
521
- * modern base class. Instead, we define a getter that warns if it's accessed.
522
- */
523
-
524
-
525
- {
526
- var deprecatedAPIs = {
527
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
528
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
529
- };
530
-
531
- var defineDeprecationWarning = function (methodName, info) {
532
- Object.defineProperty(Component.prototype, methodName, {
533
- get: function () {
534
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
535
-
536
- return undefined;
537
- }
538
- });
539
- };
540
-
541
- for (var fnName in deprecatedAPIs) {
542
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
543
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
544
- }
545
- }
546
- }
547
-
548
- function ComponentDummy() {}
549
-
550
- ComponentDummy.prototype = Component.prototype;
551
- /**
552
- * Convenience component with default shallow equality check for sCU.
553
- */
554
-
555
- function PureComponent(props, context, updater) {
556
- this.props = props;
557
- this.context = context; // If a component has string refs, we will assign a different object later.
558
-
559
- this.refs = emptyObject;
560
- this.updater = updater || ReactNoopUpdateQueue;
561
- }
562
-
563
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
564
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
565
-
566
- _assign(pureComponentPrototype, Component.prototype);
567
-
568
- pureComponentPrototype.isPureReactComponent = true;
569
-
570
- // an immutable object with a single mutable value
571
- function createRef() {
572
- var refObject = {
573
- current: null
574
- };
575
-
576
- {
577
- Object.seal(refObject);
578
- }
579
-
580
- return refObject;
581
- }
582
-
583
- function getWrappedName(outerType, innerType, wrapperName) {
584
- var functionName = innerType.displayName || innerType.name || '';
585
- return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
586
- }
587
-
588
- function getContextName(type) {
589
- return type.displayName || 'Context';
590
- }
591
-
592
- function getComponentName(type) {
593
- if (type == null) {
594
- // Host root, text node or just invalid type.
595
- return null;
596
- }
597
-
598
- {
599
- if (typeof type.tag === 'number') {
600
- error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
601
- }
602
- }
603
-
604
- if (typeof type === 'function') {
605
- return type.displayName || type.name || null;
606
- }
607
-
608
- if (typeof type === 'string') {
609
- return type;
610
- }
611
-
612
- switch (type) {
613
- case exports.Fragment:
614
- return 'Fragment';
615
-
616
- case REACT_PORTAL_TYPE:
617
- return 'Portal';
618
-
619
- case exports.Profiler:
620
- return 'Profiler';
621
-
622
- case exports.StrictMode:
623
- return 'StrictMode';
624
-
625
- case exports.Suspense:
626
- return 'Suspense';
627
-
628
- case REACT_SUSPENSE_LIST_TYPE:
629
- return 'SuspenseList';
630
- }
631
-
632
- if (typeof type === 'object') {
633
- switch (type.$$typeof) {
634
- case REACT_CONTEXT_TYPE:
635
- var context = type;
636
- return getContextName(context) + '.Consumer';
637
-
638
- case REACT_PROVIDER_TYPE:
639
- var provider = type;
640
- return getContextName(provider._context) + '.Provider';
641
-
642
- case REACT_FORWARD_REF_TYPE:
643
- return getWrappedName(type, type.render, 'ForwardRef');
644
-
645
- case REACT_MEMO_TYPE:
646
- return getComponentName(type.type);
647
-
648
- case REACT_BLOCK_TYPE:
649
- return getComponentName(type._render);
650
-
651
- case REACT_LAZY_TYPE:
652
- {
653
- var lazyComponent = type;
654
- var payload = lazyComponent._payload;
655
- var init = lazyComponent._init;
656
-
657
- try {
658
- return getComponentName(init(payload));
659
- } catch (x) {
660
- return null;
661
- }
662
- }
663
- }
664
- }
665
-
666
- return null;
667
- }
668
-
669
- var hasOwnProperty = Object.prototype.hasOwnProperty;
670
- var RESERVED_PROPS = {
671
- key: true,
672
- ref: true,
673
- __self: true,
674
- __source: true
675
- };
676
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
677
-
678
- {
679
- didWarnAboutStringRefs = {};
680
- }
681
-
682
- function hasValidRef(config) {
683
- {
684
- if (hasOwnProperty.call(config, 'ref')) {
685
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
686
-
687
- if (getter && getter.isReactWarning) {
688
- return false;
689
- }
690
- }
691
- }
692
-
693
- return config.ref !== undefined;
694
- }
695
-
696
- function hasValidKey(config) {
697
- {
698
- if (hasOwnProperty.call(config, 'key')) {
699
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
700
-
701
- if (getter && getter.isReactWarning) {
702
- return false;
703
- }
704
- }
705
- }
706
-
707
- return config.key !== undefined;
708
- }
709
-
710
- function defineKeyPropWarningGetter(props, displayName) {
711
- var warnAboutAccessingKey = function () {
712
- {
713
- if (!specialPropKeyWarningShown) {
714
- specialPropKeyWarningShown = true;
715
-
716
- error('%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://reactjs.org/link/special-props)', displayName);
717
- }
718
- }
719
- };
720
-
721
- warnAboutAccessingKey.isReactWarning = true;
722
- Object.defineProperty(props, 'key', {
723
- get: warnAboutAccessingKey,
724
- configurable: true
725
- });
726
- }
727
-
728
- function defineRefPropWarningGetter(props, displayName) {
729
- var warnAboutAccessingRef = function () {
730
- {
731
- if (!specialPropRefWarningShown) {
732
- specialPropRefWarningShown = true;
733
-
734
- error('%s: `ref` 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://reactjs.org/link/special-props)', displayName);
735
- }
736
- }
737
- };
738
-
739
- warnAboutAccessingRef.isReactWarning = true;
740
- Object.defineProperty(props, 'ref', {
741
- get: warnAboutAccessingRef,
742
- configurable: true
743
- });
744
- }
745
-
746
- function warnIfStringRefCannotBeAutoConverted(config) {
747
- {
748
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
749
- var componentName = getComponentName(ReactCurrentOwner.current.type);
750
-
751
- if (!didWarnAboutStringRefs[componentName]) {
752
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
753
-
754
- didWarnAboutStringRefs[componentName] = true;
755
- }
756
- }
757
- }
758
- }
759
- /**
760
- * Factory method to create a new React element. This no longer adheres to
761
- * the class pattern, so do not use new to call it. Also, instanceof check
762
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
763
- * if something is a React Element.
764
- *
765
- * @param {*} type
766
- * @param {*} props
767
- * @param {*} key
768
- * @param {string|object} ref
769
- * @param {*} owner
770
- * @param {*} self A *temporary* helper to detect places where `this` is
771
- * different from the `owner` when React.createElement is called, so that we
772
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
773
- * functions, and as long as `this` and owner are the same, there will be no
774
- * change in behavior.
775
- * @param {*} source An annotation object (added by a transpiler or otherwise)
776
- * indicating filename, line number, and/or other information.
777
- * @internal
778
- */
779
-
780
-
781
- var ReactElement = function (type, key, ref, self, source, owner, props) {
782
- var element = {
783
- // This tag allows us to uniquely identify this as a React Element
784
- $$typeof: REACT_ELEMENT_TYPE,
785
- // Built-in properties that belong on the element
786
- type: type,
787
- key: key,
788
- ref: ref,
789
- props: props,
790
- // Record the component responsible for creating this element.
791
- _owner: owner
792
- };
793
-
794
- {
795
- // The validation flag is currently mutative. We put it on
796
- // an external backing store so that we can freeze the whole object.
797
- // This can be replaced with a WeakMap once they are implemented in
798
- // commonly used development environments.
799
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
800
- // the validation flag non-enumerable (where possible, which should
801
- // include every environment we run tests in), so the test framework
802
- // ignores it.
803
-
804
- Object.defineProperty(element._store, 'validated', {
805
- configurable: false,
806
- enumerable: false,
807
- writable: true,
808
- value: false
809
- }); // self and source are DEV only properties.
810
-
811
- Object.defineProperty(element, '_self', {
812
- configurable: false,
813
- enumerable: false,
814
- writable: false,
815
- value: self
816
- }); // Two elements created in two different places should be considered
817
- // equal for testing purposes and therefore we hide it from enumeration.
818
-
819
- Object.defineProperty(element, '_source', {
820
- configurable: false,
821
- enumerable: false,
822
- writable: false,
823
- value: source
824
- });
825
-
826
- if (Object.freeze) {
827
- Object.freeze(element.props);
828
- Object.freeze(element);
829
- }
830
- }
831
-
832
- return element;
833
- };
834
- /**
835
- * Create and return a new ReactElement of the given type.
836
- * See https://reactjs.org/docs/react-api.html#createelement
837
- */
838
-
839
- function createElement(type, config, children) {
840
- var propName; // Reserved names are extracted
841
-
842
- var props = {};
843
- var key = null;
844
- var ref = null;
845
- var self = null;
846
- var source = null;
847
-
848
- if (config != null) {
849
- if (hasValidRef(config)) {
850
- ref = config.ref;
851
-
852
- {
853
- warnIfStringRefCannotBeAutoConverted(config);
854
- }
855
- }
856
-
857
- if (hasValidKey(config)) {
858
- key = '' + config.key;
859
- }
860
-
861
- self = config.__self === undefined ? null : config.__self;
862
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
863
-
864
- for (propName in config) {
865
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
866
- props[propName] = config[propName];
867
- }
868
- }
869
- } // Children can be more than one argument, and those are transferred onto
870
- // the newly allocated props object.
871
-
872
-
873
- var childrenLength = arguments.length - 2;
874
-
875
- if (childrenLength === 1) {
876
- props.children = children;
877
- } else if (childrenLength > 1) {
878
- var childArray = Array(childrenLength);
879
-
880
- for (var i = 0; i < childrenLength; i++) {
881
- childArray[i] = arguments[i + 2];
882
- }
883
-
884
- {
885
- if (Object.freeze) {
886
- Object.freeze(childArray);
887
- }
888
- }
889
-
890
- props.children = childArray;
891
- } // Resolve default props
892
-
893
-
894
- if (type && type.defaultProps) {
895
- var defaultProps = type.defaultProps;
896
-
897
- for (propName in defaultProps) {
898
- if (props[propName] === undefined) {
899
- props[propName] = defaultProps[propName];
900
- }
901
- }
902
- }
903
-
904
- {
905
- if (key || ref) {
906
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
907
-
908
- if (key) {
909
- defineKeyPropWarningGetter(props, displayName);
910
- }
911
-
912
- if (ref) {
913
- defineRefPropWarningGetter(props, displayName);
914
- }
915
- }
916
- }
917
-
918
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
919
- }
920
- function cloneAndReplaceKey(oldElement, newKey) {
921
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
922
- return newElement;
923
- }
924
- /**
925
- * Clone and return a new ReactElement using element as the starting point.
926
- * See https://reactjs.org/docs/react-api.html#cloneelement
927
- */
928
-
929
- function cloneElement(element, config, children) {
930
- if (!!(element === null || element === undefined)) {
931
- {
932
- throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
933
- }
934
- }
935
-
936
- var propName; // Original props are copied
937
-
938
- var props = _assign({}, element.props); // Reserved names are extracted
939
-
940
-
941
- var key = element.key;
942
- var ref = element.ref; // Self is preserved since the owner is preserved.
943
-
944
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
945
- // transpiler, and the original source is probably a better indicator of the
946
- // true owner.
947
-
948
- var source = element._source; // Owner will be preserved, unless ref is overridden
949
-
950
- var owner = element._owner;
951
-
952
- if (config != null) {
953
- if (hasValidRef(config)) {
954
- // Silently steal the ref from the parent.
955
- ref = config.ref;
956
- owner = ReactCurrentOwner.current;
957
- }
958
-
959
- if (hasValidKey(config)) {
960
- key = '' + config.key;
961
- } // Remaining properties override existing props
962
-
963
-
964
- var defaultProps;
965
-
966
- if (element.type && element.type.defaultProps) {
967
- defaultProps = element.type.defaultProps;
968
- }
969
-
970
- for (propName in config) {
971
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
972
- if (config[propName] === undefined && defaultProps !== undefined) {
973
- // Resolve default props
974
- props[propName] = defaultProps[propName];
975
- } else {
976
- props[propName] = config[propName];
977
- }
978
- }
979
- }
980
- } // Children can be more than one argument, and those are transferred onto
981
- // the newly allocated props object.
982
-
983
-
984
- var childrenLength = arguments.length - 2;
985
-
986
- if (childrenLength === 1) {
987
- props.children = children;
988
- } else if (childrenLength > 1) {
989
- var childArray = Array(childrenLength);
990
-
991
- for (var i = 0; i < childrenLength; i++) {
992
- childArray[i] = arguments[i + 2];
993
- }
994
-
995
- props.children = childArray;
996
- }
997
-
998
- return ReactElement(element.type, key, ref, self, source, owner, props);
999
- }
1000
- /**
1001
- * Verifies the object is a ReactElement.
1002
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1003
- * @param {?object} object
1004
- * @return {boolean} True if `object` is a ReactElement.
1005
- * @final
1006
- */
1007
-
1008
- function isValidElement(object) {
1009
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1010
- }
1011
-
1012
- var SEPARATOR = '.';
1013
- var SUBSEPARATOR = ':';
1014
- /**
1015
- * Escape and wrap key so it is safe to use as a reactid
1016
- *
1017
- * @param {string} key to be escaped.
1018
- * @return {string} the escaped key.
1019
- */
1020
-
1021
- function escape(key) {
1022
- var escapeRegex = /[=:]/g;
1023
- var escaperLookup = {
1024
- '=': '=0',
1025
- ':': '=2'
1026
- };
1027
- var escapedString = key.replace(escapeRegex, function (match) {
1028
- return escaperLookup[match];
1029
- });
1030
- return '$' + escapedString;
1031
- }
1032
- /**
1033
- * TODO: Test that a single child and an array with one item have the same key
1034
- * pattern.
1035
- */
1036
-
1037
-
1038
- var didWarnAboutMaps = false;
1039
- var userProvidedKeyEscapeRegex = /\/+/g;
1040
-
1041
- function escapeUserProvidedKey(text) {
1042
- return text.replace(userProvidedKeyEscapeRegex, '$&/');
1043
- }
1044
- /**
1045
- * Generate a key string that identifies a element within a set.
1046
- *
1047
- * @param {*} element A element that could contain a manual key.
1048
- * @param {number} index Index that is used if a manual key is not provided.
1049
- * @return {string}
1050
- */
1051
-
1052
-
1053
- function getElementKey(element, index) {
1054
- // Do some typechecking here since we call this blindly. We want to ensure
1055
- // that we don't block potential future ES APIs.
1056
- if (typeof element === 'object' && element !== null && element.key != null) {
1057
- // Explicit key
1058
- return escape('' + element.key);
1059
- } // Implicit key determined by the index in the set
1060
-
1061
-
1062
- return index.toString(36);
1063
- }
1064
-
1065
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1066
- var type = typeof children;
1067
-
1068
- if (type === 'undefined' || type === 'boolean') {
1069
- // All of the above are perceived as null.
1070
- children = null;
1071
- }
1072
-
1073
- var invokeCallback = false;
1074
-
1075
- if (children === null) {
1076
- invokeCallback = true;
1077
- } else {
1078
- switch (type) {
1079
- case 'string':
1080
- case 'number':
1081
- invokeCallback = true;
1082
- break;
1083
-
1084
- case 'object':
1085
- switch (children.$$typeof) {
1086
- case REACT_ELEMENT_TYPE:
1087
- case REACT_PORTAL_TYPE:
1088
- invokeCallback = true;
1089
- }
1090
-
1091
- }
1092
- }
1093
-
1094
- if (invokeCallback) {
1095
- var _child = children;
1096
- var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
1097
- // so that it's consistent if the number of children grows:
1098
-
1099
- var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1100
-
1101
- if (Array.isArray(mappedChild)) {
1102
- var escapedChildKey = '';
1103
-
1104
- if (childKey != null) {
1105
- escapedChildKey = escapeUserProvidedKey(childKey) + '/';
1106
- }
1107
-
1108
- mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
1109
- return c;
1110
- });
1111
- } else if (mappedChild != null) {
1112
- if (isValidElement(mappedChild)) {
1113
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1114
- // traverseAllChildren used to do for objects as children
1115
- escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1116
- mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1117
- escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
1118
- }
1119
-
1120
- array.push(mappedChild);
1121
- }
1122
-
1123
- return 1;
1124
- }
1125
-
1126
- var child;
1127
- var nextName;
1128
- var subtreeCount = 0; // Count of children found in the current subtree.
1129
-
1130
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1131
-
1132
- if (Array.isArray(children)) {
1133
- for (var i = 0; i < children.length; i++) {
1134
- child = children[i];
1135
- nextName = nextNamePrefix + getElementKey(child, i);
1136
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1137
- }
1138
- } else {
1139
- var iteratorFn = getIteratorFn(children);
1140
-
1141
- if (typeof iteratorFn === 'function') {
1142
- var iterableChildren = children;
1143
-
1144
- {
1145
- // Warn about using Maps as children
1146
- if (iteratorFn === iterableChildren.entries) {
1147
- if (!didWarnAboutMaps) {
1148
- warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
1149
- }
1150
-
1151
- didWarnAboutMaps = true;
1152
- }
1153
- }
1154
-
1155
- var iterator = iteratorFn.call(iterableChildren);
1156
- var step;
1157
- var ii = 0;
1158
-
1159
- while (!(step = iterator.next()).done) {
1160
- child = step.value;
1161
- nextName = nextNamePrefix + getElementKey(child, ii++);
1162
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1163
- }
1164
- } else if (type === 'object') {
1165
- var childrenString = '' + children;
1166
-
1167
- {
1168
- {
1169
- throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). If you meant to render a collection of children, use an array instead." );
1170
- }
1171
- }
1172
- }
1173
- }
1174
-
1175
- return subtreeCount;
1176
- }
1177
-
1178
- /**
1179
- * Maps children that are typically specified as `props.children`.
1180
- *
1181
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1182
- *
1183
- * The provided mapFunction(child, index) will be called for each
1184
- * leaf child.
1185
- *
1186
- * @param {?*} children Children tree container.
1187
- * @param {function(*, int)} func The map function.
1188
- * @param {*} context Context for mapFunction.
1189
- * @return {object} Object containing the ordered map of results.
1190
- */
1191
- function mapChildren(children, func, context) {
1192
- if (children == null) {
1193
- return children;
1194
- }
1195
-
1196
- var result = [];
1197
- var count = 0;
1198
- mapIntoArray(children, result, '', '', function (child) {
1199
- return func.call(context, child, count++);
1200
- });
1201
- return result;
1202
- }
1203
- /**
1204
- * Count the number of children that are typically specified as
1205
- * `props.children`.
1206
- *
1207
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
1208
- *
1209
- * @param {?*} children Children tree container.
1210
- * @return {number} The number of children.
1211
- */
1212
-
1213
-
1214
- function countChildren(children) {
1215
- var n = 0;
1216
- mapChildren(children, function () {
1217
- n++; // Don't return anything
1218
- });
1219
- return n;
1220
- }
1221
-
1222
- /**
1223
- * Iterates through children that are typically specified as `props.children`.
1224
- *
1225
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1226
- *
1227
- * The provided forEachFunc(child, index) will be called for each
1228
- * leaf child.
1229
- *
1230
- * @param {?*} children Children tree container.
1231
- * @param {function(*, int)} forEachFunc
1232
- * @param {*} forEachContext Context for forEachContext.
1233
- */
1234
- function forEachChildren(children, forEachFunc, forEachContext) {
1235
- mapChildren(children, function () {
1236
- forEachFunc.apply(this, arguments); // Don't return anything.
1237
- }, forEachContext);
1238
- }
1239
- /**
1240
- * Flatten a children object (typically specified as `props.children`) and
1241
- * return an array with appropriately re-keyed children.
1242
- *
1243
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1244
- */
1245
-
1246
-
1247
- function toArray(children) {
1248
- return mapChildren(children, function (child) {
1249
- return child;
1250
- }) || [];
1251
- }
1252
- /**
1253
- * Returns the first child in a collection of children and verifies that there
1254
- * is only one child in the collection.
1255
- *
1256
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1257
- *
1258
- * The current implementation of this function assumes that a single child gets
1259
- * passed without a wrapper, but the purpose of this helper function is to
1260
- * abstract away the particular structure of children.
1261
- *
1262
- * @param {?object} children Child collection structure.
1263
- * @return {ReactElement} The first and only `ReactElement` contained in the
1264
- * structure.
1265
- */
1266
-
1267
-
1268
- function onlyChild(children) {
1269
- if (!isValidElement(children)) {
1270
- {
1271
- throw Error( "React.Children.only expected to receive a single React element child." );
1272
- }
1273
- }
1274
-
1275
- return children;
1276
- }
1277
-
1278
- function createContext(defaultValue, calculateChangedBits) {
1279
- if (calculateChangedBits === undefined) {
1280
- calculateChangedBits = null;
1281
- } else {
1282
- {
1283
- if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
1284
- error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
1285
- }
1286
- }
1287
- }
1288
-
1289
- var context = {
1290
- $$typeof: REACT_CONTEXT_TYPE,
1291
- _calculateChangedBits: calculateChangedBits,
1292
- // As a workaround to support multiple concurrent renderers, we categorize
1293
- // some renderers as primary and others as secondary. We only expect
1294
- // there to be two concurrent renderers at most: React Native (primary) and
1295
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1296
- // Secondary renderers store their context values on separate fields.
1297
- _currentValue: defaultValue,
1298
- _currentValue2: defaultValue,
1299
- // Used to track how many concurrent renderers this context currently
1300
- // supports within in a single renderer. Such as parallel server rendering.
1301
- _threadCount: 0,
1302
- // These are circular
1303
- Provider: null,
1304
- Consumer: null
1305
- };
1306
- context.Provider = {
1307
- $$typeof: REACT_PROVIDER_TYPE,
1308
- _context: context
1309
- };
1310
- var hasWarnedAboutUsingNestedContextConsumers = false;
1311
- var hasWarnedAboutUsingConsumerProvider = false;
1312
- var hasWarnedAboutDisplayNameOnConsumer = false;
1313
-
1314
- {
1315
- // A separate object, but proxies back to the original context object for
1316
- // backwards compatibility. It has a different $$typeof, so we can properly
1317
- // warn for the incorrect usage of Context as a Consumer.
1318
- var Consumer = {
1319
- $$typeof: REACT_CONTEXT_TYPE,
1320
- _context: context,
1321
- _calculateChangedBits: context._calculateChangedBits
1322
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1323
-
1324
- Object.defineProperties(Consumer, {
1325
- Provider: {
1326
- get: function () {
1327
- if (!hasWarnedAboutUsingConsumerProvider) {
1328
- hasWarnedAboutUsingConsumerProvider = true;
1329
-
1330
- error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
1331
- }
1332
-
1333
- return context.Provider;
1334
- },
1335
- set: function (_Provider) {
1336
- context.Provider = _Provider;
1337
- }
1338
- },
1339
- _currentValue: {
1340
- get: function () {
1341
- return context._currentValue;
1342
- },
1343
- set: function (_currentValue) {
1344
- context._currentValue = _currentValue;
1345
- }
1346
- },
1347
- _currentValue2: {
1348
- get: function () {
1349
- return context._currentValue2;
1350
- },
1351
- set: function (_currentValue2) {
1352
- context._currentValue2 = _currentValue2;
1353
- }
1354
- },
1355
- _threadCount: {
1356
- get: function () {
1357
- return context._threadCount;
1358
- },
1359
- set: function (_threadCount) {
1360
- context._threadCount = _threadCount;
1361
- }
1362
- },
1363
- Consumer: {
1364
- get: function () {
1365
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1366
- hasWarnedAboutUsingNestedContextConsumers = true;
1367
-
1368
- error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
1369
- }
1370
-
1371
- return context.Consumer;
1372
- }
1373
- },
1374
- displayName: {
1375
- get: function () {
1376
- return context.displayName;
1377
- },
1378
- set: function (displayName) {
1379
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1380
- warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
1381
-
1382
- hasWarnedAboutDisplayNameOnConsumer = true;
1383
- }
1384
- }
1385
- }
1386
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1387
-
1388
- context.Consumer = Consumer;
1389
- }
1390
-
1391
- {
1392
- context._currentRenderer = null;
1393
- context._currentRenderer2 = null;
1394
- }
1395
-
1396
- return context;
1397
- }
1398
-
1399
- var Uninitialized = -1;
1400
- var Pending = 0;
1401
- var Resolved = 1;
1402
- var Rejected = 2;
1403
-
1404
- function lazyInitializer(payload) {
1405
- if (payload._status === Uninitialized) {
1406
- var ctor = payload._result;
1407
- var thenable = ctor(); // Transition to the next state.
1408
-
1409
- var pending = payload;
1410
- pending._status = Pending;
1411
- pending._result = thenable;
1412
- thenable.then(function (moduleObject) {
1413
- if (payload._status === Pending) {
1414
- var defaultExport = moduleObject.default;
1415
-
1416
- {
1417
- if (defaultExport === undefined) {
1418
- error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1419
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
1420
- }
1421
- } // Transition to the next state.
1422
-
1423
-
1424
- var resolved = payload;
1425
- resolved._status = Resolved;
1426
- resolved._result = defaultExport;
1427
- }
1428
- }, function (error) {
1429
- if (payload._status === Pending) {
1430
- // Transition to the next state.
1431
- var rejected = payload;
1432
- rejected._status = Rejected;
1433
- rejected._result = error;
1434
- }
1435
- });
1436
- }
1437
-
1438
- if (payload._status === Resolved) {
1439
- return payload._result;
1440
- } else {
1441
- throw payload._result;
1442
- }
1443
- }
1444
-
1445
- function lazy(ctor) {
1446
- var payload = {
1447
- // We use these fields to store the result.
1448
- _status: -1,
1449
- _result: ctor
1450
- };
1451
- var lazyType = {
1452
- $$typeof: REACT_LAZY_TYPE,
1453
- _payload: payload,
1454
- _init: lazyInitializer
1455
- };
1456
-
1457
- {
1458
- // In production, this would just set it on the object.
1459
- var defaultProps;
1460
- var propTypes; // $FlowFixMe
1461
-
1462
- Object.defineProperties(lazyType, {
1463
- defaultProps: {
1464
- configurable: true,
1465
- get: function () {
1466
- return defaultProps;
1467
- },
1468
- set: function (newDefaultProps) {
1469
- error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1470
-
1471
- defaultProps = newDefaultProps; // Match production behavior more closely:
1472
- // $FlowFixMe
1473
-
1474
- Object.defineProperty(lazyType, 'defaultProps', {
1475
- enumerable: true
1476
- });
1477
- }
1478
- },
1479
- propTypes: {
1480
- configurable: true,
1481
- get: function () {
1482
- return propTypes;
1483
- },
1484
- set: function (newPropTypes) {
1485
- error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
1486
-
1487
- propTypes = newPropTypes; // Match production behavior more closely:
1488
- // $FlowFixMe
1489
-
1490
- Object.defineProperty(lazyType, 'propTypes', {
1491
- enumerable: true
1492
- });
1493
- }
1494
- }
1495
- });
1496
- }
1497
-
1498
- return lazyType;
1499
- }
1500
-
1501
- function forwardRef(render) {
1502
- {
1503
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1504
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1505
- } else if (typeof render !== 'function') {
1506
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1507
- } else {
1508
- if (render.length !== 0 && render.length !== 2) {
1509
- error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
1510
- }
1511
- }
1512
-
1513
- if (render != null) {
1514
- if (render.defaultProps != null || render.propTypes != null) {
1515
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1516
- }
1517
- }
1518
- }
1519
-
1520
- var elementType = {
1521
- $$typeof: REACT_FORWARD_REF_TYPE,
1522
- render: render
1523
- };
1524
-
1525
- {
1526
- var ownName;
1527
- Object.defineProperty(elementType, 'displayName', {
1528
- enumerable: false,
1529
- configurable: true,
1530
- get: function () {
1531
- return ownName;
1532
- },
1533
- set: function (name) {
1534
- ownName = name;
1535
-
1536
- if (render.displayName == null) {
1537
- render.displayName = name;
1538
- }
1539
- }
1540
- });
1541
- }
1542
-
1543
- return elementType;
1544
- }
1545
-
1546
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
1547
-
1548
- var enableScopeAPI = false; // Experimental Create Event Handle API.
1549
-
1550
- function isValidElementType(type) {
1551
- if (typeof type === 'string' || typeof type === 'function') {
1552
- return true;
1553
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1554
-
1555
-
1556
- if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
1557
- return true;
1558
- }
1559
-
1560
- if (typeof type === 'object' && type !== null) {
1561
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
1562
- return true;
1563
- }
1564
- }
1565
-
1566
- return false;
1567
- }
1568
-
1569
- function memo(type, compare) {
1570
- {
1571
- if (!isValidElementType(type)) {
1572
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1573
- }
1574
- }
1575
-
1576
- var elementType = {
1577
- $$typeof: REACT_MEMO_TYPE,
1578
- type: type,
1579
- compare: compare === undefined ? null : compare
1580
- };
1581
-
1582
- {
1583
- var ownName;
1584
- Object.defineProperty(elementType, 'displayName', {
1585
- enumerable: false,
1586
- configurable: true,
1587
- get: function () {
1588
- return ownName;
1589
- },
1590
- set: function (name) {
1591
- ownName = name;
1592
-
1593
- if (type.displayName == null) {
1594
- type.displayName = name;
1595
- }
1596
- }
1597
- });
1598
- }
1599
-
1600
- return elementType;
1601
- }
1602
-
1603
- function resolveDispatcher() {
1604
- var dispatcher = ReactCurrentDispatcher.current;
1605
-
1606
- if (!(dispatcher !== null)) {
1607
- {
1608
- throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
1609
- }
1610
- }
1611
-
1612
- return dispatcher;
1613
- }
1614
-
1615
- function useContext(Context, unstable_observedBits) {
1616
- var dispatcher = resolveDispatcher();
1617
-
1618
- {
1619
- if (unstable_observedBits !== undefined) {
1620
- error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
1621
- } // TODO: add a more generic warning for invalid values.
1622
-
1623
-
1624
- if (Context._context !== undefined) {
1625
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1626
- // and nobody should be using this in existing code.
1627
-
1628
- if (realContext.Consumer === Context) {
1629
- error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
1630
- } else if (realContext.Provider === Context) {
1631
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1632
- }
1633
- }
1634
- }
1635
-
1636
- return dispatcher.useContext(Context, unstable_observedBits);
1637
- }
1638
- function useState(initialState) {
1639
- var dispatcher = resolveDispatcher();
1640
- return dispatcher.useState(initialState);
1641
- }
1642
- function useReducer(reducer, initialArg, init) {
1643
- var dispatcher = resolveDispatcher();
1644
- return dispatcher.useReducer(reducer, initialArg, init);
1645
- }
1646
- function useRef(initialValue) {
1647
- var dispatcher = resolveDispatcher();
1648
- return dispatcher.useRef(initialValue);
1649
- }
1650
- function useEffect(create, deps) {
1651
- var dispatcher = resolveDispatcher();
1652
- return dispatcher.useEffect(create, deps);
1653
- }
1654
- function useLayoutEffect(create, deps) {
1655
- var dispatcher = resolveDispatcher();
1656
- return dispatcher.useLayoutEffect(create, deps);
1657
- }
1658
- function useCallback(callback, deps) {
1659
- var dispatcher = resolveDispatcher();
1660
- return dispatcher.useCallback(callback, deps);
1661
- }
1662
- function useMemo(create, deps) {
1663
- var dispatcher = resolveDispatcher();
1664
- return dispatcher.useMemo(create, deps);
1665
- }
1666
- function useImperativeHandle(ref, create, deps) {
1667
- var dispatcher = resolveDispatcher();
1668
- return dispatcher.useImperativeHandle(ref, create, deps);
1669
- }
1670
- function useDebugValue(value, formatterFn) {
1671
- {
1672
- var dispatcher = resolveDispatcher();
1673
- return dispatcher.useDebugValue(value, formatterFn);
1674
- }
1675
- }
1676
-
1677
- // Helpers to patch console.logs to avoid logging during side-effect free
1678
- // replaying on render function. This currently only patches the object
1679
- // lazily which won't cover if the log function was extracted eagerly.
1680
- // We could also eagerly patch the method.
1681
- var disabledDepth = 0;
1682
- var prevLog;
1683
- var prevInfo;
1684
- var prevWarn;
1685
- var prevError;
1686
- var prevGroup;
1687
- var prevGroupCollapsed;
1688
- var prevGroupEnd;
1689
-
1690
- function disabledLog() {}
1691
-
1692
- disabledLog.__reactDisabledLog = true;
1693
- function disableLogs() {
1694
- {
1695
- if (disabledDepth === 0) {
1696
- /* eslint-disable react-internal/no-production-logging */
1697
- prevLog = console.log;
1698
- prevInfo = console.info;
1699
- prevWarn = console.warn;
1700
- prevError = console.error;
1701
- prevGroup = console.group;
1702
- prevGroupCollapsed = console.groupCollapsed;
1703
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
1704
-
1705
- var props = {
1706
- configurable: true,
1707
- enumerable: true,
1708
- value: disabledLog,
1709
- writable: true
1710
- }; // $FlowFixMe Flow thinks console is immutable.
1711
-
1712
- Object.defineProperties(console, {
1713
- info: props,
1714
- log: props,
1715
- warn: props,
1716
- error: props,
1717
- group: props,
1718
- groupCollapsed: props,
1719
- groupEnd: props
1720
- });
1721
- /* eslint-enable react-internal/no-production-logging */
1722
- }
1723
-
1724
- disabledDepth++;
1725
- }
1726
- }
1727
- function reenableLogs() {
1728
- {
1729
- disabledDepth--;
1730
-
1731
- if (disabledDepth === 0) {
1732
- /* eslint-disable react-internal/no-production-logging */
1733
- var props = {
1734
- configurable: true,
1735
- enumerable: true,
1736
- writable: true
1737
- }; // $FlowFixMe Flow thinks console is immutable.
1738
-
1739
- Object.defineProperties(console, {
1740
- log: _assign({}, props, {
1741
- value: prevLog
1742
- }),
1743
- info: _assign({}, props, {
1744
- value: prevInfo
1745
- }),
1746
- warn: _assign({}, props, {
1747
- value: prevWarn
1748
- }),
1749
- error: _assign({}, props, {
1750
- value: prevError
1751
- }),
1752
- group: _assign({}, props, {
1753
- value: prevGroup
1754
- }),
1755
- groupCollapsed: _assign({}, props, {
1756
- value: prevGroupCollapsed
1757
- }),
1758
- groupEnd: _assign({}, props, {
1759
- value: prevGroupEnd
1760
- })
1761
- });
1762
- /* eslint-enable react-internal/no-production-logging */
1763
- }
1764
-
1765
- if (disabledDepth < 0) {
1766
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
1767
- }
1768
- }
1769
- }
1770
-
1771
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1772
- var prefix;
1773
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1774
- {
1775
- if (prefix === undefined) {
1776
- // Extract the VM specific prefix used by each line.
1777
- try {
1778
- throw Error();
1779
- } catch (x) {
1780
- var match = x.stack.trim().match(/\n( *(at )?)/);
1781
- prefix = match && match[1] || '';
1782
- }
1783
- } // We use the prefix to ensure our stacks line up with native stack frames.
1784
-
1785
-
1786
- return '\n' + prefix + name;
1787
- }
1788
- }
1789
- var reentry = false;
1790
- var componentFrameCache;
1791
-
1792
- {
1793
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
1794
- componentFrameCache = new PossiblyWeakMap();
1795
- }
1796
-
1797
- function describeNativeComponentFrame(fn, construct) {
1798
- // If something asked for a stack inside a fake render, it should get ignored.
1799
- if (!fn || reentry) {
1800
- return '';
1801
- }
1802
-
1803
- {
1804
- var frame = componentFrameCache.get(fn);
1805
-
1806
- if (frame !== undefined) {
1807
- return frame;
1808
- }
1809
- }
1810
-
1811
- var control;
1812
- reentry = true;
1813
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
1814
-
1815
- Error.prepareStackTrace = undefined;
1816
- var previousDispatcher;
1817
-
1818
- {
1819
- previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
1820
- // for warnings.
1821
-
1822
- ReactCurrentDispatcher$1.current = null;
1823
- disableLogs();
1824
- }
1825
-
1826
- try {
1827
- // This should throw.
1828
- if (construct) {
1829
- // Something should be setting the props in the constructor.
1830
- var Fake = function () {
1831
- throw Error();
1832
- }; // $FlowFixMe
1833
-
1834
-
1835
- Object.defineProperty(Fake.prototype, 'props', {
1836
- set: function () {
1837
- // We use a throwing setter instead of frozen or non-writable props
1838
- // because that won't throw in a non-strict mode function.
1839
- throw Error();
1840
- }
1841
- });
1842
-
1843
- if (typeof Reflect === 'object' && Reflect.construct) {
1844
- // We construct a different control for this case to include any extra
1845
- // frames added by the construct call.
1846
- try {
1847
- Reflect.construct(Fake, []);
1848
- } catch (x) {
1849
- control = x;
1850
- }
1851
-
1852
- Reflect.construct(fn, [], Fake);
1853
- } else {
1854
- try {
1855
- Fake.call();
1856
- } catch (x) {
1857
- control = x;
1858
- }
1859
-
1860
- fn.call(Fake.prototype);
1861
- }
1862
- } else {
1863
- try {
1864
- throw Error();
1865
- } catch (x) {
1866
- control = x;
1867
- }
1868
-
1869
- fn();
1870
- }
1871
- } catch (sample) {
1872
- // This is inlined manually because closure doesn't do it for us.
1873
- if (sample && control && typeof sample.stack === 'string') {
1874
- // This extracts the first frame from the sample that isn't also in the control.
1875
- // Skipping one frame that we assume is the frame that calls the two.
1876
- var sampleLines = sample.stack.split('\n');
1877
- var controlLines = control.stack.split('\n');
1878
- var s = sampleLines.length - 1;
1879
- var c = controlLines.length - 1;
1880
-
1881
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1882
- // We expect at least one stack frame to be shared.
1883
- // Typically this will be the root most one. However, stack frames may be
1884
- // cut off due to maximum stack limits. In this case, one maybe cut off
1885
- // earlier than the other. We assume that the sample is longer or the same
1886
- // and there for cut off earlier. So we should find the root most frame in
1887
- // the sample somewhere in the control.
1888
- c--;
1889
- }
1890
-
1891
- for (; s >= 1 && c >= 0; s--, c--) {
1892
- // Next we find the first one that isn't the same which should be the
1893
- // frame that called our sample function and the control.
1894
- if (sampleLines[s] !== controlLines[c]) {
1895
- // In V8, the first line is describing the message but other VMs don't.
1896
- // If we're about to return the first line, and the control is also on the same
1897
- // line, that's a pretty good indicator that our sample threw at same line as
1898
- // the control. I.e. before we entered the sample frame. So we ignore this result.
1899
- // This can happen if you passed a class to function component, or non-function.
1900
- if (s !== 1 || c !== 1) {
1901
- do {
1902
- s--;
1903
- c--; // We may still have similar intermediate frames from the construct call.
1904
- // The next one that isn't the same should be our match though.
1905
-
1906
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1907
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
1908
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
1909
-
1910
- {
1911
- if (typeof fn === 'function') {
1912
- componentFrameCache.set(fn, _frame);
1913
- }
1914
- } // Return the line we found.
1915
-
1916
-
1917
- return _frame;
1918
- }
1919
- } while (s >= 1 && c >= 0);
1920
- }
1921
-
1922
- break;
1923
- }
1924
- }
1925
- }
1926
- } finally {
1927
- reentry = false;
1928
-
1929
- {
1930
- ReactCurrentDispatcher$1.current = previousDispatcher;
1931
- reenableLogs();
1932
- }
1933
-
1934
- Error.prepareStackTrace = previousPrepareStackTrace;
1935
- } // Fallback to just using the name if we couldn't make it throw.
1936
-
1937
-
1938
- var name = fn ? fn.displayName || fn.name : '';
1939
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
1940
-
1941
- {
1942
- if (typeof fn === 'function') {
1943
- componentFrameCache.set(fn, syntheticFrame);
1944
- }
1945
- }
1946
-
1947
- return syntheticFrame;
1948
- }
1949
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1950
- {
1951
- return describeNativeComponentFrame(fn, false);
1952
- }
1953
- }
1954
-
1955
- function shouldConstruct(Component) {
1956
- var prototype = Component.prototype;
1957
- return !!(prototype && prototype.isReactComponent);
1958
- }
1959
-
1960
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1961
-
1962
- if (type == null) {
1963
- return '';
1964
- }
1965
-
1966
- if (typeof type === 'function') {
1967
- {
1968
- return describeNativeComponentFrame(type, shouldConstruct(type));
1969
- }
1970
- }
1971
-
1972
- if (typeof type === 'string') {
1973
- return describeBuiltInComponentFrame(type);
1974
- }
1975
-
1976
- switch (type) {
1977
- case exports.Suspense:
1978
- return describeBuiltInComponentFrame('Suspense');
1979
-
1980
- case REACT_SUSPENSE_LIST_TYPE:
1981
- return describeBuiltInComponentFrame('SuspenseList');
1982
- }
1983
-
1984
- if (typeof type === 'object') {
1985
- switch (type.$$typeof) {
1986
- case REACT_FORWARD_REF_TYPE:
1987
- return describeFunctionComponentFrame(type.render);
1988
-
1989
- case REACT_MEMO_TYPE:
1990
- // Memo may contain any component type so we recursively resolve it.
1991
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1992
-
1993
- case REACT_BLOCK_TYPE:
1994
- return describeFunctionComponentFrame(type._render);
1995
-
1996
- case REACT_LAZY_TYPE:
1997
- {
1998
- var lazyComponent = type;
1999
- var payload = lazyComponent._payload;
2000
- var init = lazyComponent._init;
2001
-
2002
- try {
2003
- // Lazy may contain any component type so we recursively resolve it.
2004
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2005
- } catch (x) {}
2006
- }
2007
- }
2008
- }
2009
-
2010
- return '';
2011
- }
2012
-
2013
- var loggedTypeFailures = {};
2014
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2015
-
2016
- function setCurrentlyValidatingElement(element) {
2017
- {
2018
- if (element) {
2019
- var owner = element._owner;
2020
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2021
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2022
- } else {
2023
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2024
- }
2025
- }
2026
- }
2027
-
2028
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2029
- {
2030
- // $FlowFixMe This is okay but Flow doesn't know it.
2031
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
2032
-
2033
- for (var typeSpecName in typeSpecs) {
2034
- if (has(typeSpecs, typeSpecName)) {
2035
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2036
- // fail the render phase where it didn't fail before. So we log it.
2037
- // After these have been cleaned up, we'll let them throw.
2038
-
2039
- try {
2040
- // This is intentionally an invariant that gets caught. It's the same
2041
- // behavior as without this statement except with a better message.
2042
- if (typeof typeSpecs[typeSpecName] !== 'function') {
2043
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2044
- err.name = 'Invariant Violation';
2045
- throw err;
2046
- }
2047
-
2048
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2049
- } catch (ex) {
2050
- error$1 = ex;
2051
- }
2052
-
2053
- if (error$1 && !(error$1 instanceof Error)) {
2054
- setCurrentlyValidatingElement(element);
2055
-
2056
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
2057
-
2058
- setCurrentlyValidatingElement(null);
2059
- }
2060
-
2061
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2062
- // Only monitor this failure once because there tends to be a lot of the
2063
- // same error.
2064
- loggedTypeFailures[error$1.message] = true;
2065
- setCurrentlyValidatingElement(element);
2066
-
2067
- error('Failed %s type: %s', location, error$1.message);
2068
-
2069
- setCurrentlyValidatingElement(null);
2070
- }
2071
- }
2072
- }
2073
- }
2074
- }
2075
-
2076
- function setCurrentlyValidatingElement$1(element) {
2077
- {
2078
- if (element) {
2079
- var owner = element._owner;
2080
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2081
- setExtraStackFrame(stack);
2082
- } else {
2083
- setExtraStackFrame(null);
2084
- }
2085
- }
2086
- }
2087
-
2088
- var propTypesMisspellWarningShown;
2089
-
2090
- {
2091
- propTypesMisspellWarningShown = false;
2092
- }
2093
-
2094
- function getDeclarationErrorAddendum() {
2095
- if (ReactCurrentOwner.current) {
2096
- var name = getComponentName(ReactCurrentOwner.current.type);
2097
-
2098
- if (name) {
2099
- return '\n\nCheck the render method of `' + name + '`.';
2100
- }
2101
- }
2102
-
2103
- return '';
2104
- }
2105
-
2106
- function getSourceInfoErrorAddendum(source) {
2107
- if (source !== undefined) {
2108
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2109
- var lineNumber = source.lineNumber;
2110
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2111
- }
2112
-
2113
- return '';
2114
- }
2115
-
2116
- function getSourceInfoErrorAddendumForProps(elementProps) {
2117
- if (elementProps !== null && elementProps !== undefined) {
2118
- return getSourceInfoErrorAddendum(elementProps.__source);
2119
- }
2120
-
2121
- return '';
2122
- }
2123
- /**
2124
- * Warn if there's no key explicitly set on dynamic arrays of children or
2125
- * object keys are not valid. This allows us to keep track of children between
2126
- * updates.
2127
- */
2128
-
2129
-
2130
- var ownerHasKeyUseWarning = {};
2131
-
2132
- function getCurrentComponentErrorInfo(parentType) {
2133
- var info = getDeclarationErrorAddendum();
2134
-
2135
- if (!info) {
2136
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2137
-
2138
- if (parentName) {
2139
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2140
- }
2141
- }
2142
-
2143
- return info;
2144
- }
2145
- /**
2146
- * Warn if the element doesn't have an explicit key assigned to it.
2147
- * This element is in an array. The array could grow and shrink or be
2148
- * reordered. All children that haven't already been validated are required to
2149
- * have a "key" property assigned to it. Error statuses are cached so a warning
2150
- * will only be shown once.
2151
- *
2152
- * @internal
2153
- * @param {ReactElement} element Element that requires a key.
2154
- * @param {*} parentType element's parent's type.
2155
- */
2156
-
2157
-
2158
- function validateExplicitKey(element, parentType) {
2159
- if (!element._store || element._store.validated || element.key != null) {
2160
- return;
2161
- }
2162
-
2163
- element._store.validated = true;
2164
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2165
-
2166
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2167
- return;
2168
- }
2169
-
2170
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2171
- // property, it may be the creator of the child that's responsible for
2172
- // assigning it a key.
2173
-
2174
- var childOwner = '';
2175
-
2176
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
2177
- // Give the component that originally created this child.
2178
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
2179
- }
2180
-
2181
- {
2182
- setCurrentlyValidatingElement$1(element);
2183
-
2184
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2185
-
2186
- setCurrentlyValidatingElement$1(null);
2187
- }
2188
- }
2189
- /**
2190
- * Ensure that every element either is passed in a static location, in an
2191
- * array with an explicit keys property defined, or in an object literal
2192
- * with valid key property.
2193
- *
2194
- * @internal
2195
- * @param {ReactNode} node Statically passed child of any type.
2196
- * @param {*} parentType node's parent's type.
2197
- */
2198
-
2199
-
2200
- function validateChildKeys(node, parentType) {
2201
- if (typeof node !== 'object') {
2202
- return;
2203
- }
2204
-
2205
- if (Array.isArray(node)) {
2206
- for (var i = 0; i < node.length; i++) {
2207
- var child = node[i];
2208
-
2209
- if (isValidElement(child)) {
2210
- validateExplicitKey(child, parentType);
2211
- }
2212
- }
2213
- } else if (isValidElement(node)) {
2214
- // This element was passed in a valid location.
2215
- if (node._store) {
2216
- node._store.validated = true;
2217
- }
2218
- } else if (node) {
2219
- var iteratorFn = getIteratorFn(node);
2220
-
2221
- if (typeof iteratorFn === 'function') {
2222
- // Entry iterators used to provide implicit keys,
2223
- // but now we print a separate warning for them later.
2224
- if (iteratorFn !== node.entries) {
2225
- var iterator = iteratorFn.call(node);
2226
- var step;
2227
-
2228
- while (!(step = iterator.next()).done) {
2229
- if (isValidElement(step.value)) {
2230
- validateExplicitKey(step.value, parentType);
2231
- }
2232
- }
2233
- }
2234
- }
2235
- }
2236
- }
2237
- /**
2238
- * Given an element, validate that its props follow the propTypes definition,
2239
- * provided by the type.
2240
- *
2241
- * @param {ReactElement} element
2242
- */
2243
-
2244
-
2245
- function validatePropTypes(element) {
2246
- {
2247
- var type = element.type;
2248
-
2249
- if (type === null || type === undefined || typeof type === 'string') {
2250
- return;
2251
- }
2252
-
2253
- var propTypes;
2254
-
2255
- if (typeof type === 'function') {
2256
- propTypes = type.propTypes;
2257
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2258
- // Inner props are checked in the reconciler.
2259
- type.$$typeof === REACT_MEMO_TYPE)) {
2260
- propTypes = type.propTypes;
2261
- } else {
2262
- return;
2263
- }
2264
-
2265
- if (propTypes) {
2266
- // Intentionally inside to avoid triggering lazy initializers:
2267
- var name = getComponentName(type);
2268
- checkPropTypes(propTypes, element.props, 'prop', name, element);
2269
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2270
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2271
-
2272
- var _name = getComponentName(type);
2273
-
2274
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2275
- }
2276
-
2277
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2278
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2279
- }
2280
- }
2281
- }
2282
- /**
2283
- * Given a fragment, validate that it can only be provided with fragment props
2284
- * @param {ReactElement} fragment
2285
- */
2286
-
2287
-
2288
- function validateFragmentProps(fragment) {
2289
- {
2290
- var keys = Object.keys(fragment.props);
2291
-
2292
- for (var i = 0; i < keys.length; i++) {
2293
- var key = keys[i];
2294
-
2295
- if (key !== 'children' && key !== 'key') {
2296
- setCurrentlyValidatingElement$1(fragment);
2297
-
2298
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2299
-
2300
- setCurrentlyValidatingElement$1(null);
2301
- break;
2302
- }
2303
- }
2304
-
2305
- if (fragment.ref !== null) {
2306
- setCurrentlyValidatingElement$1(fragment);
2307
-
2308
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
2309
-
2310
- setCurrentlyValidatingElement$1(null);
2311
- }
2312
- }
2313
- }
2314
- function createElementWithValidation(type, props, children) {
2315
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2316
- // succeed and there will likely be errors in render.
2317
-
2318
- if (!validType) {
2319
- var info = '';
2320
-
2321
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2322
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
2323
- }
2324
-
2325
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2326
-
2327
- if (sourceInfo) {
2328
- info += sourceInfo;
2329
- } else {
2330
- info += getDeclarationErrorAddendum();
2331
- }
2332
-
2333
- var typeString;
2334
-
2335
- if (type === null) {
2336
- typeString = 'null';
2337
- } else if (Array.isArray(type)) {
2338
- typeString = 'array';
2339
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2340
- typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
2341
- info = ' Did you accidentally export a JSX literal instead of a component?';
2342
- } else {
2343
- typeString = typeof type;
2344
- }
2345
-
2346
- {
2347
- error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
2348
- }
2349
- }
2350
-
2351
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2352
- // TODO: Drop this when these are no longer allowed as the type argument.
2353
-
2354
- if (element == null) {
2355
- return element;
2356
- } // Skip key warning if the type isn't valid since our key validation logic
2357
- // doesn't expect a non-string/function type and can throw confusing errors.
2358
- // We don't want exception behavior to differ between dev and prod.
2359
- // (Rendering will throw with a helpful message and as soon as the type is
2360
- // fixed, the key warnings will appear.)
2361
-
2362
-
2363
- if (validType) {
2364
- for (var i = 2; i < arguments.length; i++) {
2365
- validateChildKeys(arguments[i], type);
2366
- }
2367
- }
2368
-
2369
- if (type === exports.Fragment) {
2370
- validateFragmentProps(element);
2371
- } else {
2372
- validatePropTypes(element);
2373
- }
2374
-
2375
- return element;
2376
- }
2377
- var didWarnAboutDeprecatedCreateFactory = false;
2378
- function createFactoryWithValidation(type) {
2379
- var validatedFactory = createElementWithValidation.bind(null, type);
2380
- validatedFactory.type = type;
2381
-
2382
- {
2383
- if (!didWarnAboutDeprecatedCreateFactory) {
2384
- didWarnAboutDeprecatedCreateFactory = true;
2385
-
2386
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2387
- } // Legacy hook: remove it
2388
-
2389
-
2390
- Object.defineProperty(validatedFactory, 'type', {
2391
- enumerable: false,
2392
- get: function () {
2393
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2394
-
2395
- Object.defineProperty(this, 'type', {
2396
- value: type
2397
- });
2398
- return type;
2399
- }
2400
- });
2401
- }
2402
-
2403
- return validatedFactory;
2404
- }
2405
- function cloneElementWithValidation(element, props, children) {
2406
- var newElement = cloneElement.apply(this, arguments);
2407
-
2408
- for (var i = 2; i < arguments.length; i++) {
2409
- validateChildKeys(arguments[i], newElement.type);
2410
- }
2411
-
2412
- validatePropTypes(newElement);
2413
- return newElement;
2414
- }
2415
-
2416
- {
2417
-
2418
- try {
2419
- var frozenObject = Object.freeze({});
2420
- /* eslint-disable no-new */
1
+ import React, { useState, useContext, useMemo, useEffect, useRef, useDebugValue, createElement } from 'react';
2421
2
 
2422
- new Map([[frozenObject, null]]);
2423
- new Set([frozenObject]);
2424
- /* eslint-enable no-new */
2425
- } catch (e) {
2426
- }
2427
- }
2428
-
2429
- var createElement$1 = createElementWithValidation ;
2430
- var cloneElement$1 = cloneElementWithValidation ;
2431
- var createFactory = createFactoryWithValidation ;
2432
- var Children = {
2433
- map: mapChildren,
2434
- forEach: forEachChildren,
2435
- count: countChildren,
2436
- toArray: toArray,
2437
- only: onlyChild
2438
- };
2439
-
2440
- exports.Children = Children;
2441
- exports.Component = Component;
2442
- exports.PureComponent = PureComponent;
2443
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2444
- exports.cloneElement = cloneElement$1;
2445
- exports.createContext = createContext;
2446
- exports.createElement = createElement$1;
2447
- exports.createFactory = createFactory;
2448
- exports.createRef = createRef;
2449
- exports.forwardRef = forwardRef;
2450
- exports.isValidElement = isValidElement;
2451
- exports.lazy = lazy;
2452
- exports.memo = memo;
2453
- exports.useCallback = useCallback;
2454
- exports.useContext = useContext;
2455
- exports.useDebugValue = useDebugValue;
2456
- exports.useEffect = useEffect;
2457
- exports.useImperativeHandle = useImperativeHandle;
2458
- exports.useLayoutEffect = useLayoutEffect;
2459
- exports.useMemo = useMemo;
2460
- exports.useReducer = useReducer;
2461
- exports.useRef = useRef;
2462
- exports.useState = useState;
2463
- exports.version = ReactVersion;
2464
- })();
2465
- }
2466
- }(react_development));
3
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2467
4
 
2468
- if (process.env.NODE_ENV === 'production') {
2469
- react.exports = react_production_min;
2470
- } else {
2471
- react.exports = react_development;
5
+ function getAugmentedNamespace(n) {
6
+ if (n.__esModule) return n;
7
+ var a = Object.defineProperty({}, '__esModule', {value: true});
8
+ Object.keys(n).forEach(function (k) {
9
+ var d = Object.getOwnPropertyDescriptor(n, k);
10
+ Object.defineProperty(a, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return n[k];
14
+ }
15
+ });
16
+ });
17
+ return a;
2472
18
  }
2473
19
 
2474
- var React$1 = react.exports;
2475
-
2476
20
  var reactIs$1 = {exports: {}};
2477
21
 
2478
22
  var reactIs_production_min = {};
@@ -3468,7 +1012,7 @@ function getStatics(component) {
3468
1012
 
3469
1013
  var defineProperty$2 = Object.defineProperty;
3470
1014
  var getOwnPropertyNames = Object.getOwnPropertyNames;
3471
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1015
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
3472
1016
  var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
3473
1017
  var getPrototypeOf = Object.getPrototypeOf;
3474
1018
  var objectPrototype = Object.prototype;
@@ -3485,8 +1029,8 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
3485
1029
 
3486
1030
  var keys = getOwnPropertyNames(sourceComponent);
3487
1031
 
3488
- if (getOwnPropertySymbols) {
3489
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1032
+ if (getOwnPropertySymbols$1) {
1033
+ keys = keys.concat(getOwnPropertySymbols$1(sourceComponent));
3490
1034
  }
3491
1035
 
3492
1036
  var targetStatics = getStatics(targetComponent);
@@ -3511,7 +1055,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
3511
1055
 
3512
1056
  var hoistNonReactStatics_cjs = hoistNonReactStatics;
3513
1057
 
3514
- 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$1.createContext(),ue=ce.Consumer,le=React$1.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return react.exports.useContext(ce)||de}function fe(){return react.exports.useContext(le)||he}function me(e){var t=react.exports.useState(e.stylisPlugins),n=t[0],s=t[1],c=pe(),u=react.exports.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=react.exports.useMemo((function(){return ae({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return react.exports.useEffect((function(){shallowequal(n,e.stylisPlugins)||s(e.stylisPlugins);}),[e.stylisPlugins]),React$1.createElement(ce.Provider,{value:u},React$1.createElement(le.Provider,{value:l},"production"!==process.env.NODE_ENV?React$1.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));}},react.exports.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$1.createContext(),Ge=Me.Consumer;function Le(e){var t=react.exports.useContext(Me),n=react.exports.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$1.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&&react.exports.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,react.exports.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&&react.exports.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,react.exports.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=React$1.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=react.exports.useContext(Me),u=react.exports.useRef(t.allocateGSInstance(a)).current;return "production"!==process.env.NODE_ENV&&React$1.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$1.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$1.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$1.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$1.forwardRef((function(t,n){var o=react.exports.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$1.createElement(e,y({},t,{theme:a,ref:n}))}));return hoistNonReactStatics_cjs(t,e),t.displayName="WithTheme("+b(e)+")",t},Ze=function(){return react.exports.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;
1058
+ 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;
3515
1059
 
3516
1060
  var styledComponents_esm = /*#__PURE__*/Object.freeze({
3517
1061
  __proto__: null,
@@ -3582,7 +1126,7 @@ function arrayPush$3(array, values) {
3582
1126
  var objectProto$f = Object.prototype;
3583
1127
 
3584
1128
  /** Used to check objects for own properties. */
3585
- var hasOwnProperty$c = objectProto$f.hasOwnProperty;
1129
+ var hasOwnProperty$d = objectProto$f.hasOwnProperty;
3586
1130
 
3587
1131
  /**
3588
1132
  * Used to resolve the
@@ -3681,7 +1225,7 @@ function flatten(array) {
3681
1225
  */
3682
1226
  function isArguments$3(value) {
3683
1227
  // Safari 8.1 makes `arguments.callee` enumerable in strict mode.
3684
- return isArrayLikeObject(value) && hasOwnProperty$c.call(value, 'callee') &&
1228
+ return isArrayLikeObject(value) && hasOwnProperty$d.call(value, 'callee') &&
3685
1229
  (!propertyIsEnumerable$2.call(value, 'callee') || objectToString$2.call(value) == argsTag$3);
3686
1230
  }
3687
1231
 
@@ -5010,6 +2554,95 @@ var icon = resolveIcons(function (iconDefinition) {
5010
2554
 
5011
2555
  var propTypes = {exports: {}};
5012
2556
 
2557
+ /*
2558
+ object-assign
2559
+ (c) Sindre Sorhus
2560
+ @license MIT
2561
+ */
2562
+ /* eslint-disable no-unused-vars */
2563
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2564
+ var hasOwnProperty$c = Object.prototype.hasOwnProperty;
2565
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
2566
+
2567
+ function toObject(val) {
2568
+ if (val === null || val === undefined) {
2569
+ throw new TypeError('Object.assign cannot be called with null or undefined');
2570
+ }
2571
+
2572
+ return Object(val);
2573
+ }
2574
+
2575
+ function shouldUseNative() {
2576
+ try {
2577
+ if (!Object.assign) {
2578
+ return false;
2579
+ }
2580
+
2581
+ // Detect buggy property enumeration order in older V8 versions.
2582
+
2583
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
2584
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
2585
+ test1[5] = 'de';
2586
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
2587
+ return false;
2588
+ }
2589
+
2590
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
2591
+ var test2 = {};
2592
+ for (var i = 0; i < 10; i++) {
2593
+ test2['_' + String.fromCharCode(i)] = i;
2594
+ }
2595
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
2596
+ return test2[n];
2597
+ });
2598
+ if (order2.join('') !== '0123456789') {
2599
+ return false;
2600
+ }
2601
+
2602
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
2603
+ var test3 = {};
2604
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
2605
+ test3[letter] = letter;
2606
+ });
2607
+ if (Object.keys(Object.assign({}, test3)).join('') !==
2608
+ 'abcdefghijklmnopqrst') {
2609
+ return false;
2610
+ }
2611
+
2612
+ return true;
2613
+ } catch (err) {
2614
+ // We don't expect any of the above to throw, but better to be safe.
2615
+ return false;
2616
+ }
2617
+ }
2618
+
2619
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
2620
+ var from;
2621
+ var to = toObject(target);
2622
+ var symbols;
2623
+
2624
+ for (var s = 1; s < arguments.length; s++) {
2625
+ from = Object(arguments[s]);
2626
+
2627
+ for (var key in from) {
2628
+ if (hasOwnProperty$c.call(from, key)) {
2629
+ to[key] = from[key];
2630
+ }
2631
+ }
2632
+
2633
+ if (getOwnPropertySymbols) {
2634
+ symbols = getOwnPropertySymbols(from);
2635
+ for (var i = 0; i < symbols.length; i++) {
2636
+ if (propIsEnumerable.call(from, symbols[i])) {
2637
+ to[symbols[i]] = from[symbols[i]];
2638
+ }
2639
+ }
2640
+ }
2641
+ }
2642
+
2643
+ return to;
2644
+ };
2645
+
5013
2646
  /**
5014
2647
  * Copyright (c) 2013-present, Facebook, Inc.
5015
2648
  *
@@ -6174,7 +3807,7 @@ FontAwesomeIcon.defaultProps = {
6174
3807
  transform: null,
6175
3808
  swapOpacity: false
6176
3809
  };
6177
- var convertCurry = convert.bind(null, React$1.createElement);
3810
+ var convertCurry = convert.bind(null, React.createElement);
6178
3811
 
6179
3812
  /*!
6180
3813
  * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
@@ -6229,21 +3862,21 @@ const Header = styled.div `
6229
3862
  }
6230
3863
  `;
6231
3864
  function Accordionpanel({ title, allOpen, setAllOpen, children }) {
6232
- const [open, setOpen] = react.exports.useState(allOpen);
3865
+ const [open, setOpen] = useState(allOpen);
6233
3866
  const handleClick = () => {
6234
3867
  setOpen(!open);
6235
3868
  setAllOpen(null);
6236
3869
  };
6237
- react.exports.useEffect(() => {
3870
+ useEffect(() => {
6238
3871
  if (allOpen === null)
6239
3872
  return;
6240
3873
  setOpen(allOpen);
6241
3874
  }, [allOpen]);
6242
- return (React$1.createElement(Container, null,
6243
- React$1.createElement(Header, { onClick: handleClick },
6244
- React$1.createElement("span", null, title),
6245
- React$1.createElement(FontAwesomeIcon, { icon: open ? faAngleUp : faAngleDown, size: "2x" })),
6246
- React$1.createElement(SmoothTransition, { open: open }, children)));
3875
+ return (React.createElement(Container, null,
3876
+ React.createElement(Header, { onClick: handleClick },
3877
+ React.createElement("span", null, title),
3878
+ React.createElement(FontAwesomeIcon, { icon: open ? faAngleUp : faAngleDown, size: "2x" })),
3879
+ React.createElement(SmoothTransition, { open: open }, children)));
6247
3880
  }
6248
3881
  const ActionsContainer = styled.div `
6249
3882
  display: flex;
@@ -6251,14 +3884,16 @@ const ActionsContainer = styled.div `
6251
3884
  color: ${SECONDARY_BLUE};
6252
3885
  & span {
6253
3886
  cursor: pointer;
3887
+ text-decoration: underline;
6254
3888
  }
6255
3889
  `;
6256
3890
  const Divider = styled.span `
6257
3891
  border-right: 1px solid black;
6258
- margin: 0 9px;
3892
+ height: 1em;
3893
+ margin: auto 0.5em;
6259
3894
  `;
6260
- function Accordion({ children }) {
6261
- const [allOpen, setAllOpen] = react.exports.useState(null);
3895
+ function Accordion({ children, open = false }) {
3896
+ const [allOpen, setAllOpen] = useState(open);
6262
3897
  console.log(LANDING_HEADER_FONT);
6263
3898
  const handleClose = () => {
6264
3899
  setAllOpen(false);
@@ -6266,14 +3901,14 @@ function Accordion({ children }) {
6266
3901
  const handleOpen = () => {
6267
3902
  setAllOpen(true);
6268
3903
  };
6269
- return (React$1.createElement(React$1.Fragment, null,
6270
- React$1.createElement(ActionsContainer, null,
6271
- React$1.createElement("span", { onClick: handleOpen }, "Expand All"),
6272
- React$1.createElement(Divider, null),
6273
- React$1.createElement("span", { onClick: handleClose }, "Collapse All")),
3904
+ return (React.createElement(React.Fragment, null,
3905
+ React.createElement(ActionsContainer, null,
3906
+ React.createElement("span", { onClick: handleOpen }, "Expand All"),
3907
+ React.createElement(Divider, null),
3908
+ React.createElement("span", { onClick: handleClose }, "Collapse All")),
6274
3909
  Array.isArray(children)
6275
- ? lodash_flatten(children).map((child) => React$1.cloneElement(child, { allOpen, setAllOpen }))
6276
- : React$1.cloneElement(children, { allOpen, setAllOpen })));
3910
+ ? lodash_flatten(children).map((child) => React.cloneElement(child, { allOpen, setAllOpen }))
3911
+ : React.cloneElement(children, { allOpen, setAllOpen })));
6277
3912
  }
6278
3913
  Accordion.Panel = Accordionpanel;
6279
3914
 
@@ -6294,31 +3929,28 @@ const Line = styled.div `
6294
3929
  border-left: 1px solid #bcbcbc;
6295
3930
  margin-left: calc(${(props) => props.circleDiameter} / 2);
6296
3931
  `;
6297
- const ContentContainer = styled.div `
6298
- display: grid;
6299
- grid-template-columns: 50px 1fr;
3932
+ const Title = styled.h2 `
3933
+ margin: auto 0;
3934
+ color: ${(props) => (props.variant === 'primary' ? 'black' : '#777777')};
3935
+ font-size: ${(props) => (props.variant === 'primary' ? '22px' : '18px')};
6300
3936
  `;
6301
- const TitleContainer = styled.div `
6302
- display: flex;
6303
- align-items: center;
6304
- flex-direction: row;
6305
-
6306
- & h2 {
6307
- margin: 0;
6308
- color: ${(props) => (props.variant === 'primary' ? 'black' : '#777777')};
6309
- font-size: ${(props) => (props.variant === 'primary' ? '22px' : '18px')};
6310
- }
3937
+ const Grid = styled.div `
3938
+ display: grid;
3939
+ grid-template-columns: ${(props) => props.numberedSectionWidth} 1fr;
3940
+ grid-template-rows: ${(props) => props.numberedSectionHeight} 1fr;
6311
3941
  `;
6312
- function NumberedContents({ number, title, children, showLine = true, circleDiameter = '40px', circleMargin = '10px', variant = 'primary', }) {
6313
- return (React$1.createElement("div", null,
6314
- React$1.createElement(TitleContainer, { variant: variant },
6315
- React$1.createElement(Circle, { variant: variant, circleDiameter: circleDiameter, circleMargin: circleMargin }, number),
6316
- React$1.createElement("h2", null,
6317
- title,
6318
- "\u00A0")),
6319
- React$1.createElement(ContentContainer, null,
6320
- showLine ? React$1.createElement(Line, { circleDiameter: circleDiameter }) : React$1.createElement("span", null),
6321
- React$1.createElement("div", null, children))));
3942
+ function NumberedContents({ number, title, children, showLine = true, circleDiameter = '40px', circleMargin = '5px', variant = 'primary', }) {
3943
+ const circleDiameterInt = Number(circleDiameter.slice(0, -2));
3944
+ const circleMarginInt = Number(circleMargin.slice(0, -2));
3945
+ const numberedSectionWidth = `${circleDiameterInt + circleMarginInt * 2}px`;
3946
+ const numberedSectionHeight = `${circleDiameterInt + circleMarginInt * 2}px`;
3947
+ return (React.createElement(Grid, { numberedSectionWidth: numberedSectionWidth, numberedSectionHeight: numberedSectionHeight },
3948
+ React.createElement(Circle, { variant: variant, circleDiameter: circleDiameter, circleMargin: circleMargin }, number),
3949
+ React.createElement(Title, { variant: variant },
3950
+ title,
3951
+ "\u00A0"),
3952
+ showLine ? React.createElement(Line, { circleDiameter: circleDiameter }) : React.createElement("span", null),
3953
+ React.createElement("div", null, children)));
6322
3954
  }
6323
3955
 
6324
3956
  var Button$2 = {};
@@ -6332,8 +3964,7 @@ function _interopRequireDefault(obj) {
6332
3964
  };
6333
3965
  }
6334
3966
 
6335
- module.exports = _interopRequireDefault;
6336
- module.exports["default"] = module.exports, module.exports.__esModule = true;
3967
+ module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
6337
3968
  }(interopRequireDefault));
6338
3969
 
6339
3970
  function _extends() {
@@ -10624,7 +8255,7 @@ Button$2.default = applyTheme_1$1 = Button$2.applyTheme = void 0;
10624
8255
 
10625
8256
  var _extends2$1 = _interopRequireDefault$1(require$$2);
10626
8257
 
10627
- var _react$1 = _interopRequireDefault$1(react.exports);
8258
+ var _react$1 = _interopRequireDefault$1(React);
10628
8259
 
10629
8260
  var _clsx$1 = _interopRequireDefault$1(require$$6);
10630
8261
 
@@ -10712,7 +8343,7 @@ const styles$1 = {
10712
8343
  },
10713
8344
  secondary: {
10714
8345
  button: `
10715
- border: 3px solid #1a4dff;
8346
+ box-shadow: 0px 0px 0px 3px #1a4dff inset;
10716
8347
  color: #1a4dff;
10717
8348
  background-color: #ffffff;
10718
8349
 
@@ -10742,25 +8373,14 @@ var _typeof = {exports: {}};
10742
8373
  function _typeof(obj) {
10743
8374
  "@babel/helpers - typeof";
10744
8375
 
10745
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
10746
- module.exports = _typeof = function _typeof(obj) {
10747
- return typeof obj;
10748
- };
10749
-
10750
- module.exports["default"] = module.exports, module.exports.__esModule = true;
10751
- } else {
10752
- module.exports = _typeof = function _typeof(obj) {
10753
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
10754
- };
10755
-
10756
- module.exports["default"] = module.exports, module.exports.__esModule = true;
10757
- }
10758
-
10759
- return _typeof(obj);
8376
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8377
+ return typeof obj;
8378
+ } : function (obj) {
8379
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8380
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
10760
8381
  }
10761
8382
 
10762
- module.exports = _typeof;
10763
- module.exports["default"] = module.exports, module.exports.__esModule = true;
8383
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
10764
8384
  }(_typeof));
10765
8385
 
10766
8386
  (function (module) {
@@ -10816,8 +8436,7 @@ function _interopRequireWildcard(obj, nodeInterop) {
10816
8436
  return newObj;
10817
8437
  }
10818
8438
 
10819
- module.exports = _interopRequireWildcard;
10820
- module.exports["default"] = module.exports, module.exports.__esModule = true;
8439
+ module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports;
10821
8440
  }(interopRequireWildcard));
10822
8441
 
10823
8442
  var _interopRequireDefault = interopRequireDefault.exports;
@@ -10835,7 +8454,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require$$3);
10835
8454
 
10836
8455
  var _taggedTemplateLiteralLoose2 = _interopRequireDefault(require$$4);
10837
8456
 
10838
- var _react = _interopRequireWildcard(react.exports);
8457
+ var _react = _interopRequireWildcard(React);
10839
8458
 
10840
8459
  var _clsx = _interopRequireDefault(require$$6);
10841
8460
 
@@ -11009,12 +8628,12 @@ const styles = {
11009
8628
  variant: {
11010
8629
  danger: {
11011
8630
  container: `
11012
- background-color: #FEE8E6;
8631
+ background-color: #EAC2C1;
11013
8632
  `,
11014
8633
  },
11015
8634
  success: {
11016
8635
  container: `
11017
- background-color: #E5F9E6;
8636
+ background-color: #C4D8CF;
11018
8637
  `,
11019
8638
  },
11020
8639
  },
@@ -11051,6 +8670,7 @@ const Alert = (props) => (React.createElement(DefaultAlert, Object.assign({}, pr
11051
8670
  props.variant === 'success' && SuccessIcon,
11052
8671
  props.variant === 'danger' && DangerIcon,
11053
8672
  props.children,
8673
+ props.content,
11054
8674
  React.createElement(DefaultAlert.Close, null, "X")));
11055
8675
 
11056
8676
  export { Accordion, Alert, Button, NumberedContents };