@crowdin/app-project-module 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function (emStyled, react$1) {
1
+ (function () {
2
2
  'use strict';
3
3
 
4
4
  function _mergeNamespaces(n, m) {
@@ -193,6 +193,1395 @@
193
193
 
194
194
  var THEME_ID = '$$material';
195
195
 
196
+ function _extends() {
197
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
198
+ for (var e = 1; e < arguments.length; e++) {
199
+ var t = arguments[e];
200
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
201
+ }
202
+ return n;
203
+ }, _extends.apply(null, arguments);
204
+ }
205
+
206
+ var reactExports = requireReact();
207
+ var We = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
208
+
209
+ var React2 = /*#__PURE__*/_mergeNamespaces({
210
+ __proto__: null,
211
+ default: We
212
+ }, [reactExports]);
213
+
214
+ /*
215
+
216
+ Based off glamor's StyleSheet, thanks Sunil ❤️
217
+
218
+ high performance StyleSheet for css-in-js systems
219
+
220
+ - uses multiple style tags behind the scenes for millions of rules
221
+ - uses `insertRule` for appending in production for *much* faster performance
222
+
223
+ // usage
224
+
225
+ import { StyleSheet } from '@emotion/sheet'
226
+
227
+ let styleSheet = new StyleSheet({ key: '', container: document.head })
228
+
229
+ styleSheet.insert('#box { border: 1px solid red; }')
230
+ - appends a css rule into the stylesheet
231
+
232
+ styleSheet.flush()
233
+ - empties the stylesheet of all its contents
234
+
235
+ */
236
+
237
+ function sheetForTag(tag) {
238
+ if (tag.sheet) {
239
+ return tag.sheet;
240
+ } // this weirdness brought to you by firefox
241
+
242
+ /* istanbul ignore next */
243
+
244
+
245
+ for (var i = 0; i < document.styleSheets.length; i++) {
246
+ if (document.styleSheets[i].ownerNode === tag) {
247
+ return document.styleSheets[i];
248
+ }
249
+ } // this function should always return with a value
250
+ // TS can't understand it though so we make it stop complaining here
251
+
252
+
253
+ return undefined;
254
+ }
255
+
256
+ function createStyleElement(options) {
257
+ var tag = document.createElement('style');
258
+ tag.setAttribute('data-emotion', options.key);
259
+
260
+ if (options.nonce !== undefined) {
261
+ tag.setAttribute('nonce', options.nonce);
262
+ }
263
+
264
+ tag.appendChild(document.createTextNode(''));
265
+ tag.setAttribute('data-s', '');
266
+ return tag;
267
+ }
268
+
269
+ var StyleSheet = /*#__PURE__*/function () {
270
+ // Using Node instead of HTMLElement since container may be a ShadowRoot
271
+ function StyleSheet(options) {
272
+ var _this = this;
273
+
274
+ this._insertTag = function (tag) {
275
+ var before;
276
+
277
+ if (_this.tags.length === 0) {
278
+ if (_this.insertionPoint) {
279
+ before = _this.insertionPoint.nextSibling;
280
+ } else if (_this.prepend) {
281
+ before = _this.container.firstChild;
282
+ } else {
283
+ before = _this.before;
284
+ }
285
+ } else {
286
+ before = _this.tags[_this.tags.length - 1].nextSibling;
287
+ }
288
+
289
+ _this.container.insertBefore(tag, before);
290
+
291
+ _this.tags.push(tag);
292
+ };
293
+
294
+ this.isSpeedy = options.speedy === undefined ? true : options.speedy;
295
+ this.tags = [];
296
+ this.ctr = 0;
297
+ this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
298
+
299
+ this.key = options.key;
300
+ this.container = options.container;
301
+ this.prepend = options.prepend;
302
+ this.insertionPoint = options.insertionPoint;
303
+ this.before = null;
304
+ }
305
+
306
+ var _proto = StyleSheet.prototype;
307
+
308
+ _proto.hydrate = function hydrate(nodes) {
309
+ nodes.forEach(this._insertTag);
310
+ };
311
+
312
+ _proto.insert = function insert(rule) {
313
+ // the max length is how many rules we have per style tag, it's 65000 in speedy mode
314
+ // it's 1 in dev because we insert source maps that map a single rule to a location
315
+ // and you can only have one source map per style tag
316
+ if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
317
+ this._insertTag(createStyleElement(this));
318
+ }
319
+
320
+ var tag = this.tags[this.tags.length - 1];
321
+
322
+ if (this.isSpeedy) {
323
+ var sheet = sheetForTag(tag);
324
+
325
+ try {
326
+ // this is the ultrafast version, works across browsers
327
+ // the big drawback is that the css won't be editable in devtools
328
+ sheet.insertRule(rule, sheet.cssRules.length);
329
+ } catch (e) {
330
+ }
331
+ } else {
332
+ tag.appendChild(document.createTextNode(rule));
333
+ }
334
+
335
+ this.ctr++;
336
+ };
337
+
338
+ _proto.flush = function flush() {
339
+ this.tags.forEach(function (tag) {
340
+ var _tag$parentNode;
341
+
342
+ return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
343
+ });
344
+ this.tags = [];
345
+ this.ctr = 0;
346
+ };
347
+
348
+ return StyleSheet;
349
+ }();
350
+
351
+ var MS = '-ms-';
352
+ var MOZ = '-moz-';
353
+ var WEBKIT = '-webkit-';
354
+
355
+ var COMMENT = 'comm';
356
+ var RULESET = 'rule';
357
+ var DECLARATION = 'decl';
358
+ var IMPORT = '@import';
359
+ var KEYFRAMES = '@keyframes';
360
+ var LAYER = '@layer';
361
+
362
+ /**
363
+ * @param {number}
364
+ * @return {number}
365
+ */
366
+ var abs = Math.abs;
367
+
368
+ /**
369
+ * @param {number}
370
+ * @return {string}
371
+ */
372
+ var from = String.fromCharCode;
373
+
374
+ /**
375
+ * @param {object}
376
+ * @return {object}
377
+ */
378
+ var assign = Object.assign;
379
+
380
+ /**
381
+ * @param {string} value
382
+ * @param {number} length
383
+ * @return {number}
384
+ */
385
+ function hash (value, length) {
386
+ return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
387
+ }
388
+
389
+ /**
390
+ * @param {string} value
391
+ * @return {string}
392
+ */
393
+ function trim (value) {
394
+ return value.trim()
395
+ }
396
+
397
+ /**
398
+ * @param {string} value
399
+ * @param {RegExp} pattern
400
+ * @return {string?}
401
+ */
402
+ function match (value, pattern) {
403
+ return (value = pattern.exec(value)) ? value[0] : value
404
+ }
405
+
406
+ /**
407
+ * @param {string} value
408
+ * @param {(string|RegExp)} pattern
409
+ * @param {string} replacement
410
+ * @return {string}
411
+ */
412
+ function replace (value, pattern, replacement) {
413
+ return value.replace(pattern, replacement)
414
+ }
415
+
416
+ /**
417
+ * @param {string} value
418
+ * @param {string} search
419
+ * @return {number}
420
+ */
421
+ function indexof (value, search) {
422
+ return value.indexOf(search)
423
+ }
424
+
425
+ /**
426
+ * @param {string} value
427
+ * @param {number} index
428
+ * @return {number}
429
+ */
430
+ function charat (value, index) {
431
+ return value.charCodeAt(index) | 0
432
+ }
433
+
434
+ /**
435
+ * @param {string} value
436
+ * @param {number} begin
437
+ * @param {number} end
438
+ * @return {string}
439
+ */
440
+ function substr (value, begin, end) {
441
+ return value.slice(begin, end)
442
+ }
443
+
444
+ /**
445
+ * @param {string} value
446
+ * @return {number}
447
+ */
448
+ function strlen (value) {
449
+ return value.length
450
+ }
451
+
452
+ /**
453
+ * @param {any[]} value
454
+ * @return {number}
455
+ */
456
+ function sizeof (value) {
457
+ return value.length
458
+ }
459
+
460
+ /**
461
+ * @param {any} value
462
+ * @param {any[]} array
463
+ * @return {any}
464
+ */
465
+ function append (value, array) {
466
+ return array.push(value), value
467
+ }
468
+
469
+ /**
470
+ * @param {string[]} array
471
+ * @param {function} callback
472
+ * @return {string}
473
+ */
474
+ function combine (array, callback) {
475
+ return array.map(callback).join('')
476
+ }
477
+
478
+ var line = 1;
479
+ var column = 1;
480
+ var length = 0;
481
+ var position = 0;
482
+ var character = 0;
483
+ var characters = '';
484
+
485
+ /**
486
+ * @param {string} value
487
+ * @param {object | null} root
488
+ * @param {object | null} parent
489
+ * @param {string} type
490
+ * @param {string[] | string} props
491
+ * @param {object[] | string} children
492
+ * @param {number} length
493
+ */
494
+ function node (value, root, parent, type, props, children, length) {
495
+ return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: ''}
496
+ }
497
+
498
+ /**
499
+ * @param {object} root
500
+ * @param {object} props
501
+ * @return {object}
502
+ */
503
+ function copy (root, props) {
504
+ return assign(node('', null, null, '', null, null, 0), root, {length: -root.length}, props)
505
+ }
506
+
507
+ /**
508
+ * @return {number}
509
+ */
510
+ function char () {
511
+ return character
512
+ }
513
+
514
+ /**
515
+ * @return {number}
516
+ */
517
+ function prev () {
518
+ character = position > 0 ? charat(characters, --position) : 0;
519
+
520
+ if (column--, character === 10)
521
+ column = 1, line--;
522
+
523
+ return character
524
+ }
525
+
526
+ /**
527
+ * @return {number}
528
+ */
529
+ function next () {
530
+ character = position < length ? charat(characters, position++) : 0;
531
+
532
+ if (column++, character === 10)
533
+ column = 1, line++;
534
+
535
+ return character
536
+ }
537
+
538
+ /**
539
+ * @return {number}
540
+ */
541
+ function peek () {
542
+ return charat(characters, position)
543
+ }
544
+
545
+ /**
546
+ * @return {number}
547
+ */
548
+ function caret () {
549
+ return position
550
+ }
551
+
552
+ /**
553
+ * @param {number} begin
554
+ * @param {number} end
555
+ * @return {string}
556
+ */
557
+ function slice (begin, end) {
558
+ return substr(characters, begin, end)
559
+ }
560
+
561
+ /**
562
+ * @param {number} type
563
+ * @return {number}
564
+ */
565
+ function token (type) {
566
+ switch (type) {
567
+ // \0 \t \n \r \s whitespace token
568
+ case 0: case 9: case 10: case 13: case 32:
569
+ return 5
570
+ // ! + , / > @ ~ isolate token
571
+ case 33: case 43: case 44: case 47: case 62: case 64: case 126:
572
+ // ; { } breakpoint token
573
+ case 59: case 123: case 125:
574
+ return 4
575
+ // : accompanied token
576
+ case 58:
577
+ return 3
578
+ // " ' ( [ opening delimit token
579
+ case 34: case 39: case 40: case 91:
580
+ return 2
581
+ // ) ] closing delimit token
582
+ case 41: case 93:
583
+ return 1
584
+ }
585
+
586
+ return 0
587
+ }
588
+
589
+ /**
590
+ * @param {string} value
591
+ * @return {any[]}
592
+ */
593
+ function alloc (value) {
594
+ return line = column = 1, length = strlen(characters = value), position = 0, []
595
+ }
596
+
597
+ /**
598
+ * @param {any} value
599
+ * @return {any}
600
+ */
601
+ function dealloc (value) {
602
+ return characters = '', value
603
+ }
604
+
605
+ /**
606
+ * @param {number} type
607
+ * @return {string}
608
+ */
609
+ function delimit (type) {
610
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
611
+ }
612
+
613
+ /**
614
+ * @param {number} type
615
+ * @return {string}
616
+ */
617
+ function whitespace (type) {
618
+ while (character = peek())
619
+ if (character < 33)
620
+ next();
621
+ else
622
+ break
623
+
624
+ return token(type) > 2 || token(character) > 3 ? '' : ' '
625
+ }
626
+
627
+ /**
628
+ * @param {number} index
629
+ * @param {number} count
630
+ * @return {string}
631
+ */
632
+ function escaping (index, count) {
633
+ while (--count && next())
634
+ // not 0-9 A-F a-f
635
+ if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
636
+ break
637
+
638
+ return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
639
+ }
640
+
641
+ /**
642
+ * @param {number} type
643
+ * @return {number}
644
+ */
645
+ function delimiter (type) {
646
+ while (next())
647
+ switch (character) {
648
+ // ] ) " '
649
+ case type:
650
+ return position
651
+ // " '
652
+ case 34: case 39:
653
+ if (type !== 34 && type !== 39)
654
+ delimiter(character);
655
+ break
656
+ // (
657
+ case 40:
658
+ if (type === 41)
659
+ delimiter(type);
660
+ break
661
+ // \
662
+ case 92:
663
+ next();
664
+ break
665
+ }
666
+
667
+ return position
668
+ }
669
+
670
+ /**
671
+ * @param {number} type
672
+ * @param {number} index
673
+ * @return {number}
674
+ */
675
+ function commenter (type, index) {
676
+ while (next())
677
+ // //
678
+ if (type + character === 47 + 10)
679
+ break
680
+ // /*
681
+ else if (type + character === 42 + 42 && peek() === 47)
682
+ break
683
+
684
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
685
+ }
686
+
687
+ /**
688
+ * @param {number} index
689
+ * @return {string}
690
+ */
691
+ function identifier (index) {
692
+ while (!token(peek()))
693
+ next();
694
+
695
+ return slice(index, position)
696
+ }
697
+
698
+ /**
699
+ * @param {string} value
700
+ * @return {object[]}
701
+ */
702
+ function compile$1 (value) {
703
+ return dealloc(parse$1('', null, null, null, [''], value = alloc(value), 0, [0], value))
704
+ }
705
+
706
+ /**
707
+ * @param {string} value
708
+ * @param {object} root
709
+ * @param {object?} parent
710
+ * @param {string[]} rule
711
+ * @param {string[]} rules
712
+ * @param {string[]} rulesets
713
+ * @param {number[]} pseudo
714
+ * @param {number[]} points
715
+ * @param {string[]} declarations
716
+ * @return {object}
717
+ */
718
+ function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
719
+ var index = 0;
720
+ var offset = 0;
721
+ var length = pseudo;
722
+ var atrule = 0;
723
+ var property = 0;
724
+ var previous = 0;
725
+ var variable = 1;
726
+ var scanning = 1;
727
+ var ampersand = 1;
728
+ var character = 0;
729
+ var type = '';
730
+ var props = rules;
731
+ var children = rulesets;
732
+ var reference = rule;
733
+ var characters = type;
734
+
735
+ while (scanning)
736
+ switch (previous = character, character = next()) {
737
+ // (
738
+ case 40:
739
+ if (previous != 108 && charat(characters, length - 1) == 58) {
740
+ if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f') != -1)
741
+ ampersand = -1;
742
+ break
743
+ }
744
+ // " ' [
745
+ case 34: case 39: case 91:
746
+ characters += delimit(character);
747
+ break
748
+ // \t \n \r \s
749
+ case 9: case 10: case 13: case 32:
750
+ characters += whitespace(previous);
751
+ break
752
+ // \
753
+ case 92:
754
+ characters += escaping(caret() - 1, 7);
755
+ continue
756
+ // /
757
+ case 47:
758
+ switch (peek()) {
759
+ case 42: case 47:
760
+ append(comment(commenter(next(), caret()), root, parent), declarations);
761
+ break
762
+ default:
763
+ characters += '/';
764
+ }
765
+ break
766
+ // {
767
+ case 123 * variable:
768
+ points[index++] = strlen(characters) * ampersand;
769
+ // } ; \0
770
+ case 125 * variable: case 59: case 0:
771
+ switch (character) {
772
+ // \0 }
773
+ case 0: case 125: scanning = 0;
774
+ // ;
775
+ case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
776
+ if (property > 0 && (strlen(characters) - length))
777
+ append(property > 32 ? declaration(characters + ';', rule, parent, length - 1) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2), declarations);
778
+ break
779
+ // @ ;
780
+ case 59: characters += ';';
781
+ // { rule/at-rule
782
+ default:
783
+ append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length), rulesets);
784
+
785
+ if (character === 123)
786
+ if (offset === 0)
787
+ parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
788
+ else
789
+ switch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {
790
+ // d l m s
791
+ case 100: case 108: case 109: case 115:
792
+ parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length), children), rules, children, length, points, rule ? props : children);
793
+ break
794
+ default:
795
+ parse$1(characters, reference, reference, reference, [''], children, 0, points, children);
796
+ }
797
+ }
798
+
799
+ index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
800
+ break
801
+ // :
802
+ case 58:
803
+ length = 1 + strlen(characters), property = previous;
804
+ default:
805
+ if (variable < 1)
806
+ if (character == 123)
807
+ --variable;
808
+ else if (character == 125 && variable++ == 0 && prev() == 125)
809
+ continue
810
+
811
+ switch (characters += from(character), character * variable) {
812
+ // &
813
+ case 38:
814
+ ampersand = offset > 0 ? 1 : (characters += '\f', -1);
815
+ break
816
+ // ,
817
+ case 44:
818
+ points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
819
+ break
820
+ // @
821
+ case 64:
822
+ // -
823
+ if (peek() === 45)
824
+ characters += delimit(next());
825
+
826
+ atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
827
+ break
828
+ // -
829
+ case 45:
830
+ if (previous === 45 && strlen(characters) == 2)
831
+ variable = 0;
832
+ }
833
+ }
834
+
835
+ return rulesets
836
+ }
837
+
838
+ /**
839
+ * @param {string} value
840
+ * @param {object} root
841
+ * @param {object?} parent
842
+ * @param {number} index
843
+ * @param {number} offset
844
+ * @param {string[]} rules
845
+ * @param {number[]} points
846
+ * @param {string} type
847
+ * @param {string[]} props
848
+ * @param {string[]} children
849
+ * @param {number} length
850
+ * @return {object}
851
+ */
852
+ function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length) {
853
+ var post = offset - 1;
854
+ var rule = offset === 0 ? rules : [''];
855
+ var size = sizeof(rule);
856
+
857
+ for (var i = 0, j = 0, k = 0; i < index; ++i)
858
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
859
+ if (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
860
+ props[k++] = z;
861
+
862
+ return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length)
863
+ }
864
+
865
+ /**
866
+ * @param {number} value
867
+ * @param {object} root
868
+ * @param {object?} parent
869
+ * @return {object}
870
+ */
871
+ function comment (value, root, parent) {
872
+ return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0)
873
+ }
874
+
875
+ /**
876
+ * @param {string} value
877
+ * @param {object} root
878
+ * @param {object?} parent
879
+ * @param {number} length
880
+ * @return {object}
881
+ */
882
+ function declaration (value, root, parent, length) {
883
+ return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length)
884
+ }
885
+
886
+ /**
887
+ * @param {object[]} children
888
+ * @param {function} callback
889
+ * @return {string}
890
+ */
891
+ function serialize (children, callback) {
892
+ var output = '';
893
+ var length = sizeof(children);
894
+
895
+ for (var i = 0; i < length; i++)
896
+ output += callback(children[i], i, children, callback) || '';
897
+
898
+ return output
899
+ }
900
+
901
+ /**
902
+ * @param {object} element
903
+ * @param {number} index
904
+ * @param {object[]} children
905
+ * @param {function} callback
906
+ * @return {string}
907
+ */
908
+ function stringify (element, index, children, callback) {
909
+ switch (element.type) {
910
+ case LAYER: if (element.children.length) break
911
+ case IMPORT: case DECLARATION: return element.return = element.return || element.value
912
+ case COMMENT: return ''
913
+ case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
914
+ case RULESET: element.value = element.props.join(',');
915
+ }
916
+
917
+ return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
918
+ }
919
+
920
+ /**
921
+ * @param {function[]} collection
922
+ * @return {function}
923
+ */
924
+ function middleware (collection) {
925
+ var length = sizeof(collection);
926
+
927
+ return function (element, index, children, callback) {
928
+ var output = '';
929
+
930
+ for (var i = 0; i < length; i++)
931
+ output += collection[i](element, index, children, callback) || '';
932
+
933
+ return output
934
+ }
935
+ }
936
+
937
+ /**
938
+ * @param {function} callback
939
+ * @return {function}
940
+ */
941
+ function rulesheet (callback) {
942
+ return function (element) {
943
+ if (!element.root)
944
+ if (element = element.return)
945
+ callback(element);
946
+ }
947
+ }
948
+
949
+ function memoize$3(fn) {
950
+ var cache = Object.create(null);
951
+ return function (arg) {
952
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
953
+ return cache[arg];
954
+ };
955
+ }
956
+
957
+ var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
958
+ var previous = 0;
959
+ var character = 0;
960
+
961
+ while (true) {
962
+ previous = character;
963
+ character = peek(); // &\f
964
+
965
+ if (previous === 38 && character === 12) {
966
+ points[index] = 1;
967
+ }
968
+
969
+ if (token(character)) {
970
+ break;
971
+ }
972
+
973
+ next();
974
+ }
975
+
976
+ return slice(begin, position);
977
+ };
978
+
979
+ var toRules = function toRules(parsed, points) {
980
+ // pretend we've started with a comma
981
+ var index = -1;
982
+ var character = 44;
983
+
984
+ do {
985
+ switch (token(character)) {
986
+ case 0:
987
+ // &\f
988
+ if (character === 38 && peek() === 12) {
989
+ // this is not 100% correct, we don't account for literal sequences here - like for example quoted strings
990
+ // stylis inserts \f after & to know when & where it should replace this sequence with the context selector
991
+ // and when it should just concatenate the outer and inner selectors
992
+ // it's very unlikely for this sequence to actually appear in a different context, so we just leverage this fact here
993
+ points[index] = 1;
994
+ }
995
+
996
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
997
+ break;
998
+
999
+ case 2:
1000
+ parsed[index] += delimit(character);
1001
+ break;
1002
+
1003
+ case 4:
1004
+ // comma
1005
+ if (character === 44) {
1006
+ // colon
1007
+ parsed[++index] = peek() === 58 ? '&\f' : '';
1008
+ points[index] = parsed[index].length;
1009
+ break;
1010
+ }
1011
+
1012
+ // fallthrough
1013
+
1014
+ default:
1015
+ parsed[index] += from(character);
1016
+ }
1017
+ } while (character = next());
1018
+
1019
+ return parsed;
1020
+ };
1021
+
1022
+ var getRules = function getRules(value, points) {
1023
+ return dealloc(toRules(alloc(value), points));
1024
+ }; // WeakSet would be more appropriate, but only WeakMap is supported in IE11
1025
+
1026
+
1027
+ var fixedElements = /* #__PURE__ */new WeakMap();
1028
+ var compat = function compat(element) {
1029
+ if (element.type !== 'rule' || !element.parent || // positive .length indicates that this rule contains pseudo
1030
+ // negative .length indicates that this rule has been already prefixed
1031
+ element.length < 1) {
1032
+ return;
1033
+ }
1034
+
1035
+ var value = element.value;
1036
+ var parent = element.parent;
1037
+ var isImplicitRule = element.column === parent.column && element.line === parent.line;
1038
+
1039
+ while (parent.type !== 'rule') {
1040
+ parent = parent.parent;
1041
+ if (!parent) return;
1042
+ } // short-circuit for the simplest case
1043
+
1044
+
1045
+ if (element.props.length === 1 && value.charCodeAt(0) !== 58
1046
+ /* colon */
1047
+ && !fixedElements.get(parent)) {
1048
+ return;
1049
+ } // if this is an implicitly inserted rule (the one eagerly inserted at the each new nested level)
1050
+ // then the props has already been manipulated beforehand as they that array is shared between it and its "rule parent"
1051
+
1052
+
1053
+ if (isImplicitRule) {
1054
+ return;
1055
+ }
1056
+
1057
+ fixedElements.set(element, true);
1058
+ var points = [];
1059
+ var rules = getRules(value, points);
1060
+ var parentRules = parent.props;
1061
+
1062
+ for (var i = 0, k = 0; i < rules.length; i++) {
1063
+ for (var j = 0; j < parentRules.length; j++, k++) {
1064
+ element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
1065
+ }
1066
+ }
1067
+ };
1068
+ var removeLabel = function removeLabel(element) {
1069
+ if (element.type === 'decl') {
1070
+ var value = element.value;
1071
+
1072
+ if ( // charcode for l
1073
+ value.charCodeAt(0) === 108 && // charcode for b
1074
+ value.charCodeAt(2) === 98) {
1075
+ // this ignores label
1076
+ element["return"] = '';
1077
+ element.value = '';
1078
+ }
1079
+ }
1080
+ };
1081
+
1082
+ /* eslint-disable no-fallthrough */
1083
+
1084
+ function prefix(value, length) {
1085
+ switch (hash(value, length)) {
1086
+ // color-adjust
1087
+ case 5103:
1088
+ return WEBKIT + 'print-' + value + value;
1089
+ // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
1090
+
1091
+ case 5737:
1092
+ case 4201:
1093
+ case 3177:
1094
+ case 3433:
1095
+ case 1641:
1096
+ case 4457:
1097
+ case 2921: // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
1098
+
1099
+ case 5572:
1100
+ case 6356:
1101
+ case 5844:
1102
+ case 3191:
1103
+ case 6645:
1104
+ case 3005: // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
1105
+
1106
+ case 6391:
1107
+ case 5879:
1108
+ case 5623:
1109
+ case 6135:
1110
+ case 4599:
1111
+ case 4855: // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
1112
+
1113
+ case 4215:
1114
+ case 6389:
1115
+ case 5109:
1116
+ case 5365:
1117
+ case 5621:
1118
+ case 3829:
1119
+ return WEBKIT + value + value;
1120
+ // appearance, user-select, transform, hyphens, text-size-adjust
1121
+
1122
+ case 5349:
1123
+ case 4246:
1124
+ case 4810:
1125
+ case 6968:
1126
+ case 2756:
1127
+ return WEBKIT + value + MOZ + value + MS + value + value;
1128
+ // flex, flex-direction
1129
+
1130
+ case 6828:
1131
+ case 4268:
1132
+ return WEBKIT + value + MS + value + value;
1133
+ // order
1134
+
1135
+ case 6165:
1136
+ return WEBKIT + value + MS + 'flex-' + value + value;
1137
+ // align-items
1138
+
1139
+ case 5187:
1140
+ return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value;
1141
+ // align-self
1142
+
1143
+ case 5443:
1144
+ return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/, '') + value;
1145
+ // align-content
1146
+
1147
+ case 4675:
1148
+ return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/, '') + value;
1149
+ // flex-shrink
1150
+
1151
+ case 5548:
1152
+ return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value;
1153
+ // flex-basis
1154
+
1155
+ case 5292:
1156
+ return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value;
1157
+ // flex-grow
1158
+
1159
+ case 6060:
1160
+ return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value;
1161
+ // transition
1162
+
1163
+ case 4554:
1164
+ return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value;
1165
+ // cursor
1166
+
1167
+ case 6187:
1168
+ return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value;
1169
+ // background, background-image
1170
+
1171
+ case 5495:
1172
+ case 3959:
1173
+ return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1');
1174
+ // justify-content
1175
+
1176
+ case 4968:
1177
+ return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT + value + value;
1178
+ // (margin|padding)-inline-(start|end)
1179
+
1180
+ case 4095:
1181
+ case 3583:
1182
+ case 4068:
1183
+ case 2532:
1184
+ return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value;
1185
+ // (min|max)?(width|height|inline-size|block-size)
1186
+
1187
+ case 8116:
1188
+ case 7059:
1189
+ case 5753:
1190
+ case 5535:
1191
+ case 5445:
1192
+ case 5701:
1193
+ case 4933:
1194
+ case 4677:
1195
+ case 5533:
1196
+ case 5789:
1197
+ case 5021:
1198
+ case 4765:
1199
+ // stretch, max-content, min-content, fill-available
1200
+ if (strlen(value) - 1 - length > 6) switch (charat(value, length + 1)) {
1201
+ // (m)ax-content, (m)in-content
1202
+ case 109:
1203
+ // -
1204
+ if (charat(value, length + 4) !== 45) break;
1205
+ // (f)ill-available, (f)it-content
1206
+
1207
+ case 102:
1208
+ return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value;
1209
+ // (s)tretch
1210
+
1211
+ case 115:
1212
+ return ~indexof(value, 'stretch') ? prefix(replace(value, 'stretch', 'fill-available'), length) + value : value;
1213
+ }
1214
+ break;
1215
+ // position: sticky
1216
+
1217
+ case 4949:
1218
+ // (s)ticky?
1219
+ if (charat(value, length + 1) !== 115) break;
1220
+ // display: (flex|inline-flex)
1221
+
1222
+ case 6444:
1223
+ switch (charat(value, strlen(value) - 3 - (~indexof(value, '!important') && 10))) {
1224
+ // stic(k)y
1225
+ case 107:
1226
+ return replace(value, ':', ':' + WEBKIT) + value;
1227
+ // (inline-)?fl(e)x
1228
+
1229
+ case 101:
1230
+ return replace(value, /(.+:)([^;!]+)(;|!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value;
1231
+ }
1232
+
1233
+ break;
1234
+ // writing-mode
1235
+
1236
+ case 5936:
1237
+ switch (charat(value, length + 11)) {
1238
+ // vertical-l(r)
1239
+ case 114:
1240
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value;
1241
+ // vertical-r(l)
1242
+
1243
+ case 108:
1244
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value;
1245
+ // horizontal(-)tb
1246
+
1247
+ case 45:
1248
+ return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value;
1249
+ }
1250
+
1251
+ return WEBKIT + value + MS + value + value;
1252
+ }
1253
+
1254
+ return value;
1255
+ }
1256
+
1257
+ var prefixer = function prefixer(element, index, children, callback) {
1258
+ if (element.length > -1) if (!element["return"]) switch (element.type) {
1259
+ case DECLARATION:
1260
+ element["return"] = prefix(element.value, element.length);
1261
+ break;
1262
+
1263
+ case KEYFRAMES:
1264
+ return serialize([copy(element, {
1265
+ value: replace(element.value, '@', '@' + WEBKIT)
1266
+ })], callback);
1267
+
1268
+ case RULESET:
1269
+ if (element.length) return combine(element.props, function (value) {
1270
+ switch (match(value, /(::plac\w+|:read-\w+)/)) {
1271
+ // :read-(only|write)
1272
+ case ':read-only':
1273
+ case ':read-write':
1274
+ return serialize([copy(element, {
1275
+ props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]
1276
+ })], callback);
1277
+ // :placeholder
1278
+
1279
+ case '::placeholder':
1280
+ return serialize([copy(element, {
1281
+ props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]
1282
+ }), copy(element, {
1283
+ props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]
1284
+ }), copy(element, {
1285
+ props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]
1286
+ })], callback);
1287
+ }
1288
+
1289
+ return '';
1290
+ });
1291
+ }
1292
+ };
1293
+
1294
+ var defaultStylisPlugins = [prefixer];
1295
+
1296
+ var createCache = function createCache(options) {
1297
+ var key = options.key;
1298
+
1299
+ if (key === 'css') {
1300
+ var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
1301
+ // document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
1302
+ // note this very very intentionally targets all style elements regardless of the key to ensure
1303
+ // that creating a cache works inside of render of a React component
1304
+
1305
+ Array.prototype.forEach.call(ssrStyles, function (node) {
1306
+ // we want to only move elements which have a space in the data-emotion attribute value
1307
+ // because that indicates that it is an Emotion 11 server-side rendered style elements
1308
+ // while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
1309
+ // Emotion 10 client-side inserted styles did not have data-s (but importantly did not have a space in their data-emotion attributes)
1310
+ // so checking for the space ensures that loading Emotion 11 after Emotion 10 has inserted some styles
1311
+ // will not result in the Emotion 10 styles being destroyed
1312
+ var dataEmotionAttribute = node.getAttribute('data-emotion');
1313
+
1314
+ if (dataEmotionAttribute.indexOf(' ') === -1) {
1315
+ return;
1316
+ }
1317
+
1318
+ document.head.appendChild(node);
1319
+ node.setAttribute('data-s', '');
1320
+ });
1321
+ }
1322
+
1323
+ var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
1324
+
1325
+ var inserted = {};
1326
+ var container;
1327
+ var nodesToHydrate = [];
1328
+
1329
+ {
1330
+ container = options.container || document.head;
1331
+ Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
1332
+ // means that the style elements we're looking at are only Emotion 11 server-rendered style elements
1333
+ document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
1334
+ var attrib = node.getAttribute("data-emotion").split(' ');
1335
+
1336
+ for (var i = 1; i < attrib.length; i++) {
1337
+ inserted[attrib[i]] = true;
1338
+ }
1339
+
1340
+ nodesToHydrate.push(node);
1341
+ });
1342
+ }
1343
+
1344
+ var _insert;
1345
+
1346
+ var omnipresentPlugins = [compat, removeLabel];
1347
+
1348
+ {
1349
+ var currentSheet;
1350
+ var finalizingPlugins = [stringify, rulesheet(function (rule) {
1351
+ currentSheet.insert(rule);
1352
+ })];
1353
+ var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
1354
+
1355
+ var stylis = function stylis(styles) {
1356
+ return serialize(compile$1(styles), serializer);
1357
+ };
1358
+
1359
+ _insert = function insert(selector, serialized, sheet, shouldCache) {
1360
+ currentSheet = sheet;
1361
+
1362
+ stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
1363
+
1364
+ if (shouldCache) {
1365
+ cache.inserted[serialized.name] = true;
1366
+ }
1367
+ };
1368
+ }
1369
+
1370
+ var cache = {
1371
+ key: key,
1372
+ sheet: new StyleSheet({
1373
+ key: key,
1374
+ container: container,
1375
+ nonce: options.nonce,
1376
+ speedy: options.speedy,
1377
+ prepend: options.prepend,
1378
+ insertionPoint: options.insertionPoint
1379
+ }),
1380
+ nonce: options.nonce,
1381
+ inserted: inserted,
1382
+ registered: {},
1383
+ insert: _insert
1384
+ };
1385
+ cache.sheet.hydrate(nodesToHydrate);
1386
+ return cache;
1387
+ };
1388
+
1389
+ var reactIs$2 = {exports: {}};
1390
+
1391
+ var reactIs_production_min$1 = {};
1392
+
1393
+ /** @license React v16.13.1
1394
+ * react-is.production.min.js
1395
+ *
1396
+ * Copyright (c) Facebook, Inc. and its affiliates.
1397
+ *
1398
+ * This source code is licensed under the MIT license found in the
1399
+ * LICENSE file in the root directory of this source tree.
1400
+ */
1401
+
1402
+ var hasRequiredReactIs_production_min$1;
1403
+
1404
+ function requireReactIs_production_min$1 () {
1405
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
1406
+ hasRequiredReactIs_production_min$1 = 1;
1407
+ 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?
1408
+ 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;
1409
+ 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}reactIs_production_min$1.AsyncMode=l;reactIs_production_min$1.ConcurrentMode=m;reactIs_production_min$1.ContextConsumer=k;reactIs_production_min$1.ContextProvider=h;reactIs_production_min$1.Element=c;reactIs_production_min$1.ForwardRef=n;reactIs_production_min$1.Fragment=e;reactIs_production_min$1.Lazy=t;reactIs_production_min$1.Memo=r;reactIs_production_min$1.Portal=d;
1410
+ reactIs_production_min$1.Profiler=g;reactIs_production_min$1.StrictMode=f;reactIs_production_min$1.Suspense=p;reactIs_production_min$1.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min$1.isConcurrentMode=A;reactIs_production_min$1.isContextConsumer=function(a){return z(a)===k};reactIs_production_min$1.isContextProvider=function(a){return z(a)===h};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min$1.isForwardRef=function(a){return z(a)===n};reactIs_production_min$1.isFragment=function(a){return z(a)===e};reactIs_production_min$1.isLazy=function(a){return z(a)===t};
1411
+ reactIs_production_min$1.isMemo=function(a){return z(a)===r};reactIs_production_min$1.isPortal=function(a){return z(a)===d};reactIs_production_min$1.isProfiler=function(a){return z(a)===g};reactIs_production_min$1.isStrictMode=function(a){return z(a)===f};reactIs_production_min$1.isSuspense=function(a){return z(a)===p};
1412
+ reactIs_production_min$1.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)};reactIs_production_min$1.typeOf=z;
1413
+ return reactIs_production_min$1;
1414
+ }
1415
+
1416
+ var hasRequiredReactIs$2;
1417
+
1418
+ function requireReactIs$2 () {
1419
+ if (hasRequiredReactIs$2) return reactIs$2.exports;
1420
+ hasRequiredReactIs$2 = 1;
1421
+
1422
+ {
1423
+ reactIs$2.exports = requireReactIs_production_min$1();
1424
+ }
1425
+ return reactIs$2.exports;
1426
+ }
1427
+
1428
+ var hoistNonReactStatics_cjs;
1429
+ var hasRequiredHoistNonReactStatics_cjs;
1430
+
1431
+ function requireHoistNonReactStatics_cjs () {
1432
+ if (hasRequiredHoistNonReactStatics_cjs) return hoistNonReactStatics_cjs;
1433
+ hasRequiredHoistNonReactStatics_cjs = 1;
1434
+
1435
+ var reactIs = requireReactIs$2();
1436
+
1437
+ /**
1438
+ * Copyright 2015, Yahoo! Inc.
1439
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
1440
+ */
1441
+ var REACT_STATICS = {
1442
+ childContextTypes: true,
1443
+ contextType: true,
1444
+ contextTypes: true,
1445
+ defaultProps: true,
1446
+ displayName: true,
1447
+ getDefaultProps: true,
1448
+ getDerivedStateFromError: true,
1449
+ getDerivedStateFromProps: true,
1450
+ mixins: true,
1451
+ propTypes: true,
1452
+ type: true
1453
+ };
1454
+ var KNOWN_STATICS = {
1455
+ name: true,
1456
+ length: true,
1457
+ prototype: true,
1458
+ caller: true,
1459
+ callee: true,
1460
+ arguments: true,
1461
+ arity: true
1462
+ };
1463
+ var FORWARD_REF_STATICS = {
1464
+ '$$typeof': true,
1465
+ render: true,
1466
+ defaultProps: true,
1467
+ displayName: true,
1468
+ propTypes: true
1469
+ };
1470
+ var MEMO_STATICS = {
1471
+ '$$typeof': true,
1472
+ compare: true,
1473
+ defaultProps: true,
1474
+ displayName: true,
1475
+ propTypes: true,
1476
+ type: true
1477
+ };
1478
+ var TYPE_STATICS = {};
1479
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
1480
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
1481
+
1482
+ function getStatics(component) {
1483
+ // React v16.11 and below
1484
+ if (reactIs.isMemo(component)) {
1485
+ return MEMO_STATICS;
1486
+ } // React v16.12 and above
1487
+
1488
+
1489
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
1490
+ }
1491
+
1492
+ var defineProperty = Object.defineProperty;
1493
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
1494
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1495
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1496
+ var getPrototypeOf = Object.getPrototypeOf;
1497
+ var objectPrototype = Object.prototype;
1498
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
1499
+ if (typeof sourceComponent !== 'string') {
1500
+ // don't hoist over string (html) components
1501
+ if (objectPrototype) {
1502
+ var inheritedComponent = getPrototypeOf(sourceComponent);
1503
+
1504
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
1505
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
1506
+ }
1507
+ }
1508
+
1509
+ var keys = getOwnPropertyNames(sourceComponent);
1510
+
1511
+ if (getOwnPropertySymbols) {
1512
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
1513
+ }
1514
+
1515
+ var targetStatics = getStatics(targetComponent);
1516
+ var sourceStatics = getStatics(sourceComponent);
1517
+
1518
+ for (var i = 0; i < keys.length; ++i) {
1519
+ var key = keys[i];
1520
+
1521
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
1522
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
1523
+
1524
+ try {
1525
+ // Avoid failures from read-only properties
1526
+ defineProperty(targetComponent, key, descriptor);
1527
+ } catch (e) {}
1528
+ }
1529
+ }
1530
+ }
1531
+
1532
+ return targetComponent;
1533
+ }
1534
+
1535
+ hoistNonReactStatics_cjs = hoistNonReactStatics;
1536
+ return hoistNonReactStatics_cjs;
1537
+ }
1538
+
1539
+ requireHoistNonReactStatics_cjs();
1540
+
1541
+ var isBrowser = true;
1542
+
1543
+ function getRegisteredStyles(registered, registeredStyles, classNames) {
1544
+ var rawClassName = '';
1545
+ classNames.split(' ').forEach(function (className) {
1546
+ if (registered[className] !== undefined) {
1547
+ registeredStyles.push(registered[className] + ";");
1548
+ } else if (className) {
1549
+ rawClassName += className + " ";
1550
+ }
1551
+ });
1552
+ return rawClassName;
1553
+ }
1554
+ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
1555
+ var className = cache.key + "-" + serialized.name;
1556
+
1557
+ if ( // we only need to add the styles to the registered cache if the
1558
+ // class name could be used further down
1559
+ // the tree but if it's a string tag, we know it won't
1560
+ // so we don't have to add it to registered cache.
1561
+ // this improves memory usage since we can avoid storing the whole style string
1562
+ (isStringTag === false || // we need to always store it if we're in compat mode and
1563
+ // in node since emotion-server relies on whether a style is in
1564
+ // the registered cache to know whether a style is global or not
1565
+ // also, note that this check will be dead code eliminated in the browser
1566
+ isBrowser === false ) && cache.registered[className] === undefined) {
1567
+ cache.registered[className] = serialized.styles;
1568
+ }
1569
+ };
1570
+ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
1571
+ registerStyles(cache, serialized, isStringTag);
1572
+ var className = cache.key + "-" + serialized.name;
1573
+
1574
+ if (cache.inserted[serialized.name] === undefined) {
1575
+ var current = serialized;
1576
+
1577
+ do {
1578
+ cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
1579
+
1580
+ current = current.next;
1581
+ } while (current !== undefined);
1582
+ }
1583
+ };
1584
+
196
1585
  /* eslint-disable */
197
1586
  // Inspired by https://github.com/garycourt/murmurhash-js
198
1587
  // Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86
@@ -298,14 +1687,6 @@
298
1687
  strokeWidth: 1
299
1688
  };
300
1689
 
301
- function memoize$3(fn) {
302
- var cache = Object.create(null);
303
- return function (arg) {
304
- if (cache[arg] === undefined) cache[arg] = fn(arg);
305
- return cache[arg];
306
- };
307
- }
308
-
309
1690
  var hyphenateRegex = /[A-Z]|^ms/g;
310
1691
  var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
311
1692
 
@@ -401,14 +1782,29 @@
401
1782
 
402
1783
  return createStringFromObject(mergedProps, registered, interpolation);
403
1784
  }
1785
+
1786
+ case 'function':
1787
+ {
1788
+ if (mergedProps !== undefined) {
1789
+ var previousCursor = cursor;
1790
+ var result = interpolation(mergedProps);
1791
+ cursor = previousCursor;
1792
+ return handleInterpolation(mergedProps, registered, result);
1793
+ }
1794
+
1795
+ break;
1796
+ }
404
1797
  } // finalize string values (regular strings and functions interpolated into css calls)
405
1798
 
406
1799
 
407
1800
  var asString = interpolation;
408
1801
 
409
- {
1802
+ if (registered == null) {
410
1803
  return asString;
411
1804
  }
1805
+
1806
+ var cached = registered[asString];
1807
+ return cached !== undefined ? cached : asString;
412
1808
  }
413
1809
 
414
1810
  function createStringFromObject(mergedProps, registered, obj) {
@@ -425,12 +1821,14 @@
425
1821
  if (typeof value !== 'object') {
426
1822
  var asString = value;
427
1823
 
428
- if (isProcessableValue(asString)) {
1824
+ if (registered != null && registered[asString] !== undefined) {
1825
+ string += key + "{" + registered[asString] + "}";
1826
+ } else if (isProcessableValue(asString)) {
429
1827
  string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
430
1828
  }
431
1829
  } else {
432
1830
 
433
- if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null)) {
1831
+ if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
434
1832
  for (var _i = 0; _i < value.length; _i++) {
435
1833
  if (isProcessableValue(value[_i])) {
436
1834
  string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
@@ -513,13 +1911,383 @@
513
1911
  };
514
1912
  }
515
1913
 
516
- var reactExports = requireReact();
517
- var We = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
1914
+ var syncFallback = function syncFallback(create) {
1915
+ return create();
1916
+ };
518
1917
 
519
- var React2 = /*#__PURE__*/_mergeNamespaces({
520
- __proto__: null,
521
- default: We
522
- }, [reactExports]);
1918
+ var useInsertionEffect$1 = React2['useInsertion' + 'Effect'] ? React2['useInsertion' + 'Effect'] : false;
1919
+ var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect$1 || syncFallback;
1920
+ var useInsertionEffectWithLayoutFallback = useInsertionEffect$1 || reactExports.useLayoutEffect;
1921
+
1922
+ var EmotionCacheContext = /* #__PURE__ */reactExports.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
1923
+ // because this module is primarily intended for the browser and node
1924
+ // but it's also required in react native and similar environments sometimes
1925
+ // and we could have a special build just for that
1926
+ // but this is much easier and the native packages
1927
+ // might use a different theme context in the future anyway
1928
+ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
1929
+ key: 'css'
1930
+ }) : null);
1931
+
1932
+ EmotionCacheContext.Provider;
1933
+
1934
+ var withEmotionCache = function withEmotionCache(func) {
1935
+ return /*#__PURE__*/reactExports.forwardRef(function (props, ref) {
1936
+ // the cache will never be null in the browser
1937
+ var cache = reactExports.useContext(EmotionCacheContext);
1938
+ return func(props, cache, ref);
1939
+ });
1940
+ };
1941
+
1942
+ var ThemeContext$1 = /* #__PURE__ */reactExports.createContext({});
1943
+
1944
+ var hasOwn$1 = {}.hasOwnProperty;
1945
+
1946
+ var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
1947
+ var createEmotionProps = function createEmotionProps(type, props) {
1948
+
1949
+ var newProps = {};
1950
+
1951
+ for (var _key in props) {
1952
+ if (hasOwn$1.call(props, _key)) {
1953
+ newProps[_key] = props[_key];
1954
+ }
1955
+ }
1956
+
1957
+ newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
1958
+
1959
+ return newProps;
1960
+ };
1961
+
1962
+ var Insertion$1 = function Insertion(_ref) {
1963
+ var cache = _ref.cache,
1964
+ serialized = _ref.serialized,
1965
+ isStringTag = _ref.isStringTag;
1966
+ registerStyles(cache, serialized, isStringTag);
1967
+ useInsertionEffectAlwaysWithSyncFallback(function () {
1968
+ return insertStyles(cache, serialized, isStringTag);
1969
+ });
1970
+
1971
+ return null;
1972
+ };
1973
+
1974
+ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
1975
+ var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
1976
+ // not passing the registered cache to serializeStyles because it would
1977
+ // make certain babel optimisations not possible
1978
+
1979
+ if (typeof cssProp === 'string' && cache.registered[cssProp] !== undefined) {
1980
+ cssProp = cache.registered[cssProp];
1981
+ }
1982
+
1983
+ var WrappedComponent = props[typePropName];
1984
+ var registeredStyles = [cssProp];
1985
+ var className = '';
1986
+
1987
+ if (typeof props.className === 'string') {
1988
+ className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
1989
+ } else if (props.className != null) {
1990
+ className = props.className + " ";
1991
+ }
1992
+
1993
+ var serialized = serializeStyles(registeredStyles, undefined, reactExports.useContext(ThemeContext$1));
1994
+
1995
+ className += cache.key + "-" + serialized.name;
1996
+ var newProps = {};
1997
+
1998
+ for (var _key2 in props) {
1999
+ if (hasOwn$1.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (true )) {
2000
+ newProps[_key2] = props[_key2];
2001
+ }
2002
+ }
2003
+
2004
+ newProps.className = className;
2005
+
2006
+ if (ref) {
2007
+ newProps.ref = ref;
2008
+ }
2009
+
2010
+ return /*#__PURE__*/reactExports.createElement(reactExports.Fragment, null, /*#__PURE__*/reactExports.createElement(Insertion$1, {
2011
+ cache: cache,
2012
+ serialized: serialized,
2013
+ isStringTag: typeof WrappedComponent === 'string'
2014
+ }), /*#__PURE__*/reactExports.createElement(WrappedComponent, newProps));
2015
+ });
2016
+
2017
+ var Emotion$1 = Emotion;
2018
+
2019
+ var jsx = function jsx(type, props) {
2020
+ // eslint-disable-next-line prefer-rest-params
2021
+ var args = arguments;
2022
+
2023
+ if (props == null || !hasOwn$1.call(props, 'css')) {
2024
+ return reactExports.createElement.apply(undefined, args);
2025
+ }
2026
+
2027
+ var argsLength = args.length;
2028
+ var createElementArgArray = new Array(argsLength);
2029
+ createElementArgArray[0] = Emotion$1;
2030
+ createElementArgArray[1] = createEmotionProps(type, props);
2031
+
2032
+ for (var i = 2; i < argsLength; i++) {
2033
+ createElementArgArray[i] = args[i];
2034
+ }
2035
+
2036
+ return reactExports.createElement.apply(null, createElementArgArray);
2037
+ };
2038
+
2039
+ (function (_jsx) {
2040
+ var JSX;
2041
+
2042
+ (function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
2043
+ })(jsx || (jsx = {}));
2044
+
2045
+ // initial render from browser, insertBefore context.sheet.tags[0] or if a style hasn't been inserted there yet, appendChild
2046
+ // initial client-side render from SSR, use place of hydrating tag
2047
+
2048
+ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
2049
+
2050
+ var styles = props.styles;
2051
+ var serialized = serializeStyles([styles], undefined, reactExports.useContext(ThemeContext$1));
2052
+ // but it is based on a constant that will never change at runtime
2053
+ // it's effectively like having two implementations and switching them out
2054
+ // so it's not actually breaking anything
2055
+
2056
+
2057
+ var sheetRef = reactExports.useRef();
2058
+ useInsertionEffectWithLayoutFallback(function () {
2059
+ var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
2060
+
2061
+ var sheet = new cache.sheet.constructor({
2062
+ key: key,
2063
+ nonce: cache.sheet.nonce,
2064
+ container: cache.sheet.container,
2065
+ speedy: cache.sheet.isSpeedy
2066
+ });
2067
+ var rehydrating = false;
2068
+ var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
2069
+
2070
+ if (cache.sheet.tags.length) {
2071
+ sheet.before = cache.sheet.tags[0];
2072
+ }
2073
+
2074
+ if (node !== null) {
2075
+ rehydrating = true; // clear the hash so this node won't be recognizable as rehydratable by other <Global/>s
2076
+
2077
+ node.setAttribute('data-emotion', key);
2078
+ sheet.hydrate([node]);
2079
+ }
2080
+
2081
+ sheetRef.current = [sheet, rehydrating];
2082
+ return function () {
2083
+ sheet.flush();
2084
+ };
2085
+ }, [cache]);
2086
+ useInsertionEffectWithLayoutFallback(function () {
2087
+ var sheetRefCurrent = sheetRef.current;
2088
+ var sheet = sheetRefCurrent[0],
2089
+ rehydrating = sheetRefCurrent[1];
2090
+
2091
+ if (rehydrating) {
2092
+ sheetRefCurrent[1] = false;
2093
+ return;
2094
+ }
2095
+
2096
+ if (serialized.next !== undefined) {
2097
+ // insert keyframes
2098
+ insertStyles(cache, serialized.next, true);
2099
+ }
2100
+
2101
+ if (sheet.tags.length) {
2102
+ // if this doesn't exist then it will be null so the style element will be appended
2103
+ var element = sheet.tags[sheet.tags.length - 1].nextElementSibling;
2104
+ sheet.before = element;
2105
+ sheet.flush();
2106
+ }
2107
+
2108
+ cache.insert("", serialized, sheet, false);
2109
+ }, [cache, serialized.name]);
2110
+ return null;
2111
+ });
2112
+
2113
+ // eslint-disable-next-line no-undef
2114
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
2115
+
2116
+ var isPropValid = /* #__PURE__ */memoize$3(function (prop) {
2117
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2118
+ /* o */
2119
+ && prop.charCodeAt(1) === 110
2120
+ /* n */
2121
+ && prop.charCodeAt(2) < 91;
2122
+ }
2123
+ /* Z+1 */
2124
+ );
2125
+
2126
+ var testOmitPropsOnStringTag = isPropValid;
2127
+
2128
+ var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
2129
+ return key !== 'theme';
2130
+ };
2131
+
2132
+ var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
2133
+ return typeof tag === 'string' && // 96 is one less than the char code
2134
+ // for "a" so this is checking that
2135
+ // it's a lowercase character
2136
+ tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
2137
+ };
2138
+ var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
2139
+ var shouldForwardProp;
2140
+
2141
+ if (options) {
2142
+ var optionsShouldForwardProp = options.shouldForwardProp;
2143
+ shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function (propName) {
2144
+ return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
2145
+ } : optionsShouldForwardProp;
2146
+ }
2147
+
2148
+ if (typeof shouldForwardProp !== 'function' && isReal) {
2149
+ shouldForwardProp = tag.__emotion_forwardProp;
2150
+ }
2151
+
2152
+ return shouldForwardProp;
2153
+ };
2154
+
2155
+ var Insertion = function Insertion(_ref) {
2156
+ var cache = _ref.cache,
2157
+ serialized = _ref.serialized,
2158
+ isStringTag = _ref.isStringTag;
2159
+ registerStyles(cache, serialized, isStringTag);
2160
+ useInsertionEffectAlwaysWithSyncFallback(function () {
2161
+ return insertStyles(cache, serialized, isStringTag);
2162
+ });
2163
+
2164
+ return null;
2165
+ };
2166
+
2167
+ var createStyled$1 = function createStyled(tag, options) {
2168
+
2169
+ var isReal = tag.__emotion_real === tag;
2170
+ var baseTag = isReal && tag.__emotion_base || tag;
2171
+ var identifierName;
2172
+ var targetClassName;
2173
+
2174
+ if (options !== undefined) {
2175
+ identifierName = options.label;
2176
+ targetClassName = options.target;
2177
+ }
2178
+
2179
+ var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
2180
+ var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
2181
+ var shouldUseAs = !defaultShouldForwardProp('as');
2182
+ return function () {
2183
+ // eslint-disable-next-line prefer-rest-params
2184
+ var args = arguments;
2185
+ var styles = isReal && tag.__emotion_styles !== undefined ? tag.__emotion_styles.slice(0) : [];
2186
+
2187
+ if (identifierName !== undefined) {
2188
+ styles.push("label:" + identifierName + ";");
2189
+ }
2190
+
2191
+ if (args[0] == null || args[0].raw === undefined) {
2192
+ // eslint-disable-next-line prefer-spread
2193
+ styles.push.apply(styles, args);
2194
+ } else {
2195
+ var templateStringsArr = args[0];
2196
+
2197
+ styles.push(templateStringsArr[0]);
2198
+ var len = args.length;
2199
+ var i = 1;
2200
+
2201
+ for (; i < len; i++) {
2202
+
2203
+ styles.push(args[i], templateStringsArr[i]);
2204
+ }
2205
+ }
2206
+
2207
+ var Styled = withEmotionCache(function (props, cache, ref) {
2208
+ var FinalTag = shouldUseAs && props.as || baseTag;
2209
+ var className = '';
2210
+ var classInterpolations = [];
2211
+ var mergedProps = props;
2212
+
2213
+ if (props.theme == null) {
2214
+ mergedProps = {};
2215
+
2216
+ for (var key in props) {
2217
+ mergedProps[key] = props[key];
2218
+ }
2219
+
2220
+ mergedProps.theme = reactExports.useContext(ThemeContext$1);
2221
+ }
2222
+
2223
+ if (typeof props.className === 'string') {
2224
+ className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
2225
+ } else if (props.className != null) {
2226
+ className = props.className + " ";
2227
+ }
2228
+
2229
+ var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
2230
+ className += cache.key + "-" + serialized.name;
2231
+
2232
+ if (targetClassName !== undefined) {
2233
+ className += " " + targetClassName;
2234
+ }
2235
+
2236
+ var finalShouldForwardProp = shouldUseAs && shouldForwardProp === undefined ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
2237
+ var newProps = {};
2238
+
2239
+ for (var _key in props) {
2240
+ if (shouldUseAs && _key === 'as') continue;
2241
+
2242
+ if (finalShouldForwardProp(_key)) {
2243
+ newProps[_key] = props[_key];
2244
+ }
2245
+ }
2246
+
2247
+ newProps.className = className;
2248
+
2249
+ if (ref) {
2250
+ newProps.ref = ref;
2251
+ }
2252
+
2253
+ return /*#__PURE__*/reactExports.createElement(reactExports.Fragment, null, /*#__PURE__*/reactExports.createElement(Insertion, {
2254
+ cache: cache,
2255
+ serialized: serialized,
2256
+ isStringTag: typeof FinalTag === 'string'
2257
+ }), /*#__PURE__*/reactExports.createElement(FinalTag, newProps));
2258
+ });
2259
+ Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")";
2260
+ Styled.defaultProps = tag.defaultProps;
2261
+ Styled.__emotion_real = Styled;
2262
+ Styled.__emotion_base = baseTag;
2263
+ Styled.__emotion_styles = styles;
2264
+ Styled.__emotion_forwardProp = shouldForwardProp;
2265
+ Object.defineProperty(Styled, 'toString', {
2266
+ value: function value() {
2267
+
2268
+ return "." + targetClassName;
2269
+ }
2270
+ });
2271
+
2272
+ Styled.withComponent = function (nextTag, nextOptions) {
2273
+ var newStyled = createStyled(nextTag, _extends({}, options, nextOptions, {
2274
+ shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2275
+ }));
2276
+ return newStyled.apply(void 0, styles);
2277
+ };
2278
+
2279
+ return Styled;
2280
+ };
2281
+ };
2282
+
2283
+ var tags = ['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
2284
+ 'circle', 'clipPath', 'defs', 'ellipse', 'foreignObject', 'g', 'image', 'line', 'linearGradient', 'mask', 'path', 'pattern', 'polygon', 'polyline', 'radialGradient', 'rect', 'stop', 'svg', 'text', 'tspan'];
2285
+
2286
+ // bind it to avoid mutating the original function
2287
+ var styled$2 = createStyled$1.bind(null);
2288
+ tags.forEach(function (tagName) {
2289
+ styled$2[tagName] = styled$2(tagName);
2290
+ });
523
2291
 
524
2292
  function isEmpty$4(obj) {
525
2293
  return obj === undefined || obj === null || Object.keys(obj).length === 0;
@@ -530,7 +2298,7 @@
530
2298
  defaultTheme = {}
531
2299
  } = props;
532
2300
  const globalStyles = typeof styles === 'function' ? themeInput => styles(isEmpty$4(themeInput) ? defaultTheme : themeInput) : styles;
533
- return /*#__PURE__*/jsxRuntimeExports.jsx(react$1.Global, {
2301
+ return /*#__PURE__*/jsxRuntimeExports.jsx(Global, {
534
2302
  styles: globalStyles
535
2303
  });
536
2304
  }
@@ -543,7 +2311,7 @@
543
2311
  * LICENSE file in the root directory of this source tree.
544
2312
  */
545
2313
  function styled$1(tag, options) {
546
- const stylesFactory = emStyled(tag, options);
2314
+ const stylesFactory = styled$2(tag, options);
547
2315
  return stylesFactory;
548
2316
  }
549
2317
 
@@ -2033,7 +3801,7 @@
2033
3801
  return Object.keys(obj).length === 0;
2034
3802
  }
2035
3803
  function useTheme$3(defaultTheme = null) {
2036
- const contextTheme = reactExports.useContext(react$1.ThemeContext);
3804
+ const contextTheme = reactExports.useContext(ThemeContext$1);
2037
3805
  return !contextTheme || isObjectEmpty$2(contextTheme) ? defaultTheme : contextTheme;
2038
3806
  }
2039
3807
 
@@ -3081,7 +4849,7 @@
3081
4849
  const layerOrder = useLayerOrder(engineTheme);
3082
4850
  return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$2, {
3083
4851
  theme: privateTheme,
3084
- children: /*#__PURE__*/jsxRuntimeExports.jsx(react$1.ThemeContext.Provider, {
4852
+ children: /*#__PURE__*/jsxRuntimeExports.jsx(ThemeContext$1.Provider, {
3085
4853
  value: engineTheme,
3086
4854
  children: /*#__PURE__*/jsxRuntimeExports.jsx(RtlProvider, {
3087
4855
  value: rtlValue,
@@ -48371,5 +50139,5 @@ export default theme;`;
48371
50139
  }
48372
50140
  window.renderForm = renderForm;
48373
50141
 
48374
- })(emStyled, react$1);
50142
+ })();
48375
50143
  //# sourceMappingURL=form.bundle.js.map