@thecb/components 5.9.3 → 5.10.2

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/index.esm.js CHANGED
@@ -1,4 +1,5 @@
1
- import React, { useContext, useMemo, useRef, createElement, useDebugValue, createContext, PureComponent, forwardRef, Component, cloneElement, Children, Fragment as Fragment$1, useState, useLayoutEffect, memo, useEffect as useEffect$1, useCallback, isValidElement, createRef } from 'react';
1
+ import React, { createContext, createElement, PureComponent, forwardRef, Component, cloneElement, Children, useContext, Fragment, useRef, useState, useLayoutEffect, memo, useEffect as useEffect$1, useMemo, useCallback, isValidElement, createRef } from 'react';
2
+ import styled, { ThemeContext, css, ThemeProvider } from 'styled-components';
2
3
  import theme from 'styled-theming';
3
4
  import { Link, useNavigate } from 'react-router-dom';
4
5
  import reactDom from 'react-dom';
@@ -213,2717 +214,6 @@ function _nonIterableRest() {
213
214
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
214
215
  }
215
216
 
216
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
217
-
218
- function createCommonjsModule(fn, module) {
219
- return module = { exports: {} }, fn(module, module.exports), module.exports;
220
- }
221
-
222
- /** @license React v16.13.1
223
- * react-is.production.min.js
224
- *
225
- * Copyright (c) Facebook, Inc. and its affiliates.
226
- *
227
- * This source code is licensed under the MIT license found in the
228
- * LICENSE file in the root directory of this source tree.
229
- */
230
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
231
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
232
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element$1=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
233
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
234
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
235
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
236
-
237
- var reactIs_production_min = {
238
- AsyncMode: AsyncMode,
239
- ConcurrentMode: ConcurrentMode,
240
- ContextConsumer: ContextConsumer,
241
- ContextProvider: ContextProvider,
242
- Element: Element$1,
243
- ForwardRef: ForwardRef,
244
- Fragment: Fragment,
245
- Lazy: Lazy,
246
- Memo: Memo,
247
- Portal: Portal,
248
- Profiler: Profiler,
249
- StrictMode: StrictMode,
250
- Suspense: Suspense,
251
- isAsyncMode: isAsyncMode,
252
- isConcurrentMode: isConcurrentMode,
253
- isContextConsumer: isContextConsumer,
254
- isContextProvider: isContextProvider,
255
- isElement: isElement,
256
- isForwardRef: isForwardRef,
257
- isFragment: isFragment,
258
- isLazy: isLazy,
259
- isMemo: isMemo,
260
- isPortal: isPortal,
261
- isProfiler: isProfiler,
262
- isStrictMode: isStrictMode,
263
- isSuspense: isSuspense,
264
- isValidElementType: isValidElementType,
265
- typeOf: typeOf
266
- };
267
-
268
- var reactIs_development = createCommonjsModule(function (module, exports) {
269
-
270
-
271
-
272
- if (process.env.NODE_ENV !== "production") {
273
- (function() {
274
-
275
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
276
- // nor polyfill, then a plain number is used for performance.
277
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
278
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
279
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
280
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
281
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
282
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
283
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
284
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
285
- // (unstable) APIs that have been removed. Can we remove the symbols?
286
-
287
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
288
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
289
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
290
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
291
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
292
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
293
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
294
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
295
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
296
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
297
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
298
-
299
- function isValidElementType(type) {
300
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
301
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (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_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
302
- }
303
-
304
- function typeOf(object) {
305
- if (typeof object === 'object' && object !== null) {
306
- var $$typeof = object.$$typeof;
307
-
308
- switch ($$typeof) {
309
- case REACT_ELEMENT_TYPE:
310
- var type = object.type;
311
-
312
- switch (type) {
313
- case REACT_ASYNC_MODE_TYPE:
314
- case REACT_CONCURRENT_MODE_TYPE:
315
- case REACT_FRAGMENT_TYPE:
316
- case REACT_PROFILER_TYPE:
317
- case REACT_STRICT_MODE_TYPE:
318
- case REACT_SUSPENSE_TYPE:
319
- return type;
320
-
321
- default:
322
- var $$typeofType = type && type.$$typeof;
323
-
324
- switch ($$typeofType) {
325
- case REACT_CONTEXT_TYPE:
326
- case REACT_FORWARD_REF_TYPE:
327
- case REACT_LAZY_TYPE:
328
- case REACT_MEMO_TYPE:
329
- case REACT_PROVIDER_TYPE:
330
- return $$typeofType;
331
-
332
- default:
333
- return $$typeof;
334
- }
335
-
336
- }
337
-
338
- case REACT_PORTAL_TYPE:
339
- return $$typeof;
340
- }
341
- }
342
-
343
- return undefined;
344
- } // AsyncMode is deprecated along with isAsyncMode
345
-
346
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
347
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
348
- var ContextConsumer = REACT_CONTEXT_TYPE;
349
- var ContextProvider = REACT_PROVIDER_TYPE;
350
- var Element = REACT_ELEMENT_TYPE;
351
- var ForwardRef = REACT_FORWARD_REF_TYPE;
352
- var Fragment = REACT_FRAGMENT_TYPE;
353
- var Lazy = REACT_LAZY_TYPE;
354
- var Memo = REACT_MEMO_TYPE;
355
- var Portal = REACT_PORTAL_TYPE;
356
- var Profiler = REACT_PROFILER_TYPE;
357
- var StrictMode = REACT_STRICT_MODE_TYPE;
358
- var Suspense = REACT_SUSPENSE_TYPE;
359
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
360
-
361
- function isAsyncMode(object) {
362
- {
363
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
364
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
365
-
366
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
367
- }
368
- }
369
-
370
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
371
- }
372
- function isConcurrentMode(object) {
373
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
374
- }
375
- function isContextConsumer(object) {
376
- return typeOf(object) === REACT_CONTEXT_TYPE;
377
- }
378
- function isContextProvider(object) {
379
- return typeOf(object) === REACT_PROVIDER_TYPE;
380
- }
381
- function isElement(object) {
382
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
383
- }
384
- function isForwardRef(object) {
385
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
386
- }
387
- function isFragment(object) {
388
- return typeOf(object) === REACT_FRAGMENT_TYPE;
389
- }
390
- function isLazy(object) {
391
- return typeOf(object) === REACT_LAZY_TYPE;
392
- }
393
- function isMemo(object) {
394
- return typeOf(object) === REACT_MEMO_TYPE;
395
- }
396
- function isPortal(object) {
397
- return typeOf(object) === REACT_PORTAL_TYPE;
398
- }
399
- function isProfiler(object) {
400
- return typeOf(object) === REACT_PROFILER_TYPE;
401
- }
402
- function isStrictMode(object) {
403
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
404
- }
405
- function isSuspense(object) {
406
- return typeOf(object) === REACT_SUSPENSE_TYPE;
407
- }
408
-
409
- exports.AsyncMode = AsyncMode;
410
- exports.ConcurrentMode = ConcurrentMode;
411
- exports.ContextConsumer = ContextConsumer;
412
- exports.ContextProvider = ContextProvider;
413
- exports.Element = Element;
414
- exports.ForwardRef = ForwardRef;
415
- exports.Fragment = Fragment;
416
- exports.Lazy = Lazy;
417
- exports.Memo = Memo;
418
- exports.Portal = Portal;
419
- exports.Profiler = Profiler;
420
- exports.StrictMode = StrictMode;
421
- exports.Suspense = Suspense;
422
- exports.isAsyncMode = isAsyncMode;
423
- exports.isConcurrentMode = isConcurrentMode;
424
- exports.isContextConsumer = isContextConsumer;
425
- exports.isContextProvider = isContextProvider;
426
- exports.isElement = isElement;
427
- exports.isForwardRef = isForwardRef;
428
- exports.isFragment = isFragment;
429
- exports.isLazy = isLazy;
430
- exports.isMemo = isMemo;
431
- exports.isPortal = isPortal;
432
- exports.isProfiler = isProfiler;
433
- exports.isStrictMode = isStrictMode;
434
- exports.isSuspense = isSuspense;
435
- exports.isValidElementType = isValidElementType;
436
- exports.typeOf = typeOf;
437
- })();
438
- }
439
- });
440
- var reactIs_development_1 = reactIs_development.AsyncMode;
441
- var reactIs_development_2 = reactIs_development.ConcurrentMode;
442
- var reactIs_development_3 = reactIs_development.ContextConsumer;
443
- var reactIs_development_4 = reactIs_development.ContextProvider;
444
- var reactIs_development_5 = reactIs_development.Element;
445
- var reactIs_development_6 = reactIs_development.ForwardRef;
446
- var reactIs_development_7 = reactIs_development.Fragment;
447
- var reactIs_development_8 = reactIs_development.Lazy;
448
- var reactIs_development_9 = reactIs_development.Memo;
449
- var reactIs_development_10 = reactIs_development.Portal;
450
- var reactIs_development_11 = reactIs_development.Profiler;
451
- var reactIs_development_12 = reactIs_development.StrictMode;
452
- var reactIs_development_13 = reactIs_development.Suspense;
453
- var reactIs_development_14 = reactIs_development.isAsyncMode;
454
- var reactIs_development_15 = reactIs_development.isConcurrentMode;
455
- var reactIs_development_16 = reactIs_development.isContextConsumer;
456
- var reactIs_development_17 = reactIs_development.isContextProvider;
457
- var reactIs_development_18 = reactIs_development.isElement;
458
- var reactIs_development_19 = reactIs_development.isForwardRef;
459
- var reactIs_development_20 = reactIs_development.isFragment;
460
- var reactIs_development_21 = reactIs_development.isLazy;
461
- var reactIs_development_22 = reactIs_development.isMemo;
462
- var reactIs_development_23 = reactIs_development.isPortal;
463
- var reactIs_development_24 = reactIs_development.isProfiler;
464
- var reactIs_development_25 = reactIs_development.isStrictMode;
465
- var reactIs_development_26 = reactIs_development.isSuspense;
466
- var reactIs_development_27 = reactIs_development.isValidElementType;
467
- var reactIs_development_28 = reactIs_development.typeOf;
468
-
469
- var reactIs = createCommonjsModule(function (module) {
470
-
471
- if (process.env.NODE_ENV === 'production') {
472
- module.exports = reactIs_production_min;
473
- } else {
474
- module.exports = reactIs_development;
475
- }
476
- });
477
- var reactIs_1 = reactIs.AsyncMode;
478
- var reactIs_2 = reactIs.ConcurrentMode;
479
- var reactIs_3 = reactIs.ContextConsumer;
480
- var reactIs_4 = reactIs.ContextProvider;
481
- var reactIs_5 = reactIs.Element;
482
- var reactIs_6 = reactIs.ForwardRef;
483
- var reactIs_7 = reactIs.Fragment;
484
- var reactIs_8 = reactIs.Lazy;
485
- var reactIs_9 = reactIs.Memo;
486
- var reactIs_10 = reactIs.Portal;
487
- var reactIs_11 = reactIs.Profiler;
488
- var reactIs_12 = reactIs.StrictMode;
489
- var reactIs_13 = reactIs.Suspense;
490
- var reactIs_14 = reactIs.isAsyncMode;
491
- var reactIs_15 = reactIs.isConcurrentMode;
492
- var reactIs_16 = reactIs.isContextConsumer;
493
- var reactIs_17 = reactIs.isContextProvider;
494
- var reactIs_18 = reactIs.isElement;
495
- var reactIs_19 = reactIs.isForwardRef;
496
- var reactIs_20 = reactIs.isFragment;
497
- var reactIs_21 = reactIs.isLazy;
498
- var reactIs_22 = reactIs.isMemo;
499
- var reactIs_23 = reactIs.isPortal;
500
- var reactIs_24 = reactIs.isProfiler;
501
- var reactIs_25 = reactIs.isStrictMode;
502
- var reactIs_26 = reactIs.isSuspense;
503
- var reactIs_27 = reactIs.isValidElementType;
504
- var reactIs_28 = reactIs.typeOf;
505
-
506
- function stylis_min (W) {
507
- function M(d, c, e, h, a) {
508
- for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
509
- g = e.charCodeAt(l);
510
- l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
511
-
512
- if (0 === b + n + v + m) {
513
- if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
514
- switch (g) {
515
- case 32:
516
- case 9:
517
- case 59:
518
- case 13:
519
- case 10:
520
- break;
521
-
522
- default:
523
- f += e.charAt(l);
524
- }
525
-
526
- g = 59;
527
- }
528
-
529
- switch (g) {
530
- case 123:
531
- f = f.trim();
532
- q = f.charCodeAt(0);
533
- k = 1;
534
-
535
- for (t = ++l; l < B;) {
536
- switch (g = e.charCodeAt(l)) {
537
- case 123:
538
- k++;
539
- break;
540
-
541
- case 125:
542
- k--;
543
- break;
544
-
545
- case 47:
546
- switch (g = e.charCodeAt(l + 1)) {
547
- case 42:
548
- case 47:
549
- a: {
550
- for (u = l + 1; u < J; ++u) {
551
- switch (e.charCodeAt(u)) {
552
- case 47:
553
- if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
554
- l = u + 1;
555
- break a;
556
- }
557
-
558
- break;
559
-
560
- case 10:
561
- if (47 === g) {
562
- l = u + 1;
563
- break a;
564
- }
565
-
566
- }
567
- }
568
-
569
- l = u;
570
- }
571
-
572
- }
573
-
574
- break;
575
-
576
- case 91:
577
- g++;
578
-
579
- case 40:
580
- g++;
581
-
582
- case 34:
583
- case 39:
584
- for (; l++ < J && e.charCodeAt(l) !== g;) {
585
- }
586
-
587
- }
588
-
589
- if (0 === k) break;
590
- l++;
591
- }
592
-
593
- k = e.substring(t, l);
594
- 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
595
-
596
- switch (q) {
597
- case 64:
598
- 0 < r && (f = f.replace(N, ''));
599
- g = f.charCodeAt(1);
600
-
601
- switch (g) {
602
- case 100:
603
- case 109:
604
- case 115:
605
- case 45:
606
- r = c;
607
- break;
608
-
609
- default:
610
- r = O;
611
- }
612
-
613
- k = M(c, r, k, g, a + 1);
614
- t = k.length;
615
- 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
616
- if (0 < t) switch (g) {
617
- case 115:
618
- f = f.replace(da, ea);
619
-
620
- case 100:
621
- case 109:
622
- case 45:
623
- k = f + '{' + k + '}';
624
- break;
625
-
626
- case 107:
627
- f = f.replace(fa, '$1 $2');
628
- k = f + '{' + k + '}';
629
- k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
630
- break;
631
-
632
- default:
633
- k = f + k, 112 === h && (k = (p += k, ''));
634
- } else k = '';
635
- break;
636
-
637
- default:
638
- k = M(c, X(c, f, I), k, h, a + 1);
639
- }
640
-
641
- F += k;
642
- k = I = r = u = q = 0;
643
- f = '';
644
- g = e.charCodeAt(++l);
645
- break;
646
-
647
- case 125:
648
- case 59:
649
- f = (0 < r ? f.replace(N, '') : f).trim();
650
- if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
651
- case 0:
652
- break;
653
-
654
- case 64:
655
- if (105 === g || 99 === g) {
656
- G += f + e.charAt(l);
657
- break;
658
- }
659
-
660
- default:
661
- 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
662
- }
663
- I = r = u = q = 0;
664
- f = '';
665
- g = e.charCodeAt(++l);
666
- }
667
- }
668
-
669
- switch (g) {
670
- case 13:
671
- case 10:
672
- 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
673
- 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
674
- z = 1;
675
- D++;
676
- break;
677
-
678
- case 59:
679
- case 125:
680
- if (0 === b + n + v + m) {
681
- z++;
682
- break;
683
- }
684
-
685
- default:
686
- z++;
687
- y = e.charAt(l);
688
-
689
- switch (g) {
690
- case 9:
691
- case 32:
692
- if (0 === n + m + b) switch (x) {
693
- case 44:
694
- case 58:
695
- case 9:
696
- case 32:
697
- y = '';
698
- break;
699
-
700
- default:
701
- 32 !== g && (y = ' ');
702
- }
703
- break;
704
-
705
- case 0:
706
- y = '\\0';
707
- break;
708
-
709
- case 12:
710
- y = '\\f';
711
- break;
712
-
713
- case 11:
714
- y = '\\v';
715
- break;
716
-
717
- case 38:
718
- 0 === n + b + m && (r = I = 1, y = '\f' + y);
719
- break;
720
-
721
- case 108:
722
- if (0 === n + b + m + E && 0 < u) switch (l - u) {
723
- case 2:
724
- 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
725
-
726
- case 8:
727
- 111 === K && (E = K);
728
- }
729
- break;
730
-
731
- case 58:
732
- 0 === n + b + m && (u = l);
733
- break;
734
-
735
- case 44:
736
- 0 === b + v + n + m && (r = 1, y += '\r');
737
- break;
738
-
739
- case 34:
740
- case 39:
741
- 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
742
- break;
743
-
744
- case 91:
745
- 0 === n + b + v && m++;
746
- break;
747
-
748
- case 93:
749
- 0 === n + b + v && m--;
750
- break;
751
-
752
- case 41:
753
- 0 === n + b + m && v--;
754
- break;
755
-
756
- case 40:
757
- if (0 === n + b + m) {
758
- if (0 === q) switch (2 * x + 3 * K) {
759
- case 533:
760
- break;
761
-
762
- default:
763
- q = 1;
764
- }
765
- v++;
766
- }
767
-
768
- break;
769
-
770
- case 64:
771
- 0 === b + v + n + m + u + k && (k = 1);
772
- break;
773
-
774
- case 42:
775
- case 47:
776
- if (!(0 < n + m + v)) switch (b) {
777
- case 0:
778
- switch (2 * g + 3 * e.charCodeAt(l + 1)) {
779
- case 235:
780
- b = 47;
781
- break;
782
-
783
- case 220:
784
- t = l, b = 42;
785
- }
786
-
787
- break;
788
-
789
- case 42:
790
- 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
791
- }
792
- }
793
-
794
- 0 === b && (f += y);
795
- }
796
-
797
- K = x;
798
- x = g;
799
- l++;
800
- }
801
-
802
- t = p.length;
803
-
804
- if (0 < t) {
805
- r = c;
806
- if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
807
- p = r.join(',') + '{' + p + '}';
808
-
809
- if (0 !== w * E) {
810
- 2 !== w || L(p, 2) || (E = 0);
811
-
812
- switch (E) {
813
- case 111:
814
- p = p.replace(ha, ':-moz-$1') + p;
815
- break;
816
-
817
- case 112:
818
- p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
819
- }
820
-
821
- E = 0;
822
- }
823
- }
824
-
825
- return G + p + F;
826
- }
827
-
828
- function X(d, c, e) {
829
- var h = c.trim().split(ia);
830
- c = h;
831
- var a = h.length,
832
- m = d.length;
833
-
834
- switch (m) {
835
- case 0:
836
- case 1:
837
- var b = 0;
838
-
839
- for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
840
- c[b] = Z(d, c[b], e).trim();
841
- }
842
-
843
- break;
844
-
845
- default:
846
- var v = b = 0;
847
-
848
- for (c = []; b < a; ++b) {
849
- for (var n = 0; n < m; ++n) {
850
- c[v++] = Z(d[n] + ' ', h[b], e).trim();
851
- }
852
- }
853
-
854
- }
855
-
856
- return c;
857
- }
858
-
859
- function Z(d, c, e) {
860
- var h = c.charCodeAt(0);
861
- 33 > h && (h = (c = c.trim()).charCodeAt(0));
862
-
863
- switch (h) {
864
- case 38:
865
- return c.replace(F, '$1' + d.trim());
866
-
867
- case 58:
868
- return d.trim() + c.replace(F, '$1' + d.trim());
869
-
870
- default:
871
- if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
872
- }
873
-
874
- return d + c;
875
- }
876
-
877
- function P(d, c, e, h) {
878
- var a = d + ';',
879
- m = 2 * c + 3 * e + 4 * h;
880
-
881
- if (944 === m) {
882
- d = a.indexOf(':', 9) + 1;
883
- var b = a.substring(d, a.length - 1).trim();
884
- b = a.substring(0, d).trim() + b + ';';
885
- return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
886
- }
887
-
888
- if (0 === w || 2 === w && !L(a, 1)) return a;
889
-
890
- switch (m) {
891
- case 1015:
892
- return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
893
-
894
- case 951:
895
- return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
896
-
897
- case 963:
898
- return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
899
-
900
- case 1009:
901
- if (100 !== a.charCodeAt(4)) break;
902
-
903
- case 969:
904
- case 942:
905
- return '-webkit-' + a + a;
906
-
907
- case 978:
908
- return '-webkit-' + a + '-moz-' + a + a;
909
-
910
- case 1019:
911
- case 983:
912
- return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
913
-
914
- case 883:
915
- if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
916
- if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
917
- break;
918
-
919
- case 932:
920
- if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
921
- case 103:
922
- return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
923
-
924
- case 115:
925
- return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
926
-
927
- case 98:
928
- return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
929
- }
930
- return '-webkit-' + a + '-ms-' + a + a;
931
-
932
- case 964:
933
- return '-webkit-' + a + '-ms-flex-' + a + a;
934
-
935
- case 1023:
936
- if (99 !== a.charCodeAt(8)) break;
937
- b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
938
- return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
939
-
940
- case 1005:
941
- return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
942
-
943
- case 1e3:
944
- b = a.substring(13).trim();
945
- c = b.indexOf('-') + 1;
946
-
947
- switch (b.charCodeAt(0) + b.charCodeAt(c)) {
948
- case 226:
949
- b = a.replace(G, 'tb');
950
- break;
951
-
952
- case 232:
953
- b = a.replace(G, 'tb-rl');
954
- break;
955
-
956
- case 220:
957
- b = a.replace(G, 'lr');
958
- break;
959
-
960
- default:
961
- return a;
962
- }
963
-
964
- return '-webkit-' + a + '-ms-' + b + a;
965
-
966
- case 1017:
967
- if (-1 === a.indexOf('sticky', 9)) break;
968
-
969
- case 975:
970
- c = (a = d).length - 10;
971
- b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
972
-
973
- switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
974
- case 203:
975
- if (111 > b.charCodeAt(8)) break;
976
-
977
- case 115:
978
- a = a.replace(b, '-webkit-' + b) + ';' + a;
979
- break;
980
-
981
- case 207:
982
- case 102:
983
- a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
984
- }
985
-
986
- return a + ';';
987
-
988
- case 938:
989
- if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
990
- case 105:
991
- return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
992
-
993
- case 115:
994
- return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
995
-
996
- default:
997
- return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
998
- }
999
- break;
1000
-
1001
- case 973:
1002
- case 989:
1003
- if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
1004
-
1005
- case 931:
1006
- case 953:
1007
- if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
1008
- break;
1009
-
1010
- case 962:
1011
- if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
1012
- }
1013
-
1014
- return a;
1015
- }
1016
-
1017
- function L(d, c) {
1018
- var e = d.indexOf(1 === c ? ':' : '{'),
1019
- h = d.substring(0, 3 !== c ? e : 10);
1020
- e = d.substring(e + 1, d.length - 1);
1021
- return R(2 !== c ? h : h.replace(na, '$1'), e, c);
1022
- }
1023
-
1024
- function ea(d, c) {
1025
- var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
1026
- return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
1027
- }
1028
-
1029
- function H(d, c, e, h, a, m, b, v, n, q) {
1030
- for (var g = 0, x = c, w; g < A; ++g) {
1031
- switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
1032
- case void 0:
1033
- case !1:
1034
- case !0:
1035
- case null:
1036
- break;
1037
-
1038
- default:
1039
- x = w;
1040
- }
1041
- }
1042
-
1043
- if (x !== c) return x;
1044
- }
1045
-
1046
- function T(d) {
1047
- switch (d) {
1048
- case void 0:
1049
- case null:
1050
- A = S.length = 0;
1051
- break;
1052
-
1053
- default:
1054
- if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
1055
- T(d[c]);
1056
- } else Y = !!d | 0;
1057
- }
1058
-
1059
- return T;
1060
- }
1061
-
1062
- function U(d) {
1063
- d = d.prefix;
1064
- void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
1065
- return U;
1066
- }
1067
-
1068
- function B(d, c) {
1069
- var e = d;
1070
- 33 > e.charCodeAt(0) && (e = e.trim());
1071
- V = e;
1072
- e = [V];
1073
-
1074
- if (0 < A) {
1075
- var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
1076
- void 0 !== h && 'string' === typeof h && (c = h);
1077
- }
1078
-
1079
- var a = M(O, e, c, 0, 0);
1080
- 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
1081
- V = '';
1082
- E = 0;
1083
- z = D = 1;
1084
- return a;
1085
- }
1086
-
1087
- var ca = /^\0+/g,
1088
- N = /[\0\r\f]/g,
1089
- aa = /: */g,
1090
- ka = /zoo|gra/,
1091
- ma = /([,: ])(transform)/g,
1092
- ia = /,\r+?/g,
1093
- F = /([\t\r\n ])*\f?&/g,
1094
- fa = /@(k\w+)\s*(\S*)\s*/,
1095
- Q = /::(place)/g,
1096
- ha = /:(read-only)/g,
1097
- G = /[svh]\w+-[tblr]{2}/,
1098
- da = /\(\s*(.*)\s*\)/g,
1099
- oa = /([\s\S]*?);/g,
1100
- ba = /-self|flex-/g,
1101
- na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
1102
- la = /stretch|:\s*\w+\-(?:conte|avail)/,
1103
- ja = /([^-])(image-set\()/,
1104
- z = 1,
1105
- D = 1,
1106
- E = 0,
1107
- w = 1,
1108
- O = [],
1109
- S = [],
1110
- A = 0,
1111
- R = null,
1112
- Y = 0,
1113
- V = '';
1114
- B.use = T;
1115
- B.set = U;
1116
- void 0 !== W && U(W);
1117
- return B;
1118
- }
1119
-
1120
- var unitlessKeys = {
1121
- animationIterationCount: 1,
1122
- borderImageOutset: 1,
1123
- borderImageSlice: 1,
1124
- borderImageWidth: 1,
1125
- boxFlex: 1,
1126
- boxFlexGroup: 1,
1127
- boxOrdinalGroup: 1,
1128
- columnCount: 1,
1129
- columns: 1,
1130
- flex: 1,
1131
- flexGrow: 1,
1132
- flexPositive: 1,
1133
- flexShrink: 1,
1134
- flexNegative: 1,
1135
- flexOrder: 1,
1136
- gridRow: 1,
1137
- gridRowEnd: 1,
1138
- gridRowSpan: 1,
1139
- gridRowStart: 1,
1140
- gridColumn: 1,
1141
- gridColumnEnd: 1,
1142
- gridColumnSpan: 1,
1143
- gridColumnStart: 1,
1144
- msGridRow: 1,
1145
- msGridRowSpan: 1,
1146
- msGridColumn: 1,
1147
- msGridColumnSpan: 1,
1148
- fontWeight: 1,
1149
- lineHeight: 1,
1150
- opacity: 1,
1151
- order: 1,
1152
- orphans: 1,
1153
- tabSize: 1,
1154
- widows: 1,
1155
- zIndex: 1,
1156
- zoom: 1,
1157
- WebkitLineClamp: 1,
1158
- // SVG-related properties
1159
- fillOpacity: 1,
1160
- floodOpacity: 1,
1161
- stopOpacity: 1,
1162
- strokeDasharray: 1,
1163
- strokeDashoffset: 1,
1164
- strokeMiterlimit: 1,
1165
- strokeOpacity: 1,
1166
- strokeWidth: 1
1167
- };
1168
-
1169
- function memoize(fn) {
1170
- var cache = {};
1171
- return function (arg) {
1172
- if (cache[arg] === undefined) cache[arg] = fn(arg);
1173
- return cache[arg];
1174
- };
1175
- }
1176
-
1177
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
1178
-
1179
- var index = memoize(function (prop) {
1180
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
1181
- /* o */
1182
- && prop.charCodeAt(1) === 110
1183
- /* n */
1184
- && prop.charCodeAt(2) < 91;
1185
- }
1186
- /* Z+1 */
1187
- );
1188
-
1189
- /**
1190
- * Copyright 2015, Yahoo! Inc.
1191
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
1192
- */
1193
- var REACT_STATICS = {
1194
- childContextTypes: true,
1195
- contextType: true,
1196
- contextTypes: true,
1197
- defaultProps: true,
1198
- displayName: true,
1199
- getDefaultProps: true,
1200
- getDerivedStateFromError: true,
1201
- getDerivedStateFromProps: true,
1202
- mixins: true,
1203
- propTypes: true,
1204
- type: true
1205
- };
1206
- var KNOWN_STATICS = {
1207
- name: true,
1208
- length: true,
1209
- prototype: true,
1210
- caller: true,
1211
- callee: true,
1212
- arguments: true,
1213
- arity: true
1214
- };
1215
- var FORWARD_REF_STATICS = {
1216
- '$$typeof': true,
1217
- render: true,
1218
- defaultProps: true,
1219
- displayName: true,
1220
- propTypes: true
1221
- };
1222
- var MEMO_STATICS = {
1223
- '$$typeof': true,
1224
- compare: true,
1225
- defaultProps: true,
1226
- displayName: true,
1227
- propTypes: true,
1228
- type: true
1229
- };
1230
- var TYPE_STATICS = {};
1231
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1232
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1233
-
1234
- function getStatics(component) {
1235
- // React v16.11 and below
1236
- if (reactIs.isMemo(component)) {
1237
- return MEMO_STATICS;
1238
- } // React v16.12 and above
1239
-
1240
-
1241
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
1242
- }
1243
-
1244
- var defineProperty = Object.defineProperty;
1245
- var getOwnPropertyNames = Object.getOwnPropertyNames;
1246
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1247
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1248
- var getPrototypeOf = Object.getPrototypeOf;
1249
- var objectPrototype = Object.prototype;
1250
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1251
- if (typeof sourceComponent !== 'string') {
1252
- // don't hoist over string (html) components
1253
- if (objectPrototype) {
1254
- var inheritedComponent = getPrototypeOf(sourceComponent);
1255
-
1256
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
1257
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
1258
- }
1259
- }
1260
-
1261
- var keys = getOwnPropertyNames(sourceComponent);
1262
-
1263
- if (getOwnPropertySymbols) {
1264
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1265
- }
1266
-
1267
- var targetStatics = getStatics(targetComponent);
1268
- var sourceStatics = getStatics(sourceComponent);
1269
-
1270
- for (var i = 0; i < keys.length; ++i) {
1271
- var key = keys[i];
1272
-
1273
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1274
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1275
-
1276
- try {
1277
- // Avoid failures from read-only properties
1278
- defineProperty(targetComponent, key, descriptor);
1279
- } catch (e) {}
1280
- }
1281
- }
1282
- }
1283
-
1284
- return targetComponent;
1285
- }
1286
-
1287
- var hoistNonReactStatics_cjs = hoistNonReactStatics;
1288
-
1289
- function _extends$1() {
1290
- _extends$1 = Object.assign || function (target) {
1291
- for (var i = 1; i < arguments.length; i++) {
1292
- var source = arguments[i];
1293
-
1294
- for (var key in source) {
1295
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1296
- target[key] = source[key];
1297
- }
1298
- }
1299
- }
1300
-
1301
- return target;
1302
- };
1303
-
1304
- return _extends$1.apply(this, arguments);
1305
- }
1306
-
1307
- function _objectWithoutPropertiesLoose$1(source, excluded) {
1308
- if (source == null) return {};
1309
- var target = {};
1310
- var sourceKeys = Object.keys(source);
1311
- var key, i;
1312
-
1313
- for (i = 0; i < sourceKeys.length; i++) {
1314
- key = sourceKeys[i];
1315
- if (excluded.indexOf(key) >= 0) continue;
1316
- target[key] = source[key];
1317
- }
1318
-
1319
- return target;
1320
- }
1321
-
1322
- //
1323
- var interleave = (function (strings, interpolations) {
1324
- var result = [strings[0]];
1325
-
1326
- for (var i = 0, len = interpolations.length; i < len; i += 1) {
1327
- result.push(interpolations[i], strings[i + 1]);
1328
- }
1329
-
1330
- return result;
1331
- });
1332
-
1333
- //
1334
- var isPlainObject = (function (x) {
1335
- return x !== null && typeof x === 'object' && (x.toString ? x.toString() : Object.prototype.toString.call(x)) === '[object Object]' && !reactIs_28(x);
1336
- });
1337
-
1338
- //
1339
- var EMPTY_ARRAY = Object.freeze([]);
1340
- var EMPTY_OBJECT = Object.freeze({});
1341
-
1342
- //
1343
- function isFunction(test) {
1344
- return typeof test === 'function';
1345
- }
1346
-
1347
- //
1348
- function getComponentName(target) {
1349
- return (process.env.NODE_ENV !== 'production' ? typeof target === 'string' && target : false) || // $FlowFixMe
1350
- target.displayName || // $FlowFixMe
1351
- target.name || 'Component';
1352
- }
1353
-
1354
- //
1355
- function isStatelessFunction(test) {
1356
- return typeof test === 'function' && !(test.prototype && test.prototype.isReactComponent);
1357
- }
1358
-
1359
- //
1360
- function isStyledComponent(target) {
1361
- return target && typeof target.styledComponentId === 'string';
1362
- }
1363
-
1364
- //
1365
- var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';
1366
- var SC_ATTR_ACTIVE = 'active';
1367
- var SC_ATTR_VERSION = 'data-styled-version';
1368
- var SC_VERSION = "5.1.1";
1369
- var SPLITTER = '/*!sc*/\n';
1370
- var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
1371
- var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production'; // Shared empty execution context when generating static styles
1372
-
1373
- //
1374
-
1375
- /* eslint-disable camelcase, no-undef */
1376
- var getNonce = function getNonce() {
1377
- return typeof __webpack_nonce__ !== 'undefined' ? __webpack_nonce__ : null;
1378
- };
1379
-
1380
- var errorMap = {
1381
- "1": "Cannot create styled-component for component: %s.\n\n",
1382
- "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",
1383
- "3": "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
1384
- "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",
1385
- "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",
1386
- "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",
1387
- "7": "ThemeProvider: Please return an object from your \"theme\" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n",
1388
- "8": "ThemeProvider: Please make your \"theme\" prop an object.\n\n",
1389
- "9": "Missing document `<head>`\n\n",
1390
- "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",
1391
- "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",
1392
- "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",
1393
- "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",
1394
- "14": "ThemeProvider: \"theme\" prop is required.\n\n",
1395
- "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",
1396
- "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",
1397
- "17": "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
1398
- };
1399
-
1400
- //
1401
- var ERRORS = process.env.NODE_ENV !== 'production' ? errorMap : {};
1402
- /**
1403
- * super basic version of sprintf
1404
- */
1405
-
1406
- function format() {
1407
- var a = arguments.length <= 0 ? undefined : arguments[0];
1408
- var b = [];
1409
-
1410
- for (var c = 1, len = arguments.length; c < len; c += 1) {
1411
- b.push(c < 0 || arguments.length <= c ? undefined : arguments[c]);
1412
- }
1413
-
1414
- b.forEach(function (d) {
1415
- a = a.replace(/%[a-z]/, d);
1416
- });
1417
- return a;
1418
- }
1419
- /**
1420
- * Create an error file out of errors.md for development and a simple web link to the full errors
1421
- * in production mode.
1422
- */
1423
-
1424
-
1425
- function throwStyledComponentsError(code) {
1426
- for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1427
- interpolations[_key - 1] = arguments[_key];
1428
- }
1429
-
1430
- if (process.env.NODE_ENV === 'production') {
1431
- throw new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#" + code + " for more information." + (interpolations.length > 0 ? " Additional arguments: " + interpolations.join(', ') : ''));
1432
- } else {
1433
- throw new Error(format.apply(void 0, [ERRORS[code]].concat(interpolations)).trim());
1434
- }
1435
- }
1436
-
1437
- //
1438
- var ELEMENT_TYPE = 1;
1439
- /* Node.ELEMENT_TYPE */
1440
-
1441
- /** Find last style element if any inside target */
1442
-
1443
- var findLastStyleTag = function findLastStyleTag(target) {
1444
- var childNodes = target.childNodes;
1445
-
1446
- for (var i = childNodes.length; i >= 0; i--) {
1447
- var child = childNodes[i];
1448
-
1449
- if (child && child.nodeType === ELEMENT_TYPE && child.hasAttribute(SC_ATTR)) {
1450
- return child;
1451
- }
1452
- }
1453
-
1454
- return undefined;
1455
- };
1456
- /** Create a style element inside `target` or <head> after the last */
1457
-
1458
-
1459
- var makeStyleTag = function makeStyleTag(target) {
1460
- var head = document.head;
1461
- var parent = target || head;
1462
- var style = document.createElement('style');
1463
- var prevStyle = findLastStyleTag(parent);
1464
- var nextSibling = prevStyle !== undefined ? prevStyle.nextSibling : null;
1465
- style.setAttribute(SC_ATTR, SC_ATTR_ACTIVE);
1466
- style.setAttribute(SC_ATTR_VERSION, SC_VERSION);
1467
- var nonce = getNonce();
1468
- if (nonce) style.setAttribute('nonce', nonce);
1469
- parent.insertBefore(style, nextSibling);
1470
- return style;
1471
- };
1472
- /** Get the CSSStyleSheet instance for a given style element */
1473
-
1474
- var getSheet = function getSheet(tag) {
1475
- if (tag.sheet) {
1476
- return tag.sheet;
1477
- } // Avoid Firefox quirk where the style element might not have a sheet property
1478
-
1479
-
1480
- var _document = document,
1481
- styleSheets = _document.styleSheets;
1482
-
1483
- for (var i = 0, l = styleSheets.length; i < l; i++) {
1484
- var sheet = styleSheets[i];
1485
-
1486
- if (sheet.ownerNode === tag) {
1487
- return sheet;
1488
- }
1489
- }
1490
-
1491
- throwStyledComponentsError(17);
1492
- return undefined;
1493
- };
1494
-
1495
- //
1496
- /** Create a CSSStyleSheet-like tag depending on the environment */
1497
-
1498
- var makeTag = function makeTag(_ref) {
1499
- var isServer = _ref.isServer,
1500
- useCSSOMInjection = _ref.useCSSOMInjection,
1501
- target = _ref.target;
1502
-
1503
- if (isServer) {
1504
- return new VirtualTag(target);
1505
- } else if (useCSSOMInjection) {
1506
- return new CSSOMTag(target);
1507
- } else {
1508
- return new TextTag(target);
1509
- }
1510
- };
1511
- var CSSOMTag = /*#__PURE__*/function () {
1512
- function CSSOMTag(target) {
1513
- var element = this.element = makeStyleTag(target); // Avoid Edge bug where empty style elements don't create sheets
1514
-
1515
- element.appendChild(document.createTextNode(''));
1516
- this.sheet = getSheet(element);
1517
- this.length = 0;
1518
- }
1519
-
1520
- var _proto = CSSOMTag.prototype;
1521
-
1522
- _proto.insertRule = function insertRule(index, rule) {
1523
- try {
1524
- this.sheet.insertRule(rule, index);
1525
- this.length++;
1526
- return true;
1527
- } catch (_error) {
1528
- return false;
1529
- }
1530
- };
1531
-
1532
- _proto.deleteRule = function deleteRule(index) {
1533
- this.sheet.deleteRule(index);
1534
- this.length--;
1535
- };
1536
-
1537
- _proto.getRule = function getRule(index) {
1538
- var rule = this.sheet.cssRules[index]; // Avoid IE11 quirk where cssText is inaccessible on some invalid rules
1539
-
1540
- if (rule !== undefined && typeof rule.cssText === 'string') {
1541
- return rule.cssText;
1542
- } else {
1543
- return '';
1544
- }
1545
- };
1546
-
1547
- return CSSOMTag;
1548
- }();
1549
- /** A Tag that emulates the CSSStyleSheet API but uses text nodes */
1550
-
1551
- var TextTag = /*#__PURE__*/function () {
1552
- function TextTag(target) {
1553
- var element = this.element = makeStyleTag(target);
1554
- this.nodes = element.childNodes;
1555
- this.length = 0;
1556
- }
1557
-
1558
- var _proto2 = TextTag.prototype;
1559
-
1560
- _proto2.insertRule = function insertRule(index, rule) {
1561
- if (index <= this.length && index >= 0) {
1562
- var node = document.createTextNode(rule);
1563
- var refNode = this.nodes[index];
1564
- this.element.insertBefore(node, refNode || null);
1565
- this.length++;
1566
- return true;
1567
- } else {
1568
- return false;
1569
- }
1570
- };
1571
-
1572
- _proto2.deleteRule = function deleteRule(index) {
1573
- this.element.removeChild(this.nodes[index]);
1574
- this.length--;
1575
- };
1576
-
1577
- _proto2.getRule = function getRule(index) {
1578
- if (index < this.length) {
1579
- return this.nodes[index].textContent;
1580
- } else {
1581
- return '';
1582
- }
1583
- };
1584
-
1585
- return TextTag;
1586
- }();
1587
- /** A completely virtual (server-side) Tag that doesn't manipulate the DOM */
1588
-
1589
- var VirtualTag = /*#__PURE__*/function () {
1590
- function VirtualTag(_target) {
1591
- this.rules = [];
1592
- this.length = 0;
1593
- }
1594
-
1595
- var _proto3 = VirtualTag.prototype;
1596
-
1597
- _proto3.insertRule = function insertRule(index, rule) {
1598
- if (index <= this.length) {
1599
- this.rules.splice(index, 0, rule);
1600
- this.length++;
1601
- return true;
1602
- } else {
1603
- return false;
1604
- }
1605
- };
1606
-
1607
- _proto3.deleteRule = function deleteRule(index) {
1608
- this.rules.splice(index, 1);
1609
- this.length--;
1610
- };
1611
-
1612
- _proto3.getRule = function getRule(index) {
1613
- if (index < this.length) {
1614
- return this.rules[index];
1615
- } else {
1616
- return '';
1617
- }
1618
- };
1619
-
1620
- return VirtualTag;
1621
- }();
1622
-
1623
- //
1624
- /** Create a GroupedTag with an underlying Tag implementation */
1625
-
1626
- var makeGroupedTag = function makeGroupedTag(tag) {
1627
- return new DefaultGroupedTag(tag);
1628
- };
1629
- var BASE_SIZE = 1 << 9;
1630
-
1631
- var DefaultGroupedTag = /*#__PURE__*/function () {
1632
- function DefaultGroupedTag(tag) {
1633
- this.groupSizes = new Uint32Array(BASE_SIZE);
1634
- this.length = BASE_SIZE;
1635
- this.tag = tag;
1636
- }
1637
-
1638
- var _proto = DefaultGroupedTag.prototype;
1639
-
1640
- _proto.indexOfGroup = function indexOfGroup(group) {
1641
- var index = 0;
1642
-
1643
- for (var i = 0; i < group; i++) {
1644
- index += this.groupSizes[i];
1645
- }
1646
-
1647
- return index;
1648
- };
1649
-
1650
- _proto.insertRules = function insertRules(group, rules) {
1651
- if (group >= this.groupSizes.length) {
1652
- var oldBuffer = this.groupSizes;
1653
- var oldSize = oldBuffer.length;
1654
- var newSize = oldSize;
1655
-
1656
- while (group >= newSize) {
1657
- newSize <<= 1;
1658
-
1659
- if (newSize < 0) {
1660
- throwStyledComponentsError(16, "" + group);
1661
- }
1662
- }
1663
-
1664
- this.groupSizes = new Uint32Array(newSize);
1665
- this.groupSizes.set(oldBuffer);
1666
- this.length = newSize;
1667
-
1668
- for (var i = oldSize; i < newSize; i++) {
1669
- this.groupSizes[i] = 0;
1670
- }
1671
- }
1672
-
1673
- var ruleIndex = this.indexOfGroup(group + 1);
1674
-
1675
- for (var _i = 0, l = rules.length; _i < l; _i++) {
1676
- if (this.tag.insertRule(ruleIndex, rules[_i])) {
1677
- this.groupSizes[group]++;
1678
- ruleIndex++;
1679
- }
1680
- }
1681
- };
1682
-
1683
- _proto.clearGroup = function clearGroup(group) {
1684
- if (group < this.length) {
1685
- var length = this.groupSizes[group];
1686
- var startIndex = this.indexOfGroup(group);
1687
- var endIndex = startIndex + length;
1688
- this.groupSizes[group] = 0;
1689
-
1690
- for (var i = startIndex; i < endIndex; i++) {
1691
- this.tag.deleteRule(startIndex);
1692
- }
1693
- }
1694
- };
1695
-
1696
- _proto.getGroup = function getGroup(group) {
1697
- var css = '';
1698
-
1699
- if (group >= this.length || this.groupSizes[group] === 0) {
1700
- return css;
1701
- }
1702
-
1703
- var length = this.groupSizes[group];
1704
- var startIndex = this.indexOfGroup(group);
1705
- var endIndex = startIndex + length;
1706
-
1707
- for (var i = startIndex; i < endIndex; i++) {
1708
- css += "" + this.tag.getRule(i) + SPLITTER;
1709
- }
1710
-
1711
- return css;
1712
- };
1713
-
1714
- return DefaultGroupedTag;
1715
- }();
1716
-
1717
- //
1718
- var MAX_SMI = 1 << 31 - 1;
1719
- var groupIDRegister = new Map();
1720
- var reverseRegister = new Map();
1721
- var nextFreeGroup = 1;
1722
- var getGroupForId = function getGroupForId(id) {
1723
- if (groupIDRegister.has(id)) {
1724
- return groupIDRegister.get(id);
1725
- }
1726
-
1727
- var group = nextFreeGroup++;
1728
-
1729
- if (process.env.NODE_ENV !== 'production' && ((group | 0) < 0 || group > MAX_SMI)) {
1730
- throwStyledComponentsError(16, "" + group);
1731
- }
1732
-
1733
- groupIDRegister.set(id, group);
1734
- reverseRegister.set(group, id);
1735
- return group;
1736
- };
1737
- var getIdForGroup = function getIdForGroup(group) {
1738
- return reverseRegister.get(group);
1739
- };
1740
- var setGroupForId = function setGroupForId(id, group) {
1741
- if (group >= nextFreeGroup) {
1742
- nextFreeGroup = group + 1;
1743
- }
1744
-
1745
- groupIDRegister.set(id, group);
1746
- reverseRegister.set(group, id);
1747
- };
1748
-
1749
- //
1750
- var SELECTOR = "style[" + SC_ATTR + "][" + SC_ATTR_VERSION + "=\"" + SC_VERSION + "\"]";
1751
- var MARKER_RE = new RegExp("^" + SC_ATTR + "\\.g(\\d+)\\[id=\"([\\w\\d-]+)\"\\].*?\"([^\"]*)");
1752
- var outputSheet = function outputSheet(sheet) {
1753
- var tag = sheet.getTag();
1754
- var length = tag.length;
1755
- var css = '';
1756
-
1757
- for (var group = 0; group < length; group++) {
1758
- var id = getIdForGroup(group);
1759
- if (id === undefined) continue;
1760
- var names = sheet.names.get(id);
1761
- var rules = tag.getGroup(group);
1762
- if (names === undefined || rules.length === 0) continue;
1763
- var selector = SC_ATTR + ".g" + group + "[id=\"" + id + "\"]";
1764
- var content = '';
1765
-
1766
- if (names !== undefined) {
1767
- names.forEach(function (name) {
1768
- if (name.length > 0) {
1769
- content += name + ",";
1770
- }
1771
- });
1772
- } // NOTE: It's easier to collect rules and have the marker
1773
- // after the actual rules to simplify the rehydration
1774
-
1775
-
1776
- css += "" + rules + selector + "{content:\"" + content + "\"}" + SPLITTER;
1777
- }
1778
-
1779
- return css;
1780
- };
1781
-
1782
- var rehydrateNamesFromContent = function rehydrateNamesFromContent(sheet, id, content) {
1783
- var names = content.split(',');
1784
- var name;
1785
-
1786
- for (var i = 0, l = names.length; i < l; i++) {
1787
- // eslint-disable-next-line
1788
- if (name = names[i]) {
1789
- sheet.registerName(id, name);
1790
- }
1791
- }
1792
- };
1793
-
1794
- var rehydrateSheetFromTag = function rehydrateSheetFromTag(sheet, style) {
1795
- var parts = style.innerHTML.split(SPLITTER);
1796
- var rules = [];
1797
-
1798
- for (var i = 0, l = parts.length; i < l; i++) {
1799
- var part = parts[i].trim();
1800
- if (!part) continue;
1801
- var marker = part.match(MARKER_RE);
1802
-
1803
- if (marker) {
1804
- var group = parseInt(marker[1], 10) | 0;
1805
- var id = marker[2];
1806
-
1807
- if (group !== 0) {
1808
- // Rehydrate componentId to group index mapping
1809
- setGroupForId(id, group); // Rehydrate names and rules
1810
- // looks like: data-styled.g11[id="idA"]{content:"nameA,"}
1811
-
1812
- rehydrateNamesFromContent(sheet, id, marker[3]);
1813
- sheet.getTag().insertRules(group, rules);
1814
- }
1815
-
1816
- rules.length = 0;
1817
- } else {
1818
- rules.push(part);
1819
- }
1820
- }
1821
- };
1822
-
1823
- var rehydrateSheet = function rehydrateSheet(sheet) {
1824
- var nodes = document.querySelectorAll(SELECTOR);
1825
-
1826
- for (var i = 0, l = nodes.length; i < l; i++) {
1827
- var node = nodes[i];
1828
-
1829
- if (node && node.getAttribute(SC_ATTR) !== SC_ATTR_ACTIVE) {
1830
- rehydrateSheetFromTag(sheet, node);
1831
-
1832
- if (node.parentNode) {
1833
- node.parentNode.removeChild(node);
1834
- }
1835
- }
1836
- }
1837
- };
1838
-
1839
- var SHOULD_REHYDRATE = IS_BROWSER;
1840
- var defaultOptions = {
1841
- isServer: !IS_BROWSER,
1842
- useCSSOMInjection: !DISABLE_SPEEDY
1843
- };
1844
- /** Contains the main stylesheet logic for stringification and caching */
1845
-
1846
- var StyleSheet = /*#__PURE__*/function () {
1847
- /** Register a group ID to give it an index */
1848
- StyleSheet.registerId = function registerId(id) {
1849
- return getGroupForId(id);
1850
- };
1851
-
1852
- function StyleSheet(options, globalStyles, names) {
1853
- if (options === void 0) {
1854
- options = defaultOptions;
1855
- }
1856
-
1857
- if (globalStyles === void 0) {
1858
- globalStyles = {};
1859
- }
1860
-
1861
- this.options = _extends$1({}, defaultOptions, {}, options);
1862
- this.gs = globalStyles;
1863
- this.names = new Map(names); // We rehydrate only once and use the sheet that is created first
1864
-
1865
- if (!this.options.isServer && IS_BROWSER && SHOULD_REHYDRATE) {
1866
- SHOULD_REHYDRATE = false;
1867
- rehydrateSheet(this);
1868
- }
1869
- }
1870
-
1871
- var _proto = StyleSheet.prototype;
1872
-
1873
- _proto.reconstructWithOptions = function reconstructWithOptions(options) {
1874
- return new StyleSheet(_extends$1({}, this.options, {}, options), this.gs, this.names);
1875
- };
1876
-
1877
- _proto.allocateGSInstance = function allocateGSInstance(id) {
1878
- return this.gs[id] = (this.gs[id] || 0) + 1;
1879
- }
1880
- /** Lazily initialises a GroupedTag for when it's actually needed */
1881
- ;
1882
-
1883
- _proto.getTag = function getTag() {
1884
- return this.tag || (this.tag = makeGroupedTag(makeTag(this.options)));
1885
- }
1886
- /** Check whether a name is known for caching */
1887
- ;
1888
-
1889
- _proto.hasNameForId = function hasNameForId(id, name) {
1890
- return this.names.has(id) && this.names.get(id).has(name);
1891
- }
1892
- /** Mark a group's name as known for caching */
1893
- ;
1894
-
1895
- _proto.registerName = function registerName(id, name) {
1896
- getGroupForId(id);
1897
-
1898
- if (!this.names.has(id)) {
1899
- var groupNames = new Set();
1900
- groupNames.add(name);
1901
- this.names.set(id, groupNames);
1902
- } else {
1903
- this.names.get(id).add(name);
1904
- }
1905
- }
1906
- /** Insert new rules which also marks the name as known */
1907
- ;
1908
-
1909
- _proto.insertRules = function insertRules(id, name, rules) {
1910
- this.registerName(id, name);
1911
- this.getTag().insertRules(getGroupForId(id), rules);
1912
- }
1913
- /** Clears all cached names for a given group ID */
1914
- ;
1915
-
1916
- _proto.clearNames = function clearNames(id) {
1917
- if (this.names.has(id)) {
1918
- this.names.get(id).clear();
1919
- }
1920
- }
1921
- /** Clears all rules for a given group ID */
1922
- ;
1923
-
1924
- _proto.clearRules = function clearRules(id) {
1925
- this.getTag().clearGroup(getGroupForId(id));
1926
- this.clearNames(id);
1927
- }
1928
- /** Clears the entire tag which deletes all rules but not its names */
1929
- ;
1930
-
1931
- _proto.clearTag = function clearTag() {
1932
- // NOTE: This does not clear the names, since it's only used during SSR
1933
- // so that we can continuously output only new rules
1934
- this.tag = undefined;
1935
- }
1936
- /** Outputs the current sheet as a CSS string with markers for SSR */
1937
- ;
1938
-
1939
- _proto.toString = function toString() {
1940
- return outputSheet(this);
1941
- };
1942
-
1943
- return StyleSheet;
1944
- }();
1945
-
1946
- //
1947
-
1948
- /* eslint-disable */
1949
- var SEED = 5381; // When we have separate strings it's useful to run a progressive
1950
- // version of djb2 where we pretend that we're still looping over
1951
- // the same string
1952
-
1953
- var phash = function phash(h, x) {
1954
- var i = x.length;
1955
-
1956
- while (i) {
1957
- h = h * 33 ^ x.charCodeAt(--i);
1958
- }
1959
-
1960
- return h;
1961
- }; // This is a djb2 hashing function
1962
-
1963
- var hash = function hash(x) {
1964
- return phash(SEED, x);
1965
- };
1966
-
1967
- /**
1968
- * MIT License
1969
- *
1970
- * Copyright (c) 2016 Sultan Tarimo
1971
- *
1972
- * Permission is hereby granted, free of charge, to any person obtaining a copy of
1973
- * this software and associated documentation files (the "Software"),
1974
- * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
1975
- * sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
1976
- *
1977
- * The above copyright notice and this permission notice shall be included in all
1978
- * copies or substantial portions of the Software.
1979
- *
1980
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1981
- * OR IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1982
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1983
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1984
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
1985
- * IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1986
- */
1987
-
1988
- /* eslint-disable */
1989
- function insertRulePlugin (insertRule) {
1990
- var delimiter = '/*|*/';
1991
- var needle = delimiter + "}";
1992
-
1993
- function toSheet(block) {
1994
- if (block) {
1995
- try {
1996
- insertRule(block + "}");
1997
- } catch (e) {}
1998
- }
1999
- }
2000
-
2001
- return function ruleSheet(context, content, selectors, parents, line, column, length, ns, depth, at) {
2002
- switch (context) {
2003
- // property
2004
- case 1:
2005
- // @import
2006
- if (depth === 0 && content.charCodeAt(0) === 64) return insertRule(content + ";"), '';
2007
- break;
2008
- // selector
2009
-
2010
- case 2:
2011
- if (ns === 0) return content + delimiter;
2012
- break;
2013
- // at-rule
2014
-
2015
- case 3:
2016
- switch (ns) {
2017
- // @font-face, @page
2018
- case 102:
2019
- case 112:
2020
- return insertRule(selectors[0] + content), '';
2021
-
2022
- default:
2023
- return content + (at === 0 ? delimiter : '');
2024
- }
2025
-
2026
- case -2:
2027
- content.split(needle).forEach(toSheet);
2028
- }
2029
- };
2030
- }
2031
-
2032
- var COMMENT_REGEX = /^\s*\/\/.*$/gm;
2033
- function createStylisInstance(_temp) {
2034
- var _ref = _temp === void 0 ? EMPTY_OBJECT : _temp,
2035
- _ref$options = _ref.options,
2036
- options = _ref$options === void 0 ? EMPTY_OBJECT : _ref$options,
2037
- _ref$plugins = _ref.plugins,
2038
- plugins = _ref$plugins === void 0 ? EMPTY_ARRAY : _ref$plugins;
2039
-
2040
- var stylis = new stylis_min(options); // Wrap `insertRulePlugin to build a list of rules,
2041
- // and then make our own plugin to return the rules. This
2042
- // makes it easier to hook into the existing SSR architecture
2043
-
2044
- var parsingRules = []; // eslint-disable-next-line consistent-return
2045
-
2046
- var returnRulesPlugin = function returnRulesPlugin(context) {
2047
- if (context === -2) {
2048
- var parsedRules = parsingRules;
2049
- parsingRules = [];
2050
- return parsedRules;
2051
- }
2052
- };
2053
-
2054
- var parseRulesPlugin = insertRulePlugin(function (rule) {
2055
- parsingRules.push(rule);
2056
- });
2057
-
2058
- var _componentId;
2059
-
2060
- var _selector;
2061
-
2062
- var _selectorRegexp;
2063
-
2064
- var selfReferenceReplacer = function selfReferenceReplacer(match, offset, string) {
2065
- if ( // the first self-ref is always untouched
2066
- offset > 0 && // there should be at least two self-refs to do a replacement (.b > .b)
2067
- string.slice(0, offset).indexOf(_selector) !== -1 && // no consecutive self refs (.b.b); that is a precedence boost and treated differently
2068
- string.slice(offset - _selector.length, offset) !== _selector) {
2069
- return "." + _componentId;
2070
- }
2071
-
2072
- return match;
2073
- };
2074
- /**
2075
- * When writing a style like
2076
- *
2077
- * & + & {
2078
- * color: red;
2079
- * }
2080
- *
2081
- * The second ampersand should be a reference to the static component class. stylis
2082
- * has no knowledge of static class so we have to intelligently replace the base selector.
2083
- *
2084
- * https://github.com/thysultan/stylis.js#plugins <- more info about the context phase values
2085
- * "2" means this plugin is taking effect at the very end after all other processing is complete
2086
- */
2087
-
2088
-
2089
- var selfReferenceReplacementPlugin = function selfReferenceReplacementPlugin(context, _, selectors) {
2090
- if (context === 2 && selectors.length && selectors[0].lastIndexOf(_selector) > 0) {
2091
- // eslint-disable-next-line no-param-reassign
2092
- selectors[0] = selectors[0].replace(_selectorRegexp, selfReferenceReplacer);
2093
- }
2094
- };
2095
-
2096
- stylis.use([].concat(plugins, [selfReferenceReplacementPlugin, parseRulesPlugin, returnRulesPlugin]));
2097
-
2098
- function stringifyRules(css, selector, prefix, componentId) {
2099
- if (componentId === void 0) {
2100
- componentId = '&';
2101
- }
2102
-
2103
- var flatCSS = css.replace(COMMENT_REGEX, '');
2104
- var cssStr = selector && prefix ? prefix + " " + selector + " { " + flatCSS + " }" : flatCSS; // stylis has no concept of state to be passed to plugins
2105
- // but since JS is single=threaded, we can rely on that to ensure
2106
- // these properties stay in sync with the current stylis run
2107
-
2108
- _componentId = componentId;
2109
- _selector = selector;
2110
- _selectorRegexp = new RegExp("\\" + _selector + "\\b", 'g');
2111
- return stylis(prefix || !selector ? '' : selector, cssStr);
2112
- }
2113
-
2114
- stringifyRules.hash = plugins.length ? plugins.reduce(function (acc, plugin) {
2115
- if (!plugin.name) {
2116
- throwStyledComponentsError(15);
2117
- }
2118
-
2119
- return phash(acc, plugin.name);
2120
- }, SEED).toString() : '';
2121
- return stringifyRules;
2122
- }
2123
-
2124
- //
2125
- var StyleSheetContext = React.createContext();
2126
- var StyleSheetConsumer = StyleSheetContext.Consumer;
2127
- var StylisContext = React.createContext();
2128
- var StylisConsumer = StylisContext.Consumer;
2129
- var masterSheet = new StyleSheet();
2130
- var masterStylis = createStylisInstance();
2131
- function useStyleSheet() {
2132
- return useContext(StyleSheetContext) || masterSheet;
2133
- }
2134
- function useStylis() {
2135
- return useContext(StylisContext) || masterStylis;
2136
- }
2137
-
2138
- //
2139
-
2140
- var Keyframes = /*#__PURE__*/function () {
2141
- function Keyframes(name, stringifyArgs) {
2142
- var _this = this;
2143
-
2144
- this.inject = function (styleSheet) {
2145
- if (!styleSheet.hasNameForId(_this.id, _this.name)) {
2146
- styleSheet.insertRules(_this.id, _this.name, masterStylis.apply(void 0, _this.stringifyArgs));
2147
- }
2148
- };
2149
-
2150
- this.toString = function () {
2151
- return throwStyledComponentsError(12, String(_this.name));
2152
- };
2153
-
2154
- this.name = name;
2155
- this.id = "sc-keyframes-" + name;
2156
- this.stringifyArgs = stringifyArgs;
2157
- }
2158
-
2159
- var _proto = Keyframes.prototype;
2160
-
2161
- _proto.getName = function getName() {
2162
- return this.name;
2163
- };
2164
-
2165
- return Keyframes;
2166
- }();
2167
-
2168
- //
2169
-
2170
- /**
2171
- * inlined version of
2172
- * https://github.com/facebook/fbjs/blob/master/packages/fbjs/src/core/hyphenateStyleName.js
2173
- */
2174
- var uppercasePattern = /([A-Z])/g;
2175
- var msPattern = /^ms-/;
2176
- /**
2177
- * Hyphenates a camelcased CSS property name, for example:
2178
- *
2179
- * > hyphenateStyleName('backgroundColor')
2180
- * < "background-color"
2181
- * > hyphenateStyleName('MozTransition')
2182
- * < "-moz-transition"
2183
- * > hyphenateStyleName('msTransition')
2184
- * < "-ms-transition"
2185
- *
2186
- * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
2187
- * is converted to `-ms-`.
2188
- *
2189
- * @param {string} string
2190
- * @return {string}
2191
- */
2192
-
2193
- function hyphenateStyleName(string) {
2194
- return string.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
2195
- }
2196
-
2197
- //
2198
-
2199
- function addUnitIfNeeded(name, value) {
2200
- // https://github.com/amilajack/eslint-plugin-flowtype-errors/issues/133
2201
- // $FlowFixMe
2202
- if (value == null || typeof value === 'boolean' || value === '') {
2203
- return '';
2204
- }
2205
-
2206
- if (typeof value === 'number' && value !== 0 && !(name in unitlessKeys)) {
2207
- return value + "px"; // Presumes implicit 'px' suffix for unitless numbers
2208
- }
2209
-
2210
- return String(value).trim();
2211
- }
2212
-
2213
- //
2214
- /**
2215
- * It's falsish not falsy because 0 is allowed.
2216
- */
2217
-
2218
- var isFalsish = function isFalsish(chunk) {
2219
- return chunk === undefined || chunk === null || chunk === false || chunk === '';
2220
- };
2221
-
2222
- var objToCssArray = function objToCssArray(obj, prevKey) {
2223
- var rules = [];
2224
- var keys = Object.keys(obj);
2225
- keys.forEach(function (key) {
2226
- if (!isFalsish(obj[key])) {
2227
- if (isPlainObject(obj[key])) {
2228
- rules.push.apply(rules, objToCssArray(obj[key], key));
2229
- return rules;
2230
- } else if (isFunction(obj[key])) {
2231
- rules.push(hyphenateStyleName(key) + ":", obj[key], ';');
2232
- return rules;
2233
- }
2234
-
2235
- rules.push(hyphenateStyleName(key) + ": " + addUnitIfNeeded(key, obj[key]) + ";");
2236
- }
2237
-
2238
- return rules;
2239
- });
2240
- return prevKey ? [prevKey + " {"].concat(rules, ['}']) : rules;
2241
- };
2242
- function flatten(chunk, executionContext, styleSheet) {
2243
- if (Array.isArray(chunk)) {
2244
- var ruleSet = [];
2245
-
2246
- for (var i = 0, len = chunk.length, result; i < len; i += 1) {
2247
- result = flatten(chunk[i], executionContext, styleSheet);
2248
- if (result === '') continue;else if (Array.isArray(result)) ruleSet.push.apply(ruleSet, result);else ruleSet.push(result);
2249
- }
2250
-
2251
- return ruleSet;
2252
- }
2253
-
2254
- if (isFalsish(chunk)) {
2255
- return '';
2256
- }
2257
- /* Handle other components */
2258
-
2259
-
2260
- if (isStyledComponent(chunk)) {
2261
- return "." + chunk.styledComponentId;
2262
- }
2263
- /* Either execute or defer the function */
2264
-
2265
-
2266
- if (isFunction(chunk)) {
2267
- if (isStatelessFunction(chunk) && executionContext) {
2268
- var _result = chunk(executionContext);
2269
-
2270
- if (process.env.NODE_ENV !== 'production' && reactIs_18(_result)) {
2271
- // eslint-disable-next-line no-console
2272
- console.warn(getComponentName(chunk) + " 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.");
2273
- }
2274
-
2275
- return flatten(_result, executionContext, styleSheet);
2276
- } else return chunk;
2277
- }
2278
-
2279
- if (chunk instanceof Keyframes) {
2280
- if (styleSheet) {
2281
- chunk.inject(styleSheet);
2282
- return chunk.getName();
2283
- } else return chunk;
2284
- }
2285
- /* Handle objects */
2286
-
2287
-
2288
- return isPlainObject(chunk) ? objToCssArray(chunk) : chunk.toString();
2289
- }
2290
-
2291
- //
2292
- function css(styles) {
2293
- for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2294
- interpolations[_key - 1] = arguments[_key];
2295
- }
2296
-
2297
- if (isFunction(styles) || isPlainObject(styles)) {
2298
- // $FlowFixMe
2299
- return flatten(interleave(EMPTY_ARRAY, [styles].concat(interpolations)));
2300
- }
2301
-
2302
- if (interpolations.length === 0 && styles.length === 1 && typeof styles[0] === "string") {
2303
- // $FlowFixMe
2304
- return styles;
2305
- } // $FlowFixMe
2306
-
2307
-
2308
- return flatten(interleave(styles, interpolations));
2309
- }
2310
-
2311
- function constructWithOptions(componentConstructor, tag, options) {
2312
- if (options === void 0) {
2313
- options = EMPTY_OBJECT;
2314
- }
2315
-
2316
- if (!reactIs_27(tag)) {
2317
- return throwStyledComponentsError(1, String(tag));
2318
- }
2319
- /* This is callable directly as a template function */
2320
- // $FlowFixMe: Not typed to avoid destructuring arguments
2321
-
2322
-
2323
- var templateFunction = function templateFunction() {
2324
- return componentConstructor(tag, options, css.apply(void 0, arguments));
2325
- };
2326
- /* If config methods are called, wrap up a new template function and merge options */
2327
-
2328
-
2329
- templateFunction.withConfig = function (config) {
2330
- return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {}, config));
2331
- };
2332
- /* Modify/inject new props at runtime */
2333
-
2334
-
2335
- templateFunction.attrs = function (attrs) {
2336
- return constructWithOptions(componentConstructor, tag, _extends$1({}, options, {
2337
- attrs: Array.prototype.concat(options.attrs, attrs).filter(Boolean)
2338
- }));
2339
- };
2340
-
2341
- return templateFunction;
2342
- }
2343
-
2344
- /* eslint-disable */
2345
-
2346
- /**
2347
- mixin-deep; https://github.com/jonschlinkert/mixin-deep
2348
- Inlined such that it will be consistently transpiled to an IE-compatible syntax.
2349
-
2350
- The MIT License (MIT)
2351
-
2352
- Copyright (c) 2014-present, Jon Schlinkert.
2353
-
2354
- Permission is hereby granted, free of charge, to any person obtaining a copy
2355
- of this software and associated documentation files (the "Software"), to deal
2356
- in the Software without restriction, including without limitation the rights
2357
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2358
- copies of the Software, and to permit persons to whom the Software is
2359
- furnished to do so, subject to the following conditions:
2360
-
2361
- The above copyright notice and this permission notice shall be included in
2362
- all copies or substantial portions of the Software.
2363
-
2364
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2365
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2366
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2367
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2368
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2369
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2370
- THE SOFTWARE.
2371
- */
2372
- var isObject = function isObject(val) {
2373
- return typeof val === 'function' || typeof val === 'object' && val !== null && !Array.isArray(val);
2374
- };
2375
-
2376
- var isValidKey = function isValidKey(key) {
2377
- return key !== '__proto__' && key !== 'constructor' && key !== 'prototype';
2378
- };
2379
-
2380
- function mixin(target, val, key) {
2381
- var obj = target[key];
2382
-
2383
- if (isObject(val) && isObject(obj)) {
2384
- mixinDeep(obj, val);
2385
- } else {
2386
- target[key] = val;
2387
- }
2388
- }
2389
-
2390
- function mixinDeep(target) {
2391
- for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2392
- rest[_key - 1] = arguments[_key];
2393
- }
2394
-
2395
- for (var _i = 0, _rest = rest; _i < _rest.length; _i++) {
2396
- var obj = _rest[_i];
2397
-
2398
- if (isObject(obj)) {
2399
- for (var key in obj) {
2400
- if (isValidKey(key)) {
2401
- mixin(target, obj[key], key);
2402
- }
2403
- }
2404
- }
2405
- }
2406
-
2407
- return target;
2408
- }
2409
-
2410
- //
2411
-
2412
- /* eslint-disable no-bitwise */
2413
- var AD_REPLACER_R = /(a)(d)/gi;
2414
- /* This is the "capacity" of our alphabet i.e. 2x26 for all letters plus their capitalised
2415
- * counterparts */
2416
-
2417
- var charsLength = 52;
2418
- /* start at 75 for 'a' until 'z' (25) and then start at 65 for capitalised letters */
2419
-
2420
- var getAlphabeticChar = function getAlphabeticChar(code) {
2421
- return String.fromCharCode(code + (code > 25 ? 39 : 97));
2422
- };
2423
- /* input a number, usually a hash and convert it to base-52 */
2424
-
2425
-
2426
- function generateAlphabeticName(code) {
2427
- var name = '';
2428
- var x;
2429
- /* get a char and divide by alphabet-length */
2430
-
2431
- for (x = Math.abs(code); x > charsLength; x = x / charsLength | 0) {
2432
- name = getAlphabeticChar(x % charsLength) + name;
2433
- }
2434
-
2435
- return (getAlphabeticChar(x % charsLength) + name).replace(AD_REPLACER_R, '$1-$2');
2436
- }
2437
-
2438
- //
2439
- function isStaticRules(rules) {
2440
- for (var i = 0; i < rules.length; i += 1) {
2441
- var rule = rules[i];
2442
-
2443
- if (isFunction(rule) && !isStyledComponent(rule)) {
2444
- // functions are allowed to be static if they're just being
2445
- // used to get the classname of a nested styled component
2446
- return false;
2447
- }
2448
- }
2449
-
2450
- return true;
2451
- }
2452
-
2453
- //
2454
- /*
2455
- ComponentStyle is all the CSS-specific stuff, not
2456
- the React-specific stuff.
2457
- */
2458
-
2459
- var ComponentStyle = /*#__PURE__*/function () {
2460
- function ComponentStyle(rules, componentId) {
2461
- this.rules = rules;
2462
- this.staticRulesId = '';
2463
- this.isStatic = process.env.NODE_ENV === 'production' && isStaticRules(rules);
2464
- this.componentId = componentId;
2465
- this.baseHash = hash(componentId); // NOTE: This registers the componentId, which ensures a consistent order
2466
- // for this component's styles compared to others
2467
-
2468
- StyleSheet.registerId(componentId);
2469
- }
2470
- /*
2471
- * Flattens a rule set into valid CSS
2472
- * Hashes it, wraps the whole chunk in a .hash1234 {}
2473
- * Returns the hash to be injected on render()
2474
- * */
2475
-
2476
-
2477
- var _proto = ComponentStyle.prototype;
2478
-
2479
- _proto.generateAndInjectStyles = function generateAndInjectStyles(executionContext, styleSheet, stylis) {
2480
- var componentId = this.componentId; // force dynamic classnames if user-supplied stylis plugins are in use
2481
-
2482
- if (this.isStatic && !stylis.hash) {
2483
- if (this.staticRulesId && styleSheet.hasNameForId(componentId, this.staticRulesId)) {
2484
- return this.staticRulesId;
2485
- }
2486
-
2487
- var cssStatic = flatten(this.rules, executionContext, styleSheet).join('');
2488
- var name = generateAlphabeticName(phash(this.baseHash, cssStatic.length) >>> 0);
2489
-
2490
- if (!styleSheet.hasNameForId(componentId, name)) {
2491
- var cssStaticFormatted = stylis(cssStatic, "." + name, undefined, componentId);
2492
- styleSheet.insertRules(componentId, name, cssStaticFormatted);
2493
- }
2494
-
2495
- this.staticRulesId = name;
2496
- return name;
2497
- } else {
2498
- var length = this.rules.length;
2499
- var dynamicHash = phash(this.baseHash, stylis.hash);
2500
- var css = '';
2501
-
2502
- for (var i = 0; i < length; i++) {
2503
- var partRule = this.rules[i];
2504
-
2505
- if (typeof partRule === 'string') {
2506
- css += partRule;
2507
- if (process.env.NODE_ENV !== 'production') dynamicHash = phash(dynamicHash, partRule + i);
2508
- } else {
2509
- var partChunk = flatten(partRule, executionContext, styleSheet);
2510
- var partString = Array.isArray(partChunk) ? partChunk.join('') : partChunk;
2511
- dynamicHash = phash(dynamicHash, partString + i);
2512
- css += partString;
2513
- }
2514
- }
2515
-
2516
- var _name = generateAlphabeticName(dynamicHash >>> 0);
2517
-
2518
- if (!styleSheet.hasNameForId(componentId, _name)) {
2519
- var cssFormatted = stylis(css, "." + _name, undefined, componentId);
2520
- styleSheet.insertRules(componentId, _name, cssFormatted);
2521
- }
2522
-
2523
- return _name;
2524
- }
2525
- };
2526
-
2527
- return ComponentStyle;
2528
- }();
2529
-
2530
- //
2531
- var LIMIT = 200;
2532
- var createWarnTooManyClasses = (function (displayName, componentId) {
2533
- var generatedClasses = {};
2534
- var warningSeen = false;
2535
- return function (className) {
2536
- if (!warningSeen) {
2537
- generatedClasses[className] = true;
2538
-
2539
- if (Object.keys(generatedClasses).length >= LIMIT) {
2540
- // Unable to find latestRule in test environment.
2541
-
2542
- /* eslint-disable no-console, prefer-template */
2543
- var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
2544
- console.warn("Over " + LIMIT + " classes were generated for component " + displayName + parsedIdString + ".\n" + 'Consider using the attrs method, together with a style object for frequently changed styles.\n' + 'Example:\n' + ' const Component = styled.div.attrs(props => ({\n' + ' style: {\n' + ' background: props.background,\n' + ' },\n' + ' }))`width: 100%;`\n\n' + ' <Component />');
2545
- warningSeen = true;
2546
- generatedClasses = {};
2547
- }
2548
- }
2549
- };
2550
- });
2551
-
2552
- //
2553
- var invalidHookCallRe = /invalid hook call/i;
2554
- var seen = new Set();
2555
- var checkDynamicCreation = function checkDynamicCreation(displayName, componentId) {
2556
- if (process.env.NODE_ENV !== 'production') {
2557
- var parsedIdString = componentId ? " with the id of \"" + componentId + "\"" : '';
2558
- var message = "The component " + displayName + parsedIdString + " has been created dynamically.\n" + 'You may see this warning because you\'ve called styled inside another component.\n' + 'To resolve this only create new StyledComponents outside of any render method and function component.';
2559
-
2560
- try {
2561
- // We purposefully call `useRef` outside of a component and expect it to throw
2562
- // If it doesn't, then we're inside another component.
2563
- // eslint-disable-next-line react-hooks/rules-of-hooks
2564
- useRef();
2565
-
2566
- if (!seen.has(message)) {
2567
- // eslint-disable-next-line no-console
2568
- console.warn(message);
2569
- seen.add(message);
2570
- }
2571
- } catch (error) {
2572
- // The error here is expected, since we're expecting anything that uses `checkDynamicCreation` to
2573
- // be called outside of a React component.
2574
- if (invalidHookCallRe.test(error.message)) {
2575
- // This shouldn't happen, but resets `warningSeen` if we had this error happen intermittently
2576
- seen["delete"](message);
2577
- }
2578
- }
2579
- }
2580
- };
2581
-
2582
- //
2583
- var determineTheme = (function (props, providedTheme, defaultProps) {
2584
- if (defaultProps === void 0) {
2585
- defaultProps = EMPTY_OBJECT;
2586
- }
2587
-
2588
- return props.theme !== defaultProps.theme && props.theme || providedTheme || defaultProps.theme;
2589
- });
2590
-
2591
- //
2592
- // Source: https://www.w3.org/TR/cssom-1/#serialize-an-identifier
2593
- // Control characters and non-letter first symbols are not supported
2594
- var escapeRegex = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g;
2595
- var dashesAtEnds = /(^-|-$)/g;
2596
- /**
2597
- * TODO: Explore using CSS.escape when it becomes more available
2598
- * in evergreen browsers.
2599
- */
2600
-
2601
- function escape(str) {
2602
- return str // Replace all possible CSS selectors
2603
- .replace(escapeRegex, '-') // Remove extraneous hyphens at the start and end
2604
- .replace(dashesAtEnds, '');
2605
- }
2606
-
2607
- //
2608
- function isTag(target) {
2609
- return typeof target === 'string' && (process.env.NODE_ENV !== 'production' ? target.charAt(0) === target.charAt(0).toLowerCase() : true);
2610
- }
2611
-
2612
- //
2613
- function generateDisplayName(target) {
2614
- // $FlowFixMe
2615
- return isTag(target) ? "styled." + target : "Styled(" + getComponentName(target) + ")";
2616
- }
2617
-
2618
- //
2619
- var generateComponentId = (function (str) {
2620
- return generateAlphabeticName(hash(str) >>> 0);
2621
- });
2622
-
2623
- /**
2624
- * Convenience function for joining strings to form className chains
2625
- */
2626
- function joinStrings(a, b) {
2627
- return a && b ? a + " " + b : a || b;
2628
- }
2629
-
2630
- var ThemeContext = React.createContext();
2631
- var ThemeConsumer = ThemeContext.Consumer;
2632
-
2633
- function mergeTheme(theme, outerTheme) {
2634
- if (!theme) {
2635
- return throwStyledComponentsError(14);
2636
- }
2637
-
2638
- if (isFunction(theme)) {
2639
- var mergedTheme = theme(outerTheme);
2640
-
2641
- if (process.env.NODE_ENV !== 'production' && (mergedTheme === null || Array.isArray(mergedTheme) || typeof mergedTheme !== 'object')) {
2642
- return throwStyledComponentsError(7);
2643
- }
2644
-
2645
- return mergedTheme;
2646
- }
2647
-
2648
- if (Array.isArray(theme) || typeof theme !== 'object') {
2649
- return throwStyledComponentsError(8);
2650
- }
2651
-
2652
- return outerTheme ? _extends$1({}, outerTheme, {}, theme) : theme;
2653
- }
2654
- /**
2655
- * Provide a theme to an entire react component tree via context
2656
- */
2657
-
2658
-
2659
- function ThemeProvider(props) {
2660
- var outerTheme = useContext(ThemeContext);
2661
- var themeContext = useMemo(function () {
2662
- return mergeTheme(props.theme, outerTheme);
2663
- }, [props.theme, outerTheme]);
2664
-
2665
- if (!props.children) {
2666
- return null;
2667
- }
2668
-
2669
- return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
2670
- value: themeContext
2671
- }, props.children);
2672
- }
2673
-
2674
- /* global $Call */
2675
-
2676
- var identifiers = {};
2677
- /* We depend on components having unique IDs */
2678
-
2679
- function generateId(displayName, parentComponentId) {
2680
- var name = typeof displayName !== 'string' ? 'sc' : escape(displayName); // Ensure that no displayName can lead to duplicate componentIds
2681
-
2682
- identifiers[name] = (identifiers[name] || 0) + 1;
2683
- var componentId = name + "-" + generateComponentId(name + identifiers[name]);
2684
- return parentComponentId ? parentComponentId + "-" + componentId : componentId;
2685
- }
2686
-
2687
- function useResolvedAttrs(theme, props, attrs) {
2688
- if (theme === void 0) {
2689
- theme = EMPTY_OBJECT;
2690
- }
2691
-
2692
- // NOTE: can't memoize this
2693
- // returns [context, resolvedAttrs]
2694
- // where resolvedAttrs is only the things injected by the attrs themselves
2695
- var context = _extends$1({}, props, {
2696
- theme: theme
2697
- });
2698
-
2699
- var resolvedAttrs = {};
2700
- attrs.forEach(function (attrDef) {
2701
- var resolvedAttrDef = attrDef;
2702
- var key;
2703
-
2704
- if (isFunction(resolvedAttrDef)) {
2705
- resolvedAttrDef = resolvedAttrDef(context);
2706
- }
2707
- /* eslint-disable guard-for-in */
2708
-
2709
-
2710
- for (key in resolvedAttrDef) {
2711
- context[key] = resolvedAttrs[key] = key === 'className' ? joinStrings(resolvedAttrs[key], resolvedAttrDef[key]) : resolvedAttrDef[key];
2712
- }
2713
- /* eslint-enable guard-for-in */
2714
-
2715
- });
2716
- return [context, resolvedAttrs];
2717
- }
2718
-
2719
- function useInjectedStyle(componentStyle, hasAttrs, resolvedAttrs, warnTooManyClasses) {
2720
- var styleSheet = useStyleSheet();
2721
- var stylis = useStylis(); // statically styled-components don't need to build an execution context object,
2722
- // and shouldn't be increasing the number of class names
2723
-
2724
- var isStatic = componentStyle.isStatic && !hasAttrs;
2725
- var className = isStatic ? componentStyle.generateAndInjectStyles(EMPTY_OBJECT, styleSheet, stylis) : componentStyle.generateAndInjectStyles(resolvedAttrs, styleSheet, stylis);
2726
- useDebugValue(className);
2727
-
2728
- if (process.env.NODE_ENV !== 'production' && !isStatic && warnTooManyClasses) {
2729
- warnTooManyClasses(className);
2730
- }
2731
-
2732
- return className;
2733
- }
2734
-
2735
- function useStyledComponentImpl(forwardedComponent, props, forwardedRef) {
2736
- var componentAttrs = forwardedComponent.attrs,
2737
- componentStyle = forwardedComponent.componentStyle,
2738
- defaultProps = forwardedComponent.defaultProps,
2739
- foldedComponentIds = forwardedComponent.foldedComponentIds,
2740
- shouldForwardProp = forwardedComponent.shouldForwardProp,
2741
- styledComponentId = forwardedComponent.styledComponentId,
2742
- target = forwardedComponent.target;
2743
- useDebugValue(styledComponentId); // NOTE: the non-hooks version only subscribes to this when !componentStyle.isStatic,
2744
- // but that'd be against the rules-of-hooks. We could be naughty and do it anyway as it
2745
- // should be an immutable value, but behave for now.
2746
-
2747
- var theme = determineTheme(props, useContext(ThemeContext), defaultProps);
2748
-
2749
- var _useResolvedAttrs = useResolvedAttrs(theme || EMPTY_OBJECT, props, componentAttrs),
2750
- context = _useResolvedAttrs[0],
2751
- attrs = _useResolvedAttrs[1];
2752
-
2753
- var generatedClassName = useInjectedStyle(componentStyle, componentAttrs.length > 0, context, process.env.NODE_ENV !== 'production' ? forwardedComponent.warnTooManyClasses : undefined);
2754
- var refToForward = forwardedRef;
2755
- var elementToBeCreated = attrs.$as || props.$as || attrs.as || props.as || target;
2756
- var isTargetTag = isTag(elementToBeCreated);
2757
- var computedProps = attrs !== props ? _extends$1({}, props, {}, attrs) : props;
2758
- var propFilterFn = shouldForwardProp || isTargetTag && index;
2759
- var propsForElement = {}; // eslint-disable-next-line guard-for-in
2760
-
2761
- for (var key in computedProps) {
2762
- if (key[0] === '$' || key === 'as') continue;else if (key === 'forwardedAs') {
2763
- propsForElement.as = computedProps[key];
2764
- } else if (!propFilterFn || propFilterFn(key, index)) {
2765
- // Don't pass through non HTML tags through to HTML elements
2766
- propsForElement[key] = computedProps[key];
2767
- }
2768
- }
2769
-
2770
- if (props.style && attrs.style !== props.style) {
2771
- propsForElement.style = _extends$1({}, props.style, {}, attrs.style);
2772
- }
2773
-
2774
- propsForElement.className = Array.prototype.concat(foldedComponentIds, styledComponentId, generatedClassName !== styledComponentId ? generatedClassName : null, props.className, attrs.className).filter(Boolean).join(' ');
2775
- propsForElement.ref = refToForward;
2776
- return createElement(elementToBeCreated, propsForElement);
2777
- }
2778
-
2779
- function createStyledComponent(target, options, rules) {
2780
- var isTargetStyledComp = isStyledComponent(target);
2781
- var isCompositeComponent = !isTag(target);
2782
- var _options$displayName = options.displayName,
2783
- displayName = _options$displayName === void 0 ? generateDisplayName(target) : _options$displayName,
2784
- _options$componentId = options.componentId,
2785
- componentId = _options$componentId === void 0 ? generateId(options.displayName, options.parentComponentId) : _options$componentId,
2786
- _options$attrs = options.attrs,
2787
- attrs = _options$attrs === void 0 ? EMPTY_ARRAY : _options$attrs;
2788
- var styledComponentId = options.displayName && options.componentId ? escape(options.displayName) + "-" + options.componentId : options.componentId || componentId; // fold the underlying StyledComponent attrs up (implicit extend)
2789
-
2790
- var finalAttrs = // $FlowFixMe
2791
- isTargetStyledComp && target.attrs ? Array.prototype.concat(target.attrs, attrs).filter(Boolean) : attrs; // eslint-disable-next-line prefer-destructuring
2792
-
2793
- var shouldForwardProp = options.shouldForwardProp; // $FlowFixMe
2794
-
2795
- if (isTargetStyledComp && target.shouldForwardProp) {
2796
- if (shouldForwardProp) {
2797
- // compose nested shouldForwardProp calls
2798
- shouldForwardProp = function shouldForwardProp(prop, filterFn) {
2799
- return (// $FlowFixMe
2800
- target.shouldForwardProp(prop, filterFn) && options.shouldForwardProp(prop, filterFn)
2801
- );
2802
- };
2803
- } else {
2804
- // eslint-disable-next-line prefer-destructuring
2805
- shouldForwardProp = target.shouldForwardProp;
2806
- }
2807
- }
2808
-
2809
- var componentStyle = new ComponentStyle(isTargetStyledComp ? // fold the underlying StyledComponent rules up (implicit extend)
2810
- // $FlowFixMe
2811
- target.componentStyle.rules.concat(rules) : rules, styledComponentId);
2812
- /**
2813
- * forwardRef creates a new interim component, which we'll take advantage of
2814
- * instead of extending ParentComponent to create _another_ interim class
2815
- */
2816
-
2817
- var WrappedStyledComponent; // eslint-disable-next-line react-hooks/rules-of-hooks
2818
-
2819
- var forwardRef = function forwardRef(props, ref) {
2820
- return useStyledComponentImpl(WrappedStyledComponent, props, ref);
2821
- };
2822
-
2823
- forwardRef.displayName = displayName; // $FlowFixMe this is a forced cast to merge it StyledComponentWrapperProperties
2824
-
2825
- WrappedStyledComponent = React.forwardRef(forwardRef);
2826
- WrappedStyledComponent.attrs = finalAttrs;
2827
- WrappedStyledComponent.componentStyle = componentStyle;
2828
- WrappedStyledComponent.displayName = displayName;
2829
- WrappedStyledComponent.shouldForwardProp = shouldForwardProp; // this static is used to preserve the cascade of static classes for component selector
2830
- // purposes; this is especially important with usage of the css prop
2831
-
2832
- WrappedStyledComponent.foldedComponentIds = isTargetStyledComp ? // $FlowFixMe
2833
- Array.prototype.concat(target.foldedComponentIds, target.styledComponentId) : EMPTY_ARRAY;
2834
- WrappedStyledComponent.styledComponentId = styledComponentId; // fold the underlying StyledComponent target up since we folded the styles
2835
-
2836
- WrappedStyledComponent.target = isTargetStyledComp ? // $FlowFixMe
2837
- target.target : target; // $FlowFixMe
2838
-
2839
- WrappedStyledComponent.withComponent = function withComponent(tag) {
2840
- var previousComponentId = options.componentId,
2841
- optionsToCopy = _objectWithoutPropertiesLoose$1(options, ["componentId"]);
2842
-
2843
- var newComponentId = previousComponentId && previousComponentId + "-" + (isTag(tag) ? tag : escape(getComponentName(tag)));
2844
-
2845
- var newOptions = _extends$1({}, optionsToCopy, {
2846
- attrs: finalAttrs,
2847
- componentId: newComponentId
2848
- });
2849
-
2850
- return createStyledComponent(tag, newOptions, rules);
2851
- }; // $FlowFixMe
2852
-
2853
-
2854
- Object.defineProperty(WrappedStyledComponent, 'defaultProps', {
2855
- get: function get() {
2856
- return this._foldedDefaultProps;
2857
- },
2858
- set: function set(obj) {
2859
- // $FlowFixMe
2860
- this._foldedDefaultProps = isTargetStyledComp ? mixinDeep({}, target.defaultProps, obj) : obj;
2861
- }
2862
- });
2863
-
2864
- if (process.env.NODE_ENV !== 'production') {
2865
- checkDynamicCreation(displayName, styledComponentId);
2866
- WrappedStyledComponent.warnTooManyClasses = createWarnTooManyClasses(displayName, styledComponentId);
2867
- } // $FlowFixMe
2868
-
2869
-
2870
- WrappedStyledComponent.toString = function () {
2871
- return "." + WrappedStyledComponent.styledComponentId;
2872
- };
2873
-
2874
- if (isCompositeComponent) {
2875
- hoistNonReactStatics_cjs(WrappedStyledComponent, target, {
2876
- // all SC-specific things should not be hoisted
2877
- attrs: true,
2878
- componentStyle: true,
2879
- displayName: true,
2880
- foldedComponentIds: true,
2881
- shouldForwardProp: true,
2882
- self: true,
2883
- styledComponentId: true,
2884
- target: true,
2885
- withComponent: true
2886
- });
2887
- }
2888
-
2889
- return WrappedStyledComponent;
2890
- }
2891
-
2892
- //
2893
- // Thanks to ReactDOMFactories for this handy list!
2894
- var domElements = ['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', // SVG
2895
- 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'marker', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2896
-
2897
- //
2898
-
2899
- var styled = function styled(tag) {
2900
- return constructWithOptions(createStyledComponent, tag);
2901
- }; // Shorthands for all valid HTML Elements
2902
-
2903
-
2904
- domElements.forEach(function (domElement) {
2905
- styled[domElement] = styled(domElement);
2906
- });
2907
- /* Warning if you've imported this file on React Native */
2908
-
2909
- if (process.env.NODE_ENV !== 'production' && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
2910
- // eslint-disable-next-line no-console
2911
- console.warn("It looks like you've imported 'styled-components' on React Native.\n" + "Perhaps you're looking to import 'styled-components/native'?\n" + 'Read more about this at https://www.styled-components.com/docs/basics#react-native');
2912
- }
2913
- /* Warning if there are several instances of styled-components */
2914
-
2915
-
2916
- if (process.env.NODE_ENV !== 'production' && process.env.NODE_ENV !== 'test' && typeof window !== 'undefined') {
2917
- window['__styled-components-init__'] = window['__styled-components-init__'] || 0;
2918
-
2919
- if (window['__styled-components-init__'] === 1) {
2920
- // eslint-disable-next-line no-console
2921
- console.warn("It looks like there are several instances of 'styled-components' initialized in this application. " + 'This may cause dynamic styles not rendering properly, errors happening during rehydration process, ' + 'missing theme prop, and makes your application bigger without a good reason.\n\n' + 'See https://s-c.sh/2BAXzed for more info.');
2922
- }
2923
-
2924
- window['__styled-components-init__'] += 1;
2925
- }
2926
-
2927
217
  /*! *****************************************************************************
2928
218
  Copyright (c) Microsoft Corporation.
2929
219
 
@@ -3409,17 +699,17 @@ var FLOAT_32_SUPPORTED = typeof Float32Array !== 'undefined';
3409
699
  var a = function (a1, a2) {
3410
700
  return 1.0 - 3.0 * a2 + 3.0 * a1;
3411
701
  };
3412
- var b$1 = function (a1, a2) {
702
+ var b = function (a1, a2) {
3413
703
  return 3.0 * a2 - 6.0 * a1;
3414
704
  };
3415
- var c$1 = function (a1) {
705
+ var c = function (a1) {
3416
706
  return 3.0 * a1;
3417
707
  };
3418
708
  var getSlope = function (t, a1, a2) {
3419
- return 3.0 * a(a1, a2) * t * t + 2.0 * b$1(a1, a2) * t + c$1(a1);
709
+ return 3.0 * a(a1, a2) * t * t + 2.0 * b(a1, a2) * t + c(a1);
3420
710
  };
3421
711
  var calcBezier = function (t, a1, a2) {
3422
- return ((a(a1, a2) * t + b$1(a1, a2)) * t + c$1(a1)) * t;
712
+ return ((a(a1, a2) * t + b(a1, a2)) * t + c(a1)) * t;
3423
713
  };
3424
714
  function cubicBezier(mX1, mY1, mX2, mY2) {
3425
715
  var sampleValues = FLOAT_32_SUPPORTED ? new Float32Array(K_SPLINE_TABLE_SIZE) : new Array(K_SPLINE_TABLE_SIZE);
@@ -4430,7 +1720,7 @@ var createDOMStyler = function (node, props) {
4430
1720
  var getStyler = function (node, props) {
4431
1721
  return cache.has(node) ? cache.get(node) : createDOMStyler(node, props);
4432
1722
  };
4433
- function index$1(nodeOrSelector, props) {
1723
+ function index(nodeOrSelector, props) {
4434
1724
  var node = typeof nodeOrSelector === 'string' ? document.querySelector(nodeOrSelector) : nodeOrSelector;
4435
1725
  return getStyler(node, props);
4436
1726
  }
@@ -5492,7 +2782,7 @@ var pointer = function (props) {
5492
2782
  return touches;
5493
2783
  }, getFirstTouch) : mouse(props);
5494
2784
  };
5495
- var index$1$1 = function (_a) {
2785
+ var index$1 = function (_a) {
5496
2786
  if (_a === void 0) {
5497
2787
  _a = {};
5498
2788
  }
@@ -6123,7 +3413,7 @@ var interpolate$1 = transformers.interpolate;
6123
3413
  var singleAxisPointer = function (axis) {
6124
3414
  return function (from) {
6125
3415
  var _a;
6126
- return index$1$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
3416
+ return index$1((_a = {}, _a[axis] = typeof from === 'string' ? parseFloat(from) : from, _a)).pipe(function (v) {
6127
3417
  return v[axis];
6128
3418
  });
6129
3419
  };
@@ -6751,7 +4041,7 @@ var createPoseConfig = function (element, _a) {
6751
4041
  hoverable: hoverable,
6752
4042
  focusable: focusable,
6753
4043
  pressable: pressable,
6754
- element: element, elementStyler: index$1(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
4044
+ element: element, elementStyler: index(element, { preparseOutput: false }), dimensions: createDimensions(element) }) });
6755
4045
  if (draggable) {
6756
4046
  var _b = dragPoses(draggable),
6757
4047
  drag = _b.drag,
@@ -6821,7 +4111,7 @@ var domPose$1 = function (element, config) {
6821
4111
  return domPose(createPoseConfig(element, config));
6822
4112
  };
6823
4113
 
6824
- function memoize$1(fn) {
4114
+ function memoize(fn) {
6825
4115
  var cache = {};
6826
4116
  return function (arg) {
6827
4117
  if (cache[arg] === undefined) cache[arg] = fn(arg);
@@ -6829,10 +4119,10 @@ function memoize$1(fn) {
6829
4119
  };
6830
4120
  }
6831
4121
 
6832
- var reactPropsRegex$1 = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
4122
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
6833
4123
 
6834
- var index$2 = memoize$1(function (prop) {
6835
- return reactPropsRegex$1.test(prop) || prop.charCodeAt(0) === 111
4124
+ var index$2 = memoize(function (prop) {
4125
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
6836
4126
  /* o */
6837
4127
  && prop.charCodeAt(1) === 110
6838
4128
  /* n */
@@ -7734,6 +5024,12 @@ var TextSpan = styled.span.withConfig({
7734
5024
  return extraStyles;
7735
5025
  });
7736
5026
 
5027
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
5028
+
5029
+ function createCommonjsModule(fn, module) {
5030
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
5031
+ }
5032
+
7737
5033
  var numeral = createCommonjsModule(function (module) {
7738
5034
  /*! @preserve
7739
5035
  * numeral.js
@@ -8774,7 +6070,7 @@ var safeChildren = function safeChildren(children) {
8774
6070
 
8775
6071
  if (children && children instanceof Array) {
8776
6072
  return children.map(function (child) {
8777
- return unsafeValues.includes(child) ? /*#__PURE__*/React.createElement(Fragment$1, {
6073
+ return unsafeValues.includes(child) ? /*#__PURE__*/React.createElement(Fragment, {
8778
6074
  key: createUniqueId()
8779
6075
  }, replacement) : child;
8780
6076
  });
@@ -9076,7 +6372,7 @@ var Box = function Box(_ref) {
9076
6372
  onFocus: onFocus,
9077
6373
  onBlur: onBlur,
9078
6374
  onTouchEnd: onTouchEnd
9079
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6375
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9080
6376
  };
9081
6377
 
9082
6378
  var CenterWrapper = styled.div.withConfig({
@@ -9115,7 +6411,7 @@ var Center = function Center(_ref) {
9115
6411
  maxWidth: maxWidth,
9116
6412
  gutters: gutters,
9117
6413
  intrinsic: intrinsic
9118
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6414
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9119
6415
  };
9120
6416
 
9121
6417
  var _excluded$5 = ["overflow"];
@@ -9211,7 +6507,7 @@ var Cluster = function Cluster(_ref) {
9211
6507
  minHeight: minHeight,
9212
6508
  minWidth: minWidth,
9213
6509
  $nowrap: nowrap
9214
- }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6510
+ }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null))));
9215
6511
  };
9216
6512
 
9217
6513
  var GridWrapper = styled.div.withConfig({
@@ -9270,7 +6566,7 @@ var Grid = function Grid(_ref) {
9270
6566
  aboveMin: aboveMin,
9271
6567
  minColWidth: typeof minColWidth === "number" ? "".concat(minColWidth, "rem") : minColWidth,
9272
6568
  maxColWidth: typeof maxColWidth === "number" ? "".concat(maxColWidth, "rem") : maxColWidth
9273
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6569
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9274
6570
  };
9275
6571
 
9276
6572
  var _excluded$8 = ["onRight", "childGap", "contentMinWidth", "minHeight", "fullHeight"];
@@ -9354,7 +6650,7 @@ var Sidebar = function Sidebar(_ref) {
9354
6650
  contentMinWidth: contentMinWidth,
9355
6651
  fullHeight: fullHeight,
9356
6652
  minHeight: minHeight
9357
- }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6653
+ }, safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null))));
9358
6654
  };
9359
6655
 
9360
6656
  var StackWrapper = styled.div.withConfig({
@@ -9408,13 +6704,13 @@ var Stack = function Stack(_ref) {
9408
6704
  fullHeight: fullHeight,
9409
6705
  direction: direction,
9410
6706
  justify: justify
9411
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6707
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9412
6708
  };
9413
6709
 
9414
6710
  var CoverOuterContainer = styled.div.withConfig({
9415
6711
  displayName: "Coverstyled__CoverOuterContainer",
9416
6712
  componentId: "sc-1jhq379-0"
9417
- })(["box-sizing:border-box;display:flex;flex-direction:column;min-height:", ";padding:", ";min-width:", ";> *{margin-top:", ";margin-bottom:", ";}>:first-child{margin-top:0;}", " ", " >:last-child{margin-bottom:0;}"], function (_ref) {
6713
+ })(["box-sizing:border-box;display:flex;flex-direction:column;min-height:", ";padding:", ";min-width:", ";> *{margin-top:", ";margin-bottom:", ";}> :first-child{margin-top:0;}", " ", " > :last-child{margin-bottom:0;}"], function (_ref) {
9418
6714
  var minHeight = _ref.minHeight;
9419
6715
  return minHeight;
9420
6716
  }, function (_ref2) {
@@ -9475,7 +6771,7 @@ var Cover = function Cover(_ref) {
9475
6771
  childGap: childGap,
9476
6772
  centerOverride: centerOverride,
9477
6773
  fillCenter: fillCenter
9478
- }, rest), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment$1, null), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment$1, null));
6774
+ }, rest), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment, null), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)), singleChild ? /*#__PURE__*/React.createElement("div", null) : /*#__PURE__*/React.createElement(Fragment, null));
9479
6775
  };
9480
6776
 
9481
6777
  var FrameOuterContainer = styled.div.withConfig({
@@ -9512,7 +6808,7 @@ var Frame = function Frame(_ref) {
9512
6808
  return /*#__PURE__*/React.createElement(FrameOuterContainer, _extends({
9513
6809
  numerator: numerator,
9514
6810
  denominator: denominator
9515
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6811
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9516
6812
  };
9517
6813
 
9518
6814
  var SwitcherOuterContainer = styled.div.withConfig({
@@ -9615,7 +6911,7 @@ var Switcher = function Switcher(_ref) {
9615
6911
  padding: padding,
9616
6912
  extraStyles: extraStyles,
9617
6913
  constrainMobile: constrainMobile
9618
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null))));
6914
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null))));
9619
6915
  };
9620
6916
 
9621
6917
  var ImposterWrapper = styled.div.withConfig({
@@ -9696,7 +6992,7 @@ var Imposter = function Imposter(_ref) {
9696
6992
  left: left,
9697
6993
  centered: centered,
9698
6994
  visible: visible
9699
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
6995
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
9700
6996
  };
9701
6997
 
9702
6998
  var Observer$1 = /*#__PURE__*/function () {
@@ -10900,7 +8196,7 @@ var MountComponent = function (_a) {
10900
8196
  var ref = _a.innerRef, values = _a.values, isStatic = _a.isStatic;
10901
8197
  useEffect$1(function () {
10902
8198
  invariant(ref.current instanceof Element, "No `ref` found. Ensure components created with `motion.custom` forward refs using `React.forwardRef`");
10903
- var domStyler = index$1(ref.current, {
8199
+ var domStyler = index(ref.current, {
10904
8200
  preparseOutput: false,
10905
8201
  enableHardwareAcceleration: !isStatic,
10906
8202
  });
@@ -12145,9 +9441,9 @@ var createMotionComponent = function (_a) {
12145
9441
  ? null
12146
9442
  : loadFunctionalityComponents(ref, values, props, parentContext, controls, shouldInheritVariant);
12147
9443
  var renderedComponent = renderComponent(ref, style, values, props, isStatic);
12148
- return (createElement(Fragment$1, null,
9444
+ return (createElement(Fragment, null,
12149
9445
  createElement(MotionContext.Provider, { value: context }, renderedComponent),
12150
- createElement(Fragment$1, null,
9446
+ createElement(Fragment, null,
12151
9447
  createElement(Mount, { innerRef: ref, values: values, isStatic: isStatic }),
12152
9448
  functionality)));
12153
9449
  }
@@ -13629,7 +10925,7 @@ var checkAndConvertChangedValueTypes = function (values, ref, target, transition
13629
10925
  target = __assign({}, target);
13630
10926
  transitionEnd = __assign({}, transitionEnd);
13631
10927
  var element = ref.current;
13632
- var elementStyler = index$1(element);
10928
+ var elementStyler = index(element);
13633
10929
  var targetPositionalKeys = Object.keys(target).filter(isPositionalKey$1);
13634
10930
  // We want to remove any transform values that could affect the element's bounding box before
13635
10931
  // it's measured. We'll reapply these later.
@@ -13950,7 +11246,7 @@ var LayoutAnimation = /** @class */ (function (_super) {
13950
11246
  transform && (element.style.transform = transform);
13951
11247
  return;
13952
11248
  }
13953
- index$1(element).set({
11249
+ index(element).set({
13954
11250
  originX: delta.originX,
13955
11251
  originY: delta.originY,
13956
11252
  });
@@ -14471,7 +11767,7 @@ function createDomMotionConfig(Component) {
14471
11767
  return {
14472
11768
  values: values,
14473
11769
  readValueFromSource: function (key) {
14474
- return index$1(ref.current).get(key);
11770
+ return index(ref.current).get(key);
14475
11771
  },
14476
11772
  // TODO: This is a good second source of plugins. This function contains the CSS variable
14477
11773
  // and unit conversion support. These functions share a common signature. We could make another
@@ -14679,7 +11975,7 @@ var AnimatePresence = function (_a) {
14679
11975
  // we play onMount animations or not.
14680
11976
  if (isInitialRender.current) {
14681
11977
  isInitialRender.current = false;
14682
- return (createElement(Fragment$1, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
11978
+ return (createElement(Fragment, null, filteredChildren.map(function (child) { return (createElement(PresenceChild, { key: getChildKey(child), isPresent: true, initial: initial ? undefined : false }, child)); })));
14683
11979
  }
14684
11980
  // If this is a subsequent render, deal with entering and exiting children
14685
11981
  var childrenToRender = __spreadArrays(filteredChildren);
@@ -14740,7 +12036,7 @@ var AnimatePresence = function (_a) {
14740
12036
  childrenToRender.length > 1) {
14741
12037
  console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour.");
14742
12038
  }
14743
- return (createElement(Fragment$1, null, exiting.size
12039
+ return (createElement(Fragment, null, exiting.size
14744
12040
  ? childrenToRender
14745
12041
  : childrenToRender.map(function (child) { return cloneElement(child); })));
14746
12042
  };
@@ -14876,7 +12172,7 @@ var Motion = function Motion(_ref) {
14876
12172
  return /*#__PURE__*/React.createElement(MotionWrapper, _extends({
14877
12173
  position: position,
14878
12174
  padding: padding
14879
- }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
12175
+ }, rest), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
14880
12176
  };
14881
12177
 
14882
12178
  var ReelStyled = styled.div.withConfig({
@@ -14946,7 +12242,7 @@ var Reel = function Reel(_ref) {
14946
12242
  useUnorderedList: useUnorderedList
14947
12243
  }, rest, {
14948
12244
  role: useOrderedList || useUnorderedList ? "list" : "section"
14949
- }), safeChildren(children, /*#__PURE__*/React.createElement(Fragment$1, null)));
12245
+ }), safeChildren(children, /*#__PURE__*/React.createElement(Fragment, null)));
14950
12246
  };
14951
12247
 
14952
12248
  /*
@@ -18705,8 +16001,8 @@ var AmountCallout = function AmountCallout(_ref) {
18705
16001
 
18706
16002
  var AmountCallout$1 = themeComponent(AmountCallout, "AmountCallout", fallbackValues$6);
18707
16003
 
18708
- function _extends$2() {
18709
- _extends$2 = Object.assign || function (target) {
16004
+ function _extends$1() {
16005
+ _extends$1 = Object.assign || function (target) {
18710
16006
  for (var i = 1; i < arguments.length; i++) {
18711
16007
  var source = arguments[i];
18712
16008
 
@@ -18720,7 +16016,7 @@ function _extends$2() {
18720
16016
  return target;
18721
16017
  };
18722
16018
 
18723
- return _extends$2.apply(this, arguments);
16019
+ return _extends$1.apply(this, arguments);
18724
16020
  }
18725
16021
 
18726
16022
  function _assertThisInitialized(self) {
@@ -18827,7 +16123,7 @@ function _wrapNativeSuper(Class) {
18827
16123
  * Parse errors.md and turn it into a simple hash of code: message
18828
16124
  * @private
18829
16125
  */
18830
- var ERRORS$1 = {
16126
+ var ERRORS = {
18831
16127
  "1": "Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",
18832
16128
  "2": "Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",
18833
16129
  "3": "Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",
@@ -18912,7 +16208,7 @@ var ERRORS$1 = {
18912
16208
  * @private
18913
16209
  */
18914
16210
 
18915
- function format$1() {
16211
+ function format() {
18916
16212
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
18917
16213
  args[_key] = arguments[_key];
18918
16214
  }
@@ -18950,7 +16246,7 @@ var PolishedError = /*#__PURE__*/function (_Error) {
18950
16246
  args[_key2 - 1] = arguments[_key2];
18951
16247
  }
18952
16248
 
18953
- _this = _Error.call(this, format$1.apply(void 0, [ERRORS$1[code]].concat(args))) || this;
16249
+ _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
18954
16250
  }
18955
16251
 
18956
16252
  return _assertThisInitialized(_this);
@@ -19454,13 +16750,13 @@ function mix$1(weight, color, otherColor) {
19454
16750
  if (weight === 0) return otherColor;
19455
16751
  var parsedColor1 = parseToRgb(color);
19456
16752
 
19457
- var color1 = _extends$2({}, parsedColor1, {
16753
+ var color1 = _extends$1({}, parsedColor1, {
19458
16754
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
19459
16755
  });
19460
16756
 
19461
16757
  var parsedColor2 = parseToRgb(otherColor);
19462
16758
 
19463
- var color2 = _extends$2({}, parsedColor2, {
16759
+ var color2 = _extends$1({}, parsedColor2, {
19464
16760
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
19465
16761
  }); // The formula is copied from the original Sass implementation:
19466
16762
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
@@ -19775,7 +17071,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
19775
17071
  var linkText = _ref2.linkText,
19776
17072
  linkDestination = _ref2.linkDestination,
19777
17073
  isActive = _ref2.isActive;
19778
- return /*#__PURE__*/React.createElement(Fragment$1, {
17074
+ return /*#__PURE__*/React.createElement(Fragment, {
19779
17075
  key: "breadcrumb-".concat(linkText)
19780
17076
  }, /*#__PURE__*/React.createElement(InternalLink, {
19781
17077
  "aria-current": index === breadcrumbsList.length - 1 ? "location" : "",
@@ -19787,7 +17083,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
19787
17083
  fontWeight: themeValues.fontWeight,
19788
17084
  margin: themeValues.margin,
19789
17085
  extraStyles: "\n text-transform: uppercase;\n ".concat(isActive.toString() === "true" && "pointer-events: none;\n color: ".concat(themeValues.activeBreadcrumbColor, ";\n "), "\n &:first-child {\n margin-left: 0;\n }\n &:active {\n color: ").concat(themeValues.activeColor, "; \n }")
19790
- }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React.createElement(IconChevron, null) : /*#__PURE__*/React.createElement(Fragment$1, null));
17086
+ }, linkText), index < breadcrumbsList.length - 1 ? /*#__PURE__*/React.createElement(IconChevron, null) : /*#__PURE__*/React.createElement(Fragment, null));
19791
17087
  })));
19792
17088
  };
19793
17089
 
@@ -21568,7 +18864,7 @@ var withWindowSize = function withWindowSize(Child) {
21568
18864
  var CardVariantSwitcher = function CardVariantSwitcher(_ref) {
21569
18865
  var variant = _ref.variant,
21570
18866
  children = _ref.children;
21571
- return variant === "vertical" ? /*#__PURE__*/React.createElement(Fragment$1, null, children) : /*#__PURE__*/React.createElement(Box, {
18867
+ return variant === "vertical" ? /*#__PURE__*/React.createElement(Fragment, null, children) : /*#__PURE__*/React.createElement(Box, {
21572
18868
  padding: "0",
21573
18869
  extraStyles: "width: 100%"
21574
18870
  }, /*#__PURE__*/React.createElement(Stack, {
@@ -22365,7 +19661,7 @@ var Dropdown = function Dropdown(_ref9) {
22365
19661
  color: choice.value === value ? WHITE : disabledValues.includes(choice.value) ? STORM_GREY : MINESHAFT_GREY,
22366
19662
  extraStyles: "padding-left: 16px; \n cursor: ".concat(disabledValues.includes(choice.value) ? "default" : "pointer", "; \n white-space: nowrap; \n overflow: hidden; \n text-overflow: ellipsis;")
22367
19663
  }, choice.text));
22368
- }))) : /*#__PURE__*/React.createElement(Fragment$1, null));
19664
+ }))) : /*#__PURE__*/React.createElement(Fragment, null));
22369
19665
  };
22370
19666
 
22371
19667
  var Dropdown$1 = themeComponent(Dropdown, "Dropdown", fallbackValues$e);
@@ -23499,11 +20795,11 @@ var DisplayCard = function DisplayCard(_ref) {
23499
20795
  variant: "smallGhost",
23500
20796
  dataQa: buttonText,
23501
20797
  extraStyles: "min-width: 0;"
23502
- }) : /*#__PURE__*/React.createElement(Fragment$1, null))))));
20798
+ }) : /*#__PURE__*/React.createElement(Fragment, null))))));
23503
20799
  };
23504
20800
 
23505
- function _extends$3() {
23506
- _extends$3 = Object.assign || function (target) {
20801
+ function _extends$2() {
20802
+ _extends$2 = Object.assign || function (target) {
23507
20803
  for (var i = 1; i < arguments.length; i++) {
23508
20804
  var source = arguments[i];
23509
20805
 
@@ -23517,10 +20813,10 @@ function _extends$3() {
23517
20813
  return target;
23518
20814
  };
23519
20815
 
23520
- return _extends$3.apply(this, arguments);
20816
+ return _extends$2.apply(this, arguments);
23521
20817
  }
23522
20818
 
23523
- function _objectWithoutPropertiesLoose$2(source, excluded) {
20819
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
23524
20820
  if (source == null) return {};
23525
20821
  var target = {};
23526
20822
  var sourceKeys = Object.keys(source);
@@ -23538,7 +20834,7 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
23538
20834
  function _objectWithoutProperties$1(source, excluded) {
23539
20835
  if (source == null) return {};
23540
20836
 
23541
- var target = _objectWithoutPropertiesLoose$2(source, excluded);
20837
+ var target = _objectWithoutPropertiesLoose$1(source, excluded);
23542
20838
 
23543
20839
  var key, i;
23544
20840
 
@@ -23621,7 +20917,7 @@ function _nonIterableRest$1() {
23621
20917
  var getUniqueFormatDelimiters = function getUniqueFormatDelimiters(formats, formatChar) {
23622
20918
  return _toConsumableArray$1(new Set(formats.join("").split(formatChar).join("").split("")));
23623
20919
  };
23624
- var format$2 = function format(formatter) {
20920
+ var format$1 = function format(formatter) {
23625
20921
  return function (value) {
23626
20922
  var usedFormat = formatter.formats[value.length];
23627
20923
 
@@ -23714,7 +21010,7 @@ var FormattedInput = function FormattedInput(_ref) {
23714
21010
  selectionEnd: 0,
23715
21011
  rawValue: value,
23716
21012
  "delete": false,
23717
- formattedValue: format$2(formatter)(value)
21013
+ formattedValue: format$1(formatter)(value)
23718
21014
  }),
23719
21015
  _useState2 = _slicedToArray$1(_useState, 2),
23720
21016
  state = _useState2[0],
@@ -23726,9 +21022,9 @@ var FormattedInput = function FormattedInput(_ref) {
23726
21022
  inputEl.current.setSelectionRange(state.selectionStart, state.selectionEnd);
23727
21023
  }
23728
21024
  });
23729
- return React.createElement("input", _extends$3({}, props, {
21025
+ return React.createElement("input", _extends$2({}, props, {
23730
21026
  ref: inputEl,
23731
- value: format$2(formatter)(value),
21027
+ value: format$1(formatter)(value),
23732
21028
  onKeyDown: function onKeyDown(event) {
23733
21029
  // Keep track of the state of the input before onChange, including if user is hitting delete
23734
21030
  setState({
@@ -24234,7 +21530,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
24234
21530
  color: themeValues.textColor,
24235
21531
  textAlign: "left",
24236
21532
  extraStyles: "display: inline-block;"
24237
- }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React.createElement(Fragment$1, null, renderCardStatus())), autoPay && /*#__PURE__*/React.createElement(Text$1, {
21533
+ }, "Card ending in ".concat(lastFour)), expireDate && /*#__PURE__*/React.createElement(Fragment, null, renderCardStatus())), autoPay && /*#__PURE__*/React.createElement(Text$1, {
24238
21534
  variant: "p",
24239
21535
  color: themeValues.autopayTextColor,
24240
21536
  extraStyles: "font-style: italic;"
@@ -36431,9 +33727,9 @@ function isDraft(value) {
36431
33727
  }
36432
33728
  function isDraftable(value) {
36433
33729
  if (!value) { return false; }
36434
- return isPlainObject$1(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
33730
+ return isPlainObject(value) || !!value[DRAFTABLE] || !!value.constructor[DRAFTABLE];
36435
33731
  }
36436
- function isPlainObject$1(value) {
33732
+ function isPlainObject(value) {
36437
33733
  if (!value || typeof value !== "object") { return false; }
36438
33734
  if (Array.isArray(value)) { return true; }
36439
33735
  var proto = Object.getPrototypeOf(value);
@@ -36873,7 +34169,7 @@ var objectTraps = {
36873
34169
 
36874
34170
  set: set$1$1,
36875
34171
  deleteProperty: deleteProperty,
36876
- getOwnPropertyDescriptor: getOwnPropertyDescriptor$1,
34172
+ getOwnPropertyDescriptor: getOwnPropertyDescriptor,
36877
34173
 
36878
34174
  defineProperty: function defineProperty() {
36879
34175
  throw new Error("Object.defineProperty() cannot be used on an Immer draft"); // prettier-ignore
@@ -36981,7 +34277,7 @@ function deleteProperty(state, prop) {
36981
34277
  // the same guarantee in ES5 mode.
36982
34278
 
36983
34279
 
36984
- function getOwnPropertyDescriptor$1(state, prop) {
34280
+ function getOwnPropertyDescriptor(state, prop) {
36985
34281
  var owner = source$1(state);
36986
34282
  var desc = Reflect.getOwnPropertyDescriptor(owner, prop);
36987
34283
 
@@ -38057,7 +35353,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
38057
35353
  hoverStyles: "outline: none;",
38058
35354
  animate: isOpen ? "open" : "closed",
38059
35355
  positionTransition: true
38060
- }, stackTitle && /*#__PURE__*/React.createElement(Fragment$1, null, stackTitleContent), /*#__PURE__*/React.createElement(Stack, {
35356
+ }, stackTitle && /*#__PURE__*/React.createElement(Fragment, null, stackTitleContent), /*#__PURE__*/React.createElement(Stack, {
38061
35357
  childGap: isOpen && !isMobile ? sectionGap : "0rem"
38062
35358
  }, /*#__PURE__*/React.createElement(Box, {
38063
35359
  padding: "0",
@@ -38402,7 +35698,7 @@ var EditableTable = function EditableTable(_ref) {
38402
35698
  }, title));
38403
35699
  return /*#__PURE__*/React.createElement(EditableTableContainer, {
38404
35700
  isMobile: isMobile
38405
- }, safeChildren(titleChild, /*#__PURE__*/React.createElement(Fragment$1, null)), /*#__PURE__*/React.createElement(TableWrapper, null, renderItem(items)));
35701
+ }, safeChildren(titleChild, /*#__PURE__*/React.createElement(Fragment, null)), /*#__PURE__*/React.createElement(TableWrapper, null, renderItem(items)));
38406
35702
  };
38407
35703
 
38408
35704
  var TableListItem = function TableListItem(_ref) {
@@ -38441,7 +35737,7 @@ var TableListItem = function TableListItem(_ref) {
38441
35737
  onClick: function onClick() {
38442
35738
  return console.log("Edit Item Coming Soon...");
38443
35739
  }
38444
- }, "Edit")) : /*#__PURE__*/React.createElement(Fragment$1, null))));
35740
+ }, "Edit")) : /*#__PURE__*/React.createElement(Fragment, null))));
38445
35741
  };
38446
35742
 
38447
35743
  var EmailForm = function EmailForm(_ref) {
@@ -41588,7 +38884,7 @@ var Modal$1 = function Modal(_ref) {
41588
38884
  var _useContext = useContext(ThemeContext),
41589
38885
  isMobile = _useContext.isMobile;
41590
38886
 
41591
- return /*#__PURE__*/React.createElement(Fragment$1, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
38887
+ return /*#__PURE__*/React.createElement(Fragment, null, modalOpen && /*#__PURE__*/React.createElement(reactAriaModal, {
41592
38888
  onExit: hideModal,
41593
38889
  getApplicationNode: getApplicationNode,
41594
38890
  titleText: modalHeaderText,
@@ -41636,7 +38932,7 @@ var Modal$1 = function Modal(_ref) {
41636
38932
  justify: "flex-end",
41637
38933
  align: "center",
41638
38934
  childGap: "0rem"
41639
- }, !onlyCloseButton ? /*#__PURE__*/React.createElement(Fragment$1, null, isMobile ? /*#__PURE__*/React.createElement(Stack, {
38935
+ }, !onlyCloseButton ? /*#__PURE__*/React.createElement(Fragment, null, isMobile ? /*#__PURE__*/React.createElement(Stack, {
41640
38936
  childGap: "1rem",
41641
38937
  direction: "row"
41642
38938
  }, /*#__PURE__*/React.createElement(Box, {
@@ -41783,7 +39079,7 @@ var Module = function Module(_ref) {
41783
39079
  var computedFontSize = fontSize || themedFontSize;
41784
39080
  var themedElemType = variant === "small" ? "h6" : variant === "default" ? "h5" : "h2";
41785
39081
  var computedElemType = as || themedElemType;
41786
- return /*#__PURE__*/React.createElement(Fragment$1, null, heading && /*#__PURE__*/React.createElement(Title$1, {
39082
+ return /*#__PURE__*/React.createElement(Fragment, null, heading && /*#__PURE__*/React.createElement(Title$1, {
41787
39083
  weight: themeValues.fontWeight,
41788
39084
  color: themeValues.fontColor,
41789
39085
  margin: "".concat(spacing, " 0 ").concat(themeValues.titleSpacing, " 0"),
@@ -42862,14 +40158,14 @@ var PaymentButtonBar = function PaymentButtonBar(_ref) {
42862
40158
  extraStyles: isMobile && "flex-grow: 1",
42863
40159
  dataQa: forwardButtonText
42864
40160
  });
42865
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Box, {
40161
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
42866
40162
  padding: "1.25rem 0"
42867
40163
  }), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Box, {
42868
40164
  padding: "2.5rem 0 3.125rem 0"
42869
40165
  }, /*#__PURE__*/React.createElement(Cluster, {
42870
40166
  justify: buttonFlexOverride ? buttonFlexOverride : !!backButton ? "space-between" : "flex-end",
42871
40167
  align: "center"
42872
- }, backButton, !hideForwardButton && /*#__PURE__*/React.createElement(Fragment$1, null, forwardButton))));
40168
+ }, backButton, !hideForwardButton && /*#__PURE__*/React.createElement(Fragment, null, forwardButton))));
42873
40169
  };
42874
40170
 
42875
40171
  var backgroundColor$8 = {
@@ -42904,10 +40200,49 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
42904
40200
  subtotal = _ref.subtotal,
42905
40201
  total = _ref.total,
42906
40202
  variant = _ref.variant,
42907
- themeValues = _ref.themeValues;
40203
+ themeValues = _ref.themeValues,
40204
+ hasVoidablePaymentsSection = _ref.hasVoidablePaymentsSection,
40205
+ voidableTransactionDetails = _ref.voidableTransactionDetails,
40206
+ voidableAmountPaid = _ref.voidableAmountPaid,
40207
+ partialVoidAction = _ref.partialVoidAction;
42908
40208
  return /*#__PURE__*/React.createElement(Stack, {
42909
40209
  childGap: "16px"
42910
- }, lineItemElems, /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(Box, {
40210
+ }, lineItemElems, hasVoidablePaymentsSection && /*#__PURE__*/React.createElement(Box, {
40211
+ background: ATHENS_GREY
40212
+ }, /*#__PURE__*/React.createElement(Text$1, {
40213
+ variant: "p",
40214
+ color: themeValues.text,
40215
+ weight: "400"
40216
+ }, "Paid"), voidableTransactionDetails.map(function (t) {
40217
+ return /*#__PURE__*/React.createElement(Cluster, {
40218
+ key: t.id,
40219
+ justify: "space-between",
40220
+ align: "center"
40221
+ }, /*#__PURE__*/React.createElement(Cluster, {
40222
+ padding: "0",
40223
+ align: "center"
40224
+ }, /*#__PURE__*/React.createElement(Box, {
40225
+ padding: "0"
40226
+ }, t.voidText), /*#__PURE__*/React.createElement(ButtonWithAction, {
40227
+ variant: "ghost",
40228
+ action: function action() {
40229
+ return partialVoidAction(t);
40230
+ },
40231
+ text: "Void",
40232
+ extraStyles: "min-width: 75px; margin: 0px;",
40233
+ textExtraStyles: "font-weight: ".concat(FONT_WEIGHT_REGULAR, "; font-size: 16px;")
40234
+ })), /*#__PURE__*/React.createElement(Box, {
40235
+ padding: "0",
40236
+ key: t.id
40237
+ }, displayCurrency(t.amount_given)));
40238
+ }), /*#__PURE__*/React.createElement(Box, {
40239
+ padding: "8px 0px 16px 0px"
40240
+ }, /*#__PURE__*/React.createElement(SolidDivider$1, null)), /*#__PURE__*/React.createElement(LabeledAmount$1, {
40241
+ fontWeight: FONT_WEIGHT_REGULAR,
40242
+ label: "Amount paid",
40243
+ amount: displayCurrency(voidableAmountPaid)
40244
+ })), !hasVoidablePaymentsSection && !!lineItemElems.length && /*#__PURE__*/React.createElement(SolidDivider$1, null) // avoids duplicate dividers -> case of voidable payment section, that acts as divider
40245
+ , /*#__PURE__*/React.createElement(Box, {
42911
40246
  padding: "0.5rem 0"
42912
40247
  }, /*#__PURE__*/React.createElement(LabeledAmount$1, {
42913
40248
  variant: themeValues.labeledAmountSubtotal,
@@ -42916,7 +40251,7 @@ var PaymentDetailsContent = function PaymentDetailsContent(_ref) {
42916
40251
  }), feeElems), /*#__PURE__*/React.createElement(SolidDivider$1, null), /*#__PURE__*/React.createElement(LabeledAmount$1, {
42917
40252
  as: "p",
42918
40253
  variant: themeValues.labeledAmountTotal,
42919
- label: "Total",
40254
+ label: hasVoidablePaymentsSection ? "Remaining amount due" : "Total",
42920
40255
  amount: displayCurrency(total),
42921
40256
  extraStyles: variant === "small" && "font-weight: ".concat(FONT_WEIGHT_BOLD, ";")
42922
40257
  }));
@@ -42976,7 +40311,15 @@ var PaymentDetails = function PaymentDetails(_ref4) {
42976
40311
  collapsibleOnMobile = _ref4$collapsibleOnMo === void 0 ? true : _ref4$collapsibleOnMo,
42977
40312
  isMobile = _ref4.isMobile,
42978
40313
  supportsTouch = _ref4.supportsTouch,
42979
- themeValues = _ref4.themeValues;
40314
+ themeValues = _ref4.themeValues,
40315
+ _ref4$hasVoidablePaym = _ref4.hasVoidablePaymentsSection,
40316
+ hasVoidablePaymentsSection = _ref4$hasVoidablePaym === void 0 ? false : _ref4$hasVoidablePaym,
40317
+ _ref4$voidableTransac = _ref4.voidableTransactionDetails,
40318
+ voidableTransactionDetails = _ref4$voidableTransac === void 0 ? [] : _ref4$voidableTransac,
40319
+ _ref4$partialVoidActi = _ref4.partialVoidAction,
40320
+ partialVoidAction = _ref4$partialVoidActi === void 0 ? noop : _ref4$partialVoidActi,
40321
+ _ref4$voidableAmountP = _ref4.voidableAmountPaid,
40322
+ voidableAmountPaid = _ref4$voidableAmountP === void 0 ? 0 : _ref4$voidableAmountP;
42980
40323
 
42981
40324
  var _useState = useState(initiallyOpen),
42982
40325
  _useState2 = _slicedToArray(_useState, 2),
@@ -43011,7 +40354,7 @@ var PaymentDetails = function PaymentDetails(_ref4) {
43011
40354
  }, item));
43012
40355
  });
43013
40356
  var feeElems = fees.map(function (fee) {
43014
- return /*#__PURE__*/React.createElement(Fragment$1, {
40357
+ return /*#__PURE__*/React.createElement(Fragment, {
43015
40358
  key: fee.label
43016
40359
  }, /*#__PURE__*/React.createElement(Box, {
43017
40360
  padding: "4px 0"
@@ -43032,16 +40375,24 @@ var PaymentDetails = function PaymentDetails(_ref4) {
43032
40375
  subtotal: subtotal,
43033
40376
  total: total,
43034
40377
  themeValues: themeValues,
43035
- variant: variant
40378
+ variant: variant,
40379
+ hasVoidablePaymentsSection: hasVoidablePaymentsSection,
40380
+ voidableTransactionDetails: voidableTransactionDetails,
40381
+ voidableAmountPaid: voidableAmountPaid,
40382
+ partialVoidAction: partialVoidAction
43036
40383
  })) : /*#__PURE__*/React.createElement(PaymentDetailsContent, {
43037
40384
  lineItemElems: lineItemElems,
43038
40385
  feeElems: feeElems,
43039
40386
  subtotal: subtotal,
43040
40387
  total: total,
43041
40388
  themeValues: themeValues,
43042
- variant: variant
40389
+ variant: variant,
40390
+ hasVoidablePaymentsSection: hasVoidablePaymentsSection,
40391
+ voidableTransactionDetails: voidableTransactionDetails,
40392
+ voidableAmountPaid: voidableAmountPaid,
40393
+ partialVoidAction: partialVoidAction
43043
40394
  });
43044
- var title = hideTitle ? /*#__PURE__*/React.createElement(Fragment$1, null) : isCollapsible ? /*#__PURE__*/React.createElement(Box, {
40395
+ var title = hideTitle ? /*#__PURE__*/React.createElement(Fragment, null) : isCollapsible ? /*#__PURE__*/React.createElement(Box, {
43045
40396
  width: "100%",
43046
40397
  padding: "none"
43047
40398
  }, /*#__PURE__*/React.createElement(Cluster, {
@@ -43128,7 +40479,7 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
43128
40479
  intrinsic: true
43129
40480
  }, /*#__PURE__*/React.createElement(AccountNumberImage, null)) : imageType === "Routing" ? /*#__PURE__*/React.createElement(Center, {
43130
40481
  intrinsic: true
43131
- }, /*#__PURE__*/React.createElement(RoutingNumberImage, null)) : /*#__PURE__*/React.createElement(Fragment$1, null))),
40482
+ }, /*#__PURE__*/React.createElement(RoutingNumberImage, null)) : /*#__PURE__*/React.createElement(Fragment, null))),
43132
40483
  defaultWrapper: false,
43133
40484
  onlyCloseButton: !acceptText,
43134
40485
  continueButtonText: acceptText,
@@ -43780,7 +41131,7 @@ var RadioSection = function RadioSection(_ref) {
43780
41131
  isMobile: isMobile,
43781
41132
  alt: icon.altText
43782
41133
  });
43783
- })), section.shouldDisplayCardExpiration && /*#__PURE__*/React.createElement(Fragment$1, null, renderCardStatus(section)))), /*#__PURE__*/React.createElement(AnimatePresence, {
41134
+ })), section.shouldDisplayCardExpiration && /*#__PURE__*/React.createElement(Fragment, null, renderCardStatus(section)))), /*#__PURE__*/React.createElement(AnimatePresence, {
43784
41135
  initial: false
43785
41136
  }, openSection === section.id && /*#__PURE__*/React.createElement(Motion, {
43786
41137
  key: "content-".concat(section.id),
@@ -44159,7 +41510,7 @@ var Tabs = function Tabs(_ref) {
44159
41510
  className: "tab-content"
44160
41511
  }, /*#__PURE__*/React.createElement(Box, null, tabsConfig.tabs.map(function (tab, idx) {
44161
41512
  if (tab.label !== activeTab) return undefined;
44162
- return /*#__PURE__*/React.createElement(Fragment$1, {
41513
+ return /*#__PURE__*/React.createElement(Fragment, {
44163
41514
  key: idx
44164
41515
  }, tab.content);
44165
41516
  }))));
@@ -44411,7 +41762,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
44411
41762
  isMobile = _ref.isMobile,
44412
41763
  themeValues = _ref.themeValues;
44413
41764
  var welcomeImage = "https://cb-public-assets.s3-us-west-2.amazonaws.com/profile-assets/profile-welcome-image.png";
44414
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Box, {
41765
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Box, {
44415
41766
  padding: "0"
44416
41767
  }, isMobile && /*#__PURE__*/React.createElement(Box, {
44417
41768
  padding: "0",
@@ -44569,7 +41920,7 @@ var PeriscopeDashboardIframe = function PeriscopeDashboardIframe(_ref) {
44569
41920
  return window.removeEventListener("message", validatePeriscope);
44570
41921
  };
44571
41922
  }, [requestDashboardUrl]);
44572
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(BoxWithShadow$1, {
41923
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(BoxWithShadow$1, {
44573
41924
  padding: "0",
44574
41925
  minWidth: "100%",
44575
41926
  minHeight: "592px",
@@ -44637,7 +41988,7 @@ var CenterSingle = function CenterSingle(_ref) {
44637
41988
  minWidth: "100%",
44638
41989
  extraStyles: "z-index: 1;",
44639
41990
  role: "main"
44640
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
41991
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Center, {
44641
41992
  maxWidth: isMobile && fullWidthMobile ? "100%" : maxContentWidth,
44642
41993
  intrinsic: !isMobile
44643
41994
  }, centeredMobileContent ? /*#__PURE__*/React.createElement(Cover, {
@@ -44679,7 +42030,7 @@ var CenterStack = function CenterStack(_ref) {
44679
42030
  padding: "0",
44680
42031
  minWidth: "100%",
44681
42032
  role: "main"
44682
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
42033
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Center, {
44683
42034
  maxWidth: isMobile && fullWidthMobile ? "100%" : maxContentWidth,
44684
42035
  intrinsic: !isMobile
44685
42036
  }, /*#__PURE__*/React.createElement(Cover, {
@@ -44724,7 +42075,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
44724
42075
  minHeight: "100%",
44725
42076
  extraStyles: "z-index: 1;",
44726
42077
  role: "main"
44727
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Center, {
42078
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Center, {
44728
42079
  maxWidth: maxWidth,
44729
42080
  gutters: gutters
44730
42081
  }, content)), footer ? footer : /*#__PURE__*/React.createElement(Box, {
@@ -44772,7 +42123,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
44772
42123
  padding: "0",
44773
42124
  minWidth: "100%",
44774
42125
  role: "main"
44775
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Box, {
42126
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Box, {
44776
42127
  padding: sidebarWrapperPadding
44777
42128
  }, /*#__PURE__*/React.createElement(Center, {
44778
42129
  maxWidth: sidebarWrapperMaxWidth
@@ -44781,7 +42132,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
44781
42132
  childGap: sidebarContentGap,
44782
42133
  sidebarOnRight: sidebarOnRight,
44783
42134
  contentMinWidth: mainContentMinWidth
44784
- }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment$1, null) : sidebarContent, mainContent, sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment$1, null))))), footer ? footer : /*#__PURE__*/React.createElement(Box, {
42135
+ }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment, null) : sidebarContent, mainContent, sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment, null))))), footer ? footer : /*#__PURE__*/React.createElement(Box, {
44785
42136
  padding: "0"
44786
42137
  })));
44787
42138
  };
@@ -44832,7 +42183,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
44832
42183
  minWidth: "100%",
44833
42184
  key: "content-box",
44834
42185
  role: "main"
44835
- }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment$1, null), /*#__PURE__*/React.createElement(Box, {
42186
+ }, subHeader && !(isMobile && hideMobileSubHeader) ? subHeader : /*#__PURE__*/React.createElement(Fragment, null), /*#__PURE__*/React.createElement(Box, {
44836
42187
  padding: sidebarWrapperPadding,
44837
42188
  key: "content-wrapper"
44838
42189
  }, /*#__PURE__*/React.createElement(Center, {
@@ -44844,12 +42195,12 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
44844
42195
  sidebarOnRight: sidebarOnRight,
44845
42196
  contentMinWidth: mainContentMinWidth,
44846
42197
  key: "content-sidebar"
44847
- }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment$1, {
42198
+ }, sidebarOnRight ? /*#__PURE__*/React.createElement(Fragment, {
44848
42199
  key: "sidebar-fragment"
44849
42200
  }) : sidebarContent, /*#__PURE__*/React.createElement(Stack, {
44850
42201
  key: "content-stack",
44851
42202
  childGap: contentStackGap
44852
- }, mainContent), sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment$1, {
42203
+ }, mainContent), sidebarOnRight ? sidebarContent : /*#__PURE__*/React.createElement(Fragment, {
44853
42204
  key: "sidebar-fragment"
44854
42205
  }))))), footer ? footer : /*#__PURE__*/React.createElement(Box, {
44855
42206
  padding: "0",