Instant Images – One Click Unsplash Uploads - Version 4.5.1

Version Description

  • December 27, 2021 = NEW: Added Pixabay photo filters (Type, Category, Colors and Orientation). NEW: Added Unsplash search filters for Color, Orientation and Order. NEW: Added new instant_images_pixabay_safesearch & instant_images_unsplash_content_filter filters that allow for modifying the flags the indicate the types of suitable images that should be returned. Get more information in our FAQ. NEW: Added Pixabay API constant that allows for setting Pixabay API key via site constant. e.g. define( 'INSTANT_IMAGES_PIXABAY_KEY', 'YOUR-KEY-HERE' ); UPDATE: Revamped filtering menus and orientation options. UPDATE: Other UI/UX updates to make the plugin more visually appealing. UPDATE: Improved plugin accessibility across various sections.
Download this release

Release Info

Developer dcooney
Plugin Icon 128x128 Instant Images – One Click Unsplash Uploads
Version 4.5.1
Comparing to
See all releases

Code changes from version 4.5.0 to 4.5.1

README.txt CHANGED
@@ -128,6 +128,16 @@ How to install Instant Images.
128
 
129
  == Changelog ==
130
 
 
 
 
 
 
 
 
 
 
 
131
  = 4.5.0 - October 28, 2021 =
132
  NEW: 🎉 Pixabay! We've added support for [Pixabay](https://pixabay.com) images. This requires a valid API key.
133
  NEW: Added button to auto-generate Photo attribution in image caption.
128
 
129
  == Changelog ==
130
 
131
+ = 4.5.1 - December 27, 2021 =
132
+ NEW: Added Pixabay photo filters (Type, Category, Colors and Orientation).
133
+ NEW: Added Unsplash search filters for Color, Orientation and Order.
134
+ NEW: Added new `instant_images_pixabay_safesearch` & `instant_images_unsplash_content_filter` filters that allow for modifying the flags the indicate the types of suitable images that should be returned. Get more information in our [FAQ](https://connekthq.com/plugins/instant-images/faqs/#can-i-ensure-only-photos-safe-for-work-are-returned-in-the-photo-listings).
135
+ NEW: Added Pixabay API constant that allows for setting Pixabay API key via site constant. e.g. `define( 'INSTANT_IMAGES_PIXABAY_KEY', 'YOUR-KEY-HERE' );`
136
+ UPDATE: Revamped filtering menus and orientation options.
137
+ UPDATE: Other UI/UX updates to make the plugin more visually appealing.
138
+ UPDATE: Improved plugin accessibility across various sections.
139
+
140
+
141
  = 4.5.0 - October 28, 2021 =
142
  NEW: 🎉 Pixabay! We've added support for [Pixabay](https://pixabay.com) images. This requires a valid API key.
143
  NEW: Added button to auto-generate Photo attribution in image caption.
admin/includes/settings.php CHANGED
@@ -200,14 +200,20 @@ function instant_images_default_provider() {
200
  */
201
  function instant_images_pixabay_api_callback() {
202
  $options = get_option( 'instant_img_settings' );
203
- if ( ! isset( $options['pixabay_api'] ) ) {
204
- $options['pixabay_api'] = '';
 
 
 
 
 
205
  }
 
206
  ?>
207
  <label for="pixabay_api" style="cursor: default; margin-bottom: 3px;">
208
  <strong><?php esc_attr_e( 'Pixabay API Key:', 'instant-images' ); ?></strong>
209
  </label>
210
- <input type="text" id="pixabay_api" name="instant_img_settings[pixabay_api]" value="<?php echo wp_kses_post( $options['pixabay_api'] ); ?>" >
211
  <span class="desc">&rarr; <a href="https://pixabay.com/" target="_blank"><?php esc_attr_e( 'Get API Key', 'instant-images' ); ?></a></span>
212
  <?php
213
  }
200
  */
201
  function instant_images_pixabay_api_callback() {
202
  $options = get_option( 'instant_img_settings' );
203
+
204
+ if ( defined( 'INSTANT_IMAGES_PIXABAY_KEY' ) ) {
205
+ $options['pixabay_api'] = INSTANT_IMAGES_PIXABAY_KEY; // Constant.
206
+ } else {
207
+ if ( ! isset( $options['pixabay_api'] ) ) {
208
+ $options['pixabay_api'] = '';
209
+ }
210
  }
211
+
212
  ?>
213
  <label for="pixabay_api" style="cursor: default; margin-bottom: 3px;">
214
  <strong><?php esc_attr_e( 'Pixabay API Key:', 'instant-images' ); ?></strong>
215
  </label>
216
+ <input type="text" id="pixabay_api" name="instant_img_settings[pixabay_api]" value="<?php echo wp_kses_post( $options['pixabay_api'] ); ?>" <?php echo defined( 'INSTANT_IMAGES_PIXABAY_KEY' ) ? ' readonly="readonly"' : ''; ?>>
217
  <span class="desc">&rarr; <a href="https://pixabay.com/" target="_blank"><?php esc_attr_e( 'Get API Key', 'instant-images' ); ?></a></span>
218
  <?php
219
  }
dist/css/instant-images.css CHANGED
@@ -465,12 +465,13 @@ body.media_page_instant-images.overflow-hidden {
465
  -ms-flex-align: center;
466
  align-items: center;
467
  width: 100%;
468
- margin: 0;
469
- padding: 25px 0;
470
  list-style: none;
 
471
  }
472
 
473
- @media screen and (max-width: 600px) {
474
  .instant-img-container .control-nav {
475
  -webkit-box-pack: center;
476
  -ms-flex-pack: center;
@@ -484,101 +485,156 @@ body.media_page_instant-images.overflow-hidden {
484
  clear: both;
485
  }
486
 
487
- .instant-img-container .control-nav li {
488
- padding: 0;
489
- margin: 0 3px 0 0;
490
- float: left;
491
- background: none;
492
- font-size: 18px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
493
  position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
494
  }
495
 
496
- .instant-img-container .control-nav li button {
497
- padding: 0 24px 0 2px;
498
- height: 42px;
499
- line-height: 42px;
500
  display: block;
501
- color: #999;
502
- text-decoration: none;
503
- -webkit-box-shadow: none;
504
- box-shadow: none;
505
- background-color: transparent;
506
- background-position: 96% center;
507
- background-repeat: no-repeat;
508
- border: none;
509
- cursor: pointer;
510
  }
511
 
512
- .instant-img-container .control-nav li button:hover, .instant-img-container .control-nav li button:focus {
513
- color: #111;
514
- outline: none;
515
- -webkit-box-shadow: none;
516
- box-shadow: none;
 
517
  }
518
 
519
- .instant-img-container .control-nav li button:focus {
520
- text-decoration: underline;
 
 
 
 
521
  }
522
 
523
- .instant-img-container .control-nav li button.active {
524
- color: #333;
525
- cursor: default;
526
- font-weight: 600;
527
  }
528
 
529
- .instant-img-container .control-nav li button.loading {
530
- background-image: url(../img/ajax-loader.gif);
 
 
 
 
 
 
 
 
531
  }
532
 
533
- @media screen and (max-width: 800px) {
534
- .instant-img-container .control-nav li {
535
- font-size: 16px;
536
- margin: 0;
537
- }
538
- .instant-img-container .control-nav li button {
539
- padding-left: 3px;
540
- }
541
  }
542
 
543
- @media screen and (max-width: 600px) {
544
- .instant-img-container .control-nav li {
545
- text-align: center;
546
- margin: 0;
547
- padding-bottom: 15px;
548
- }
549
  }
550
 
551
- .instant-img-container .control-nav li.search-field {
552
- width: 40%;
 
 
 
 
553
  margin: 0;
554
  margin-left: auto;
555
- max-width: 500px;
 
556
  }
557
 
558
- @media screen and (max-width: 600px) {
559
- .instant-img-container .control-nav li.search-field {
 
 
 
 
 
 
560
  width: 100%;
561
  display: block;
562
  position: static;
563
- padding-bottom: 0;
564
  text-align: left;
565
  max-width: 100%;
 
566
  }
567
  }
568
 
569
- .instant-img-container .control-nav li.search-field .searchResults {
570
  position: absolute;
571
  right: 100.5%;
572
- top: 4px;
573
  width: auto;
574
- height: 34px;
575
- line-height: 34px;
576
- padding: 0 0 0 10px;
577
  background: #586ec6;
578
  border: 1px solid #455cb6;
579
- -webkit-border-radius: 3px;
580
- border-radius: 3px;
581
- z-index: 99;
582
  font-size: 13px;
583
  font-weight: 500;
584
  -webkit-transition: all 0.25s ease;
@@ -595,17 +651,18 @@ body.media_page_instant-images.overflow-hidden {
595
  align-items: center;
596
  }
597
 
598
- .instant-img-container .control-nav li.search-field .searchResults span {
599
  cursor: help;
600
- font-style: italic;
601
  }
602
 
603
- .instant-img-container .control-nav li.search-field .searchResults button {
 
604
  color: #fff;
 
605
  padding: 0;
606
  height: auto;
607
  line-height: 1;
608
- width: 30px;
609
  font-weight: 700;
610
  opacity: 0.65;
611
  display: -webkit-box;
@@ -619,13 +676,16 @@ body.media_page_instant-images.overflow-hidden {
619
  justify-content: center;
620
  font-size: 14px;
621
  height: 100%;
 
 
 
622
  }
623
 
624
- .instant-img-container .control-nav li.search-field .searchResults button:hover, .instant-img-container .control-nav li.search-field .searchResults button:focus {
625
  opacity: 1;
626
  }
627
 
628
- .instant-img-container .control-nav li.search-field .searchResults:after, .instant-img-container .control-nav li.search-field .searchResults:before {
629
  left: 100%;
630
  top: 50%;
631
  border: solid transparent;
@@ -637,126 +697,127 @@ body.media_page_instant-images.overflow-hidden {
637
  z-index: 100;
638
  }
639
 
640
- .instant-img-container .control-nav li.search-field .searchResults:after {
641
  border-color: rgba(223, 225, 173, 0);
642
  border-left-color: #586ec6;
643
  border-width: 6px;
644
  margin-top: -6px;
645
  }
646
 
647
- .instant-img-container .control-nav li.search-field .searchResults:before {
648
  border-color: rgba(0, 0, 0, 0);
649
  border-left-color: #455cb6;
650
  border-width: 7px;
651
  margin-top: -7px;
652
  }
653
 
654
- .instant-img-container .control-nav li.search-field .searchResults.hide {
655
  opacity: 0;
656
  visibility: hidden;
657
  }
658
 
659
- .instant-img-container .control-nav li.search-field form {
660
  padding: 0 1px 0 0;
661
  margin: 0;
662
  position: relative;
663
- height: 42px;
664
  display: block;
 
665
  }
666
 
667
- .instant-img-container .control-nav li.search-field form:hover button[type="submit"] {
668
  opacity: 1;
669
  }
670
 
671
- .instant-img-container .control-nav li.search-field input {
672
  width: 100%;
673
- padding: 0 10px 0 42px;
674
- border: 1px solid #e1e1e1;
675
  background-color: #f7f7f7 !important;
676
- height: 42px;
677
- line-height: 42px;
678
- -webkit-border-radius: 5px;
679
- border-radius: 5px;
680
- font-size: 16px;
681
- -webkit-transition: all 0.2s ease;
682
- -o-transition: all 0.2s ease;
683
- transition: all 0.2s ease;
 
 
684
  }
685
 
686
- .instant-img-container .control-nav li.search-field input:focus {
687
  border-color: #999;
688
- -webkit-box-shadow: 0 0 1px 4px rgba(0, 0, 0, 0.065);
689
- box-shadow: 0 0 1px 4px rgba(0, 0, 0, 0.065);
690
  }
691
 
692
- .instant-img-container .control-nav li.search-field input.searching {
693
- padding-left: 62px;
694
  background-image: url(../img/ajax-loader.gif);
695
- background-position: 37px center;
696
- background-repeat: no-repeat;
697
  }
698
 
699
- .instant-img-container .control-nav li.search-field input[type="search"]::-webkit-search-decoration,
700
- .instant-img-container .control-nav li.search-field input[type="search"]::-webkit-search-cancel-button,
701
- .instant-img-container .control-nav li.search-field input[type="search"]::-webkit-search-results-button,
702
- .instant-img-container .control-nav li.search-field input[type="search"]::-webkit-search-results-decoration {
703
  -webkit-appearance: none;
704
  }
705
 
706
- .instant-img-container .control-nav li.search-field button[type=submit] {
707
  position: absolute;
708
- left: 0;
709
  top: 0;
710
- width: 42px;
711
- height: 42px;
712
- line-height: 42px;
 
 
713
  z-index: 1;
714
  border: none !important;
715
  background: transparent !important;
716
  cursor: pointer;
717
- color: #666;
718
  -webkit-box-shadow: none !important;
719
  box-shadow: none !important;
720
  -webkit-transition: all 0.25s ease;
721
  -o-transition: all 0.25s ease;
722
  transition: all 0.25s ease;
723
- opacity: 0.5;
724
  margin: 0;
725
  padding: 0;
 
726
  }
727
 
728
- .instant-img-container .control-nav li.search-field button[type=submit]:hover {
729
- outline: none;
730
- color: #586ec6;
731
- }
732
-
733
- .instant-img-container .control-nav li.search-field button[type=submit]:focus {
734
- outline: none;
735
- color: #586ec6;
736
  }
737
 
738
- .instant-img-container .control-nav li.search-field input[type="search"]::-webkit-input-placeholder {
739
  color: #ccc;
740
  font-weight: 400;
741
  font-style: normal;
 
742
  }
743
 
744
- .instant-img-container .control-nav li.search-field input[type="search"]:-moz-placeholder {
745
  color: #ccc;
746
  font-weight: 400;
747
  font-style: normal;
 
748
  }
749
 
750
- .instant-img-container .control-nav li.search-field input[type="search"]::-moz-placeholder {
751
  color: #ccc;
752
  font-weight: 400;
753
  font-style: normal;
 
754
  }
755
 
756
- .instant-img-container .control-nav li.search-field input[type="search"]:-ms-input-placeholder {
757
  color: #ccc;
758
  font-weight: 400;
759
  font-style: normal;
 
760
  }
761
 
762
  #photos {
@@ -767,6 +828,29 @@ body.media_page_instant-images.overflow-hidden {
767
  position: relative;
768
  }
769
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
770
  #photos .photo {
771
  width: 20%;
772
  margin: 0;
@@ -802,7 +886,7 @@ body.media_page_instant-images.overflow-hidden {
802
  }
803
  }
804
 
805
- @media screen and (max-width: 1570px) {
806
  #photos .photo {
807
  width: 25%;
808
  }
@@ -1193,7 +1277,7 @@ body.media_page_instant-images.overflow-hidden {
1193
  }
1194
 
1195
  #photos .photo .fade.user .user-wrap:before {
1196
- content: '';
1197
  display: block;
1198
  z-index: 0;
1199
  background-color: #fff;
@@ -1573,6 +1657,17 @@ body.media_page_instant-images.overflow-hidden {
1573
  max-width: none;
1574
  }
1575
 
 
 
 
 
 
 
 
 
 
 
 
1576
  .instant-images-settings .cnkt-sidebar .cta.ii-settings input[type="text"],
1577
  .instant-images-settings .cnkt-sidebar .cta.ii-settings input[type="number"] {
1578
  padding: 10px;
@@ -1581,7 +1676,7 @@ body.media_page_instant-images.overflow-hidden {
1581
  .instant-images-settings .cnkt-sidebar .cta.ii-settings span.desc {
1582
  font-size: 11px;
1583
  display: block;
1584
- padding: 5px 2px;
1585
  }
1586
 
1587
  .instant-images-settings .cnkt-sidebar .cta.ii-plugins {
@@ -1752,6 +1847,16 @@ body.loading .instant-img-container .loading-block {
1752
  font-size: 13px;
1753
  }
1754
 
 
 
 
 
 
 
 
 
 
 
1755
  .components-panel #photos {
1756
  width: 100%;
1757
  margin: 0;
@@ -1768,57 +1873,113 @@ body.loading .instant-img-container .loading-block {
1768
 
1769
  .components-panel .provider-nav {
1770
  width: 100%;
1771
- padding: 5px;
1772
  margin: 0;
1773
  border-bottom-color: #ddd;
1774
  }
1775
 
1776
  .components-panel .provider-nav button {
1777
  font-size: 13px;
1778
- padding-left: 32px;
1779
  }
1780
 
1781
  .components-panel .control-nav {
1782
  padding: 0 5px 5px;
1783
  border-bottom: 1px solid #ddd;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1784
  }
1785
 
1786
- .components-panel .control-nav li {
 
 
 
 
 
 
1787
  font-size: 13px;
1788
  }
1789
 
1790
- .components-panel .control-nav li button {
1791
- padding-left: 4px;
1792
  }
1793
 
1794
- .components-panel .control-nav li a {
1795
- padding: 16px 24px 16px 0;
1796
- height: auto;
1797
- line-height: 1.2;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1798
  }
1799
 
1800
- .components-panel .control-nav li.search-field {
1801
  float: none;
1802
  width: 100%;
1803
- padding: 0;
1804
  clear: both;
1805
  }
1806
 
1807
- .components-panel .control-nav li.search-field form {
1808
  height: auto;
1809
  }
1810
 
1811
- .components-panel .control-nav li.search-field:before {
1812
- content: "";
1813
- display: table;
1814
- clear: both;
1815
  }
1816
 
1817
- .components-panel .control-nav li.search-field button[type=submit] {
1818
  display: none;
1819
  }
1820
 
1821
- .components-panel .control-nav li.search-field input {
1822
  line-height: 40px;
1823
  height: 40px;
1824
  padding-right: 10px;
@@ -1827,19 +1988,35 @@ body.loading .instant-img-container .loading-block {
1827
  font-size: 13px;
1828
  -webkit-border-radius: 3px !important;
1829
  border-radius: 3px !important;
 
1830
  }
1831
 
1832
- .components-panel .control-nav li.search-field input.searching {
1833
  padding-left: 30px;
1834
- background-position: 8px center;
1835
  }
1836
 
1837
- .components-panel .control-nav li.search-field input:focus {
1838
  -webkit-box-shadow: none;
1839
  box-shadow: none;
1840
  }
1841
 
1842
- .components-panel .control-nav li.search-field .searchResults {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1843
  right: 2px;
1844
  left: auto;
1845
  top: 2px;
@@ -1850,7 +2027,7 @@ body.loading .instant-img-container .loading-block {
1850
  line-height: 35px;
1851
  }
1852
 
1853
- .components-panel .control-nav li.search-field .searchResults:before, .components-panel .control-nav li.search-field .searchResults:after {
1854
  display: none;
1855
  }
1856
 
@@ -2020,12 +2197,12 @@ body.loading .instant-img-container .loading-block {
2020
  outline: none;
2021
  }
2022
 
2023
- .media-frame-content .instant-img-container .load-more-wrap {
2024
- display: block;
2025
  }
2026
 
2027
- .media-frame-content .instant-img-container .provider-nav {
2028
- padding: 10px 25px;
2029
  }
2030
 
2031
  .provider-nav {
@@ -2049,7 +2226,9 @@ body.loading .instant-img-container .loading-block {
2049
  }
2050
 
2051
  .provider-nav--btn {
2052
- padding: 8px 8px 8px 35px;
 
 
2053
  border: 1px solid transparent;
2054
  background: transparent;
2055
  margin-right: 5px;
@@ -2071,7 +2250,7 @@ body.loading .instant-img-container .loading-block {
2071
 
2072
  .provider-nav--btn.active {
2073
  background-color: #fff;
2074
- border-color: #e1e1e1;
2075
  color: #333;
2076
  cursor: default;
2077
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.075);
@@ -2094,13 +2273,13 @@ body.loading .instant-img-container .loading-block {
2094
  }
2095
 
2096
  [data-provider="unsplash"] {
2097
- background: url(../img/unsplash.svg) no-repeat 8px center;
2098
  -webkit-background-size: 18px 18px;
2099
  background-size: 18px 18px;
2100
  }
2101
 
2102
  [data-provider="pixabay"] {
2103
- background: url(../img/pixabay.png) no-repeat 8px center;
2104
  -webkit-background-size: 20px 20px;
2105
  background-size: 20px 20px;
2106
  }
@@ -2396,4 +2575,197 @@ body.loading .instant-img-container .loading-block {
2396
  color: #51a75e;
2397
  }
2398
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2399
  /*# sourceMappingURL=instant-images.css.map*/
465
  -ms-flex-align: center;
466
  align-items: center;
467
  width: 100%;
468
+ margin: 0 0 20px;
469
+ padding: 20px 0;
470
  list-style: none;
471
+ border-bottom: 1px solid #efefef;
472
  }
473
 
474
+ @media screen and (max-width: 800px) {
475
  .instant-img-container .control-nav {
476
  -webkit-box-pack: center;
477
  -ms-flex-pack: center;
485
  clear: both;
486
  }
487
 
488
+ .instant-img-container .control-nav--filters-wrap {
489
+ -webkit-box-flex: 1;
490
+ -ms-flex: 1;
491
+ flex: 1;
492
+ position: relative;
493
+ -webkit-transition: all 0.25s ease;
494
+ -o-transition: all 0.25s ease;
495
+ transition: all 0.25s ease;
496
+ }
497
+
498
+ @media screen and (max-width: 800px) {
499
+ .instant-img-container .control-nav--filters-wrap {
500
+ -webkit-box-flex: 0;
501
+ -ms-flex: none;
502
+ flex: none;
503
+ width: 100%;
504
+ }
505
+ }
506
+
507
+ .instant-img-container .control-nav--filters-wrap.inactive {
508
+ opacity: 0.55;
509
+ -webkit-filter: blur(1px);
510
+ filter: blur(1px);
511
+ }
512
+
513
+ .instant-img-container .control-nav--filters-wrap.inactive * {
514
+ cursor: not-allowed;
515
+ }
516
+
517
+ .instant-img-container .control-nav--filters {
518
  position: relative;
519
+ display: -webkit-box;
520
+ display: -ms-flexbox;
521
+ display: flex;
522
+ -ms-flex-wrap: wrap;
523
+ flex-wrap: wrap;
524
+ -webkit-box-align: center;
525
+ -ms-flex-align: center;
526
+ align-items: center;
527
+ -webkit-column-gap: 15px;
528
+ -moz-column-gap: 15px;
529
+ column-gap: 15px;
530
+ width: 100%;
531
+ }
532
+
533
+ @media screen and (min-width: 1024px) {
534
+ .instant-img-container .control-nav--filters {
535
+ -webkit-column-gap: 20px;
536
+ -moz-column-gap: 20px;
537
+ column-gap: 20px;
538
+ }
539
  }
540
 
541
+ .instant-img-container .control-nav--filters:before {
 
 
 
542
  display: block;
543
+ display: none;
544
+ content: "\F0B0";
545
+ font-family: "FontAwesome";
546
+ color: #efefef;
547
+ font-size: 24px;
548
+ margin-right: 10px;
 
 
 
549
  }
550
 
551
+ .instant-img-container .control-nav--filters label {
552
+ border-left: none;
553
+ display: block;
554
+ min-width: 125px;
555
+ padding: 0;
556
+ margin: 0;
557
  }
558
 
559
+ .instant-img-container .control-nav--filters label span {
560
+ display: block;
561
+ text-transform: uppercase;
562
+ font-size: 10px;
563
+ padding-bottom: 1px;
564
+ padding-left: 1px;
565
  }
566
 
567
+ .instant-img-container .control-nav--filters label:focus-within select:not[disabled] {
568
+ border-color: #999;
569
+ -webkit-box-shadow: 0 0 1px 5px rgba(0, 0, 0, 0.025);
570
+ box-shadow: 0 0 1px 5px rgba(0, 0, 0, 0.025);
571
  }
572
 
573
+ .instant-img-container .control-nav--filters select {
574
+ text-transform: capitalize;
575
+ width: 100%;
576
+ border-color: #ccc;
577
+ color: #333;
578
+ background-color: #f7f7f7;
579
+ min-height: 36px;
580
+ line-height: 36px;
581
+ font-size: 14px;
582
+ padding: 0 24px 0 8px;
583
  }
584
 
585
+ .instant-img-container .control-nav--filters select[disabled] {
586
+ cursor: not-allowed;
 
 
 
 
 
 
587
  }
588
 
589
+ .instant-img-container .control-nav--filters select:not[disabled]:hover {
590
+ border-color: #999;
591
+ -webkit-box-shadow: 0 0 1px 5px rgba(0, 0, 0, 0.025);
592
+ box-shadow: 0 0 1px 5px rgba(0, 0, 0, 0.025);
 
 
593
  }
594
 
595
+ .instant-img-container .control-nav--search {
596
+ display: -webkit-box;
597
+ display: -ms-flexbox;
598
+ display: flex;
599
+ width: 30%;
600
+ max-width: 350px;
601
  margin: 0;
602
  margin-left: auto;
603
+ padding: 0 0 0 20px;
604
+ position: relative;
605
  }
606
 
607
+ @media screen and (min-width: 1270px) {
608
+ .instant-img-container .control-nav--search {
609
+ width: 35%;
610
+ }
611
+ }
612
+
613
+ @media screen and (max-width: 800px) {
614
+ .instant-img-container .control-nav--search {
615
  width: 100%;
616
  display: block;
617
  position: static;
618
+ padding: 0;
619
  text-align: left;
620
  max-width: 100%;
621
+ padding: 10px 0;
622
  }
623
  }
624
 
625
+ .instant-img-container .control-nav--search .searchResults {
626
  position: absolute;
627
  right: 100.5%;
628
+ top: 5px;
629
  width: auto;
630
+ height: 30px;
631
+ line-height: 30px;
632
+ padding: 0 0 0 8px;
633
  background: #586ec6;
634
  border: 1px solid #455cb6;
635
+ -webkit-border-radius: 4px;
636
+ border-radius: 4px;
637
+ z-index: 9999;
638
  font-size: 13px;
639
  font-weight: 500;
640
  -webkit-transition: all 0.25s ease;
651
  align-items: center;
652
  }
653
 
654
+ .instant-img-container .control-nav--search .searchResults span {
655
  cursor: help;
 
656
  }
657
 
658
+ .instant-img-container .control-nav--search .searchResults button {
659
+ cursor: pointer;
660
  color: #fff;
661
+ background-color: transparent !important;
662
  padding: 0;
663
  height: auto;
664
  line-height: 1;
665
+ width: 28px;
666
  font-weight: 700;
667
  opacity: 0.65;
668
  display: -webkit-box;
676
  justify-content: center;
677
  font-size: 14px;
678
  height: 100%;
679
+ border: none !important;
680
+ -webkit-box-shadow: none !important;
681
+ box-shadow: none !important;
682
  }
683
 
684
+ .instant-img-container .control-nav--search .searchResults button:hover, .instant-img-container .control-nav--search .searchResults button:focus {
685
  opacity: 1;
686
  }
687
 
688
+ .instant-img-container .control-nav--search .searchResults:after, .instant-img-container .control-nav--search .searchResults:before {
689
  left: 100%;
690
  top: 50%;
691
  border: solid transparent;
697
  z-index: 100;
698
  }
699
 
700
+ .instant-img-container .control-nav--search .searchResults:after {
701
  border-color: rgba(223, 225, 173, 0);
702
  border-left-color: #586ec6;
703
  border-width: 6px;
704
  margin-top: -6px;
705
  }
706
 
707
+ .instant-img-container .control-nav--search .searchResults:before {
708
  border-color: rgba(0, 0, 0, 0);
709
  border-left-color: #455cb6;
710
  border-width: 7px;
711
  margin-top: -7px;
712
  }
713
 
714
+ .instant-img-container .control-nav--search .searchResults.hide {
715
  opacity: 0;
716
  visibility: hidden;
717
  }
718
 
719
+ .instant-img-container .control-nav--search form {
720
  padding: 0 1px 0 0;
721
  margin: 0;
722
  position: relative;
723
+ height: 38px;
724
  display: block;
725
+ width: 100%;
726
  }
727
 
728
+ .instant-img-container .control-nav--search form:hover button[type="submit"] {
729
  opacity: 1;
730
  }
731
 
732
+ .instant-img-container .control-nav--search input {
733
  width: 100%;
734
+ padding: 0 10px 0 38px;
735
+ border: 1px solid #ccc;
736
  background-color: #f7f7f7 !important;
737
+ height: 38px;
738
+ line-height: 38px;
739
+ -webkit-border-radius: 999px;
740
+ border-radius: 999px;
741
+ font-size: 14px;
742
+ -webkit-transition: border 0.25s ease;
743
+ -o-transition: border 0.25s ease;
744
+ transition: border 0.25s ease;
745
+ background-position: right 10px center;
746
+ background-repeat: no-repeat;
747
  }
748
 
749
+ .instant-img-container .control-nav--search input:focus {
750
  border-color: #999;
751
+ -webkit-box-shadow: 0 0 1px 5px rgba(0, 0, 0, 0.025);
752
+ box-shadow: 0 0 1px 5px rgba(0, 0, 0, 0.025);
753
  }
754
 
755
+ .instant-img-container .control-nav--search input.searching {
 
756
  background-image: url(../img/ajax-loader.gif);
 
 
757
  }
758
 
759
+ .instant-img-container .control-nav--search input[type="search"]::-webkit-search-decoration,
760
+ .instant-img-container .control-nav--search input[type="search"]::-webkit-search-cancel-button,
761
+ .instant-img-container .control-nav--search input[type="search"]::-webkit-search-results-button,
762
+ .instant-img-container .control-nav--search input[type="search"]::-webkit-search-results-decoration {
763
  -webkit-appearance: none;
764
  }
765
 
766
+ .instant-img-container .control-nav--search button[type="submit"] {
767
  position: absolute;
768
+ left: 2px;
769
  top: 0;
770
+ width: 38px;
771
+ height: 38px;
772
+ line-height: 38px;
773
+ -webkit-border-radius: 100%;
774
+ border-radius: 100%;
775
  z-index: 1;
776
  border: none !important;
777
  background: transparent !important;
778
  cursor: pointer;
779
+ color: #333;
780
  -webkit-box-shadow: none !important;
781
  box-shadow: none !important;
782
  -webkit-transition: all 0.25s ease;
783
  -o-transition: all 0.25s ease;
784
  transition: all 0.25s ease;
785
+ opacity: 0.75;
786
  margin: 0;
787
  padding: 0;
788
+ font-size: 16px;
789
  }
790
 
791
+ .instant-img-container .control-nav--search button[type="submit"]:hover, .instant-img-container .control-nav--search button[type="submit"]:focus {
792
+ opacity: 1;
 
 
 
 
 
 
793
  }
794
 
795
+ .instant-img-container .control-nav--search input[type="search"]::-webkit-input-placeholder {
796
  color: #ccc;
797
  font-weight: 400;
798
  font-style: normal;
799
+ font-size: 14px;
800
  }
801
 
802
+ .instant-img-container .control-nav--search input[type="search"]:-moz-placeholder {
803
  color: #ccc;
804
  font-weight: 400;
805
  font-style: normal;
806
+ font-size: 14px;
807
  }
808
 
809
+ .instant-img-container .control-nav--search input[type="search"]::-moz-placeholder {
810
  color: #ccc;
811
  font-weight: 400;
812
  font-style: normal;
813
+ font-size: 14px;
814
  }
815
 
816
+ .instant-img-container .control-nav--search input[type="search"]:-ms-input-placeholder {
817
  color: #ccc;
818
  font-weight: 400;
819
  font-style: normal;
820
+ font-size: 14px;
821
  }
822
 
823
  #photos {
828
  position: relative;
829
  }
830
 
831
+ #photos:after {
832
+ visibility: hidden;
833
+ opacity: 0;
834
+ display: block;
835
+ content: "";
836
+ position: absolute;
837
+ left: -10px;
838
+ top: -5px;
839
+ width: calc(100% + 20px);
840
+ height: calc(100% + 10px);
841
+ min-height: 200px;
842
+ background: rgba(255, 255, 255, 0.95) url(../img/ajax-loader-lg.gif) no-repeat center 90px;
843
+ z-index: 999;
844
+ -webkit-transition: all 0.25s ease;
845
+ -o-transition: all 0.25s ease;
846
+ transition: all 0.25s ease;
847
+ }
848
+
849
+ #photos.loading:after {
850
+ visibility: visible;
851
+ opacity: 1;
852
+ }
853
+
854
  #photos .photo {
855
  width: 20%;
856
  margin: 0;
886
  }
887
  }
888
 
889
+ @media screen and (max-width: 1500px) {
890
  #photos .photo {
891
  width: 25%;
892
  }
1277
  }
1278
 
1279
  #photos .photo .fade.user .user-wrap:before {
1280
+ content: "";
1281
  display: block;
1282
  z-index: 0;
1283
  background-color: #fff;
1657
  max-width: none;
1658
  }
1659
 
1660
+ .instant-images-settings .cnkt-sidebar .cta.ii-settings select[readonly],
1661
+ .instant-images-settings .cnkt-sidebar .cta.ii-settings input[type="text"][readonly],
1662
+ .instant-images-settings .cnkt-sidebar .cta.ii-settings input[type="number"][readonly] {
1663
+ background-color: #f7f7f7;
1664
+ cursor: not-allowed;
1665
+ opacity: 0.65;
1666
+ border-color: #ccc !important;
1667
+ -webkit-box-shadow: none !important;
1668
+ box-shadow: none !important;
1669
+ }
1670
+
1671
  .instant-images-settings .cnkt-sidebar .cta.ii-settings input[type="text"],
1672
  .instant-images-settings .cnkt-sidebar .cta.ii-settings input[type="number"] {
1673
  padding: 10px;
1676
  .instant-images-settings .cnkt-sidebar .cta.ii-settings span.desc {
1677
  font-size: 11px;
1678
  display: block;
1679
+ padding: 8px 2px 5px;
1680
  }
1681
 
1682
  .instant-images-settings .cnkt-sidebar .cta.ii-plugins {
1847
  font-size: 13px;
1848
  }
1849
 
1850
+ .components-panel .search-results-text {
1851
+ font-size: 12px;
1852
+ border-top: 1px solid #ddd;
1853
+ border-color: #ddd;
1854
+ }
1855
+
1856
+ .components-panel .search-results-text .search-results-clear {
1857
+ display: none;
1858
+ }
1859
+
1860
  .components-panel #photos {
1861
  width: 100%;
1862
  margin: 0;
1873
 
1874
  .components-panel .provider-nav {
1875
  width: 100%;
1876
+ padding: 10px 5px;
1877
  margin: 0;
1878
  border-bottom-color: #ddd;
1879
  }
1880
 
1881
  .components-panel .provider-nav button {
1882
  font-size: 13px;
1883
+ padding-left: 36px;
1884
  }
1885
 
1886
  .components-panel .control-nav {
1887
  padding: 0 5px 5px;
1888
  border-bottom: 1px solid #ddd;
1889
+ margin: 0 0 10px;
1890
+ display: block;
1891
+ }
1892
+
1893
+ .components-panel .control-nav .control-nav--spacer {
1894
+ display: none;
1895
+ }
1896
+
1897
+ .components-panel .control-nav--filters-wrap {
1898
+ -webkit-box-flex: 0;
1899
+ -ms-flex: none;
1900
+ flex: none;
1901
+ width: 100%;
1902
+ display: block;
1903
+ }
1904
+
1905
+ .components-panel .control-nav--filters {
1906
+ -webkit-column-gap: 6px;
1907
+ -moz-column-gap: 6px;
1908
+ column-gap: 6px;
1909
+ padding: 10px 0;
1910
  }
1911
 
1912
+ .components-panel .control-nav--filters .filter-dropdown {
1913
+ width: calc(50% - 3px);
1914
+ display: none;
1915
+ }
1916
+
1917
+ .components-panel .control-nav--filters .filter-dropdown button {
1918
+ padding: 5px;
1919
  font-size: 13px;
1920
  }
1921
 
1922
+ .components-panel .control-nav--filters .filter-dropdown button.filter-dropdown--button {
1923
+ display: block;
1924
  }
1925
 
1926
+ .components-panel .control-nav--filters .filter-dropdown button i {
1927
+ margin-left: auto;
1928
+ padding-right: 5px;
1929
+ }
1930
+
1931
+ .components-panel .control-nav--filters .filter-dropdown--menu {
1932
+ width: 106%;
1933
+ left: -3%;
1934
+ padding: 8px;
1935
+ }
1936
+
1937
+ .components-panel .control-nav--filters .filter-dropdown--menu button {
1938
+ gap: 8px;
1939
+ }
1940
+
1941
+ .components-panel .control-nav--filters .filter-dropdown:nth-child(1), .components-panel .control-nav--filters .filter-dropdown:nth-child(2) {
1942
+ display: block;
1943
+ }
1944
+
1945
+ .components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-label {
1946
+ display: block;
1947
+ font-size: 10px;
1948
+ text-transform: uppercase;
1949
+ margin: 0 0 2px;
1950
+ }
1951
+
1952
+ .components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-selected {
1953
+ display: -webkit-box;
1954
+ display: -ms-flexbox;
1955
+ display: flex;
1956
+ -webkit-box-align: center;
1957
+ -ms-flex-align: center;
1958
+ align-items: center;
1959
+ width: 100%;
1960
+ font-size: 14px;
1961
  }
1962
 
1963
+ .components-panel .control-nav--search {
1964
  float: none;
1965
  width: 100%;
1966
+ padding: 0 0 10px;
1967
  clear: both;
1968
  }
1969
 
1970
+ .components-panel .control-nav--search form {
1971
  height: auto;
1972
  }
1973
 
1974
+ .components-panel .control-nav--search:before {
1975
+ display: none;
 
 
1976
  }
1977
 
1978
+ .components-panel .control-nav--search button[type="submit"] {
1979
  display: none;
1980
  }
1981
 
1982
+ .components-panel .control-nav--search input {
1983
  line-height: 40px;
1984
  height: 40px;
1985
  padding-right: 10px;
1988
  font-size: 13px;
1989
  -webkit-border-radius: 3px !important;
1990
  border-radius: 3px !important;
1991
+ background-position: 8px center;
1992
  }
1993
 
1994
+ .components-panel .control-nav--search input.searching {
1995
  padding-left: 30px;
 
1996
  }
1997
 
1998
+ .components-panel .control-nav--search input:focus {
1999
  -webkit-box-shadow: none;
2000
  box-shadow: none;
2001
  }
2002
 
2003
+ .components-panel .control-nav--search input[type="search"]::-webkit-input-placeholder {
2004
+ font-size: 13px;
2005
+ }
2006
+
2007
+ .components-panel .control-nav--search input[type="search"]:-moz-placeholder {
2008
+ font-size: 13px;
2009
+ }
2010
+
2011
+ .components-panel .control-nav--search input[type="search"]::-moz-placeholder {
2012
+ font-size: 13px;
2013
+ }
2014
+
2015
+ .components-panel .control-nav--search input[type="search"]:-ms-input-placeholder {
2016
+ font-size: 13px;
2017
+ }
2018
+
2019
+ .components-panel .control-nav--search .searchResults {
2020
  right: 2px;
2021
  left: auto;
2022
  top: 2px;
2027
  line-height: 35px;
2028
  }
2029
 
2030
+ .components-panel .control-nav--search .searchResults:before, .components-panel .control-nav--search .searchResults:after {
2031
  display: none;
2032
  }
2033
 
2197
  outline: none;
2198
  }
2199
 
2200
+ .media-frame-router button#menu-item-instantimages.active {
2201
+ background-color: #f7f7f7;
2202
  }
2203
 
2204
+ .media-frame-content .instant-img-container .load-more-wrap {
2205
+ display: block;
2206
  }
2207
 
2208
  .provider-nav {
2226
  }
2227
 
2228
  .provider-nav--btn {
2229
+ padding: 0 10px 0 36px;
2230
+ height: 38px;
2231
+ line-height: 38px;
2232
  border: 1px solid transparent;
2233
  background: transparent;
2234
  margin-right: 5px;
2250
 
2251
  .provider-nav--btn.active {
2252
  background-color: #fff;
2253
+ border-color: #ccc;
2254
  color: #333;
2255
  cursor: default;
2256
  -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.075);
2273
  }
2274
 
2275
  [data-provider="unsplash"] {
2276
+ background: url(../img/unsplash.svg) no-repeat 10px center;
2277
  -webkit-background-size: 18px 18px;
2278
  background-size: 18px 18px;
2279
  }
2280
 
2281
  [data-provider="pixabay"] {
2282
+ background: url(../img/pixabay.png) no-repeat 10px center;
2283
  -webkit-background-size: 20px 20px;
2284
  background-size: 20px 20px;
2285
  }
2575
  color: #51a75e;
2576
  }
2577
 
2578
+ .filter-dropdown {
2579
+ position: relative;
2580
+ }
2581
+
2582
+ .filter-dropdown button {
2583
+ background-color: transparent;
2584
+ border: none;
2585
+ text-align: left;
2586
+ color: #999;
2587
+ }
2588
+
2589
+ .filter-dropdown button:not(disabled) {
2590
+ cursor: pointer;
2591
+ }
2592
+
2593
+ .filter-dropdown--button {
2594
+ display: -webkit-box;
2595
+ display: -ms-flexbox;
2596
+ display: flex;
2597
+ -webkit-box-align: center;
2598
+ -ms-flex-align: center;
2599
+ align-items: center;
2600
+ gap: 5px;
2601
+ padding: 10px 2px 10px 0;
2602
+ text-transform: capitalize;
2603
+ color: #999;
2604
+ width: 100%;
2605
+ font-size: 14px;
2606
+ }
2607
+
2608
+ @media screen and (min-width: 1500px) {
2609
+ .filter-dropdown--button {
2610
+ font-size: 15px;
2611
+ }
2612
+ }
2613
+
2614
+ .filter-dropdown--button span.filter-dropdown--button-label {
2615
+ padding-right: 3px;
2616
+ }
2617
+
2618
+ .filter-dropdown--button span.filter-dropdown--button-selected {
2619
+ color: #333;
2620
+ font-weight: 500;
2621
+ }
2622
+
2623
+ .filter-dropdown--button i {
2624
+ opacity: 0.4;
2625
+ margin-left: 10px;
2626
+ font-size: 14px;
2627
+ }
2628
+
2629
+ .filter-dropdown--button:hover i, .filter-dropdown--button:focus i {
2630
+ opacity: 1;
2631
+ }
2632
+
2633
+ .filter-dropdown--menu {
2634
+ display: block;
2635
+ visibility: hidden;
2636
+ opacity: 0;
2637
+ -webkit-transform: scale(0.95);
2638
+ -ms-transform: scale(0.95);
2639
+ transform: scale(0.95);
2640
+ -webkit-transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2641
+ transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2642
+ -o-transition: transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
2643
+ transition: transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
2644
+ transition: transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56), opacity 0.1s ease-in-out, visibility 0.1s ease-in-out, -webkit-transform 0.2s cubic-bezier(0.24, 0.22, 0.015, 1.56);
2645
+ padding: 10px;
2646
+ background-color: #fff;
2647
+ border: 1px solid #e1e1e1;
2648
+ -webkit-border-radius: 3px;
2649
+ border-radius: 3px;
2650
+ -webkit-box-shadow: 0 8px 16px rgba(69, 92, 182, 0.2);
2651
+ box-shadow: 0 8px 16px rgba(69, 92, 182, 0.2);
2652
+ z-index: 9999;
2653
+ position: absolute;
2654
+ top: 110%;
2655
+ left: -12px;
2656
+ width: 200px;
2657
+ max-height: 350px;
2658
+ overflow-y: auto;
2659
+ }
2660
+
2661
+ .filter-dropdown--menu.expanded {
2662
+ visibility: visible;
2663
+ opacity: 1;
2664
+ -webkit-transform: scale(1);
2665
+ -ms-transform: scale(1);
2666
+ transform: scale(1);
2667
+ top: 100%;
2668
+ }
2669
+
2670
+ .filter-dropdown--menu button {
2671
+ display: -webkit-box;
2672
+ display: -ms-flexbox;
2673
+ display: flex;
2674
+ -webkit-box-align: center;
2675
+ -ms-flex-align: center;
2676
+ align-items: center;
2677
+ gap: 10px;
2678
+ width: 100%;
2679
+ text-transform: capitalize;
2680
+ padding: 8px 5px;
2681
+ -webkit-transition: all 0.25 ease;
2682
+ -o-transition: all 0.25 ease;
2683
+ transition: all 0.25 ease;
2684
+ font-size: 14px;
2685
+ }
2686
+
2687
+ .filter-dropdown--menu button:before {
2688
+ font-family: "FontAwesome";
2689
+ content: "\F00C";
2690
+ display: block;
2691
+ color: #ccc;
2692
+ opacity: 0.4;
2693
+ font-size: 10px;
2694
+ }
2695
+
2696
+ .filter-dropdown--menu button:hover, .filter-dropdown--menu button:focus {
2697
+ color: #333;
2698
+ }
2699
+
2700
+ .filter-dropdown--menu button:hover:before, .filter-dropdown--menu button:focus:before {
2701
+ opacity: 0.75;
2702
+ }
2703
+
2704
+ .filter-dropdown--menu button.selected {
2705
+ color: #333;
2706
+ }
2707
+
2708
+ .filter-dropdown--menu button.selected:before {
2709
+ color: #333;
2710
+ opacity: 0.75;
2711
+ }
2712
+
2713
+ .filter-dropdown--menu[data-key="colors"] button ._color, .filter-dropdown--menu[data-key="color"] button ._color {
2714
+ margin-left: auto;
2715
+ width: 14px;
2716
+ height: 14px;
2717
+ -webkit-border-radius: 50%;
2718
+ border-radius: 50%;
2719
+ background-color: currentColor;
2720
+ -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.075);
2721
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.075);
2722
+ }
2723
+
2724
+ .search-results-header h2 {
2725
+ font-size: 34px;
2726
+ line-height: 1;
2727
+ padding: 0;
2728
+ margin: 0 0 5px;
2729
+ text-transform: capitalize;
2730
+ font-weight: 700;
2731
+ }
2732
+
2733
+ @media screen and (max-width: 800px) {
2734
+ .search-results-header h2 {
2735
+ font-size: 25px;
2736
+ }
2737
+ }
2738
+
2739
+ .search-results-header--text {
2740
+ font-size: 14px;
2741
+ margin: 0;
2742
+ padding-bottom: 10px;
2743
+ color: #999;
2744
+ }
2745
+
2746
+ .search-results-header--text strong {
2747
+ color: #333;
2748
+ font-weight: 600;
2749
+ }
2750
+
2751
+ .search-results-header--text button {
2752
+ border: none;
2753
+ background-color: transparent;
2754
+ font-size: 13px;
2755
+ cursor: pointer;
2756
+ color: #586ec6;
2757
+ font-weight: 400;
2758
+ padding: 2px 0 0;
2759
+ margin: 0;
2760
+ }
2761
+
2762
+ .search-results-header--text button:hover, .search-results-header--text button:focus {
2763
+ text-decoration: underline;
2764
+ color: #455cb6;
2765
+ }
2766
+
2767
+ .search-results-header .control-nav--filters-wrap {
2768
+ margin: 0 0 15px;
2769
+ }
2770
+
2771
  /*# sourceMappingURL=instant-images.css.map*/
dist/css/instant-images.min.css CHANGED
@@ -1 +1 @@
1
- @import url(//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);body.media_page_instant-images{background:#fff}body.media_page_instant-images #wpcontent{padding-left:0;padding-bottom:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpcontent{padding-bottom:0}}body.media_page_instant-images #wpbody-content{padding-bottom:0}body.media_page_instant-images #wpfooter{padding-top:0;padding-bottom:0;line-height:40px;background:#f7f7f7;border-top:1px solid #efefef;position:fixed;bottom:0;z-index:1100}body.media_page_instant-images #wpfooter p{line-height:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpfooter{display:none}}body.media_page_instant-images.overflow-hidden{overflow:hidden}.instant-img-container{font-size:14px;color:#666;position:relative}.instant-img-container .offscreen{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}.instant-img-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.instant-img-container a{color:#586ec6;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.instant-img-container a:hover{color:#5568ae;text-decoration:none}.instant-img-container img{max-width:100%}.instant-img-container p{color:#666;width:100%;display:block;clear:both;text-transform:none;padding:0;margin:0 0 15px;font-size:14px}.instant-img-container.loading .loading-block{display:block}.instant-img-container .error-messaging{padding:20px 20px 20px 60px;-webkit-border-radius:3px;border-radius:3px;background:#da4444;color:#fff;font-size:13px;line-height:1.5;margin-bottom:25px;display:block;position:relative}.instant-img-container .error-messaging:before{font-family:FontAwesome;content:"\F06A";display:block;left:17px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;font-size:32px;opacity:.75}.instant-img-container .header-wrap{background:#f7f7f7 url(../img/logo-48x48.png) no-repeat 25px 20px;padding:20px 25px 20px 83px;min-height:88px;overflow:hidden;border-bottom:1px solid #efefef;position:relative}@media screen and (max-width:800px){.instant-img-container .header-wrap{background-position:center 20px;padding:80px 25px 20px;text-align:center}}.instant-img-container .header-wrap h1{padding:0;margin:4px 0 0;font-weight:700;font-size:26px;max-width:70%}@media screen and (max-width:800px){.instant-img-container .header-wrap h1{max-width:100%;width:100%;text-align:center}}.instant-img-container .header-wrap h1 em{font-weight:400;font-size:14px;background-color:rgba(0,0,0,.055);color:rgba(0,0,0,.5);display:inline-block;-webkit-border-radius:2px;border-radius:2px;padding:3px;position:relative;top:-2px;left:2px;text-shadow:1px 1px 1px hsla(0,0%,100%,.4);font-style:normal;line-height:1}.instant-img-container .header-wrap h1 span{display:block;padding:3px 0 0;color:#999;font-size:15px;font-weight:400}.instant-img-container .header-wrap button{position:absolute;right:25px;bottom:26px}@media screen and (max-width:800px){.instant-img-container .header-wrap button{position:static;margin-top:20px;display:inline-block}}.instant-img-container .header-wrap button i{margin-right:2px}.instant-img-container .instant-images-wrapper{padding:0 25px;display:block;overflow:hidden;min-height:400px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .instant-images-wrapper.loaded{background:none}.instant-img-container .permissions-warning{padding:0 25px}.instant-img-container .permissions-warning .inner{border-bottom:1px solid #efefef;padding:32px 0}.instant-img-container .permissions-warning input{max-width:500px}.instant-img-container .permissions-warning h3{font-size:22px;margin:0 0 15px}.instant-img-container .permissions-warning h3 i{margin:0 2px 0 0;position:relative}.instant-img-container .permissions-warning p:first-of-type{font-size:18px;margin:0 0 2px}.instant-img-container .loading-block{display:none;padding:50px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .load-more-wrap{margin:1% 0 0;padding:25px 0;text-align:center;display:none;border-top:1px solid #efefef}.instant-img-container .load-more-wrap button{display:inline-block;margin:0;padding:12px 15px;font-size:15px;font-weight:600;-webkit-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease;height:auto;line-height:1;cursor:pointer;background-image:none;background-repeat:no-repeat!important;background-position:15px!important}.instant-img-container .load-more-wrap button.disabled{opacity:.3;cursor:default}.instant-img-container .cnkt-main{width:100%;float:none;background:none!important;position:relative}.instant-img-container h2,.instant-img-container h3,.instant-img-container h4{margin-top:0}.instant-img-container .save-settings p.submit{float:left;margin:0 2px 0 0;width:auto}.instant-img-container .save-settings .loading{width:46px;height:28px;display:none;float:left;background:#fff url(../img/ajax-loader.gif) no-repeat 50%}#TB_ajaxContent{clear:both;line-height:1.4em;overflow:auto;text-align:left;width:100%!important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:15px!important}.cnkt-sidebar .form-table{margin:0;border:none;position:relative;top:-5px}.cnkt-sidebar .form-table label,.cnkt-sidebar .form-table p,.cnkt-sidebar .form-table td{font-size:13px}.cnkt-sidebar .form-table label{color:#333;display:block;clear:both;float:none}.cnkt-sidebar .form-table label span{opacity:.8;font-size:13px;font-style:italic}.cnkt-sidebar .form-table th{display:none}.instant-img-container .form-table td{border-top:0;padding:0 0 10px;float:left;width:100%;margin:0}.cnkt-main .form-msg,.cnkt-sidebar .form-table .form-msg{display:block;line-height:18px;padding:12px 12px 12px 15px;margin:15px 0 0;color:#666;background-color:#fff9ea;border-left:5px solid #dfd8c2;-webkit-border-radius:2px;border-radius:2px}.cnkt-main .form-msg span,.cnkt-sidebar .form-table .form-msg span{display:block;padding:6px 0 3px}.instant-img-container h1,.instant-img-container h3,.instant-img-container h4{color:#222;margin-top:0}.instant-img-container h4+p{margin-top:-6px}.instant-img-container p.small{font-size:12px;margin-top:-10px;opacity:.7}.instant-img-container ul{padding:0;margin:0;list-style:none}.instant-img-container input,.instant-img-container label,.instant-img-container select,.instant-img-container textarea{-webkit-box-shadow:none;box-shadow:none}.instant-img-container .save-settings{padding-top:5px}.instant-img-container label{padding:5px 0}#unsplash-form-options h2,#unsplash-form-options p.desc{display:none}.instant-img-container input[type=number],.instant-img-container input[type=text],.instant-img-container textarea{padding:10px;line-height:1;background:#f7f7f7;width:100%;-webkit-border-radius:2px;border-radius:2px;height:auto}.instant-img-container input[type=text]:focus,.instant-img-container textarea:focus{border-color:#999;-webkit-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;background:#efefef}.instant-img-container .spacer{display:block;height:40px;overflow:hidden;clear:both;width:100%}.instant-img-container .spacer.sm{height:20px}.instant-img-container input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:inset 0 0 0 1000px #fff}.instant-img-container .control-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;margin:0;padding:25px 0;list-style:none}@media screen and (max-width:600px){.instant-img-container .control-nav{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.instant-img-container .control-nav:after{content:"";display:table;clear:both}.instant-img-container .control-nav li{padding:0;margin:0 3px 0 0;float:left;background:none;font-size:18px;position:relative}.instant-img-container .control-nav li button{padding:0 24px 0 2px;height:42px;line-height:42px;display:block;color:#999;text-decoration:none;-webkit-box-shadow:none;box-shadow:none;background-color:transparent;background-position:96%;background-repeat:no-repeat;border:none;cursor:pointer}.instant-img-container .control-nav li button:focus,.instant-img-container .control-nav li button:hover{color:#111;outline:none;-webkit-box-shadow:none;box-shadow:none}.instant-img-container .control-nav li button:focus{text-decoration:underline}.instant-img-container .control-nav li button.active{color:#333;cursor:default;font-weight:600}.instant-img-container .control-nav li button.loading{background-image:url(../img/ajax-loader.gif)}@media screen and (max-width:800px){.instant-img-container .control-nav li{font-size:16px;margin:0}.instant-img-container .control-nav li button{padding-left:3px}}@media screen and (max-width:600px){.instant-img-container .control-nav li{text-align:center;margin:0;padding-bottom:15px}}.instant-img-container .control-nav li.search-field{width:40%;margin:0;margin-left:auto;max-width:500px}@media screen and (max-width:600px){.instant-img-container .control-nav li.search-field{width:100%;display:block;position:static;padding-bottom:0;text-align:left;max-width:100%}}.instant-img-container .control-nav li.search-field .searchResults{position:absolute;right:100.5%;top:4px;width:auto;height:34px;line-height:34px;padding:0 0 0 10px;background:#586ec6;border:1px solid #455cb6;-webkit-border-radius:3px;border-radius:3px;z-index:99;font-size:13px;font-weight:500;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;color:#fff;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.instant-img-container .control-nav li.search-field .searchResults span{cursor:help;font-style:italic}.instant-img-container .control-nav li.search-field .searchResults button{color:#fff;padding:0;height:auto;line-height:1;width:30px;font-weight:700;opacity:.65;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:14px;height:100%}.instant-img-container .control-nav li.search-field .searchResults button:focus,.instant-img-container .control-nav li.search-field .searchResults button:hover{opacity:1}.instant-img-container .control-nav li.search-field .searchResults:after,.instant-img-container .control-nav li.search-field .searchResults:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;z-index:100}.instant-img-container .control-nav li.search-field .searchResults:after{border-color:hsla(62,46%,78%,0);border-left-color:#586ec6;border-width:6px;margin-top:-6px}.instant-img-container .control-nav li.search-field .searchResults:before{border-color:transparent;border-left-color:#455cb6;border-width:7px;margin-top:-7px}.instant-img-container .control-nav li.search-field .searchResults.hide{opacity:0;visibility:hidden}.instant-img-container .control-nav li.search-field form{padding:0 1px 0 0;margin:0;position:relative;height:42px;display:block}.instant-img-container .control-nav li.search-field form:hover button[type=submit]{opacity:1}.instant-img-container .control-nav li.search-field input{width:100%;padding:0 10px 0 42px;border:1px solid #e1e1e1;background-color:#f7f7f7!important;height:42px;line-height:42px;-webkit-border-radius:5px;border-radius:5px;font-size:16px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.instant-img-container .control-nav li.search-field input:focus{border-color:#999;-webkit-box-shadow:0 0 1px 4px rgba(0,0,0,.065);box-shadow:0 0 1px 4px rgba(0,0,0,.065)}.instant-img-container .control-nav li.search-field input.searching{padding-left:62px;background-image:url(../img/ajax-loader.gif);background-position:37px;background-repeat:no-repeat}.instant-img-container .control-nav li.search-field input[type=search]::-webkit-search-cancel-button,.instant-img-container .control-nav li.search-field input[type=search]::-webkit-search-decoration,.instant-img-container .control-nav li.search-field input[type=search]::-webkit-search-results-button,.instant-img-container .control-nav li.search-field input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.instant-img-container .control-nav li.search-field button[type=submit]{position:absolute;left:0;top:0;width:42px;height:42px;line-height:42px;z-index:1;border:none!important;background:transparent!important;cursor:pointer;color:#666;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;opacity:.5;margin:0;padding:0}.instant-img-container .control-nav li.search-field button[type=submit]:focus,.instant-img-container .control-nav li.search-field button[type=submit]:hover{outline:none;color:#586ec6}.instant-img-container .control-nav li.search-field input[type=search]::-webkit-input-placeholder{color:#ccc;font-weight:400;font-style:normal}.instant-img-container .control-nav li.search-field input[type=search]:-moz-placeholder,.instant-img-container .control-nav li.search-field input[type=search]::-moz-placeholder{color:#ccc;font-weight:400;font-style:normal}.instant-img-container .control-nav li.search-field input[type=search]:-ms-input-placeholder{color:#ccc;font-weight:400;font-style:normal}#photos{width:100%;width:calc(100% + 10px);margin:0 0 0 -5px;padding:0;position:relative}#photos .photo{width:20%;margin:0;padding:0 5px 10px;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}#photos .photo--wrap{position:relative}#photos .photo.in-view{opacity:1}#photos .photo.in-progress .fade{opacity:0!important;visibility:hidden!important}#photos .photo .img-wrap{display:block;overflow:hidden;position:relative}@media screen and (min-width:2000px){#photos .photo{width:20%}}@media screen and (max-width:1570px){#photos .photo{width:25%}}@media screen and (max-width:1270px){#photos .photo{width:33.333333%}}@media screen and (max-width:800px){#photos .photo{width:50%}}@media screen and (max-width:600px){#photos .photo{width:100%;margin:0 0 2%}}#photos .photo:focus a.upload img{opacity:.6}#photos .photo:focus .fade{opacity:1;visibility:visible}#photos .photo:focus .fade.user{opacity:.7}#photos .photo:focus-within .user-controls{opacity:1}#photos .photo a.upload{display:block;position:relative;background-color:#222;background-position:50%;background-repeat:no-repeat;background-image:url(../img/ajax-loader.gif);overflow:hidden}#photos .photo a.upload.loaded{background-image:none}#photos .photo a.upload:active,#photos .photo a.upload:focus{outline:none;border:none}#photos .photo a.upload img{-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease;width:100%;height:auto!important;padding:0;vertical-align:top}#photos .photo a.upload .status{visibility:hidden;opacity:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;width:60px;height:60px;line-height:60px;-webkit-border-radius:4px;border-radius:4px;position:absolute;left:50%;top:50%;z-index:5;-webkit-transform:translate(-50%,-50%) scale(1.2);-ms-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.25);box-shadow:0 2px 3px rgba(0,0,0,.25);background-position:50%;background-repeat:no-repeat}#photos .photo a.upload .status:before{font-family:FontAwesome;display:block;color:#fff;font-size:24px;opacity:.8}#photos .photo a.upload .status a{color:#fff}#photos .photo a.upload.errors .status,#photos .photo a.upload.success .status,#photos .photo a.upload.uploading .status{text-align:center;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) scale(1);-ms-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}#photos .photo a.upload.uploading{cursor:default!important}#photos .photo a.upload.uploading .status{visibility:visible;opacity:1;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat 50%;-webkit-background-size:24px 24px;background-size:24px 24px}#photos .photo a.upload.uploading .status:before{display:none}#photos .photo a.upload.success{cursor:default!important}#photos .photo a.upload.success .status{visibility:visible;opacity:1;background-color:#65c774}#photos .photo a.upload.success .status:before{content:"\F00C";color:#fff}#photos .photo a.upload.success img{-webkit-transform:scale(1)!important;-ms-transform:scale(1)!important;transform:scale(1)!important}#photos .photo a.upload.errors{cursor:help!important}#photos .photo a.upload.errors .status{visibility:visible;opacity:1;background-color:#df3333}#photos .photo a.upload.errors .status:before{content:"\F12A";color:#fff;opacity:.8}#photos .photo.uploaded a.upload img{opacity:.25!important}#photos .photo.uploaded .options,#photos .photo.uploaded .user-controls{opacity:0!important;visibility:hidden!important}#photos .photo.in-progress a.upload img,#photos .photo:hover a.upload img{opacity:.7;-webkit-transform:scale(1.075);-ms-transform:scale(1.075);transform:scale(1.075)}#photos .photo.in-progress .options,#photos .photo:hover .options{opacity:1;visibility:visible}#photos .photo.in-progress .options i.heart-like,#photos .photo:hover .options i.heart-like{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .photo.in-progress .user-controls,#photos .photo:hover .user-controls{opacity:1}#photos .photo.in-progress .notice-msg{top:0;opacity:1}#photos .photo.in-progress .options,#photos .photo.in-progress .user-controls{opacity:0!important}#photos .photo .options{position:absolute;top:5px;right:5px;z-index:6;display:inline-block;width:auto;cursor:default!important;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;opacity:0;visibility:hidden;font-size:13px}#photos .photo .options i{font-size:14px}#photos .photo .options i.heart-like{color:#d13714;-webkit-transition:all .25s ease .05s;-o-transition:all .25s ease .05s;transition:all .25s ease .05s;-webkit-transform:scale(.55);-ms-transform:scale(.55);transform:scale(.55);margin-right:2px;position:relative;top:0;font-size:14px;opacity:.9}#photos .photo .options a,#photos .photo .options span{display:inline-block;vertical-align:top;line-height:30px;padding:0 10px;padding-top:1px;background:hsla(0,0%,100%,.5);margin:0;-webkit-border-radius:2px;border-radius:2px;color:#23282d;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .options span{cursor:default}#photos .photo .options span:focus,#photos .photo .options span:hover{background-color:#fff}#photos .photo .options a{margin-left:2px}#photos .photo .options a:focus,#photos .photo .options a:hover{background-color:#fff}#photos .photo .options a i{position:relative;top:1px;left:1px}#photos .photo .user-controls{position:absolute;z-index:6;bottom:0;left:0;width:100%;background:rgba(0,0,0,.4);padding:0;opacity:.35;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .photo-options{float:right;text-align:right;max-width:50%}#photos .photo .fade{-webkit-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease;color:#fff;background:hsla(0,0%,100%,.75);background:transparent;-webkit-border-radius:2px;border-radius:2px;height:34px;line-height:34px;font-size:17px;z-index:6;float:left;margin:1px 1px 1px 0;padding:0;color:hsla(0,0%,100%,.75);border:none!important;outline:none;cursor:pointer}#photos .photo .fade.edit-photo,#photos .photo .fade.edit-photo-admin,#photos .photo .fade.insert,#photos .photo .fade.set-featured{display:inline-block;width:34px;text-align:center;position:relative}#photos .photo .fade.edit-photo-admin i,#photos .photo .fade.edit-photo i,#photos .photo .fade.insert i,#photos .photo .fade.set-featured i{line-height:27px;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#photos .photo .fade.edit-photo-admin:focus,#photos .photo .fade.edit-photo-admin:hover,#photos .photo .fade.edit-photo:focus,#photos .photo .fade.edit-photo:hover,#photos .photo .fade.insert:focus,#photos .photo .fade.insert:hover,#photos .photo .fade.set-featured:focus,#photos .photo .fade.set-featured:hover{color:#222;background:hsla(0,0%,100%,.95)}#photos .photo .fade.edit-photo-admin{display:none}#photos .photo .fade.user{background:none;font-size:13px;max-width:48%;cursor:pointer;text-decoration:none;border:none;line-height:35px;height:36px;margin:0}#photos .photo .fade.user:focus,#photos .photo .fade.user:hover{text-decoration:underline}#photos .photo .fade.user .user-wrap{position:relative;padding-left:35px;display:block;width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}#photos .photo .fade.user .user-wrap:before{content:"";display:block;z-index:0;background-color:#fff;height:20px;opacity:.25}#photos .photo .fade.user .user-wrap:before,#photos .photo .fade.user img{width:20px;max-width:20px;-webkit-border-radius:100%;border-radius:100%;position:absolute;left:8px;top:8px}#photos .photo .fade.user img{z-index:1}#photos .photo .notice-msg{position:absolute;z-index:999;top:-40px;left:0;height:40px;line-height:40px;width:100%;background:rgba(0,0,0,.6);text-align:center;color:hsla(0,0%,100%,.9);font-size:12px;margin:0;padding:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;opacity:0;z-index:9999}#photos .photo .notice-msg.has-error{top:-40px;opacity:0}#photos .edit-screen{position:absolute;left:0;top:0;width:100%;height:100%;z-index:999;background:hsla(0,0%,100%,.9);opacity:0;visibility:hidden;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;padding:5px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid #e1e1e1;-webkit-transform:scale(1.025);-ms-transform:scale(1.025);transform:scale(1.025)}#photos .edit-screen.editing{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .edit-screen--controls,#photos .edit-screen--title{display:block;background:#f7f7f7;border:1px solid #e1e1e1;padding:15px 10px;-webkit-border-radius:2px 2px 0 0;border-radius:2px 2px 0 0}#photos .edit-screen--controls .button-primary,#photos .edit-screen--title .button-primary{float:right}#photos .edit-screen--controls{-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}#photos .edit-screen--title{border-bottom:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%;padding:10px;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}#photos .edit-screen--title>div{padding:5px 15px 5px 5px;-webkit-box-flex:1;-ms-flex:1;flex:1}#photos .edit-screen--title>div.preview{width:30%;padding:0;-webkit-background-size:cover;background-size:cover;background-position:50%;background-repeat:no-repeat;-webkit-border-radius:2px;border-radius:2px;-webkit-box-flex:0;-ms-flex:none;flex:none}#photos .edit-screen--title p{font-size:12px;line-height:1.45;margin:0;color:#999}#photos .edit-screen--title p.heading{color:#222;margin:0 0 3px;font-weight:600;text-transform:uppercase}#photos .edit-screen .add-attribution-row,#photos .edit-screen label{margin:0;padding:15px;display:block;background:#fff;border:1px solid #e1e1e1;border-bottom:none;position:relative}#photos .edit-screen .add-attribution-row{padding-top:0;margin-top:-15px;border-top:none}#photos .edit-screen .add-attribution-row button{cursor:pointer;font-size:11px;outline:none;padding:5px 0;border:none;background:none;text-decoration:underline}#photos .edit-screen .add-attribution-row button:focus,#photos .edit-screen .add-attribution-row button:hover{text-decoration:none}#photos .edit-screen span{display:block;font-size:11px;text-transform:uppercase;font-weight:600;margin:0 0 5px;color:#222;line-height:1}#photos .edit-screen textarea{resize:none;font-size:12px;line-height:1.35}#photos .edit-screen input{font-size:12px;padding:0 10px;margin:0;height:35px;line-height:35px}#photos .edit-screen em{position:absolute;bottom:15px;right:15px;height:35px;line-height:35px;background:#858585;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;color:#e1e1e1;font-style:normal;font-size:11px;padding:0 10px}.instant-images-settings{display:none;background-color:#efefef;border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar{padding:20px 25px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.45}.instant-images-settings .cnkt-sidebar p{font-size:13px}.instant-images-settings .cnkt-sidebar .cta{width:100%;background:#fff;padding:0;position:relative;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;overflow:hidden}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta{width:calc(65% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;padding-bottom:52px}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{line-height:1.45;width:100%;background-color:transparent;padding:5px;margin:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (min-width:1024px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:50%}}@media screen and (min-width:1270px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:33.333%}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p{font-size:13px;position:relative;z-index:1;margin:0;padding:15px;border:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p strong{font-size:14px;display:block;font-weight:700;margin:0 0 5px;color:#333}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li code{font-size:12px;margin:0;padding:3px;background:#f7f7f7;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 0 1px #efefef;box-shadow:0 0 0 1px #efefef}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love{position:absolute;left:0;bottom:0;width:100%;-webkit-border-radius:0 0 2px 2px;border-radius:0 0 2px 2px;background-color:#f7f7f7;border-top:1px solid #e1e1e1;text-align:center;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love p{margin:0}.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:35%}}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text],.instant-images-settings .cnkt-sidebar .cta.ii-settings select{background-color:#fff;width:100%;padding:5px 10px;border-color:#ccc;max-width:none}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text]{padding:10px}.instant-images-settings .cnkt-sidebar .cta.ii-settings span.desc{font-size:11px;display:block;padding:5px 2px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins{width:100%;margin-top:10px;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer{width:100%;position:static;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:20px 20px 0}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:100%;margin:0 0 20px;line-height:1.45}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:calc(50% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin h2{margin-bottom:5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer:after{display:none}.instant-images-settings .cnkt-sidebar h2{border:none;padding:20px 20px 0;font-size:18px;font-weight:700}.instant-images-settings .cnkt-sidebar h2+p{padding:0 20px 16px;margin:0!important;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar h2,.instant-images-settings .cnkt-sidebar h2+p{background:#f7f7f7;margin:0}.instant-images-settings .cnkt-sidebar .cnkt-sidebar h3,.instant-images-settings .cnkt-sidebar .cnkt-sidebar h4{margin-top:0}.instant-images-settings .cnkt-sidebar .cta-wrap{display:block;padding:20px}.instant-images-settings .cnkt-sidebar .cta-wrap h4{padding:10px 0 7px;margin:0}.instant-images-settings .cnkt-sidebar .cta-wrap h4 span{display:inline-block;line-height:1;padding:8px 10px;-webkit-border-radius:2px;border-radius:2px;background:#ffc;color:#666}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:48%;margin:2% 1% 0}@media screen and (max-width:1170px){.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:100%;margin:2% 0 0}}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2{border:none;padding:0;font-size:16px}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{padding:0;margin:0!important;border-bottom:none}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2,.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{background:none;margin:0}.instant-images-settings table{margin-top:5px}.instant-img-container[data-media-popup=true]{background:#fff}.instant-img-container[data-media-popup=true] .header-wrap{display:none}.instant-img-container[data-media-popup=true] .instant-images-wrapper{padding:0 16px}body.loading .instant-img-container .loading-block{display:block}.instant-images-sidebar-icon,.instant-images-sidebar-icon svg{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.instant-images-sidebar-icon svg{height:20px;width:20px}.instant-images-sidebar-icon svg,.instant-images-sidebar-icon svg *{stroke:#586ec6!important;fill:#586ec6!important}.components-panel .instant-img-container .load-more-wrap{display:block}.components-panel .no-results{padding:40px}.components-panel .no-results h3{font-size:18px}.components-panel .no-results p{font-size:13px}.components-panel #photos{width:100%;margin:0;padding:5px}.components-panel #photos .photo{width:100%;display:block;opacity:1!important;margin:0 0 5px;padding:0}.components-panel .provider-nav{width:100%;padding:5px;margin:0;border-bottom-color:#ddd}.components-panel .provider-nav button{font-size:13px;padding-left:32px}.components-panel .control-nav{padding:0 5px 5px;border-bottom:1px solid #ddd}.components-panel .control-nav li{font-size:13px}.components-panel .control-nav li button{padding-left:4px}.components-panel .control-nav li a{padding:16px 24px 16px 0;height:auto;line-height:1.2}.components-panel .control-nav li.search-field{float:none;width:100%;padding:0;clear:both}.components-panel .control-nav li.search-field form{height:auto}.components-panel .control-nav li.search-field:before{content:"";display:table;clear:both}.components-panel .control-nav li.search-field button[type=submit]{display:none}.components-panel .control-nav li.search-field input{line-height:40px;height:40px;padding-right:10px;padding-left:10px;border-color:#e2e4e7;font-size:13px;-webkit-border-radius:3px!important;border-radius:3px!important}.components-panel .control-nav li.search-field input.searching{padding-left:30px;background-position:8px}.components-panel .control-nav li.search-field input:focus{-webkit-box-shadow:none;box-shadow:none}.components-panel .control-nav li.search-field .searchResults{right:2px;left:auto;top:2px;-webkit-border-radius:2px;border-radius:2px;font-size:12px;height:36px;line-height:35px}.components-panel .control-nav li.search-field .searchResults:after,.components-panel .control-nav li.search-field .searchResults:before{display:none}.components-panel .orientation-list{position:static;border-top:none;background:#f7f7f7;padding:5px 5px 5px 0;margin-bottom:5px;border-bottom-color:#ddd}.components-panel .orientation-list span{display:none}.components-panel .orientation-list ul{padding:0;width:100%}.instant-img-container #tooltip{display:inline-block;padding:8px 10px;background:#fff;position:fixed;left:auto;top:auto;z-index:999;display:block;opacity:0;visibility:hidden;margin-top:-37px;font-size:12px;color:#999;text-align:center;line-height:1;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.1);box-shadow:0 2px 3px rgba(0,0,0,.1);-webkit-transition:all .15s ease;-o-transition:all .15s ease;transition:all .15s ease}.instant-img-container #tooltip:after{top:100%;right:17px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:5px;margin-left:-5px}.instant-img-container #tooltip.over{opacity:.9;visibility:visible}.instant-img-container #tooltip.above{margin-top:37px}.instant-img-container #tooltip.above:after{top:-5px;border-top:none;border-bottom-color:#fff}.no-results{display:block;padding:150px 100px;text-align:center}.no-results h3{font-size:24px;line-height:29px;margin:0 0 10px}.no-results p{font-size:16px;margin:0}@media screen and (max-width:800px){.no-results{padding:50px}}.orientation-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:7px 0;margin:0 0 10px;border-top:1px solid #efefef;border-bottom:1px solid #efefef;position:relative;top:-7px}.orientation-list span{opacity:.5;margin:0 10px 0 0;font-size:13px}.orientation-list span i{margin-right:2px}.orientation-list ul{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex}.orientation-list ul li{margin:0 1px 0 0;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;padding:4px 6px;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;border:1px solid transparent;color:#999;font-size:13px}.orientation-list ul li:hover{color:#111}.orientation-list ul li:focus{border-color:#586ec6;color:#111;outline:none}.orientation-list ul li.active{background-color:#586ec6;border-color:#586ec6;color:#fff;outline:none}.media-frame-content .instant-img-container .load-more-wrap{display:block}.media-frame-content .instant-img-container .provider-nav,.provider-nav{padding:10px 25px}.provider-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:calc(100% + 50px);margin-left:-25px;border-bottom:1px solid #efefef;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.045);box-shadow:0 2px 5px rgba(0,0,0,.045);background-color:#f7f7f7}.provider-nav,.provider-nav>div{position:relative}.provider-nav--btn{padding:8px 8px 8px 35px;border:1px solid transparent;background:transparent;margin-right:5px;cursor:pointer;position:relative;-webkit-border-radius:3px;border-radius:3px;font-size:14px;color:#999;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background-color:#f7f7f7}.provider-nav--btn:focus,.provider-nav--btn:hover{color:#333}.provider-nav--btn.active{background-color:#fff;border-color:#e1e1e1;color:#333;cursor:default;-webkit-box-shadow:0 0 6px rgba(0,0,0,.075);box-shadow:0 0 6px rgba(0,0,0,.075)}.provider-nav--new{color:#333;background-color:#ffe732;font-size:9px;text-transform:uppercase;display:inline;padding:3px 4px;-webkit-border-radius:3px;border-radius:3px;margin-left:5px;position:relative;top:-1px;letter-spacing:-.05rem}[data-provider=unsplash]{background:url(../img/unsplash.svg) no-repeat 8px;-webkit-background-size:18px 18px;background-size:18px 18px}[data-provider=pixabay]{background:url(../img/pixabay.png) no-repeat 8px;-webkit-background-size:20px 20px;background-size:20px 20px}.media-frame-content .instant-img-container .api-lightbox{position:fixed}.components-panel .instant-img-container .api-lightbox{height:100%;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.instant-img-container .api-lightbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:99999;left:0;top:0;right:0;bottom:0;height:100vh;padding:5%;background-color:rgba(0,0,0,.75);font-size:13px}.instant-img-container .api-lightbox.active>div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.instant-img-container .api-lightbox>div{max-width:450px;width:100%;padding:0;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.25);box-shadow:0 1px 5px rgba(0,0,0,.25);position:relative;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95);opacity:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.instant-img-container .api-lightbox>div>div{position:relative}.instant-img-container .api-lightbox--details{border-bottom:1px solid #e1e1e1;padding:25px;padding-bottom:20px;position:relative}.instant-img-container .api-lightbox--details:after,.instant-img-container .api-lightbox--details:before{top:100%;left:50px;border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none}.instant-img-container .api-lightbox--details:after{border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:10px;margin-left:-10px}.instant-img-container .api-lightbox--details:before{border-color:rgba(194,225,245,0);border-top-color:#e1e1e1;border-width:11px;margin-left:-11px}.instant-img-container .api-lightbox--details h3{font-size:16px;line-height:18px;padding:0 0 0 25px;text-transform:uppercase;margin:0 0 10px;background-position:0}.instant-img-container .api-lightbox--details p{font-size:13px;margin:0 0 5px}.instant-img-container .api-lightbox--details p a{font-weight:500}.instant-img-container .api-lightbox--close{position:absolute;z-index:1;right:0;top:0;border:none;background-color:transparent;width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:25px;cursor:pointer;opacity:.5}.instant-img-container .api-lightbox--close:focus,.instant-img-container .api-lightbox--close:hover{opacity:1}.instant-img-container .api-lightbox form{display:block;background-color:#f7f7f7;padding:25px}.instant-img-container .api-lightbox button[type=submit],.instant-img-container .api-lightbox label{font-size:12px;text-transform:uppercase;font-weight:600;display:block;padding:0;margin:0 0 5px;cursor:pointer}.instant-img-container .api-lightbox--input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0;margin-bottom:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.instant-img-container .api-lightbox--input-wrap:focus-within{border-color:#999;-webkit-box-shadow:0 0 1px 4px rgba(0,0,0,.065);box-shadow:0 0 1px 4px rgba(0,0,0,.065)}.instant-img-container .api-lightbox--input-wrap span{width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #e1e1e1;background-color:#f7f7f7}.instant-img-container .api-lightbox--input-wrap span i{font-size:16px}.instant-img-container .api-lightbox--input-wrap span.invalid{cursor:help}.instant-img-container .api-lightbox--input-wrap span.invalid i{color:#d4aa4d}.instant-img-container .api-lightbox--input-wrap span.valid i{color:#65c774}.instant-img-container .api-lightbox--input-wrap span.loading i{color:#333}.instant-img-container .api-lightbox--input-wrap input{line-height:40px;height:40px;padding:0 10px;background-color:transparent;border:none;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px}.instant-img-container .api-lightbox--input-wrap input::-webkit-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-moz-placeholder,.instant-img-container .api-lightbox--input-wrap input::-moz-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-ms-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:focus{background:transparent;outline:none;border:none;-webkit-box-shadow:none;box-shadow:none}.instant-img-container .api-lightbox button[type=submit]{width:100%;border:none;background-color:#586ec6;color:#fff;-webkit-border-radius:3px;border-radius:3px;padding:0 10px;line-height:46px;height:46px;margin:0}.instant-img-container .api-lightbox button[type=submit]:focus,.instant-img-container .api-lightbox button[type=submit]:hover{background-color:#455cb6}.instant-img-container .api-lightbox--response{color:#df3333;margin:0;font-size:13px;font-weight:500;padding:0 2px 12px}.instant-img-container .api-lightbox--response.valid{color:#51a75e}
1
+ @import url(//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css);body.media_page_instant-images{background:#fff}body.media_page_instant-images #wpcontent{padding-left:0;padding-bottom:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpcontent{padding-bottom:0}}body.media_page_instant-images #wpbody-content{padding-bottom:0}body.media_page_instant-images #wpfooter{padding-top:0;padding-bottom:0;line-height:40px;background:#f7f7f7;border-top:1px solid #efefef;position:fixed;bottom:0;z-index:1100}body.media_page_instant-images #wpfooter p{line-height:40px}@media screen and (max-width:800px){body.media_page_instant-images #wpfooter{display:none}}body.media_page_instant-images.overflow-hidden{overflow:hidden}.instant-img-container{font-size:14px;color:#666;position:relative}.instant-img-container .offscreen{position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:1px;width:1px;margin:-1px;padding:0;border:0}.instant-img-container *{-webkit-box-sizing:border-box;box-sizing:border-box}.instant-img-container a{color:#586ec6;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}.instant-img-container a:hover{color:#5568ae;text-decoration:none}.instant-img-container img{max-width:100%}.instant-img-container p{color:#666;width:100%;display:block;clear:both;text-transform:none;padding:0;margin:0 0 15px;font-size:14px}.instant-img-container.loading .loading-block{display:block}.instant-img-container .error-messaging{padding:20px 20px 20px 60px;-webkit-border-radius:3px;border-radius:3px;background:#da4444;color:#fff;font-size:13px;line-height:1.5;margin-bottom:25px;display:block;position:relative}.instant-img-container .error-messaging:before{font-family:FontAwesome;content:"\F06A";display:block;left:17px;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);position:absolute;font-size:32px;opacity:.75}.instant-img-container .header-wrap{background:#f7f7f7 url(../img/logo-48x48.png) no-repeat 25px 20px;padding:20px 25px 20px 83px;min-height:88px;overflow:hidden;border-bottom:1px solid #efefef;position:relative}@media screen and (max-width:800px){.instant-img-container .header-wrap{background-position:center 20px;padding:80px 25px 20px;text-align:center}}.instant-img-container .header-wrap h1{padding:0;margin:4px 0 0;font-weight:700;font-size:26px;max-width:70%}@media screen and (max-width:800px){.instant-img-container .header-wrap h1{max-width:100%;width:100%;text-align:center}}.instant-img-container .header-wrap h1 em{font-weight:400;font-size:14px;background-color:rgba(0,0,0,.055);color:rgba(0,0,0,.5);display:inline-block;-webkit-border-radius:2px;border-radius:2px;padding:3px;position:relative;top:-2px;left:2px;text-shadow:1px 1px 1px hsla(0,0%,100%,.4);font-style:normal;line-height:1}.instant-img-container .header-wrap h1 span{display:block;padding:3px 0 0;color:#999;font-size:15px;font-weight:400}.instant-img-container .header-wrap button{position:absolute;right:25px;bottom:26px}@media screen and (max-width:800px){.instant-img-container .header-wrap button{position:static;margin-top:20px;display:inline-block}}.instant-img-container .header-wrap button i{margin-right:2px}.instant-img-container .instant-images-wrapper{padding:0 25px;display:block;overflow:hidden;min-height:400px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .instant-images-wrapper.loaded{background:none}.instant-img-container .permissions-warning{padding:0 25px}.instant-img-container .permissions-warning .inner{border-bottom:1px solid #efefef;padding:32px 0}.instant-img-container .permissions-warning input{max-width:500px}.instant-img-container .permissions-warning h3{font-size:22px;margin:0 0 15px}.instant-img-container .permissions-warning h3 i{margin:0 2px 0 0;position:relative}.instant-img-container .permissions-warning p:first-of-type{font-size:18px;margin:0 0 2px}.instant-img-container .loading-block{display:none;padding:50px;background:url(../img/ajax-loader-lg.gif) no-repeat 50%}.instant-img-container .load-more-wrap{margin:1% 0 0;padding:25px 0;text-align:center;display:none;border-top:1px solid #efefef}.instant-img-container .load-more-wrap button{display:inline-block;margin:0;padding:12px 15px;font-size:15px;font-weight:600;-webkit-transition:all .1s ease;-o-transition:all .1s ease;transition:all .1s ease;height:auto;line-height:1;cursor:pointer;background-image:none;background-repeat:no-repeat!important;background-position:15px!important}.instant-img-container .load-more-wrap button.disabled{opacity:.3;cursor:default}.instant-img-container .cnkt-main{width:100%;float:none;background:none!important;position:relative}.instant-img-container h2,.instant-img-container h3,.instant-img-container h4{margin-top:0}.instant-img-container .save-settings p.submit{float:left;margin:0 2px 0 0;width:auto}.instant-img-container .save-settings .loading{width:46px;height:28px;display:none;float:left;background:#fff url(../img/ajax-loader.gif) no-repeat 50%}#TB_ajaxContent{clear:both;line-height:1.4em;overflow:auto;text-align:left;width:100%!important;-webkit-box-sizing:border-box;box-sizing:border-box;padding:15px!important}.cnkt-sidebar .form-table{margin:0;border:none;position:relative;top:-5px}.cnkt-sidebar .form-table label,.cnkt-sidebar .form-table p,.cnkt-sidebar .form-table td{font-size:13px}.cnkt-sidebar .form-table label{color:#333;display:block;clear:both;float:none}.cnkt-sidebar .form-table label span{opacity:.8;font-size:13px;font-style:italic}.cnkt-sidebar .form-table th{display:none}.instant-img-container .form-table td{border-top:0;padding:0 0 10px;float:left;width:100%;margin:0}.cnkt-main .form-msg,.cnkt-sidebar .form-table .form-msg{display:block;line-height:18px;padding:12px 12px 12px 15px;margin:15px 0 0;color:#666;background-color:#fff9ea;border-left:5px solid #dfd8c2;-webkit-border-radius:2px;border-radius:2px}.cnkt-main .form-msg span,.cnkt-sidebar .form-table .form-msg span{display:block;padding:6px 0 3px}.instant-img-container h1,.instant-img-container h3,.instant-img-container h4{color:#222;margin-top:0}.instant-img-container h4+p{margin-top:-6px}.instant-img-container p.small{font-size:12px;margin-top:-10px;opacity:.7}.instant-img-container ul{padding:0;margin:0;list-style:none}.instant-img-container input,.instant-img-container label,.instant-img-container select,.instant-img-container textarea{-webkit-box-shadow:none;box-shadow:none}.instant-img-container .save-settings{padding-top:5px}.instant-img-container label{padding:5px 0}#unsplash-form-options h2,#unsplash-form-options p.desc{display:none}.instant-img-container input[type=number],.instant-img-container input[type=text],.instant-img-container textarea{padding:10px;line-height:1;background:#f7f7f7;width:100%;-webkit-border-radius:2px;border-radius:2px;height:auto}.instant-img-container input[type=text]:focus,.instant-img-container textarea:focus{border-color:#999;-webkit-box-shadow:0 0 3px #ccc;box-shadow:0 0 3px #ccc;background:#efefef}.instant-img-container .spacer{display:block;height:40px;overflow:hidden;clear:both;width:100%}.instant-img-container .spacer.sm{height:20px}.instant-img-container input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;box-shadow:inset 0 0 0 1000px #fff}.instant-img-container .control-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;margin:0 0 20px;padding:20px 0;list-style:none;border-bottom:1px solid #efefef}@media screen and (max-width:800px){.instant-img-container .control-nav{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.instant-img-container .control-nav:after{content:"";display:table;clear:both}.instant-img-container .control-nav--filters-wrap{-webkit-box-flex:1;-ms-flex:1;flex:1;position:relative;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}@media screen and (max-width:800px){.instant-img-container .control-nav--filters-wrap{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}}.instant-img-container .control-nav--filters-wrap.inactive{opacity:.55;-webkit-filter:blur(1px);filter:blur(1px)}.instant-img-container .control-nav--filters-wrap.inactive *{cursor:not-allowed}.instant-img-container .control-nav--filters{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;width:100%}@media screen and (min-width:1024px){.instant-img-container .control-nav--filters{-webkit-column-gap:20px;-moz-column-gap:20px;column-gap:20px}}.instant-img-container .control-nav--filters:before{display:block;display:none;content:"\F0B0";font-family:FontAwesome;color:#efefef;font-size:24px;margin-right:10px}.instant-img-container .control-nav--filters label{border-left:none;display:block;min-width:125px;padding:0;margin:0}.instant-img-container .control-nav--filters label span{display:block;text-transform:uppercase;font-size:10px;padding-bottom:1px;padding-left:1px}.instant-img-container .control-nav--filters label:focus-within select:not[disabled]{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--filters select{text-transform:capitalize;width:100%;border-color:#ccc;color:#333;background-color:#f7f7f7;min-height:36px;line-height:36px;font-size:14px;padding:0 24px 0 8px}.instant-img-container .control-nav--filters select[disabled]{cursor:not-allowed}.instant-img-container .control-nav--filters select:not[disabled]:hover{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--search{display:-webkit-box;display:-ms-flexbox;display:flex;width:30%;max-width:350px;margin:0;margin-left:auto;padding:0 0 0 20px;position:relative}@media screen and (min-width:1270px){.instant-img-container .control-nav--search{width:35%}}@media screen and (max-width:800px){.instant-img-container .control-nav--search{width:100%;display:block;position:static;padding:0;text-align:left;max-width:100%;padding:10px 0}}.instant-img-container .control-nav--search .searchResults{position:absolute;right:100.5%;top:5px;width:auto;height:30px;line-height:30px;padding:0 0 0 8px;background:#586ec6;border:1px solid #455cb6;-webkit-border-radius:4px;border-radius:4px;z-index:9999;font-size:13px;font-weight:500;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;color:#fff;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.05);box-shadow:0 2px 3px rgba(0,0,0,.05);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.instant-img-container .control-nav--search .searchResults span{cursor:help}.instant-img-container .control-nav--search .searchResults button{cursor:pointer;color:#fff;background-color:transparent!important;padding:0;height:auto;line-height:1;width:28px;font-weight:700;opacity:.65;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:14px;height:100%;border:none!important;-webkit-box-shadow:none!important;box-shadow:none!important}.instant-img-container .control-nav--search .searchResults button:focus,.instant-img-container .control-nav--search .searchResults button:hover{opacity:1}.instant-img-container .control-nav--search .searchResults:after,.instant-img-container .control-nav--search .searchResults:before{left:100%;top:50%;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;z-index:100}.instant-img-container .control-nav--search .searchResults:after{border-color:hsla(62,46%,78%,0);border-left-color:#586ec6;border-width:6px;margin-top:-6px}.instant-img-container .control-nav--search .searchResults:before{border-color:transparent;border-left-color:#455cb6;border-width:7px;margin-top:-7px}.instant-img-container .control-nav--search .searchResults.hide{opacity:0;visibility:hidden}.instant-img-container .control-nav--search form{padding:0 1px 0 0;margin:0;position:relative;height:38px;display:block;width:100%}.instant-img-container .control-nav--search form:hover button[type=submit]{opacity:1}.instant-img-container .control-nav--search input{width:100%;padding:0 10px 0 38px;border:1px solid #ccc;background-color:#f7f7f7!important;height:38px;line-height:38px;-webkit-border-radius:999px;border-radius:999px;font-size:14px;-webkit-transition:border .25s ease;-o-transition:border .25s ease;transition:border .25s ease;background-position:right 10px center;background-repeat:no-repeat}.instant-img-container .control-nav--search input:focus{border-color:#999;-webkit-box-shadow:0 0 1px 5px rgba(0,0,0,.025);box-shadow:0 0 1px 5px rgba(0,0,0,.025)}.instant-img-container .control-nav--search input.searching{background-image:url(../img/ajax-loader.gif)}.instant-img-container .control-nav--search input[type=search]::-webkit-search-cancel-button,.instant-img-container .control-nav--search input[type=search]::-webkit-search-decoration,.instant-img-container .control-nav--search input[type=search]::-webkit-search-results-button,.instant-img-container .control-nav--search input[type=search]::-webkit-search-results-decoration{-webkit-appearance:none}.instant-img-container .control-nav--search button[type=submit]{position:absolute;left:2px;top:0;width:38px;height:38px;line-height:38px;-webkit-border-radius:100%;border-radius:100%;z-index:1;border:none!important;background:transparent!important;cursor:pointer;color:#333;-webkit-box-shadow:none!important;box-shadow:none!important;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;opacity:.75;margin:0;padding:0;font-size:16px}.instant-img-container .control-nav--search button[type=submit]:focus,.instant-img-container .control-nav--search button[type=submit]:hover{opacity:1}.instant-img-container .control-nav--search input[type=search]::-webkit-input-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}.instant-img-container .control-nav--search input[type=search]:-moz-placeholder,.instant-img-container .control-nav--search input[type=search]::-moz-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}.instant-img-container .control-nav--search input[type=search]:-ms-input-placeholder{color:#ccc;font-weight:400;font-style:normal;font-size:14px}#photos{width:100%;width:calc(100% + 10px);margin:0 0 0 -5px;padding:0;position:relative}#photos:after{visibility:hidden;opacity:0;display:block;content:"";position:absolute;left:-10px;top:-5px;width:calc(100% + 20px);height:calc(100% + 10px);min-height:200px;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat center 90px;z-index:999;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease}#photos.loading:after{visibility:visible;opacity:1}#photos .photo{width:20%;margin:0;padding:0 5px 10px;opacity:0;-webkit-transition:opacity .3s ease;-o-transition:opacity .3s ease;transition:opacity .3s ease}#photos .photo--wrap{position:relative}#photos .photo.in-view{opacity:1}#photos .photo.in-progress .fade{opacity:0!important;visibility:hidden!important}#photos .photo .img-wrap{display:block;overflow:hidden;position:relative}@media screen and (min-width:2000px){#photos .photo{width:20%}}@media screen and (max-width:1500px){#photos .photo{width:25%}}@media screen and (max-width:1270px){#photos .photo{width:33.333333%}}@media screen and (max-width:800px){#photos .photo{width:50%}}@media screen and (max-width:600px){#photos .photo{width:100%;margin:0 0 2%}}#photos .photo:focus a.upload img{opacity:.6}#photos .photo:focus .fade{opacity:1;visibility:visible}#photos .photo:focus .fade.user{opacity:.7}#photos .photo:focus-within .user-controls{opacity:1}#photos .photo a.upload{display:block;position:relative;background-color:#222;background-position:50%;background-repeat:no-repeat;background-image:url(../img/ajax-loader.gif);overflow:hidden}#photos .photo a.upload.loaded{background-image:none}#photos .photo a.upload:active,#photos .photo a.upload:focus{outline:none;border:none}#photos .photo a.upload img{-webkit-transition:all .5s ease;-o-transition:all .5s ease;transition:all .5s ease;width:100%;height:auto!important;padding:0;vertical-align:top}#photos .photo a.upload .status{visibility:hidden;opacity:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;width:60px;height:60px;line-height:60px;-webkit-border-radius:4px;border-radius:4px;position:absolute;left:50%;top:50%;z-index:5;-webkit-transform:translate(-50%,-50%) scale(1.2);-ms-transform:translate(-50%,-50%) scale(1.2);transform:translate(-50%,-50%) scale(1.2);-webkit-box-shadow:0 2px 3px rgba(0,0,0,.25);box-shadow:0 2px 3px rgba(0,0,0,.25);background-position:50%;background-repeat:no-repeat}#photos .photo a.upload .status:before{font-family:FontAwesome;display:block;color:#fff;font-size:24px;opacity:.8}#photos .photo a.upload .status a{color:#fff}#photos .photo a.upload.errors .status,#photos .photo a.upload.success .status,#photos .photo a.upload.uploading .status{text-align:center;left:50%;top:50%;-webkit-transform:translate(-50%,-50%) scale(1);-ms-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1)}#photos .photo a.upload.uploading{cursor:default!important}#photos .photo a.upload.uploading .status{visibility:visible;opacity:1;background:hsla(0,0%,100%,.95) url(../img/ajax-loader-lg.gif) no-repeat 50%;-webkit-background-size:24px 24px;background-size:24px 24px}#photos .photo a.upload.uploading .status:before{display:none}#photos .photo a.upload.success{cursor:default!important}#photos .photo a.upload.success .status{visibility:visible;opacity:1;background-color:#65c774}#photos .photo a.upload.success .status:before{content:"\F00C";color:#fff}#photos .photo a.upload.success img{-webkit-transform:scale(1)!important;-ms-transform:scale(1)!important;transform:scale(1)!important}#photos .photo a.upload.errors{cursor:help!important}#photos .photo a.upload.errors .status{visibility:visible;opacity:1;background-color:#df3333}#photos .photo a.upload.errors .status:before{content:"\F12A";color:#fff;opacity:.8}#photos .photo.uploaded a.upload img{opacity:.25!important}#photos .photo.uploaded .options,#photos .photo.uploaded .user-controls{opacity:0!important;visibility:hidden!important}#photos .photo.in-progress a.upload img,#photos .photo:hover a.upload img{opacity:.7;-webkit-transform:scale(1.075);-ms-transform:scale(1.075);transform:scale(1.075)}#photos .photo.in-progress .options,#photos .photo:hover .options{opacity:1;visibility:visible}#photos .photo.in-progress .options i.heart-like,#photos .photo:hover .options i.heart-like{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .photo.in-progress .user-controls,#photos .photo:hover .user-controls{opacity:1}#photos .photo.in-progress .notice-msg{top:0;opacity:1}#photos .photo.in-progress .options,#photos .photo.in-progress .user-controls{opacity:0!important}#photos .photo .options{position:absolute;top:5px;right:5px;z-index:6;display:inline-block;width:auto;cursor:default!important;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease;opacity:0;visibility:hidden;font-size:13px}#photos .photo .options i{font-size:14px}#photos .photo .options i.heart-like{color:#d13714;-webkit-transition:all .25s ease .05s;-o-transition:all .25s ease .05s;transition:all .25s ease .05s;-webkit-transform:scale(.55);-ms-transform:scale(.55);transform:scale(.55);margin-right:2px;position:relative;top:0;font-size:14px;opacity:.9}#photos .photo .options a,#photos .photo .options span{display:inline-block;vertical-align:top;line-height:30px;padding:0 10px;padding-top:1px;background:hsla(0,0%,100%,.5);margin:0;-webkit-border-radius:2px;border-radius:2px;color:#23282d;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .options span{cursor:default}#photos .photo .options span:focus,#photos .photo .options span:hover{background-color:#fff}#photos .photo .options a{margin-left:2px}#photos .photo .options a:focus,#photos .photo .options a:hover{background-color:#fff}#photos .photo .options a i{position:relative;top:1px;left:1px}#photos .photo .user-controls{position:absolute;z-index:6;bottom:0;left:0;width:100%;background:rgba(0,0,0,.4);padding:0;opacity:.35;-webkit-transition:all .3s ease;-o-transition:all .3s ease;transition:all .3s ease}#photos .photo .photo-options{float:right;text-align:right;max-width:50%}#photos .photo .fade{-webkit-transition:all .35s ease;-o-transition:all .35s ease;transition:all .35s ease;color:#fff;background:hsla(0,0%,100%,.75);background:transparent;-webkit-border-radius:2px;border-radius:2px;height:34px;line-height:34px;font-size:17px;z-index:6;float:left;margin:1px 1px 1px 0;padding:0;color:hsla(0,0%,100%,.75);border:none!important;outline:none;cursor:pointer}#photos .photo .fade.edit-photo,#photos .photo .fade.edit-photo-admin,#photos .photo .fade.insert,#photos .photo .fade.set-featured{display:inline-block;width:34px;text-align:center;position:relative}#photos .photo .fade.edit-photo-admin i,#photos .photo .fade.edit-photo i,#photos .photo .fade.insert i,#photos .photo .fade.set-featured i{line-height:27px;position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#photos .photo .fade.edit-photo-admin:focus,#photos .photo .fade.edit-photo-admin:hover,#photos .photo .fade.edit-photo:focus,#photos .photo .fade.edit-photo:hover,#photos .photo .fade.insert:focus,#photos .photo .fade.insert:hover,#photos .photo .fade.set-featured:focus,#photos .photo .fade.set-featured:hover{color:#222;background:hsla(0,0%,100%,.95)}#photos .photo .fade.edit-photo-admin{display:none}#photos .photo .fade.user{background:none;font-size:13px;max-width:48%;cursor:pointer;text-decoration:none;border:none;line-height:35px;height:36px;margin:0}#photos .photo .fade.user:focus,#photos .photo .fade.user:hover{text-decoration:underline}#photos .photo .fade.user .user-wrap{position:relative;padding-left:35px;display:block;width:100%;overflow:hidden;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}#photos .photo .fade.user .user-wrap:before{content:"";display:block;z-index:0;background-color:#fff;height:20px;opacity:.25}#photos .photo .fade.user .user-wrap:before,#photos .photo .fade.user img{width:20px;max-width:20px;-webkit-border-radius:100%;border-radius:100%;position:absolute;left:8px;top:8px}#photos .photo .fade.user img{z-index:1}#photos .photo .notice-msg{position:absolute;z-index:999;top:-40px;left:0;height:40px;line-height:40px;width:100%;background:rgba(0,0,0,.6);text-align:center;color:hsla(0,0%,100%,.9);font-size:12px;margin:0;padding:0;-webkit-transition:all .25s ease-in-out;-o-transition:all .25s ease-in-out;transition:all .25s ease-in-out;opacity:0;z-index:9999}#photos .photo .notice-msg.has-error{top:-40px;opacity:0}#photos .edit-screen{position:absolute;left:0;top:0;width:100%;height:100%;z-index:999;background:hsla(0,0%,100%,.9);opacity:0;visibility:hidden;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;padding:5px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid #e1e1e1;-webkit-transform:scale(1.025);-ms-transform:scale(1.025);transform:scale(1.025)}#photos .edit-screen.editing{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}#photos .edit-screen--controls,#photos .edit-screen--title{display:block;background:#f7f7f7;border:1px solid #e1e1e1;padding:15px 10px;-webkit-border-radius:2px 2px 0 0;border-radius:2px 2px 0 0}#photos .edit-screen--controls .button-primary,#photos .edit-screen--title .button-primary{float:right}#photos .edit-screen--controls{-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}#photos .edit-screen--title{border-bottom:none;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:100%;padding:10px;-webkit-border-radius:3px 3px 0 0;border-radius:3px 3px 0 0}#photos .edit-screen--title>div{padding:5px 15px 5px 5px;-webkit-box-flex:1;-ms-flex:1;flex:1}#photos .edit-screen--title>div.preview{width:30%;padding:0;-webkit-background-size:cover;background-size:cover;background-position:50%;background-repeat:no-repeat;-webkit-border-radius:2px;border-radius:2px;-webkit-box-flex:0;-ms-flex:none;flex:none}#photos .edit-screen--title p{font-size:12px;line-height:1.45;margin:0;color:#999}#photos .edit-screen--title p.heading{color:#222;margin:0 0 3px;font-weight:600;text-transform:uppercase}#photos .edit-screen .add-attribution-row,#photos .edit-screen label{margin:0;padding:15px;display:block;background:#fff;border:1px solid #e1e1e1;border-bottom:none;position:relative}#photos .edit-screen .add-attribution-row{padding-top:0;margin-top:-15px;border-top:none}#photos .edit-screen .add-attribution-row button{cursor:pointer;font-size:11px;outline:none;padding:5px 0;border:none;background:none;text-decoration:underline}#photos .edit-screen .add-attribution-row button:focus,#photos .edit-screen .add-attribution-row button:hover{text-decoration:none}#photos .edit-screen span{display:block;font-size:11px;text-transform:uppercase;font-weight:600;margin:0 0 5px;color:#222;line-height:1}#photos .edit-screen textarea{resize:none;font-size:12px;line-height:1.35}#photos .edit-screen input{font-size:12px;padding:0 10px;margin:0;height:35px;line-height:35px}#photos .edit-screen em{position:absolute;bottom:15px;right:15px;height:35px;line-height:35px;background:#858585;-webkit-border-radius:0 2px 2px 0;border-radius:0 2px 2px 0;color:#e1e1e1;font-style:normal;font-size:11px;padding:0 10px}.instant-images-settings{display:none;background-color:#efefef;border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar{padding:20px 25px;overflow:hidden;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.45}.instant-images-settings .cnkt-sidebar p{font-size:13px}.instant-images-settings .cnkt-sidebar .cta{width:100%;background:#fff;padding:0;position:relative;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;overflow:hidden}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta{width:calc(65% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;padding-bottom:52px}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{line-height:1.45;width:100%;background-color:transparent;padding:5px;margin:0;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex}@media screen and (min-width:1024px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:50%}}@media screen and (min-width:1270px){.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li{width:33.333%}}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p{font-size:13px;position:relative;z-index:1;margin:0;padding:15px;border:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li p strong{font-size:14px;display:block;font-weight:700;margin:0 0 5px;color:#333}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new ul li code{font-size:12px;margin:0;padding:3px;background:#f7f7f7;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 0 0 1px #efefef;box-shadow:0 0 0 1px #efefef}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love{position:absolute;left:0;bottom:0;width:100%;-webkit-border-radius:0 0 2px 2px;border-radius:0 0 2px 2px;background-color:#f7f7f7;border-top:1px solid #e1e1e1;text-align:center;margin:0;padding:15px}.instant-images-settings .cnkt-sidebar .cta.ii-whats-new .with-love p{margin:0}.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-settings{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2;width:35%}}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text],.instant-images-settings .cnkt-sidebar .cta.ii-settings select{background-color:#fff;width:100%;padding:5px 10px;border-color:#ccc;max-width:none}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number][readonly],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text][readonly],.instant-images-settings .cnkt-sidebar .cta.ii-settings select[readonly]{background-color:#f7f7f7;cursor:not-allowed;opacity:.65;border-color:#ccc!important;-webkit-box-shadow:none!important;box-shadow:none!important}.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=number],.instant-images-settings .cnkt-sidebar .cta.ii-settings input[type=text]{padding:10px}.instant-images-settings .cnkt-sidebar .cta.ii-settings span.desc{font-size:11px;display:block;padding:8px 2px 5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins{width:100%;margin-top:10px;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer{width:100%;position:static;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:20px 20px 0}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:100%;margin:0 0 20px;line-height:1.45}@media screen and (min-width:800px){.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin{width:calc(50% - 10px)}}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer .plugin h2{margin-bottom:5px}.instant-images-settings .cnkt-sidebar .cta.ii-plugins .cnkt-plugin-installer:after{display:none}.instant-images-settings .cnkt-sidebar h2{border:none;padding:20px 20px 0;font-size:18px;font-weight:700}.instant-images-settings .cnkt-sidebar h2+p{padding:0 20px 16px;margin:0!important;border-bottom:1px solid #e1e1e1}.instant-images-settings .cnkt-sidebar h2,.instant-images-settings .cnkt-sidebar h2+p{background:#f7f7f7;margin:0}.instant-images-settings .cnkt-sidebar .cnkt-sidebar h3,.instant-images-settings .cnkt-sidebar .cnkt-sidebar h4{margin-top:0}.instant-images-settings .cnkt-sidebar .cta-wrap{display:block;padding:20px}.instant-images-settings .cnkt-sidebar .cta-wrap h4{padding:10px 0 7px;margin:0}.instant-images-settings .cnkt-sidebar .cta-wrap h4 span{display:inline-block;line-height:1;padding:8px 10px;-webkit-border-radius:2px;border-radius:2px;background:#ffc;color:#666}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:48%;margin:2% 1% 0}@media screen and (max-width:1170px){.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin{width:100%;margin:2% 0 0}}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2{border:none;padding:0;font-size:16px}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{padding:0;margin:0!important;border-bottom:none}.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2,.instant-images-settings .cnkt-sidebar .cnkt-plugin-installer .plugin h2+p{background:none;margin:0}.instant-images-settings table{margin-top:5px}.instant-img-container[data-media-popup=true]{background:#fff}.instant-img-container[data-media-popup=true] .header-wrap{display:none}.instant-img-container[data-media-popup=true] .instant-images-wrapper{padding:0 16px}body.loading .instant-img-container .loading-block{display:block}.instant-images-sidebar-icon,.instant-images-sidebar-icon svg{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto}.instant-images-sidebar-icon svg{height:20px;width:20px}.instant-images-sidebar-icon svg,.instant-images-sidebar-icon svg *{stroke:#586ec6!important;fill:#586ec6!important}.components-panel .instant-img-container .load-more-wrap{display:block}.components-panel .no-results{padding:40px}.components-panel .no-results h3{font-size:18px}.components-panel .no-results p{font-size:13px}.components-panel .search-results-text{font-size:12px;border-top:1px solid #ddd;border-color:#ddd}.components-panel .search-results-text .search-results-clear{display:none}.components-panel #photos{width:100%;margin:0;padding:5px}.components-panel #photos .photo{width:100%;display:block;opacity:1!important;margin:0 0 5px;padding:0}.components-panel .provider-nav{width:100%;padding:10px 5px;margin:0;border-bottom-color:#ddd}.components-panel .provider-nav button{font-size:13px;padding-left:36px}.components-panel .control-nav{padding:0 5px 5px;border-bottom:1px solid #ddd;margin:0 0 10px;display:block}.components-panel .control-nav .control-nav--spacer{display:none}.components-panel .control-nav--filters-wrap{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%;display:block}.components-panel .control-nav--filters{-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;padding:10px 0}.components-panel .control-nav--filters .filter-dropdown{width:calc(50% - 3px);display:none}.components-panel .control-nav--filters .filter-dropdown button{padding:5px;font-size:13px}.components-panel .control-nav--filters .filter-dropdown button.filter-dropdown--button{display:block}.components-panel .control-nav--filters .filter-dropdown button i{margin-left:auto;padding-right:5px}.components-panel .control-nav--filters .filter-dropdown--menu{width:106%;left:-3%;padding:8px}.components-panel .control-nav--filters .filter-dropdown--menu button{gap:8px}.components-panel .control-nav--filters .filter-dropdown:first-child,.components-panel .control-nav--filters .filter-dropdown:nth-child(2){display:block}.components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-label{display:block;font-size:10px;text-transform:uppercase;margin:0 0 2px}.components-panel .control-nav--filters .filter-dropdown .filter-dropdown--button-selected{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;font-size:14px}.components-panel .control-nav--search{float:none;width:100%;padding:0 0 10px;clear:both}.components-panel .control-nav--search form{height:auto}.components-panel .control-nav--search:before,.components-panel .control-nav--search button[type=submit]{display:none}.components-panel .control-nav--search input{line-height:40px;height:40px;padding-right:10px;padding-left:10px;border-color:#e2e4e7;font-size:13px;-webkit-border-radius:3px!important;border-radius:3px!important;background-position:8px}.components-panel .control-nav--search input.searching{padding-left:30px}.components-panel .control-nav--search input:focus{-webkit-box-shadow:none;box-shadow:none}.components-panel .control-nav--search input[type=search]::-webkit-input-placeholder{font-size:13px}.components-panel .control-nav--search input[type=search]:-moz-placeholder,.components-panel .control-nav--search input[type=search]::-moz-placeholder{font-size:13px}.components-panel .control-nav--search input[type=search]:-ms-input-placeholder{font-size:13px}.components-panel .control-nav--search .searchResults{right:2px;left:auto;top:2px;-webkit-border-radius:2px;border-radius:2px;font-size:12px;height:36px;line-height:35px}.components-panel .control-nav--search .searchResults:after,.components-panel .control-nav--search .searchResults:before{display:none}.components-panel .orientation-list{position:static;border-top:none;background:#f7f7f7;padding:5px 5px 5px 0;margin-bottom:5px;border-bottom-color:#ddd}.components-panel .orientation-list span{display:none}.components-panel .orientation-list ul{padding:0;width:100%}.instant-img-container #tooltip{display:inline-block;padding:8px 10px;background:#fff;position:fixed;left:auto;top:auto;z-index:999;display:block;opacity:0;visibility:hidden;margin-top:-37px;font-size:12px;color:#999;text-align:center;line-height:1;-webkit-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 2px 3px rgba(0,0,0,.1);box-shadow:0 2px 3px rgba(0,0,0,.1);-webkit-transition:all .15s ease;-o-transition:all .15s ease;transition:all .15s ease}.instant-img-container #tooltip:after{top:100%;right:17px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:5px;margin-left:-5px}.instant-img-container #tooltip.over{opacity:.9;visibility:visible}.instant-img-container #tooltip.above{margin-top:37px}.instant-img-container #tooltip.above:after{top:-5px;border-top:none;border-bottom-color:#fff}.no-results{display:block;padding:150px 100px;text-align:center}.no-results h3{font-size:24px;line-height:29px;margin:0 0 10px}.no-results p{font-size:16px;margin:0}@media screen and (max-width:800px){.no-results{padding:50px}}.orientation-list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:100%;padding:7px 0;margin:0 0 10px;border-top:1px solid #efefef;border-bottom:1px solid #efefef;position:relative;top:-7px}.orientation-list span{opacity:.5;margin:0 10px 0 0;font-size:13px}.orientation-list span i{margin-right:2px}.orientation-list ul{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex}.orientation-list ul li{margin:0 1px 0 0;-webkit-border-radius:3px;border-radius:3px;cursor:pointer;padding:4px 6px;-webkit-transition:all .25s ease;-o-transition:all .25s ease;transition:all .25s ease;border:1px solid transparent;color:#999;font-size:13px}.orientation-list ul li:hover{color:#111}.orientation-list ul li:focus{border-color:#586ec6;color:#111;outline:none}.orientation-list ul li.active{background-color:#586ec6;border-color:#586ec6;color:#fff;outline:none}.media-frame-router button#menu-item-instantimages.active{background-color:#f7f7f7}.media-frame-content .instant-img-container .load-more-wrap{display:block}.provider-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:calc(100% + 50px);margin-left:-25px;padding:10px 25px;border-bottom:1px solid #efefef;-webkit-box-shadow:0 2px 5px rgba(0,0,0,.045);box-shadow:0 2px 5px rgba(0,0,0,.045);background-color:#f7f7f7}.provider-nav,.provider-nav>div{position:relative}.provider-nav--btn{padding:0 10px 0 36px;height:38px;line-height:38px;border:1px solid transparent;background:transparent;margin-right:5px;cursor:pointer;position:relative;-webkit-border-radius:3px;border-radius:3px;font-size:14px;color:#999;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease;background-color:#f7f7f7}.provider-nav--btn:focus,.provider-nav--btn:hover{color:#333}.provider-nav--btn.active{background-color:#fff;border-color:#ccc;color:#333;cursor:default;-webkit-box-shadow:0 0 6px rgba(0,0,0,.075);box-shadow:0 0 6px rgba(0,0,0,.075)}.provider-nav--new{color:#333;background-color:#ffe732;font-size:9px;text-transform:uppercase;display:inline;padding:3px 4px;-webkit-border-radius:3px;border-radius:3px;margin-left:5px;position:relative;top:-1px;letter-spacing:-.05rem}[data-provider=unsplash]{background:url(../img/unsplash.svg) no-repeat 10px;-webkit-background-size:18px 18px;background-size:18px 18px}[data-provider=pixabay]{background:url(../img/pixabay.png) no-repeat 10px;-webkit-background-size:20px 20px;background-size:20px 20px}.media-frame-content .instant-img-container .api-lightbox{position:fixed}.components-panel .instant-img-container .api-lightbox{height:100%;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.instant-img-container .api-lightbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;z-index:99999;left:0;top:0;right:0;bottom:0;height:100vh;padding:5%;background-color:rgba(0,0,0,.75);font-size:13px}.instant-img-container .api-lightbox.active>div{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.instant-img-container .api-lightbox>div{max-width:450px;width:100%;padding:0;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:5px;border-radius:5px;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.25);box-shadow:0 1px 5px rgba(0,0,0,.25);position:relative;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95);opacity:0;-webkit-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;transition:all .3s ease-in-out}.instant-img-container .api-lightbox>div>div{position:relative}.instant-img-container .api-lightbox--details{border-bottom:1px solid #e1e1e1;padding:25px;padding-bottom:20px;position:relative}.instant-img-container .api-lightbox--details:after,.instant-img-container .api-lightbox--details:before{top:100%;left:50px;border:solid transparent;content:"";height:0;width:0;position:absolute;pointer-events:none}.instant-img-container .api-lightbox--details:after{border-color:hsla(0,0%,100%,0);border-top-color:#fff;border-width:10px;margin-left:-10px}.instant-img-container .api-lightbox--details:before{border-color:rgba(194,225,245,0);border-top-color:#e1e1e1;border-width:11px;margin-left:-11px}.instant-img-container .api-lightbox--details h3{font-size:16px;line-height:18px;padding:0 0 0 25px;text-transform:uppercase;margin:0 0 10px;background-position:0}.instant-img-container .api-lightbox--details p{font-size:13px;margin:0 0 5px}.instant-img-container .api-lightbox--details p a{font-weight:500}.instant-img-container .api-lightbox--close{position:absolute;z-index:1;right:0;top:0;border:none;background-color:transparent;width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;font-size:25px;cursor:pointer;opacity:.5}.instant-img-container .api-lightbox--close:focus,.instant-img-container .api-lightbox--close:hover{opacity:1}.instant-img-container .api-lightbox form{display:block;background-color:#f7f7f7;padding:25px}.instant-img-container .api-lightbox button[type=submit],.instant-img-container .api-lightbox label{font-size:12px;text-transform:uppercase;font-weight:600;display:block;padding:0;margin:0 0 5px;cursor:pointer}.instant-img-container .api-lightbox--input-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;padding:0;margin-bottom:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:all .2s ease;-o-transition:all .2s ease;transition:all .2s ease}.instant-img-container .api-lightbox--input-wrap:focus-within{border-color:#999;-webkit-box-shadow:0 0 1px 4px rgba(0,0,0,.065);box-shadow:0 0 1px 4px rgba(0,0,0,.065)}.instant-img-container .api-lightbox--input-wrap span{width:40px;height:40px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-border-radius:2px 0 0 2px;border-radius:2px 0 0 2px;border-right:1px solid #e1e1e1;background-color:#f7f7f7}.instant-img-container .api-lightbox--input-wrap span i{font-size:16px}.instant-img-container .api-lightbox--input-wrap span.invalid{cursor:help}.instant-img-container .api-lightbox--input-wrap span.invalid i{color:#d4aa4d}.instant-img-container .api-lightbox--input-wrap span.valid i{color:#65c774}.instant-img-container .api-lightbox--input-wrap span.loading i{color:#333}.instant-img-container .api-lightbox--input-wrap input{line-height:40px;height:40px;padding:0 10px;background-color:transparent;border:none;-webkit-box-flex:1;-ms-flex:1;flex:1;font-size:12px}.instant-img-container .api-lightbox--input-wrap input::-webkit-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-moz-placeholder,.instant-img-container .api-lightbox--input-wrap input::-moz-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:-ms-input-placeholder{color:#999;font-weight:400;font-style:italic}.instant-img-container .api-lightbox--input-wrap input:focus{background:transparent;outline:none;border:none;-webkit-box-shadow:none;box-shadow:none}.instant-img-container .api-lightbox button[type=submit]{width:100%;border:none;background-color:#586ec6;color:#fff;-webkit-border-radius:3px;border-radius:3px;padding:0 10px;line-height:46px;height:46px;margin:0}.instant-img-container .api-lightbox button[type=submit]:focus,.instant-img-container .api-lightbox button[type=submit]:hover{background-color:#455cb6}.instant-img-container .api-lightbox--response{color:#df3333;margin:0;font-size:13px;font-weight:500;padding:0 2px 12px}.instant-img-container .api-lightbox--response.valid{color:#51a75e}.filter-dropdown{position:relative}.filter-dropdown button{background-color:transparent;border:none;text-align:left;color:#999}.filter-dropdown button:not(disabled){cursor:pointer}.filter-dropdown--button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:5px;padding:10px 2px 10px 0;text-transform:capitalize;color:#999;width:100%;font-size:14px}@media screen and (min-width:1500px){.filter-dropdown--button{font-size:15px}}.filter-dropdown--button span.filter-dropdown--button-label{padding-right:3px}.filter-dropdown--button span.filter-dropdown--button-selected{color:#333;font-weight:500}.filter-dropdown--button i{opacity:.4;margin-left:10px;font-size:14px}.filter-dropdown--button:focus i,.filter-dropdown--button:hover i{opacity:1}.filter-dropdown--menu{display:block;visibility:hidden;opacity:0;-webkit-transform:scale(.95);-ms-transform:scale(.95);transform:scale(.95);-webkit-transition:opacity .1s ease-in-out,visibility .1s ease-in-out,-webkit-transform .2s cubic-bezier(.24,.22,.015,1.56);transition:opacity .1s ease-in-out,visibility .1s ease-in-out,-webkit-transform .2s cubic-bezier(.24,.22,.015,1.56);-o-transition:transform .2s cubic-bezier(.24,.22,.015,1.56),opacity .1s ease-in-out,visibility .1s ease-in-out;transition:transform .2s cubic-bezier(.24,.22,.015,1.56),opacity .1s ease-in-out,visibility .1s ease-in-out;transition:transform .2s cubic-bezier(.24,.22,.015,1.56),opacity .1s ease-in-out,visibility .1s ease-in-out,-webkit-transform .2s cubic-bezier(.24,.22,.015,1.56);padding:10px;background-color:#fff;border:1px solid #e1e1e1;-webkit-border-radius:3px;border-radius:3px;-webkit-box-shadow:0 8px 16px rgba(69,92,182,.2);box-shadow:0 8px 16px rgba(69,92,182,.2);z-index:9999;position:absolute;top:110%;left:-12px;width:200px;max-height:350px;overflow-y:auto}.filter-dropdown--menu.expanded{visibility:visible;opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);top:100%}.filter-dropdown--menu button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px;width:100%;text-transform:capitalize;padding:8px 5px;-webkit-transition:all .25 ease;-o-transition:all .25 ease;transition:all .25 ease;font-size:14px}.filter-dropdown--menu button:before{font-family:FontAwesome;content:"\F00C";display:block;color:#ccc;opacity:.4;font-size:10px}.filter-dropdown--menu button:focus,.filter-dropdown--menu button:hover{color:#333}.filter-dropdown--menu button:focus:before,.filter-dropdown--menu button:hover:before{opacity:.75}.filter-dropdown--menu button.selected{color:#333}.filter-dropdown--menu button.selected:before{color:#333;opacity:.75}.filter-dropdown--menu[data-key=color] button ._color,.filter-dropdown--menu[data-key=colors] button ._color{margin-left:auto;width:14px;height:14px;-webkit-border-radius:50%;border-radius:50%;background-color:currentColor;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.075);box-shadow:0 0 0 1px rgba(0,0,0,.075)}.search-results-header h2{font-size:34px;line-height:1;padding:0;margin:0 0 5px;text-transform:capitalize;font-weight:700}@media screen and (max-width:800px){.search-results-header h2{font-size:25px}}.search-results-header--text{font-size:14px;margin:0;padding-bottom:10px;color:#999}.search-results-header--text strong{color:#333;font-weight:600}.search-results-header--text button{border:none;background-color:transparent;font-size:13px;cursor:pointer;color:#586ec6;font-weight:400;padding:2px 0 0;margin:0}.search-results-header--text button:focus,.search-results-header--text button:hover{text-decoration:underline;color:#455cb6}.search-results-header .control-nav--filters-wrap{margin:0 0 15px}
dist/js/instant-images-block.js CHANGED
@@ -86,6 +86,17 @@
86
  /************************************************************************/
87
  /******/ ({
88
 
 
 
 
 
 
 
 
 
 
 
 
89
  /***/ "./node_modules/axios/index.js":
90
  /*!*************************************!*\
91
  !*** ./node_modules/axios/index.js ***!
@@ -2766,10 +2777,23 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
2766
  _this.updatePreviousElement();
2767
 
2768
  return _this;
2769
- } // TODO: Need more test coverage for this function
 
 
 
 
 
 
2770
 
2771
 
2772
  _createClass(FocusTrap, [{
 
 
 
 
 
 
 
2773
  key: "getNodeForOption",
2774
  value: function getNodeForOption(optionName) {
2775
  var optionValue = this.tailoredFocusTrapOptions[optionName];
@@ -2781,7 +2805,9 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
2781
  var node = optionValue;
2782
 
2783
  if (typeof optionValue === 'string') {
2784
- node = document.querySelector(optionValue);
 
 
2785
 
2786
  if (!node) {
2787
  throw new Error("`".concat(optionName, "` refers to no known node"));
@@ -2809,8 +2835,7 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
2809
  }, {
2810
  key: "updatePreviousElement",
2811
  value: function updatePreviousElement() {
2812
- // SSR: careful to check if `document` exists before accessing it as a variable
2813
- var currentDocument = this.props.focusTrapOptions.document || (typeof document !== 'undefined' ? document : undefined);
2814
 
2815
  if (currentDocument) {
2816
  this.previouslyFocusedElement = currentDocument.activeElement;
@@ -2884,7 +2909,14 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
2884
  }, {
2885
  key: "componentDidMount",
2886
  value: function componentDidMount() {
2887
- this.setupFocusTrap();
 
 
 
 
 
 
 
2888
  }
2889
  }, {
2890
  key: "componentDidUpdate",
@@ -2916,9 +2948,22 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
2916
  if (hasUnpaused) {
2917
  this.focusTrap.unpause();
2918
  }
2919
- } else if (prevProps.containerElements !== this.props.containerElements) {
2920
- this.focusTrapElements = this.props.containerElements;
2921
- this.setupFocusTrap();
 
 
 
 
 
 
 
 
 
 
 
 
 
2922
  }
2923
  }
2924
  }, {
@@ -38045,6 +38090,289 @@ exports.default = ErrorMessage;
38045
 
38046
  /***/ }),
38047
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38048
  /***/ "./src/js/components/LoadMore.js":
38049
  /*!***************************************!*\
38050
  !*** ./src/js/components/LoadMore.js ***!
@@ -38232,99 +38560,6 @@ exports.default = NoResults;
38232
 
38233
  /***/ }),
38234
 
38235
- /***/ "./src/js/components/Orientation.js":
38236
- /*!******************************************!*\
38237
- !*** ./src/js/components/Orientation.js ***!
38238
- \******************************************/
38239
- /*! no static exports found */
38240
- /***/ (function(module, exports, __webpack_require__) {
38241
-
38242
- "use strict";
38243
-
38244
-
38245
- Object.defineProperty(exports, "__esModule", {
38246
- value: true
38247
- });
38248
-
38249
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
38250
-
38251
- var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
38252
-
38253
- var _react2 = _interopRequireDefault(_react);
38254
-
38255
- var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
38256
-
38257
- var _API2 = _interopRequireDefault(_API);
38258
-
38259
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38260
-
38261
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
38262
-
38263
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
38264
-
38265
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
38266
-
38267
- var Orientation = function (_React$Component) {
38268
- _inherits(Orientation, _React$Component);
38269
-
38270
- function Orientation(props) {
38271
- _classCallCheck(this, Orientation);
38272
-
38273
- var _this = _possibleConstructorReturn(this, (Orientation.__proto__ || Object.getPrototypeOf(Orientation)).call(this, props));
38274
-
38275
- _this.provider = _this.props.provider;
38276
- _this.setOrientation = _this.props.setOrientation.bind(_this);
38277
- _this.options = _API2.default[_this.provider].orientation;
38278
- return _this;
38279
- }
38280
-
38281
- _createClass(Orientation, [{
38282
- key: "render",
38283
- value: function render() {
38284
- var _this2 = this;
38285
-
38286
- return _react2.default.createElement(
38287
- "div",
38288
- { className: "orientation-list" },
38289
- _react2.default.createElement(
38290
- "span",
38291
- null,
38292
- _react2.default.createElement("i", { className: "fa fa-filter", "aria-hidden": "true" }),
38293
- " ",
38294
- instant_img_localize.orientation,
38295
- ":"
38296
- ),
38297
- _react2.default.createElement(
38298
- "ul",
38299
- null,
38300
- this.options && this.options.map(function (option, iterator) {
38301
- return _react2.default.createElement(
38302
- "li",
38303
- {
38304
- key: iterator + "-" + option,
38305
- tabIndex: "0",
38306
- onClick: function onClick(e) {
38307
- return _this2.setOrientation(option, e);
38308
- },
38309
- onKeyPress: function onKeyPress(e) {
38310
- return _this2.setOrientation(option, e);
38311
- }
38312
- },
38313
- instant_img_localize[option]
38314
- );
38315
- })
38316
- )
38317
- );
38318
- }
38319
- }]);
38320
-
38321
- return Orientation;
38322
- }(_react2.default.Component);
38323
-
38324
- exports.default = Orientation;
38325
-
38326
- /***/ }),
38327
-
38328
  /***/ "./src/js/components/Photo.js":
38329
  /*!************************************!*\
38330
  !*** ./src/js/components/Photo.js ***!
@@ -39294,6 +39529,8 @@ Object.defineProperty(exports, "__esModule", {
39294
  value: true
39295
  });
39296
 
 
 
39297
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
39298
 
39299
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
@@ -39308,10 +39545,22 @@ var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.j
39308
 
39309
  var _API2 = _interopRequireDefault(_API);
39310
 
 
 
 
 
39311
  var _buildTestURL = __webpack_require__(/*! ../functions/buildTestURL */ "./src/js/functions/buildTestURL.js");
39312
 
39313
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
39314
 
 
 
 
 
 
 
 
 
39315
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
39316
 
39317
  var _getResults2 = _interopRequireDefault(_getResults);
@@ -39328,6 +39577,10 @@ var _ErrorMessage = __webpack_require__(/*! ./ErrorMessage */ "./src/js/componen
39328
 
39329
  var _ErrorMessage2 = _interopRequireDefault(_ErrorMessage);
39330
 
 
 
 
 
39331
  var _LoadingBlock = __webpack_require__(/*! ./LoadingBlock */ "./src/js/components/LoadingBlock.js");
39332
 
39333
  var _LoadingBlock2 = _interopRequireDefault(_LoadingBlock);
@@ -39340,10 +39593,6 @@ var _NoResults = __webpack_require__(/*! ./NoResults */ "./src/js/components/NoR
39340
 
39341
  var _NoResults2 = _interopRequireDefault(_NoResults);
39342
 
39343
- var _Orientation = __webpack_require__(/*! ./Orientation */ "./src/js/components/Orientation.js");
39344
-
39345
- var _Orientation2 = _interopRequireDefault(_Orientation);
39346
-
39347
  var _Photo = __webpack_require__(/*! ./Photo */ "./src/js/components/Photo.js");
39348
 
39349
  var _Photo2 = _interopRequireDefault(_Photo);
@@ -39360,8 +39609,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
39360
 
39361
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
39362
 
39363
- function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
39364
-
39365
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
39366
 
39367
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
@@ -39380,14 +39627,12 @@ var PhotoList = function (_React$Component) {
39380
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
39381
 
39382
  _this.providers = ["Unsplash", "Pixabay"];
39383
-
39384
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
39385
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
39386
  _this.arr_key = _this.api_provider.arr_key;
39387
- _this.order_key = _this.api_provider.order_key;
39388
 
 
39389
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
39390
-
39391
  _this.api_url = "" + _this.api_provider.photo_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
39392
  _this.search_api_url = "" + _this.api_provider.search_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
39393
 
@@ -39395,29 +39640,35 @@ var PhotoList = function (_React$Component) {
39395
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
39396
  _this.state = {
39397
  results: _this.results,
 
 
39398
  restapi_error: false,
39399
  api_lightbox: false
39400
  };
39401
 
 
 
 
39402
  _this.orderby = _this.props.orderby; // Orderby
39403
  _this.page = _this.props.page; // Page
39404
 
39405
  _this.is_search = false;
39406
  _this.search_term = "";
39407
  _this.total_results = 0;
39408
- _this.orientation = "";
39409
  _this.isLoading = false; // Loading flag.
39410
  _this.isDone = false; // Done flag.
39411
  _this.errorMsg = "";
39412
  _this.msnry = "";
39413
  _this.tooltipInterval = "";
 
39414
 
39415
  // Refs.
39416
  _this.photoTarget = _react2.default.createRef();
39417
  _this.providerNav = _react2.default.createRef();
39418
  _this.controlNav = _react2.default.createRef();
39419
  _this.photoSearch = _react2.default.createRef();
39420
- _this.buttonLatest = _react2.default.createRef();
39421
 
39422
  // Editor props.
39423
  _this.editor = _this.props.editor ? _this.props.editor : "classic";
@@ -39501,69 +39752,6 @@ var PhotoList = function (_React$Component) {
39501
  }
39502
  }
39503
 
39504
- /**
39505
- * Orientation filter. Availlable during a search only.
39506
- *
39507
- * @param {string} orientation The orientation of the photos.
39508
- * @param {MouseEvent} event The dispatched orientation setter event.
39509
- * @since 4.2
39510
- */
39511
-
39512
- }, {
39513
- key: "setOrientation",
39514
- value: function setOrientation(orientation, event) {
39515
- if (event && event.target) {
39516
- var target = event.target;
39517
-
39518
- if (target.classList.contains("active")) {
39519
- // Clear orientation
39520
- target.classList.remove("active");
39521
- this.orientation = "";
39522
- } else {
39523
- // Set orientation
39524
- var siblings = target.parentNode.querySelectorAll("li");
39525
- [].concat(_toConsumableArray(siblings)).forEach(function (el) {
39526
- return el.classList.remove("active");
39527
- }); // remove active classes
39528
-
39529
- target.classList.add("active");
39530
- this.orientation = orientation;
39531
- }
39532
-
39533
- if (this.search_term !== "") {
39534
- this.doSearch(this.search_term);
39535
- }
39536
- }
39537
- }
39538
-
39539
- /**
39540
- * Is their an orientation set.
39541
- *
39542
- * @since 4.2
39543
- */
39544
-
39545
- }, {
39546
- key: "hasOrientation",
39547
- value: function hasOrientation() {
39548
- return this.orientation === "" ? false : true;
39549
- }
39550
-
39551
- /**
39552
- * Clear the orientation.
39553
- *
39554
- * @since 4.2
39555
- */
39556
-
39557
- }, {
39558
- key: "clearOrientation",
39559
- value: function clearOrientation() {
39560
- var items = this.container.querySelectorAll(".orientation-list li");
39561
- [].concat(_toConsumableArray(items)).forEach(function (el) {
39562
- return el.classList.remove("active");
39563
- }); // remove active classes
39564
- this.orientation = "";
39565
- }
39566
-
39567
  /**
39568
  * Run the search.
39569
  *
@@ -39577,25 +39765,28 @@ var PhotoList = function (_React$Component) {
39577
  var self = this;
39578
  var input = this.photoSearch.current;
39579
  var type = "term";
39580
- this.page = 1; // reset page num
39581
 
39582
- var url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
 
 
 
 
39583
 
39584
- if (this.hasOrientation()) {
39585
- // Set orientation
39586
- url = url + "&orientation=" + this.orientation;
39587
- }
39588
 
39589
  // Search by ID.
39590
  // Allow users to search by photo by prepending id:{photo_id} to search terms.
39591
  var search_type = term.substring(0, 3);
39592
-
39593
  if (search_type === "id:") {
39594
  type = "id";
39595
  term = term.replace("id:", "");
39596
  url = (0, _searchByID2.default)(this.provider, term, this.api_provider.photo_api, this.api_provider.api_query_var, this.api_key);
39597
  }
39598
 
 
 
 
 
39599
  fetch(url).then(function (data) {
39600
  return data.json();
39601
  }).then(function (data) {
@@ -39609,7 +39800,10 @@ var PhotoList = function (_React$Component) {
39609
 
39610
  // Update Props.
39611
  self.results = results;
39612
- self.setState({ results: self.results });
 
 
 
39613
  }
39614
 
39615
  // Search by ID.
@@ -39636,7 +39830,12 @@ var PhotoList = function (_React$Component) {
39636
  self.setState({ results: self.results });
39637
  }
39638
 
39639
- input.classList.remove("searching");
 
 
 
 
 
39640
  }).catch(function (error) {
39641
  console.log(error);
39642
 
@@ -39646,6 +39845,9 @@ var PhotoList = function (_React$Component) {
39646
  self.total_results = 0;
39647
  self.isDone = true;
39648
 
 
 
 
39649
  // Update Props.
39650
  self.results = [];
39651
  self.setState({ results: self.results });
@@ -39653,7 +39855,7 @@ var PhotoList = function (_React$Component) {
39653
  }
39654
 
39655
  /**
39656
- * Reset search results and results view.
39657
  *
39658
  * @since 3.0
39659
  */
@@ -39661,43 +39863,65 @@ var PhotoList = function (_React$Component) {
39661
  }, {
39662
  key: "clearSearch",
39663
  value: function clearSearch() {
39664
- var input = this.photoSearch.current;
39665
- input.value = "";
39666
  this.total_results = 0;
39667
  this.is_search = false;
39668
  this.search_term = "";
39669
- this.clearOrientation();
 
39670
  }
39671
 
39672
  /**
39673
- * Get the initial set of photos for the current view (New/Popular/Old/etc...).
39674
  *
 
39675
  * @param {string} view Current view.
39676
- * @param {Element} e The clicked element.
39677
- * @param {Boolean} reset Is this an app reset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39678
  * @since 3.0
39679
  */
39680
 
39681
  }, {
39682
  key: "getPhotos",
39683
- value: function getPhotos(view, e) {
39684
- var reset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
 
39685
 
39686
  var self = this;
39687
- var el = e.target || e;
39688
 
39689
- if (el.classList.contains("active") && !reset) {
39690
  return; // exit if active
39691
  }
39692
 
39693
- el.classList.add("loading"); // Add class to nav btn
39694
  this.isLoading = true;
39695
  this.page = 1;
39696
  this.orderby = view;
39697
  this.results = [];
39698
  this.clearSearch();
39699
 
39700
- var url = this.api_url + "&page=" + this.page + "&" + this.order_key + "=" + this.orderby;
 
 
 
 
39701
 
39702
  fetch(url).then(function (data) {
39703
  return data.json();
@@ -39711,12 +39935,25 @@ var PhotoList = function (_React$Component) {
39711
  self.results = results;
39712
 
39713
  // Set results state.
39714
- self.setState({ results: results });
 
 
 
 
 
 
 
 
 
39715
 
39716
- // Remove class from nav btn.
39717
- el.classList.remove("loading");
 
 
 
39718
  }).catch(function (error) {
39719
  console.log(error);
 
39720
  self.isLoading = false;
39721
  });
39722
  }
@@ -39735,17 +39972,19 @@ var PhotoList = function (_React$Component) {
39735
  this.container.classList.add("loading");
39736
  this.isLoading = true;
39737
 
39738
- var url = this.api_url + "&page=" + this.page + "&" + this.order_key + "=" + this.orderby;
 
39739
 
39740
  if (this.is_search) {
39741
  url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
39742
-
39743
- if (this.hasOrientation()) {
39744
- // Set orientation
39745
- url = url + "&orientation=" + this.orientation;
39746
- }
39747
  }
39748
 
 
 
 
39749
  fetch(url).then(function (data) {
39750
  return data.json();
39751
  }).then(function (data) {
@@ -39766,12 +40005,72 @@ var PhotoList = function (_React$Component) {
39766
 
39767
  // Update Props
39768
  self.setState({ results: self.results });
 
 
39769
  }).catch(function (error) {
39770
  console.log(error);
39771
  self.isLoading = false;
39772
  });
39773
  }
39774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39775
  /**
39776
  * Callback after activating and verififying an API key.
39777
  *
@@ -39865,6 +40164,10 @@ var PhotoList = function (_React$Component) {
39865
  this.provider = provider;
39866
  this.api_provider = _API2.default[this.provider];
39867
 
 
 
 
 
39868
  // Remove active from buttons.
39869
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
39870
  button.classList.remove("active");
@@ -39875,16 +40178,16 @@ var PhotoList = function (_React$Component) {
39875
 
39876
  // Set current provider params.
39877
  this.arr_key = this.api_provider.arr_key;
39878
- this.order_key = this.api_provider.order_key;
39879
  this.api_key = instant_img_localize[this.provider + "_app_id"];
39880
 
39881
  this.api_url = "" + this.api_provider.photo_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
39882
  this.search_api_url = "" + this.api_provider.search_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
39883
 
39884
  // At last, get the photos.
39885
- this.getPhotos("latest", this.buttonLatest.current, true);
 
39886
 
39887
- case 24:
39888
  case "end":
39889
  return _context.stop();
39890
  }
@@ -39892,7 +40195,7 @@ var PhotoList = function (_React$Component) {
39892
  }, _callee, this);
39893
  }));
39894
 
39895
- function switchProvider(_x2) {
39896
  return _ref.apply(this, arguments);
39897
  }
39898
 
@@ -39954,31 +40257,19 @@ var PhotoList = function (_React$Component) {
39954
  }
39955
 
39956
  /**
39957
- * Sets the main navigation active state.
39958
  *
39959
  * @since 3.0
39960
  */
39961
 
39962
  }, {
39963
- key: "setActiveState",
39964
- value: function setActiveState() {
39965
  var self = this;
39966
- // Remove .active class from control nav.
39967
- this.controlNav.current.querySelectorAll("button").forEach(function (el) {
39968
- return el.classList.remove("active");
39969
- });
39970
-
39971
- // Set active item, if not search.
39972
- if (!this.is_search) {
39973
- var active = this.controlNav.current.querySelector("li button.instant-images-" + this.orderby);
39974
- if (active) {
39975
- active.classList.add("active");
39976
- }
39977
- }
39978
  setTimeout(function () {
39979
  self.isLoading = false;
39980
  self.container.classList.remove("loading");
39981
- }, 1000);
39982
  }
39983
 
39984
  /**
@@ -40017,7 +40308,7 @@ var PhotoList = function (_React$Component) {
40017
 
40018
  setTimeout(function () {
40019
  tooltip.classList.add("over");
40020
- }, 150);
40021
  }, 750);
40022
  }
40023
 
@@ -40041,7 +40332,7 @@ var PhotoList = function (_React$Component) {
40041
  key: "componentDidUpdate",
40042
  value: function componentDidUpdate() {
40043
  this.renderLayout();
40044
- this.setActiveState();
40045
  }
40046
 
40047
  // Component Init
@@ -40049,10 +40340,10 @@ var PhotoList = function (_React$Component) {
40049
  }, {
40050
  key: "componentDidMount",
40051
  value: function componentDidMount() {
40052
- var _this2 = this;
40053
 
40054
  this.renderLayout();
40055
- this.setActiveState();
40056
  this.test();
40057
  this.container.classList.remove("loading");
40058
  this.wrapper.classList.add("loaded");
@@ -40064,14 +40355,14 @@ var PhotoList = function (_React$Component) {
40064
  } else {
40065
  // Add scroll event
40066
  window.addEventListener("scroll", function () {
40067
- return _this2.onScroll();
40068
  });
40069
  }
40070
  }
40071
  }, {
40072
  key: "render",
40073
  value: function render() {
40074
- var _this3 = this;
40075
 
40076
  return _react2.default.createElement(
40077
  "div",
@@ -40088,9 +40379,9 @@ var PhotoList = function (_React$Component) {
40088
  {
40089
  "data-provider": provider.toLowerCase(),
40090
  onClick: function onClick(e) {
40091
- return _this3.switchProvider(e);
40092
  },
40093
- className: _this3.provider === provider.toLowerCase() ? "provider-nav--btn active" : "provider-nav--btn"
40094
  },
40095
  _react2.default.createElement(
40096
  "span",
@@ -40111,34 +40402,43 @@ var PhotoList = function (_React$Component) {
40111
  afterVerifiedAPICallback: this.afterVerifiedAPICallback.bind(this),
40112
  closeAPILightbox: this.closeAPILightbox.bind(this)
40113
  }),
40114
- this.api_provider.order && _react2.default.createElement(
40115
- "ul",
40116
  { className: "control-nav", ref: this.controlNav },
40117
- this.api_provider.order.map(function (order, iterator) {
40118
- return _react2.default.createElement(
40119
- "li",
40120
- { key: _this3.provider + "-order-" + iterator },
40121
- _react2.default.createElement(
40122
- "button",
40123
- {
40124
- type: "button",
40125
- className: "instant-images-" + order,
40126
- onClick: function onClick(e) {
40127
- return _this3.getPhotos(order, e);
40128
- },
40129
- ref: order === "latest" ? _this3.buttonLatest : null
40130
- },
40131
- instant_img_localize[order]
40132
- )
40133
- );
40134
- }),
40135
  _react2.default.createElement(
40136
- "li",
40137
- { className: "search-field", id: "search-bar" },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40138
  _react2.default.createElement(
40139
  "form",
40140
  { onSubmit: function onSubmit(e) {
40141
- return _this3.search(e);
40142
  }, autoComplete: "off" },
40143
  _react2.default.createElement(
40144
  "label",
@@ -40158,7 +40458,7 @@ var PhotoList = function (_React$Component) {
40158
  ),
40159
  _react2.default.createElement(_ResultsToolTip2.default, {
40160
  container: this.container,
40161
- buttonLatest: this.buttonLatest,
40162
  isSearch: this.is_search,
40163
  total: this.total_results,
40164
  title: this.total_results + " " + instant_img_localize.search_results + " " + this.search_term
@@ -40167,25 +40467,73 @@ var PhotoList = function (_React$Component) {
40167
  )
40168
  ),
40169
  this.state.restapi_error && _react2.default.createElement(_ErrorMessage2.default, null),
40170
- this.is_search && _react2.default.createElement(_Orientation2.default, {
40171
- provider: this.provider,
40172
- setOrientation: this.setOrientation.bind(this)
40173
- }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40174
  _react2.default.createElement(
40175
  "div",
40176
  { id: "photos", className: "photo-target", ref: this.photoTarget },
40177
  this.state.results.map(function (result, iterator) {
40178
  return _react2.default.createElement(_Photo2.default, {
40179
- provider: _this3.provider,
40180
  result: result,
40181
- key: _this3.provider + "-" + result.id + "-" + iterator,
40182
- editor: _this3.editor,
40183
- mediaRouter: _this3.is_media_router,
40184
- blockEditor: _this3.is_block_editor,
40185
- SetFeaturedImage: _this3.SetFeaturedImage,
40186
- InsertImage: _this3.InsertImage,
40187
- showTooltip: _this3.showTooltip,
40188
- hideTooltip: _this3.hideTooltip
40189
  });
40190
  })
40191
  ),
@@ -40240,7 +40588,7 @@ var ResultsToolTip = function (_React$Component) {
40240
 
40241
  var _this = _possibleConstructorReturn(this, (ResultsToolTip.__proto__ || Object.getPrototypeOf(ResultsToolTip)).call(this, props));
40242
 
40243
- _this.buttonLatest = _this.props.buttonLatest;
40244
  return _this;
40245
  }
40246
 
@@ -40265,7 +40613,7 @@ var ResultsToolTip = function (_React$Component) {
40265
  type: "button",
40266
  title: instant_img_localize.clear_search,
40267
  onClick: function onClick() {
40268
- return _this2.buttonLatest.current.click();
40269
  }
40270
  },
40271
  "x",
@@ -40355,32 +40703,113 @@ module.exports = {
40355
  },
40356
  unsplash: {
40357
  requires_key: false,
 
 
40358
  api_query_var: "/?client_id=",
40359
  photo_api: "https://api.unsplash.com/photos",
40360
  collections_api: "https://api.unsplash.com/collections",
40361
  search_api: "https://api.unsplash.com/search/photos",
40362
  search_query_var: "query",
40363
  arr_key: "results",
40364
- order_key: "order_by",
40365
- order: ["latest", "popular", "oldest"],
40366
  orientation: ["landscape", "portrait", "squarish"]
40367
  },
40368
  pixabay: {
40369
  requires_key: true,
40370
- new: true,
 
40371
  api_query_var: "/?key=",
40372
  photo_api: "https://pixabay.com/api",
40373
  search_api: "https://pixabay.com/api",
40374
  search_query_var: "q",
40375
  arr_key: "hits",
40376
- order_key: "order",
40377
- order: ["latest", "popular"],
40378
  orientation: ["horizontal", "vertical"]
40379
  }
40380
  };
40381
 
40382
  /***/ }),
40383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40384
  /***/ "./src/js/functions/buildTestURL.js":
40385
  /*!******************************************!*\
40386
  !*** ./src/js/functions/buildTestURL.js ***!
@@ -40459,6 +40888,78 @@ function capitalize(s) {
40459
 
40460
  /***/ }),
40461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40462
  /***/ "./src/js/functions/generateAttribution.js.js":
40463
  /*!****************************************************!*\
40464
  !*** ./src/js/functions/generateAttribution.js.js ***!
86
  /************************************************************************/
87
  /******/ ({
88
 
89
+ /***/ "./node_modules/a11yarrows/dist/a11yarrows.min.js":
90
+ /*!********************************************************!*\
91
+ !*** ./node_modules/a11yarrows/dist/a11yarrows.min.js ***!
92
+ \********************************************************/
93
+ /*! no static exports found */
94
+ /***/ (function(module, exports, __webpack_require__) {
95
+
96
+ !function(e,t){ true?module.exports=t():undefined}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e,t){if((t=Object.assign({},n,t)).target=e,t.next=t.next?t.next:"down",t.prev=t.prev?t.prev:"up",!t.target||!t.selector)return;i(t),window.addEventListener(t.event,function(e){o(e,t)})};var n=r(1),o=r(2),i=r(7);r(8)},function(e,t,r){"use strict";e.exports={selector:"a",loop:!0,event:"keydown",next:"down right",prev:"up left"}},function(e,t,r){"use strict";var n=r(3),o=r(4),i=r(5),u=r(6);e.exports=function(e,t){var r=e.target,f=e.which||e.keycode,c=t.target.querySelectorAll(t.selector);c=c?Array.prototype.slice.call(c):c;var a=i(r,c);if(!c||!a)return!1;if(-1!==u(t.next,n).indexOf(f)){var l=o(r,c,"next");if(l<c.length)return c[l].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return c[0].focus(),e.preventDefault(),e.stopPropagation(),!1}if(-1!==u(t.prev,n).indexOf(f)){var p=o(r,c,"previous");if(p<c.length&&-1!==p)return c[p].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return c[c.length-1].focus(),e.preventDefault(),e.stopPropagation(),!1}return!0}},function(e,t,r){"use strict";e.exports={up:38,right:39,down:40,left:37,escape:27,enter:13,spacebar:32,tab:9}},function(e,t,r){"use strict";e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",n=Array.prototype.slice.call(t).indexOf(e);if(-1!==n)return"previous"===r?n-1:n+1}},function(e,t,r){"use strict";e.exports=function(e,t){return-1!==Array.prototype.slice.call(t).indexOf(e)}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=e.split(" "),n=[],o=0;o<r.length;o++)n.push(t[r[o]]);return n}},function(e,t,r){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.target||!e.selector)return!1;var t=e.target.querySelectorAll(e.selector);(t=t?Array.prototype.slice.call(t):t).forEach(function(e){e.tabIndex=0})}},function(e,t,r){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,r;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),o=n.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),r=0;r<o;){var i;r in n&&(i=n[r],e.call(t,i,r,n)),r++}})}])});
97
+
98
+ /***/ }),
99
+
100
  /***/ "./node_modules/axios/index.js":
101
  /*!*************************************!*\
102
  !*** ./node_modules/axios/index.js ***!
2777
  _this.updatePreviousElement();
2778
 
2779
  return _this;
2780
+ }
2781
+ /**
2782
+ * Gets the configured document.
2783
+ * @returns {Document|undefined} Configured document, falling back to the main
2784
+ * document, if it exists. During SSR, `undefined` is returned since the
2785
+ * document doesn't exist.
2786
+ */
2787
 
2788
 
2789
  _createClass(FocusTrap, [{
2790
+ key: "getDocument",
2791
+ value: function getDocument() {
2792
+ // SSR: careful to check if `document` exists before accessing it as a variable
2793
+ return this.props.focusTrapOptions.document || (typeof document !== 'undefined' ? document : undefined);
2794
+ } // TODO: Need more test coverage for this function
2795
+
2796
+ }, {
2797
  key: "getNodeForOption",
2798
  value: function getNodeForOption(optionName) {
2799
  var optionValue = this.tailoredFocusTrapOptions[optionName];
2805
  var node = optionValue;
2806
 
2807
  if (typeof optionValue === 'string') {
2808
+ var _this$getDocument;
2809
+
2810
+ node = (_this$getDocument = this.getDocument()) === null || _this$getDocument === void 0 ? void 0 : _this$getDocument.querySelector(optionValue);
2811
 
2812
  if (!node) {
2813
  throw new Error("`".concat(optionName, "` refers to no known node"));
2835
  }, {
2836
  key: "updatePreviousElement",
2837
  value: function updatePreviousElement() {
2838
+ var currentDocument = this.getDocument();
 
2839
 
2840
  if (currentDocument) {
2841
  this.previouslyFocusedElement = currentDocument.activeElement;
2909
  }, {
2910
  key: "componentDidMount",
2911
  value: function componentDidMount() {
2912
+ if (this.props.active) {
2913
+ this.setupFocusTrap();
2914
+ } // else, wait for later activation in case the `focusTrapOptions` will be updated
2915
+ // again before the trap is activated (e.g. if waiting to know what the document
2916
+ // object will be, so the Trap must be rendered, but the consumer is waiting to
2917
+ // activate until they have obtained the document from a ref)
2918
+ // @see https://github.com/focus-trap/focus-trap-react/issues/539
2919
+
2920
  }
2921
  }, {
2922
  key: "componentDidUpdate",
2948
  if (hasUnpaused) {
2949
  this.focusTrap.unpause();
2950
  }
2951
+ } else {
2952
+ // NOTE: if we're in `componentDidUpdate` and we don't have a trap yet,
2953
+ // it either means it shouldn't be active, or it should be but none of
2954
+ // of given `containerElements` were present in the DOM the last time
2955
+ // we tried to create the trap
2956
+ if (prevProps.containerElements !== this.props.containerElements) {
2957
+ this.focusTrapElements = this.props.containerElements;
2958
+ } // don't create the trap unless it should be active in case the consumer
2959
+ // is still updating `focusTrapOptions`
2960
+ // @see https://github.com/focus-trap/focus-trap-react/issues/539
2961
+
2962
+
2963
+ if (this.props.active) {
2964
+ this.updatePreviousElement();
2965
+ this.setupFocusTrap();
2966
+ }
2967
  }
2968
  }
2969
  }, {
38090
 
38091
  /***/ }),
38092
 
38093
+ /***/ "./src/js/components/Filter.js":
38094
+ /*!*************************************!*\
38095
+ !*** ./src/js/components/Filter.js ***!
38096
+ \*************************************/
38097
+ /*! no static exports found */
38098
+ /***/ (function(module, exports, __webpack_require__) {
38099
+
38100
+ "use strict";
38101
+
38102
+
38103
+ Object.defineProperty(exports, "__esModule", {
38104
+ value: true
38105
+ });
38106
+
38107
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
38108
+
38109
+ var _a11yarrows = __webpack_require__(/*! a11yarrows */ "./node_modules/a11yarrows/dist/a11yarrows.min.js");
38110
+
38111
+ var a11yarrows = _interopRequireWildcard(_a11yarrows);
38112
+
38113
+ var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
38114
+
38115
+ var _classnames2 = _interopRequireDefault(_classnames);
38116
+
38117
+ var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
38118
+
38119
+ var _react2 = _interopRequireDefault(_react);
38120
+
38121
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
38122
+
38123
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
38124
+
38125
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
38126
+
38127
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
38128
+
38129
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
38130
+
38131
+ var Filter = function (_React$Component) {
38132
+ _inherits(Filter, _React$Component);
38133
+
38134
+ function Filter(props) {
38135
+ _classCallCheck(this, Filter);
38136
+
38137
+ var _this = _possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).call(this, props));
38138
+
38139
+ _this.data = _this.props.data;
38140
+ _this.default = _this.data.default;
38141
+ _this.filterKey = _this.props.filterKey;
38142
+ _this.provider = _this.props.provider;
38143
+ _this.id = _this.provider + "-" + _this.filterKey;
38144
+ _this.clickHandler = _this.props.function.bind(_this);
38145
+ _this.toggleMenu = _this.toggleMenu.bind(_this);
38146
+ _this.closeMenuOutside = _this.closeMenuOutside.bind(_this);
38147
+ _this.focusOutside = _this.focusOutside.bind(_this);
38148
+ _this.escClick = _this.escClick.bind(_this);
38149
+ _this.isColor = _this.filterKey === "colors" || _this.filterKey === "color";
38150
+ _this.state = {
38151
+ expanded: false,
38152
+ selected: _this.data.default
38153
+ };
38154
+ return _this;
38155
+ }
38156
+
38157
+ /**
38158
+ * Toggle menu open/closed.
38159
+ *
38160
+ * @param {Event} event The click event.
38161
+ */
38162
+
38163
+
38164
+ _createClass(Filter, [{
38165
+ key: "toggleMenu",
38166
+ value: function toggleMenu(event) {
38167
+ var _this2 = this;
38168
+
38169
+ event.preventDefault();
38170
+
38171
+ // If disabled, don't open menu.
38172
+ var target = event.currentTarget;
38173
+ if (target.disabled) {
38174
+ return false;
38175
+ }
38176
+
38177
+ if (this.state.expanded) {
38178
+ this.setState({ expanded: false }, function () {
38179
+ document.removeEventListener("click", _this2.closeMenuOutside);
38180
+ });
38181
+ } else {
38182
+ this.setState({ expanded: true }, function () {
38183
+ document.addEventListener("click", _this2.closeMenuOutside);
38184
+ });
38185
+ }
38186
+ }
38187
+
38188
+ /**
38189
+ * Close menu when clicking outside.
38190
+ *
38191
+ * @param {Event} event The click event.
38192
+ */
38193
+
38194
+ }, {
38195
+ key: "closeMenuOutside",
38196
+ value: function closeMenuOutside(event) {
38197
+ var _this3 = this;
38198
+
38199
+ if (!this.menu.contains(event.target) && !this.trigger.contains(event.target)) {
38200
+ this.setState({ expanded: false }, function () {
38201
+ document.removeEventListener("click", _this3.closeMenuOutside);
38202
+ });
38203
+ }
38204
+ }
38205
+
38206
+ /**
38207
+ * Checks for focus outside of component.
38208
+ *
38209
+ * @param {Event} event The click event.
38210
+ */
38211
+
38212
+ }, {
38213
+ key: "focusOutside",
38214
+ value: function focusOutside(event) {
38215
+ if (!this.dropdown.contains(event.target)) {
38216
+ this.closeMenuOutside(event);
38217
+ }
38218
+ }
38219
+
38220
+ /**
38221
+ * Detect esc key press.
38222
+ *
38223
+ * @param {Event} event The click event.
38224
+ */
38225
+
38226
+ }, {
38227
+ key: "escClick",
38228
+ value: function escClick(event) {
38229
+ if (event.key === "Escape") {
38230
+ this.setState({ expanded: false });
38231
+ }
38232
+ }
38233
+
38234
+ /**
38235
+ * Click handler for the filter buttons.
38236
+ *
38237
+ * @param {string} filter The current filter key.
38238
+ * @param {string} value The value to filter.
38239
+ */
38240
+
38241
+ }, {
38242
+ key: "click",
38243
+ value: function click(filter, value) {
38244
+ var self = this;
38245
+ var newValue = this.state.selected !== value ? value : this.default;
38246
+
38247
+ this.setState({
38248
+ selected: newValue
38249
+ });
38250
+ this.clickHandler(filter, newValue);
38251
+
38252
+ // Delay for effect.
38253
+ setTimeout(function () {
38254
+ self.trigger.click();
38255
+ }, 100);
38256
+ }
38257
+
38258
+ /**
38259
+ * Convert a color to a CSS value.
38260
+ * @see https://www.w3schools.com/colors/colors_names.asp
38261
+ *
38262
+ * @param {string} color The current color.
38263
+ * @return {string} The color.
38264
+ */
38265
+
38266
+ }, {
38267
+ key: "convertColor",
38268
+ value: function convertColor(color) {
38269
+ if (color === "lilac") {
38270
+ color = "DarkViolet";
38271
+ }
38272
+ if (color === "grayscale" || color === "black_and_white") {
38273
+ color = "LightGray";
38274
+ }
38275
+ return color;
38276
+ }
38277
+
38278
+ // Initiate functions on mount.
38279
+
38280
+ }, {
38281
+ key: "componentDidMount",
38282
+ value: function componentDidMount() {
38283
+ // Initiate arrow menus.
38284
+ a11yarrows.init(this.dropdown, {
38285
+ selector: "button"
38286
+ });
38287
+
38288
+ // Check for focus outside.
38289
+ document.addEventListener("keyup", this.focusOutside);
38290
+ document.addEventListener("keydown", this.escClick);
38291
+ }
38292
+
38293
+ // Functions to run on unmount.
38294
+
38295
+ }, {
38296
+ key: "componentWillUnmount",
38297
+ value: function componentWillUnmount() {
38298
+ document.removeEventListener("keyup", this.focusOutside);
38299
+ document.removeEventListener("keydown", this.escClick);
38300
+ }
38301
+ }, {
38302
+ key: "render",
38303
+ value: function render() {
38304
+ var _this4 = this;
38305
+
38306
+ return _react2.default.createElement(
38307
+ "div",
38308
+ {
38309
+ className: "filter-dropdown",
38310
+ id: this.id,
38311
+ ref: function ref(element) {
38312
+ _this4.dropdown = element;
38313
+ }
38314
+ },
38315
+ _react2.default.createElement(
38316
+ "button",
38317
+ {
38318
+ onClick: this.toggleMenu,
38319
+ className: "filter-dropdown--button",
38320
+ "aria-expanded": this.state.expanded ? "true" : "false",
38321
+ ref: function ref(element) {
38322
+ _this4.trigger = element;
38323
+ }
38324
+ },
38325
+ _react2.default.createElement(
38326
+ "span",
38327
+ { className: "filter-dropdown--button-label" },
38328
+ instant_img_localize.filters[this.data.label]
38329
+ ),
38330
+ _react2.default.createElement(
38331
+ "span",
38332
+ { className: "filter-dropdown--button-selected" },
38333
+ this.state.selected,
38334
+ _react2.default.createElement("i", { className: "fa fa-caret-down", "aria-hidden": "true" })
38335
+ )
38336
+ ),
38337
+ _react2.default.createElement(
38338
+ "div",
38339
+ {
38340
+ className: (0, _classnames2.default)("filter-dropdown--menu", this.state.expanded ? "expanded" : null),
38341
+ "data-key": this.filterKey,
38342
+ "aria-hidden": this.state.expanded ? "false" : "true",
38343
+ ref: function ref(element) {
38344
+ _this4.menu = element;
38345
+ }
38346
+ },
38347
+ this.data.filters && this.data.filters.map(function (value, key) {
38348
+ return _react2.default.createElement(
38349
+ "button",
38350
+ {
38351
+ key: key,
38352
+ className: (0, _classnames2.default)("filter-dropdown--item", _this4.state.selected === value ? "selected" : null),
38353
+ onClick: function onClick() {
38354
+ return _this4.click(_this4.filterKey, value);
38355
+ }
38356
+ },
38357
+ value.replace(/_/g, " "),
38358
+ value !== "all" && value !== "transparent" && _this4.isColor ? _react2.default.createElement("span", {
38359
+ className: "_color",
38360
+ style: { color: _this4.convertColor(value) }
38361
+ }) : null
38362
+ );
38363
+ })
38364
+ )
38365
+ );
38366
+ }
38367
+ }]);
38368
+
38369
+ return Filter;
38370
+ }(_react2.default.Component);
38371
+
38372
+ exports.default = Filter;
38373
+
38374
+ /***/ }),
38375
+
38376
  /***/ "./src/js/components/LoadMore.js":
38377
  /*!***************************************!*\
38378
  !*** ./src/js/components/LoadMore.js ***!
38560
 
38561
  /***/ }),
38562
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38563
  /***/ "./src/js/components/Photo.js":
38564
  /*!************************************!*\
38565
  !*** ./src/js/components/Photo.js ***!
39529
  value: true
39530
  });
39531
 
39532
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
39533
+
39534
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
39535
 
39536
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
39545
 
39546
  var _API2 = _interopRequireDefault(_API);
39547
 
39548
+ var _filters = __webpack_require__(/*! ../constants/filters */ "./src/js/constants/filters.js");
39549
+
39550
+ var _filters2 = _interopRequireDefault(_filters);
39551
+
39552
  var _buildTestURL = __webpack_require__(/*! ../functions/buildTestURL */ "./src/js/functions/buildTestURL.js");
39553
 
39554
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
39555
 
39556
+ var _contentSafety = __webpack_require__(/*! ../functions/contentSafety */ "./src/js/functions/contentSafety.js");
39557
+
39558
+ var _contentSafety2 = _interopRequireDefault(_contentSafety);
39559
+
39560
+ var _createQS = __webpack_require__(/*! ../functions/createQS */ "./src/js/functions/createQS.js");
39561
+
39562
+ var _createQS2 = _interopRequireDefault(_createQS);
39563
+
39564
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
39565
 
39566
  var _getResults2 = _interopRequireDefault(_getResults);
39577
 
39578
  var _ErrorMessage2 = _interopRequireDefault(_ErrorMessage);
39579
 
39580
+ var _Filter = __webpack_require__(/*! ./Filter */ "./src/js/components/Filter.js");
39581
+
39582
+ var _Filter2 = _interopRequireDefault(_Filter);
39583
+
39584
  var _LoadingBlock = __webpack_require__(/*! ./LoadingBlock */ "./src/js/components/LoadingBlock.js");
39585
 
39586
  var _LoadingBlock2 = _interopRequireDefault(_LoadingBlock);
39593
 
39594
  var _NoResults2 = _interopRequireDefault(_NoResults);
39595
 
 
 
 
 
39596
  var _Photo = __webpack_require__(/*! ./Photo */ "./src/js/components/Photo.js");
39597
 
39598
  var _Photo2 = _interopRequireDefault(_Photo);
39609
 
39610
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
39611
 
 
 
39612
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
39613
 
39614
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
39627
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
39628
 
39629
  _this.providers = ["Unsplash", "Pixabay"];
 
39630
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
39631
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
39632
  _this.arr_key = _this.api_provider.arr_key;
 
39633
 
39634
+ // API Vars.
39635
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
 
39636
  _this.api_url = "" + _this.api_provider.photo_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
39637
  _this.search_api_url = "" + _this.api_provider.search_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
39638
 
39640
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
39641
  _this.state = {
39642
  results: _this.results,
39643
+ filters: _filters2.default[_this.provider].filters,
39644
+ search_filters: _filters2.default[_this.provider].search,
39645
  restapi_error: false,
39646
  api_lightbox: false
39647
  };
39648
 
39649
+ _this.filters = {};
39650
+ _this.search_filters = {};
39651
+
39652
  _this.orderby = _this.props.orderby; // Orderby
39653
  _this.page = _this.props.page; // Page
39654
 
39655
  _this.is_search = false;
39656
  _this.search_term = "";
39657
  _this.total_results = 0;
39658
+ _this.view = "";
39659
  _this.isLoading = false; // Loading flag.
39660
  _this.isDone = false; // Done flag.
39661
  _this.errorMsg = "";
39662
  _this.msnry = "";
39663
  _this.tooltipInterval = "";
39664
+ _this.delay = 250;
39665
 
39666
  // Refs.
39667
  _this.photoTarget = _react2.default.createRef();
39668
  _this.providerNav = _react2.default.createRef();
39669
  _this.controlNav = _react2.default.createRef();
39670
  _this.photoSearch = _react2.default.createRef();
39671
+ _this.filterGroups = _react2.default.createRef();
39672
 
39673
  // Editor props.
39674
  _this.editor = _this.props.editor ? _this.props.editor : "classic";
39752
  }
39753
  }
39754
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39755
  /**
39756
  * Run the search.
39757
  *
39765
  var self = this;
39766
  var input = this.photoSearch.current;
39767
  var type = "term";
 
39768
 
39769
+ this.photoTarget.current.classList.add("loading");
39770
+ this.isLoading = true;
39771
+
39772
+ this.page = 1; // Reset currentpage num.
39773
+ this.toggleFilters(); // Disable filters.
39774
 
39775
+ var url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term + (0, _contentSafety2.default)(this.provider);
 
 
 
39776
 
39777
  // Search by ID.
39778
  // Allow users to search by photo by prepending id:{photo_id} to search terms.
39779
  var search_type = term.substring(0, 3);
 
39780
  if (search_type === "id:") {
39781
  type = "id";
39782
  term = term.replace("id:", "");
39783
  url = (0, _searchByID2.default)(this.provider, term, this.api_provider.photo_api, this.api_provider.api_query_var, this.api_key);
39784
  }
39785
 
39786
+ // Get search filters.
39787
+ var filters = (0, _createQS2.default)(this.search_filters);
39788
+ url = filters !== "&" ? "" + url + filters : url;
39789
+
39790
  fetch(url).then(function (data) {
39791
  return data.json();
39792
  }).then(function (data) {
39800
 
39801
  // Update Props.
39802
  self.results = results;
39803
+ self.setState({
39804
+ results: self.results,
39805
+ search_filters: _filters2.default[self.provider].search
39806
+ });
39807
  }
39808
 
39809
  // Search by ID.
39830
  self.setState({ results: self.results });
39831
  }
39832
 
39833
+ // Delay for effect.
39834
+ setTimeout(function () {
39835
+ input.classList.remove("searching");
39836
+ self.photoTarget.current.classList.remove("loading");
39837
+ self.isLoading = false;
39838
+ }, self.delay);
39839
  }).catch(function (error) {
39840
  console.log(error);
39841
 
39845
  self.total_results = 0;
39846
  self.isDone = true;
39847
 
39848
+ this.photoTarget.current.classList.remove("loading");
39849
+ this.isLoading = false;
39850
+
39851
  // Update Props.
39852
  self.results = [];
39853
  self.setState({ results: self.results });
39855
  }
39856
 
39857
  /**
39858
+ * Reset search results, settings and results view.
39859
  *
39860
  * @since 3.0
39861
  */
39863
  }, {
39864
  key: "clearSearch",
39865
  value: function clearSearch() {
39866
+ this.photoSearch.current.value = "";
 
39867
  this.total_results = 0;
39868
  this.is_search = false;
39869
  this.search_term = "";
39870
+ this.search_filters = {}; // Reset search filters.
39871
+ this.toggleFilters(); // Re-enable filters.
39872
  }
39873
 
39874
  /**
39875
+ * Click event for the control nav items.
39876
  *
39877
+ * @param {Event} e The clicked element event.
39878
  * @param {string} view Current view.
39879
+ * @since 4.6
39880
+ */
39881
+
39882
+ }, {
39883
+ key: "controlsClick",
39884
+ value: function controlsClick(e, view) {
39885
+ var target = e.currentTarget;
39886
+ this.view = view;
39887
+ if (!target.classList.contains("active")) {
39888
+ this.getPhotos(view);
39889
+ }
39890
+ }
39891
+
39892
+ /**
39893
+ * Get the initial set of photos for the current view (New/Popular/Filters/etc...).
39894
+ *
39895
+ * @param {string} view Current view.
39896
+ * @param {Boolean} reset Is this an app reset.
39897
+ * @param {Boolean} switcher Is this a provider switch.
39898
  * @since 3.0
39899
  */
39900
 
39901
  }, {
39902
  key: "getPhotos",
39903
+ value: function getPhotos(view) {
39904
+ var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
39905
+ var switcher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
39906
 
39907
  var self = this;
 
39908
 
39909
+ if (this.isLoading && !reset) {
39910
  return; // exit if active
39911
  }
39912
 
39913
+ this.photoTarget.current.classList.add("loading");
39914
  this.isLoading = true;
39915
  this.page = 1;
39916
  this.orderby = view;
39917
  this.results = [];
39918
  this.clearSearch();
39919
 
39920
+ // Get filters.
39921
+ var filters = (0, _createQS2.default)(this.filters);
39922
+
39923
+ // Build URL.
39924
+ var url = this.api_url + "&page=" + this.page + "&" + (0, _contentSafety2.default)(this.provider) + filters;
39925
 
39926
  fetch(url).then(function (data) {
39927
  return data.json();
39935
  self.results = results;
39936
 
39937
  // Set results state.
39938
+ if (!switcher) {
39939
+ self.setState({
39940
+ results: results
39941
+ });
39942
+ } else {
39943
+ self.setState({
39944
+ results: results,
39945
+ filters: _filters2.default[self.provider].filters
39946
+ });
39947
+ }
39948
 
39949
+ // Delay for effect.
39950
+ setTimeout(function () {
39951
+ self.photoTarget.current.classList.remove("loading");
39952
+ self.isLoading = false;
39953
+ }, self.delay);
39954
  }).catch(function (error) {
39955
  console.log(error);
39956
+ self.photoTarget.current.classList.remove("loading");
39957
  self.isLoading = false;
39958
  });
39959
  }
39972
  this.container.classList.add("loading");
39973
  this.isLoading = true;
39974
 
39975
+ var url = this.api_url + "&page=" + this.page + "&";
39976
+ var filters = "";
39977
 
39978
  if (this.is_search) {
39979
  url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
39980
+ filters = (0, _createQS2.default)(this.search_filters);
39981
+ } else {
39982
+ filters = (0, _createQS2.default)(this.filters);
 
 
39983
  }
39984
 
39985
+ // Build URL
39986
+ url = filters ? "" + url + (0, _contentSafety2.default)(this.provider) + filters : url;
39987
+
39988
  fetch(url).then(function (data) {
39989
  return data.json();
39990
  }).then(function (data) {
40005
 
40006
  // Update Props
40007
  self.setState({ results: self.results });
40008
+
40009
+ self.isLoading = false;
40010
  }).catch(function (error) {
40011
  console.log(error);
40012
  self.isLoading = false;
40013
  });
40014
  }
40015
 
40016
+ /**
40017
+ * Filter the photo listing.
40018
+ *
40019
+ * @param {string} filter The current filter key.
40020
+ * @param {string} value The value to filter.
40021
+ */
40022
+
40023
+ }, {
40024
+ key: "filterPhotos",
40025
+ value: function filterPhotos(filter, value) {
40026
+ if (this.filters[filter] && value === "#" || value === "") {
40027
+ delete this.filters[filter];
40028
+ } else {
40029
+ this.filters[filter] = value;
40030
+ }
40031
+ this.getPhotos(this.view, true);
40032
+ }
40033
+
40034
+ /**
40035
+ * Filter the search results.
40036
+ *
40037
+ * @param {string} filter The current filter key.
40038
+ * @param {string} value The value to filter.
40039
+ */
40040
+
40041
+ }, {
40042
+ key: "filterSearch",
40043
+ value: function filterSearch(filter, value) {
40044
+ if (this.search_filters[filter] && value === "#" || value === "") {
40045
+ delete this.search_filters[filter];
40046
+ } else {
40047
+ this.search_filters[filter] = value;
40048
+ }
40049
+ this.doSearch(this.search_term);
40050
+ }
40051
+
40052
+ /**
40053
+ * Toggle the active state of all filters.
40054
+ */
40055
+
40056
+ }, {
40057
+ key: "toggleFilters",
40058
+ value: function toggleFilters() {
40059
+ var _this2 = this;
40060
+
40061
+ var filters = this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");
40062
+ if (filters) {
40063
+ filters.forEach(function (button) {
40064
+ button.disabled = _this2.is_search ? true : false;
40065
+ });
40066
+ }
40067
+ if (this.is_search) {
40068
+ this.filterGroups.current.classList.add("inactive");
40069
+ } else {
40070
+ this.filterGroups.current.classList.remove("inactive");
40071
+ }
40072
+ }
40073
+
40074
  /**
40075
  * Callback after activating and verififying an API key.
40076
  *
40164
  this.provider = provider;
40165
  this.api_provider = _API2.default[this.provider];
40166
 
40167
+ // Clear filters.
40168
+ this.filters = {};
40169
+ this.search_filters = {};
40170
+
40171
  // Remove active from buttons.
40172
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
40173
  button.classList.remove("active");
40178
 
40179
  // Set current provider params.
40180
  this.arr_key = this.api_provider.arr_key;
 
40181
  this.api_key = instant_img_localize[this.provider + "_app_id"];
40182
 
40183
  this.api_url = "" + this.api_provider.photo_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
40184
  this.search_api_url = "" + this.api_provider.search_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
40185
 
40186
  // At last, get the photos.
40187
+ this.view = "latest";
40188
+ this.getPhotos(this.view, true, true);
40189
 
40190
+ case 26:
40191
  case "end":
40192
  return _context.stop();
40193
  }
40195
  }, _callee, this);
40196
  }));
40197
 
40198
+ function switchProvider(_x3) {
40199
  return _ref.apply(this, arguments);
40200
  }
40201
 
40257
  }
40258
 
40259
  /**
40260
+ * Sets the loading state.
40261
  *
40262
  * @since 3.0
40263
  */
40264
 
40265
  }, {
40266
+ key: "doneLoading",
40267
+ value: function doneLoading() {
40268
  var self = this;
 
 
 
 
 
 
 
 
 
 
 
 
40269
  setTimeout(function () {
40270
  self.isLoading = false;
40271
  self.container.classList.remove("loading");
40272
+ }, self.delay);
40273
  }
40274
 
40275
  /**
40308
 
40309
  setTimeout(function () {
40310
  tooltip.classList.add("over");
40311
+ }, self.delay);
40312
  }, 750);
40313
  }
40314
 
40332
  key: "componentDidUpdate",
40333
  value: function componentDidUpdate() {
40334
  this.renderLayout();
40335
+ this.doneLoading();
40336
  }
40337
 
40338
  // Component Init
40340
  }, {
40341
  key: "componentDidMount",
40342
  value: function componentDidMount() {
40343
+ var _this3 = this;
40344
 
40345
  this.renderLayout();
40346
+ this.doneLoading();
40347
  this.test();
40348
  this.container.classList.remove("loading");
40349
  this.wrapper.classList.add("loaded");
40355
  } else {
40356
  // Add scroll event
40357
  window.addEventListener("scroll", function () {
40358
+ return _this3.onScroll();
40359
  });
40360
  }
40361
  }
40362
  }, {
40363
  key: "render",
40364
  value: function render() {
40365
+ var _this4 = this;
40366
 
40367
  return _react2.default.createElement(
40368
  "div",
40379
  {
40380
  "data-provider": provider.toLowerCase(),
40381
  onClick: function onClick(e) {
40382
+ return _this4.switchProvider(e);
40383
  },
40384
+ className: _this4.provider === provider.toLowerCase() ? "provider-nav--btn active" : "provider-nav--btn"
40385
  },
40386
  _react2.default.createElement(
40387
  "span",
40402
  afterVerifiedAPICallback: this.afterVerifiedAPICallback.bind(this),
40403
  closeAPILightbox: this.closeAPILightbox.bind(this)
40404
  }),
40405
+ _react2.default.createElement(
40406
+ "div",
40407
  { className: "control-nav", ref: this.controlNav },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40408
  _react2.default.createElement(
40409
+ "div",
40410
+ {
40411
+ className: "control-nav--filters-wrap",
40412
+ ref: this.filterGroups
40413
+ },
40414
+ Object.entries(this.state.filters).length && _react2.default.createElement(
40415
+ "div",
40416
+ { className: "control-nav--filters" },
40417
+ Object.entries(this.state.filters).map(function (_ref2, i) {
40418
+ var _ref3 = _slicedToArray(_ref2, 2),
40419
+ key = _ref3[0],
40420
+ filter = _ref3[1];
40421
+
40422
+ return _react2.default.createElement(_Filter2.default, {
40423
+ key: key + "-" + i,
40424
+ filterKey: key,
40425
+ provider: _this4.provider,
40426
+ data: filter,
40427
+ "function": _this4.filterPhotos.bind(_this4)
40428
+ });
40429
+ })
40430
+ )
40431
+ ),
40432
+ _react2.default.createElement(
40433
+ "div",
40434
+ {
40435
+ className: "control-nav--search search-field",
40436
+ id: "search-bar"
40437
+ },
40438
  _react2.default.createElement(
40439
  "form",
40440
  { onSubmit: function onSubmit(e) {
40441
+ return _this4.search(e);
40442
  }, autoComplete: "off" },
40443
  _react2.default.createElement(
40444
  "label",
40458
  ),
40459
  _react2.default.createElement(_ResultsToolTip2.default, {
40460
  container: this.container,
40461
+ getPhotos: this.getPhotos.bind(this),
40462
  isSearch: this.is_search,
40463
  total: this.total_results,
40464
  title: this.total_results + " " + instant_img_localize.search_results + " " + this.search_term
40467
  )
40468
  ),
40469
  this.state.restapi_error && _react2.default.createElement(_ErrorMessage2.default, null),
40470
+ this.is_search && this.editor !== "gutenberg" && _react2.default.createElement(
40471
+ "div",
40472
+ { className: "search-results-header" },
40473
+ _react2.default.createElement(
40474
+ "h2",
40475
+ null,
40476
+ this.search_term
40477
+ ),
40478
+ _react2.default.createElement(
40479
+ "div",
40480
+ { className: "search-results-header--text" },
40481
+ this.total_results + " " + instant_img_localize.search_results,
40482
+ " ",
40483
+ _react2.default.createElement(
40484
+ "strong",
40485
+ null,
40486
+ "" + this.search_term
40487
+ ),
40488
+ " - ",
40489
+ _react2.default.createElement(
40490
+ "button",
40491
+ {
40492
+ title: instant_img_localize.clear_search,
40493
+ onClick: function onClick() {
40494
+ return _this4.getPhotos("latest");
40495
+ }
40496
+ },
40497
+ instant_img_localize.clear_search
40498
+ )
40499
+ ),
40500
+ Object.entries(this.state.search_filters).length && _react2.default.createElement(
40501
+ "div",
40502
+ { className: "control-nav--filters-wrap" },
40503
+ _react2.default.createElement(
40504
+ "div",
40505
+ { className: "control-nav--filters" },
40506
+ Object.entries(this.state.search_filters).map(function (_ref4, i) {
40507
+ var _ref5 = _slicedToArray(_ref4, 2),
40508
+ key = _ref5[0],
40509
+ filter = _ref5[1];
40510
+
40511
+ return _react2.default.createElement(_Filter2.default, {
40512
+ key: key + "-" + i,
40513
+ filterKey: key,
40514
+ provider: _this4.provider,
40515
+ data: filter,
40516
+ "function": _this4.filterSearch.bind(_this4)
40517
+ });
40518
+ })
40519
+ )
40520
+ )
40521
+ ),
40522
  _react2.default.createElement(
40523
  "div",
40524
  { id: "photos", className: "photo-target", ref: this.photoTarget },
40525
  this.state.results.map(function (result, iterator) {
40526
  return _react2.default.createElement(_Photo2.default, {
40527
+ provider: _this4.provider,
40528
  result: result,
40529
+ key: _this4.provider + "-" + result.id + "-" + iterator,
40530
+ editor: _this4.editor,
40531
+ mediaRouter: _this4.is_media_router,
40532
+ blockEditor: _this4.is_block_editor,
40533
+ SetFeaturedImage: _this4.SetFeaturedImage,
40534
+ InsertImage: _this4.InsertImage,
40535
+ showTooltip: _this4.showTooltip,
40536
+ hideTooltip: _this4.hideTooltip
40537
  });
40538
  })
40539
  ),
40588
 
40589
  var _this = _possibleConstructorReturn(this, (ResultsToolTip.__proto__ || Object.getPrototypeOf(ResultsToolTip)).call(this, props));
40590
 
40591
+ _this.getPhotos = _this.props.getPhotos.bind(_this);
40592
  return _this;
40593
  }
40594
 
40613
  type: "button",
40614
  title: instant_img_localize.clear_search,
40615
  onClick: function onClick() {
40616
+ return _this2.getPhotos("latest");
40617
  }
40618
  },
40619
  "x",
40703
  },
40704
  unsplash: {
40705
  requires_key: false,
40706
+ new: false,
40707
+ filters: true,
40708
  api_query_var: "/?client_id=",
40709
  photo_api: "https://api.unsplash.com/photos",
40710
  collections_api: "https://api.unsplash.com/collections",
40711
  search_api: "https://api.unsplash.com/search/photos",
40712
  search_query_var: "query",
40713
  arr_key: "results",
 
 
40714
  orientation: ["landscape", "portrait", "squarish"]
40715
  },
40716
  pixabay: {
40717
  requires_key: true,
40718
+ new: false,
40719
+ filters: true,
40720
  api_query_var: "/?key=",
40721
  photo_api: "https://pixabay.com/api",
40722
  search_api: "https://pixabay.com/api",
40723
  search_query_var: "q",
40724
  arr_key: "hits",
 
 
40725
  orientation: ["horizontal", "vertical"]
40726
  }
40727
  };
40728
 
40729
  /***/ }),
40730
 
40731
+ /***/ "./src/js/constants/filters.js":
40732
+ /*!*************************************!*\
40733
+ !*** ./src/js/constants/filters.js ***!
40734
+ \*************************************/
40735
+ /*! no static exports found */
40736
+ /***/ (function(module, exports, __webpack_require__) {
40737
+
40738
+ "use strict";
40739
+
40740
+
40741
+ module.exports = {
40742
+ unsplash: {
40743
+ filters: {
40744
+ order_by: {
40745
+ label: "orderby",
40746
+ default: "latest",
40747
+ filters: ["latest", "popular", "oldest"]
40748
+ }
40749
+ },
40750
+ search: {
40751
+ order_by: {
40752
+ label: "orderby",
40753
+ default: "relevance",
40754
+ filters: ["relevance", "latest"]
40755
+ },
40756
+ orientation: {
40757
+ label: "orientation",
40758
+ default: "all",
40759
+ filters: ["all", "landscape", "portrait", "squarish"]
40760
+ },
40761
+ color: {
40762
+ label: "colors",
40763
+ default: "all",
40764
+ filters: ["all", "black_and_white", "black", "white", "yellow", "orange", "red", "purple", "magenta", "green", "teal", "blue"]
40765
+ }
40766
+ }
40767
+ },
40768
+ pixabay: {
40769
+ filters: {
40770
+ order: {
40771
+ label: "orderby",
40772
+ default: "popular",
40773
+ filters: ["latest", "popular"]
40774
+ },
40775
+ image_type: {
40776
+ label: "type",
40777
+ default: "all",
40778
+ filters: ["all", "photo", "illustration", "vector"]
40779
+ },
40780
+ category: {
40781
+ label: "category",
40782
+ default: "all",
40783
+ filters: ["all", "backgrounds", "fashion", "nature", "science", "education", "feelings", "health", "people", "religion", "places", "animals", "industry", "computer", "food", "sports", "transportation", "travel", "buildings", "business", "music"]
40784
+ },
40785
+ colors: {
40786
+ label: "colors",
40787
+ default: "all",
40788
+ filters: ["all", "grayscale", "red", "orange", "yellow", "green", "turquoise", "blue", "lilac", "pink", "white", "gray", "black", "brown", "transparent"]
40789
+ },
40790
+ orientation: {
40791
+ label: "orientation",
40792
+ default: "all",
40793
+ filters: ["all", "horizontal", "vertical"]
40794
+ }
40795
+ },
40796
+ search: {
40797
+ colors: {
40798
+ label: "colors",
40799
+ default: "all",
40800
+ filters: ["all", "grayscale", "red", "orange", "yellow", "green", "turquoise", "blue", "lilac", "pink", "white", "gray", "black", "brown", "transparent"]
40801
+ },
40802
+ orientation: {
40803
+ label: "orientation",
40804
+ default: "all",
40805
+ filters: ["all", "horizontal", "vertical"]
40806
+ }
40807
+ }
40808
+ }
40809
+ };
40810
+
40811
+ /***/ }),
40812
+
40813
  /***/ "./src/js/functions/buildTestURL.js":
40814
  /*!******************************************!*\
40815
  !*** ./src/js/functions/buildTestURL.js ***!
40888
 
40889
  /***/ }),
40890
 
40891
+ /***/ "./src/js/functions/contentSafety.js":
40892
+ /*!*******************************************!*\
40893
+ !*** ./src/js/functions/contentSafety.js ***!
40894
+ \*******************************************/
40895
+ /*! no static exports found */
40896
+ /***/ (function(module, exports, __webpack_require__) {
40897
+
40898
+ "use strict";
40899
+
40900
+
40901
+ Object.defineProperty(exports, "__esModule", {
40902
+ value: true
40903
+ });
40904
+ exports.default = contentSafety;
40905
+ /**
40906
+ * Set the photo safety for indicating that only images suitable for all ages should be returned.
40907
+ * @see https://unsplash.com/documentation#content-safety
40908
+ * @see https://pixabay.com/api/docs/
40909
+ *
40910
+ * @param {string} provider The current service provider.
40911
+ * @return {string} The api string for filtering content.
40912
+ */
40913
+ function contentSafety(provider) {
40914
+ var str = "";
40915
+ switch (provider) {
40916
+ case "unsplash":
40917
+ if (instant_img_localize.unsplash_content_filter) {
40918
+ str = "&content_filter=" + instant_img_localize.unsplash_content_filter;
40919
+ }
40920
+ break;
40921
+
40922
+ case "pixabay":
40923
+ if (instant_img_localize.pixabay_safesearch) {
40924
+ str = "&safesearch=" + instant_img_localize.pixabay_safesearch;
40925
+ }
40926
+ break;
40927
+ }
40928
+ return str;
40929
+ }
40930
+
40931
+ /***/ }),
40932
+
40933
+ /***/ "./src/js/functions/createQS.js":
40934
+ /*!**************************************!*\
40935
+ !*** ./src/js/functions/createQS.js ***!
40936
+ \**************************************/
40937
+ /*! no static exports found */
40938
+ /***/ (function(module, exports, __webpack_require__) {
40939
+
40940
+ "use strict";
40941
+
40942
+
40943
+ Object.defineProperty(exports, "__esModule", {
40944
+ value: true
40945
+ });
40946
+ exports.default = createQS;
40947
+ /**
40948
+ * Create a querystring from an object.
40949
+ *
40950
+ * @param {string} obj The object.
40951
+ * @return {string} The generated querystring.
40952
+ */
40953
+ function createQS(obj) {
40954
+ var qs = Object.keys(obj).map(function (key) {
40955
+ return key + "=" + obj[key];
40956
+ }).join("&");
40957
+
40958
+ return "&" + qs;
40959
+ }
40960
+
40961
+ /***/ }),
40962
+
40963
  /***/ "./src/js/functions/generateAttribution.js.js":
40964
  /*!****************************************************!*\
40965
  !*** ./src/js/functions/generateAttribution.js.js ***!
dist/js/instant-images-block.min.js CHANGED
@@ -1,14 +1,19 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=77)}([function(e,t,n){"use strict";e.exports=n(20)},function(e,t,n){"use strict";var r=n(10),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:u,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:s,isStream:function(e){return l(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){u(t[r])&&u(n)?t[r]=e(t[r],n):u(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",posts_per_page:"&per_page=20"},unsplash:{requires_key:!1,api_query_var:"/?client_id=",photo_api:"https://api.unsplash.com/photos",collections_api:"https://api.unsplash.com/collections",search_api:"https://api.unsplash.com/search/photos",search_query_var:"query",arr_key:"results",order_key:"order_by",order:["latest","popular","oldest"],orientation:["landscape","portrait","squarish"]},pixabay:{requires_key:!0,new:!0,api_query_var:"/?key=",photo_api:"https://pixabay.com/api",search_api:"https://pixabay.com/api",search_query_var:"q",arr_key:"hits",order_key:"order",order:["latest","popular"],orientation:["horizontal","vertical"]}}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
- */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var o,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);o=200==Math.round(e(r.width)),l.isBoxSizeOuter=o,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var u=i(t);if("none"==u.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var s={};s.width=t.offsetWidth,s.height=t.offsetHeight;for(var c=s.isBorderBox="border-box"==u.boxSizing,f=0;f<r;f++){var d=n[f],p=u[d],h=parseFloat(p);s[d]=isNaN(h)?0:h}var m=s.paddingLeft+s.paddingRight,v=s.paddingTop+s.paddingBottom,g=s.marginLeft+s.marginRight,y=s.marginTop+s.marginBottom,b=s.borderLeftWidth+s.borderRightWidth,_=s.borderTopWidth+s.borderBottomWidth,w=c&&o,k=e(u.width);!1!==k&&(s.width=k+(w?0:m+b));var E=e(u.height);return!1!==E&&(s.height=E+(w?0:v+_)),s.innerWidth=s.width-(m+b),s.innerHeight=s.height-(v+_),s.outerWidth=s.width+g,s.outerHeight=s.height+y,s}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default[e],n=instant_img_localize[e+"_app_id"];return""+t.photo_api+t.api_query_var+n+"&per_page=5&page=1"};var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(43),o=n(12),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(u=n(13)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(a)})),e.exports=s}).call(this,n(19))},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,u=a(e),s=1;s<arguments.length;s++){for(var c in n=Object(arguments[s]))i.call(n,c)&&(u[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(u[l[f]]=n[l[f]])}}return u}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_ratelimit_msg)}},function(e,t,n){e.exports=n(38)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(44),o=n(45),a=n(11),l=n(46),u=n(49),s=n(50),c=n(14);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?u(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||s(g))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function u(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function s(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=u(void 0,t[e]))})),r.forEach(o,s),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=u(void 0,e[i])):n[i]=u(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=u(e[r],t[r]):r in e&&(n[r]=u(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,s),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(21)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,s=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?s=u.concat(s):f=-1,s.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=s.length;t;){for(u=s,s=[];++f<t;)u&&u[f].run();f=-1,t=s.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";
 
 
 
 
 
12
  /** @license React v17.0.2
13
  * react.production.min.js
14
  *
@@ -16,7 +21,7 @@ object-assign
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
- */var r=n(7),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=e),e=""===r?"."+C(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),T(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(l=e[s],s);u+=T(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),s=0;!(l=e.next()).done;)u+=T(l=l.value,t,n,c=r+C(l,s++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function O(e,t,n){if(null==e)return e;var r=[],i=0;return T(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];o.children=s}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
20
  /** @license React v17.0.2
21
  * react-dom.production.min.js
22
  *
@@ -24,7 +29,7 @@ object-assign
24
  *
25
  * This source code is licensed under the MIT license found in the
26
  * LICENSE file in the root directory of this source tree.
27
- */var r=n(0),i=n(7),o=n(22);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,x=60108,C=60114,T=60109,O=60110,P=60112,L=60113,N=60120,z=60115,I=60116,R=60121,j=60128,M=60129,F=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;k=A("react.element"),E=A("react.portal"),S=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),T=A("react.provider"),O=A("react.context"),P=A("react.forward_ref"),L=A("react.suspense"),N=A("react.suspense_list"),z=A("react.memo"),I=A("react.lazy"),R=A("react.block"),A("react.scope"),j=A("react.opaque.id"),M=A("react.debug_trace_mode"),F=A("react.offscreen"),D=A("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function $(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case R:return Q(e._render);case I:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function se(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Te=null,Oe=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),Ce(e.stateNode,e.type,t))}}function Le(e){Te?Oe?Oe.push(e):Oe=[e]:Te=e}function Ne(){if(Te){var e=Te,t=Oe;if(Oe=Te=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function Re(){}var je=ze,Me=!1,Fe=!1;function De(){null===Te&&null===Oe||(Re(),Ne())}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function We(e,t,n,r,i,o,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var qe=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){qe=!0,He=e}};function Ge(e,t,n,r,i,o,a,l,u){qe=!1,He=null,We.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l){for(u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,lt=null,ut=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&gt(at)&&(at=null),null!==lt&&gt(lt)&&(lt=null),null!==ut&&gt(ut)&&(ut=null),st.forEach(yt),ct.forEach(yt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==lt&&_t(lt,e),null!==ut&&_t(ut,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Ct(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Tt=Ct("animationend"),Ot=Ct("animationiteration"),Pt=Ct("animationstart"),Lt=Ct("transitionend"),Nt=new Map,zt=new Map,It=["abort","abort",Tt,"animationEnd",Ot,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),s(i,[r])}}(0,o.unstable_now)();var jt=8;function Mt(e){if(0!=(1&e))return jt=15,1;if(0!=(2&e))return jt=14,2;if(0!=(4&e))return jt=13,4;var t=24&e;return 0!==t?(jt=12,t):0!=(32&e)?(jt=11,32):0!==(t=192&e)?(jt=10,t):0!=(256&e)?(jt=9,256):0!==(t=3584&e)?(jt=8,t):0!=(4096&e)?(jt=7,4096):0!==(t=4186112&e)?(jt=6,t):0!==(t=62914560&e)?(jt=5,t):67108864&e?(jt=4,67108864):0!=(134217728&e)?(jt=3,134217728):0!==(t=805306368&e)?(jt=2,t):0!=(1073741824&e)?(jt=1,1073741824):(jt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return jt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=jt=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Mt(u),i=jt):0!==(l&=o)&&(r=Mt(l),i=jt)}else 0!==(o=n&~a)?(r=Mt(o),i=jt):0!==l&&(r=Mt(l),i=jt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Mt(t),i<=jt)return t;jt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function At(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?At(10,t):e;case 10:return 0===(e=Ut(192&~t))?At(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||Re();var i=Xt,o=Me;Me=!0;try{Ie(i,e,t,n,r)}finally{(Me=o)||De()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return ut=mt(ut,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return st.set(o,mt(st.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=xe(r);if(null!==(i=Xr(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),vn=ln(mn),gn=ln(i({},mn,{dataTransfer:0})),yn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return xn}var Tn=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),On=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],In=f&&"CompositionEvent"in window,Rn=null;f&&"documentMode"in document&&(Rn=document.documentMode);var jn=f&&"TextEvent"in window&&!Rn,Mn=f&&(!In||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),Dn=!1;function An(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){Sr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,xe(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,De()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function ur(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&ur(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(It,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,u,s){if(Ge.apply(this,arguments),qe){if(!qe)throw Error(a(198));var c=He;qe=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==o&&i.isPropagationStopped())break e;Er(i,l,s),o=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==o&&i.isPropagationStopped())break e;Er(i,l,s),o=u}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function xr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Cr]||(e[Cr]=!0,l.forEach((function(t){kr.has(t)||Or(t,!1,e,null),Or(t,!0,e,null)})))}function Or(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(i|=4),Pr(o,e,i,t),a.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=Xr(l)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{je(e,t,n)}finally{Fe=!1,De()}}((function(){var r=o,i=xe(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var u=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case Tt:case Ot:case Pt:u=bn;break;case Lt:u=Ln;break;case"scroll":u=hn;break;case"wheel":u=Nn;break;case"copy":case"cut":case"paste":u=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=On}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ae(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,n,i),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Xr(s)&&!s[Yr])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Xr(s):null)&&(s!==(f=Ye(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:Zr(u),p=null==s?l:Zr(s),(l=new c(m,h+"leave",u,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",s,n,i)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==u&&Rr(a,l,u,c,!1),null!==s&&null!==f&&Rr(a,f,s,c,!0)}if("select"===(u=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Yn;else if(qn(l))if(Kn)v=or;else{v=rr;var g=nr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,i):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ie(l,"number",l.value)),g=r?Zr(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(a,n,i)}var y;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(g=zr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!In&&An(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Sr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ae(e,n))&&r.unshift(Nr(e,o,i)),null!=(o=Ae(e,t))&&r.push(Nr(e,o,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,i?null!=(u=Ae(n,o))&&a.unshift(Nr(n,u,l)):i||null!=(u=Ae(n,o))&&a.push(Nr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function jr(){}var Mr=null,Fr=null;function Dr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ar(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},ui=ii(li),si=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return null!=(e=e.childContextTypes)}function pi(){oi(si),oi(ui)}function hi(e,t,n){if(ui.current!==li)throw Error(a(168));ai(ui,t),ai(si,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=ui.current,ai(ui,e),ai(si,si.current),!0}function gi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,oi(si),oi(ui),ai(ui,e)):oi(si),ai(si,n)}var yi=null,bi=null,_i=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,Si=o.unstable_requestPaint,xi=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Oi=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,zi={},Ii=void 0!==Si?Si:function(){},Ri=null,ji=null,Mi=!1,Fi=xi(),Di=1e4>Fi?xi:function(){return xi()-Fi};function Ai(){switch(Ci()){case Ti:return 99;case Oi:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Ti;case 98:return Oi;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(a(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function Wi(e,t,n){return e=Ui(e),wi(e,t,n)}function qi(){if(null!==ji){var e=ji;ji=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==Ri){Mi=!0;var e=0;try{var t=Ri;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),wi(Ti,qi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;oi(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(za=!0),e.firstContext=null)}function to(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(a(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=o.baseState,l=0,f=c=s=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(u=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(p,d,u):h))break e;d=i({},d,u);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,s=d):f=f.next=p,l|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Rl|=l,e.lanes=l,e.memoizedState=d}}function so(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ou(),i=au(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),ao(e,o),lu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ou(),i=au(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),ao(e,o),lu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ou(),r=au(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),ao(e,i),lu(e,r,n)}};function ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=to(o):(i=di(t)?ci:ui.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function go(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=to(o):(o=di(t)?ci:ui.current,i.context=fi(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var yo=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===co&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=qu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Uu(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Bu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Uu(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case E:return(t=Hu(t,e.mode,n)).return=e,t}if(yo(t)||W(t))return(t=Bu(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):s(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(yo(n)||W(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):s(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(yo(r)||W(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function m(i,a,l,u){for(var s=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(i,f,l[m],u);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,m),null===c?s=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(i,f),s;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],u))&&(a=o(f,a,m),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),s}function v(i,l,u,s){var c=W(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=l,v=l=0,g=null,y=u.next();null!==m&&!y.done;v++,y=u.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=u.next())null!==(y=d(i,y.value,s))&&(l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=u.next())null!==(y=h(m,i,v,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=o(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,u){var s="object"==typeof o&&null!==o&&o.type===S&&null===o.key;s&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,s=r;null!==s;){if(s.key===c){switch(s.tag){case 7:if(o.type===S){n(e,s.sibling),(r=i(s,o.props.children)).return=e,e=r;break e}break;default:if(s.elementType===o.type){n(e,s.sibling),(r=i(s,o.props)).ref=bo(e,s,o),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}o.type===S?((r=Bu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Uu(o.type,o.key,o.props,null,e.mode,u)).ref=bo(e,r,o),u.return=e,e=u)}return l(e);case E:e:{for(s=o.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hu(o,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=qu(o,e.mode,u)).return=e,e=r),l(e);if(yo(o))return m(e,r,o,u);if(W(o))return v(e,r,o,u);if(c&&_o(e,o),void 0===o&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Q(e.type)||"Component"))}return n(e,r)}}var ko=wo(!0),Eo=wo(!1),So={},xo=ii(So),Co=ii(So),To=ii(So);function Oo(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(ai(To,t),ai(Co,e),ai(xo,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(xo),ai(xo,t)}function Lo(){oi(xo),oi(Co),oi(To)}function No(e){Oo(To.current);var t=Oo(xo.current),n=he(t,e.type);t!==n&&(ai(Co,e),ai(xo,n))}function zo(e){Co.current===e&&(oi(xo),oi(Co))}var Io=ii(0);function Ro(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=null,Mo=null,Fo=!1;function Do(e,t){var n=Fu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ao(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Uo(e){if(Fo){var t=Mo;if(t){var n=t;if(!Ao(e,t)){if(!(t=qr(n.nextSibling))||!Ao(e,t))return e.flags=-1025&e.flags|2,Fo=!1,void(jo=e);Do(jo,n)}jo=e,Mo=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Fo=!1,jo=e}}function Bo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function Wo(e){if(e!==jo)return!1;if(!Fo)return Bo(e),Fo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ar(t,e.memoizedProps))for(t=Mo;t;)Do(e,t),t=qr(t.nextSibling);if(Bo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=jo?qr(e.stateNode.nextSibling):null;return!0}function qo(){Mo=jo=null,Fo=!1}var Ho=[];function Vo(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var $o=w.ReactCurrentDispatcher,Qo=w.ReactCurrentBatchConfig,Go=0,Yo=null,Ko=null,Xo=null,Jo=!1,Zo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Go=o,Yo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=null===e||null===e.memoizedState?Oa:Pa,e=n(r,i),Zo){o=0;do{if(Zo=!1,!(25>o))throw Error(a(301));o+=1,Xo=Ko=null,t.updateQueue=null,$o.current=La,e=n(r,i)}while(Zo)}if($o.current=Ta,t=null!==Ko&&null!==Ko.next,Go=0,Xo=Ko=Yo=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ia(){if(null===Ko){var e=Yo.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Xo?Yo.memoizedState:Xo.next;if(null!==t)Xo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function oa(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=l=o=null,s=i;do{var c=s.lane;if((Go&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,o=r):u=u.next=f,Yo.lanes|=c,Rl|=c}s=s.next}while(null!==s&&s!==i);null===u?o=r:u.next=l,ar(r,t.memoizedState)||(za=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ar(o,t.memoizedState)||(za=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ua(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Go&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function sa(e,t,n,r){var i=Cl;if(null===i)throw Error(a(349));var o=t._getVersion,l=o(t._source),u=$o.current,s=u.useState((function(){return ua(i,t,n)})),c=s[1],f=s[0];s=Xo;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Yo;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=au(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var u=31-qt(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=au(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=c=Ca.bind(null,Yo,e),s.queue=e,s.baseQueue=null,f=ua(i,t,n),s.memoizedState=s.baseState=f),f}function ca(e,t,n){return sa(ia(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Ca.bind(null,Yo,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yo.updateQueue)?(t={lastEffect:null},Yo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ra().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();Yo.flags|=e,i.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,o,r)}Yo.flags|=e,i.memoizedState=da(1|t,n,o,r)}function ga(e,t){return ma(516,4,e,t)}function ya(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function ka(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xa(e,t){var n=Ai();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Ca(e,t,n){var r=ou(),i=au(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Yo||null!==a&&a===Yo)Zo=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(o.eagerReducer=a,o.eagerState=u,ar(u,l))return}catch(e){}lu(e,i,r)}}var Ta={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},Oa={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:ga,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ca.bind(null,Yo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:ka,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=xa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},sa(r,e,t,n)},useOpaqueIdentifier:function(){if(Fo){var e=!1,t=function(e){return{$$typeof:j,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yo.mode)&&(Yo.flags|=516,da(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:to,useCallback:Ea,useContext:to,useEffect:ya,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:aa,useRef:ha,useState:function(){return aa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ya((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},La={readContext:to,useCallback:Ea,useContext:to,useEffect:ya,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:la,useRef:ha,useState:function(){return la(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=la(oa),n=t[0],r=t[1];return ya((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=la(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Na=w.ReactCurrentOwner,za=!1;function Ia(e,t,n,r){t.child=null===e?Eo(t,null,n,r):ko(t,e.child,n,r)}function Ra(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,Ia(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Du(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Uu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(i,r)&&e.ref===t.ref)?el(e,t,o):(t.flags|=1,(e=Au(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(za=!1,0==(o&i))return t.lanes=e.lanes,el(e,t,o);0!=(16384&e.flags)&&(za=!0)}return Aa(e,t,n,r,o)}function Fa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},mu(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},mu(t,e),null;t.memoizedState={baseLanes:0},mu(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,mu(t,r);return Ia(e,t,i,n),t.child}function Da(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Aa(e,t,n,r,i){var o=di(n)?ci:ui.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,Ia(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ua(e,t,n,r,i){if(di(n)){var o=!0;vi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),go(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;"object"==typeof s&&null!==s?s=to(s):s=fi(t,s=di(n)?ci:ui.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&vo(t,a,r,s),no=!1;var d=t.memoizedState;a.state=d,uo(t,r,a,i),u=t.memoizedState,l!==r||d!==u||si.current||no?("function"==typeof c&&(fo(t,n,c,r),u=t.memoizedState),(l=no||ho(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:$i(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=to(u):u=fi(t,u=di(n)?ci:ui.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&vo(t,a,r,u),no=!1,d=t.memoizedState,a.state=d,uo(t,r,a,i);var h=t.memoizedState;l!==f||d!==h||si.current||no?("function"==typeof p&&(fo(t,n,p,r),h=t.memoizedState),(s=no||ho(t,n,s,r,d,h,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Da(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&gi(t,n,!1),el(e,t,o);r=t.stateNode,Na.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,l,o)):Ia(e,t,l,o),t.memoizedState=r.state,i&&gi(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Po(e,t.containerInfo)}var qa,Ha,Va,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=Io.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(Io,1&o),null===e?(void 0!==i.fallback&&Uo(t),e=i.children,o=i.fallback,a?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=Wu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ka(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,i):(n=Ya(e,t,i.children,n),t.memoizedState=null,n))}function Ga(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Wu(t,i,0,null),n=Bu(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Ya(e,t,n,r){var i=e.child;return e=i.sibling,n=Au(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ka(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Au(a,l),null!==e?r=Au(e,r):(r=Bu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Io.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ai(Io,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ro(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ro(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Au(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Au(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Fo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Lo(),oi(si),oi(ui),Vo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zo(t);var o=Oo(To.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Oo(xo.current),Wo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)xr(wr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,l),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xr("invalid",r);break;case"textarea":ue(r,l),xr("invalid",r)}for(var s in Ee(n,l),e=null,l)l.hasOwnProperty(s)&&(o=l[s],"children"===s?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):u.hasOwnProperty(s)&&null!=o&&"onScroll"===s&&xr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Qr]=t,e[Gr]=r,qa(e,t),t.stateNode=e,s=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),o=r;break;case"iframe":case"object":case"embed":xr("load",e),o=r;break;case"video":case"audio":for(o=0;o<wr.length;o++)xr(wr[o],e);o=r;break;case"source":xr("error",e),o=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),o=r;break;case"details":xr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),xr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),xr("invalid",e);break;case"textarea":ue(e,r),o=le(e,r),xr("invalid",e);break;default:o=r}Ee(n,o);var c=o;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&xr("scroll",e):null!=f&&_(e,l,f,s))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=jr)}Dr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Oo(To.current),Oo(xo.current),Wo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return oi(Io),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Io.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Cl||0==(134217727&Rl)&&0==(134217727&jl)||fu(Cl,Ol))),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Tr(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(oi(Io),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(s=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Ro(e))){for(t.flags|=64,tl(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(Io,1&Io.current|2),t.child}e=e.sibling}null!==r.tail&&Di()>Al&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ro(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!Fo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Di()-r.renderingStartTime>Al&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Di(),n.sibling=null,t=Io.current,ai(Io,l?1&t|2:1&t),n):null;case 23:case 24:return vu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),oi(si),oi(ui),Vo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return zo(e),null;case 13:return oi(Io),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(Io),null;case 4:return Lo(),null;case 10:return Ji(e),null;case 23:case 24:return vu(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Oo(xo.current);var a,l=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=jr)}for(f in Ee(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var s=o[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===j?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Va=function(e,t,n,r){n!==r&&(t.flags|=4)};var al="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),ol(0,t)},n}function ul(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ol(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var sl="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Lu(n,e),Pu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&so(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}so(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Dr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Lu(t,n);else{r=t;try{i()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:cl(t);break;case 4:yl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function gl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=jr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function yl(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,u=i,s=u;;)if(hl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=i.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var l=o[i],u=o[i+1];"style"===l?we(n,u):"dangerouslySetInnerHTML"===l?ve(n,u):"children"===l?ge(n,u):_(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Dl=Di(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sl),t.forEach((function(t){var r=ju.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,xl=0,Cl=null,Tl=null,Ol=0,Pl=0,Ll=ii(0),Nl=0,zl=null,Il=0,Rl=0,jl=0,Ml=0,Fl=null,Dl=0,Al=1/0;function Ul(){Al=Di()+500}var Bl,Wl=null,ql=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,eu=-1,tu=0,nu=0,ru=null,iu=!1;function ou(){return 0!=(48&xl)?Di():-1!==eu?eu:eu=Di()}function au(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ai()?1:2;if(0===tu&&(tu=Il),0!==Vi.transition){0!==nu&&(nu=null!==Fl?Fl.pendingLanes:0),e=tu;var t=4186112&~nu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ai(),0!=(4&xl)&&98===e?e=At(12,tu):e=At(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tu),e}function lu(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(a(185));if(null===(e=uu(e,t)))return null;Wt(e,t,n),e===Cl&&(jl|=t,4===Nl&&fu(e,Ol));var r=Ai();1===t?0!=(8&xl)&&0==(48&xl)?du(e):(su(e,n),0===xl&&(Ul(),qi())):(0==(4&xl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),su(e,n)),Fl=e}function uu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function su(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-qt(l),s=1<<u,c=o[u];if(-1===c){if(0==(s&r)||0!=(s&i)){c=t,Mt(s);var f=jt;o[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=Ft(e,e===Cl?Ol:0),t=jt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=du.bind(null,e),null===Ri?(Ri=[n],ji=wi(Ti,Hi)):Ri.push(n),n=zi):14===t?n=Wi(99,du.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cu(e){if(eu=-1,nu=tu=0,0!=(48&xl))throw Error(a(327));var t=e.callbackNode;if(Ou()&&e.callbackNode!==t)return null;var n=Ft(e,e===Cl?Ol:0);if(0===n)return null;var r=n,i=xl;xl|=16;var o=bu();for(Cl===e&&Ol===r||(Ul(),gu(e,r));;)try{ku();break}catch(t){yu(e,t)}if(Xi(),El.current=o,xl=i,null!==Tl?r=0:(Cl=null,Ol=0,r=Nl),0!=(Il&jl))gu(e,0);else if(0!==r){if(2===r&&(xl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Dt(e))&&(r=_u(e,n))),1===r)throw t=zl,gu(e,0),fu(e,n),su(e,Di()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:xu(e);break;case 3:if(fu(e,n),(62914560&n)===n&&10<(r=Dl+500-Di())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ou(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(xu.bind(null,e),r);break}xu(e);break;case 4:if(fu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-qt(n);o=1<<l,(l=r[l])>i&&(i=l),n&=~o}if(n=i,10<(n=(120>(n=Di()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(xu.bind(null,e),n);break}xu(e);break;case 5:xu(e);break;default:throw Error(a(329))}}return su(e,Di()),e.callbackNode===t?cu.bind(null,e):null}function fu(e,t){for(t&=~Ml,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function du(e){if(0!=(48&xl))throw Error(a(327));if(Ou(),e===Cl&&0!=(e.expiredLanes&Ol)){var t=Ol,n=_u(e,t);0!=(Il&jl)&&(n=_u(e,t=Ft(e,t)))}else n=_u(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(xl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Dt(e))&&(n=_u(e,t))),1===n)throw n=zl,gu(e,0),fu(e,t),su(e,Di()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e),su(e,Di()),null}function pu(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}}function hu(e,t){var n=xl;xl&=-2,xl|=8;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}}function mu(e,t){ai(Ll,Pl),Pl|=t,Il|=t}function vu(){Pl=Ll.current,oi(Ll)}function gu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Tl)for(n=Tl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Lo(),oi(si),oi(ui),Vo();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:oi(Io);break;case 10:Ji(r);break;case 23:case 24:vu()}n=n.return}Cl=e,Tl=Au(e.current,null),Ol=Pl=Il=t,Nl=0,zl=null,Ml=jl=Rl=0}function yu(e,t){for(;;){var n=Tl;try{if(Xi(),$o.current=Ta,Jo){for(var r=Yo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Go=0,Xo=Ko=Yo=null,Zo=!1,Sl.current=null,null===n||null===n.return){Nl=1,zl=t,Tl=null;break}e:{var o=e,a=n.return,l=n,u=t;if(t=Ol,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Io.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(s),d.updateQueue=g}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=oo(-1,1);y.tag=2,ao(l,y)}l.lanes|=1;break e}u=void 0,l=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new al,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var _=Ru.bind(null,o,s,l);s.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),u=il(u,l),d=a;do{switch(d.tag){case 3:o=u,d.flags|=4096,t&=-t,d.lanes|=t,lo(d,ll(0,o,t));break e;case 1:o=u;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,lo(d,ul(d,o,t));break e}}d=d.return}while(null!==d)}Su(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function bu(){var e=El.current;return El.current=Ta,null===e?Ta:e}function _u(e,t){var n=xl;xl|=16;var r=bu();for(Cl===e&&Ol===t||gu(e,t);;)try{wu();break}catch(t){yu(e,t)}if(Xi(),xl=n,El.current=r,null!==Tl)throw Error(a(261));return Cl=null,Ol=0,Nl}function wu(){for(;null!==Tl;)Eu(Tl)}function ku(){for(;null!==Tl&&!Ei();)Eu(Tl)}function Eu(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?Su(e):Tl=t,Sl.current=null}function Su(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Tl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Tl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Nl&&(Nl=5)}function xu(e){var t=Ai();return Bi(99,Cu.bind(null,e,t)),null}function Cu(e,t){do{Ou()}while(null!==Ql);if(0!=(48&xl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<o;){var s=31-qt(o),c=1<<s;i[s]=0,l[s]=-1,u[s]=-1,o&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Cl&&(Tl=Cl=null,Ol=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=xl,xl|=32,Sl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,o=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,g=null;t:for(;;){for(var y;v!==u||0!==o&&3!==v.nodeType||(d=f+o),v!==s||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===l)break t;if(g===u&&++h===o&&(d=f),g===s&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Fr={focusedElem:l,selectionRange:u},Gt=!1,ru=null,iu=!1,Wl=r;do{try{Tu()}catch(e){if(null===Wl)throw Error(a(330));Iu(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);ru=null,Wl=r;do{try{for(l=e;null!==Wl;){var b=Wl.flags;if(16&b&&ge(Wl.stateNode,""),128&b){var _=Wl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:gl(Wl),Wl.flags&=-3;break;case 6:gl(Wl),Wl.flags&=-3,bl(Wl.alternate,Wl);break;case 1024:Wl.flags&=-1025;break;case 1028:Wl.flags&=-1025,bl(Wl.alternate,Wl);break;case 4:bl(Wl.alternate,Wl);break;case 8:yl(l,u=Wl);var k=u.alternate;ml(u),null!==k&&ml(k)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(a(330));Iu(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(w=Fr,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),u=b.textContent.length,k=Math.min(l.start,u),l=void 0===l.end?k:Math.min(l.end,u),!w.extend&&k>l&&(u=l,l=k,k=u),u=cr(b,k),o=cr(b,l),u&&o&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Fr=Mr=null,e.current=n,Wl=r;do{try{for(b=e;null!==Wl;){var E=Wl.flags;if(36&E&&dl(b,Wl.alternate,Wl),128&E){_=void 0;var S=Wl.ref;if(null!==S){var x=Wl.stateNode;switch(Wl.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(a(330));Iu(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,Ii(),xl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(Wl=r;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,8&Wl.flags&&((E=Wl).sibling=null,E.stateNode=null),Wl=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64==(64&n.current.flags))}catch(e){}if(su(e,Di()),ql)throw ql=!1,e=Hl,Hl=null,e;return 0!=(8&xl)||qi(),null}function Tu(){for(;null!==Wl;){var e=Wl.alternate;iu||null===ru||(0!=(8&Wl.flags)?Ze(Wl,ru)&&(iu=!0):13===Wl.tag&&wl(e,Wl)&&Ze(Wl,ru)&&(iu=!0));var t=Wl.flags;0!=(256&t)&&fl(e,Wl),0==(512&t)||$l||($l=!0,Wi(97,(function(){return Ou(),null}))),Wl=Wl.nextEffect}}function Ou(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Nu)}return!1}function Pu(e,t){Yl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ou(),null})))}function Lu(e,t){Kl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ou(),null})))}function Nu(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&xl))throw Error(a(331));var t=xl;xl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===o)throw Error(a(330));Iu(o,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===o)throw Error(a(330));Iu(o,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return xl=t,qi(),!0}function zu(e,t,n){ao(e,t=ll(0,t=il(n,t),1)),t=ou(),null!==(e=uu(e,1))&&(Wt(e,1,t),su(e,t))}function Iu(e,t){if(3===e.tag)zu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=ul(n,e=il(t,e),1);if(ao(n,i),i=ou(),null!==(n=uu(n,1)))Wt(n,1,i),su(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Ru(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ou(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(Ol&n)===n&&(4===Nl||3===Nl&&(62914560&Ol)===Ol&&500>Di()-Dl?gu(e,0):Ml|=n),su(e,t)}function ju(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ai()?1:2:(0===tu&&(tu=Il),0===(t=Ut(62914560&~tu))&&(t=4194304))),n=ou(),null!==(e=uu(e,t))&&(Wt(e,t,n),su(e,n))}function Mu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fu(e,t,n,r){return new Mu(e,t,n,r)}function Du(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var n=e.alternate;return null===n?((n=Fu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uu(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Du(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bu(n.children,i,o,t);case M:l=8,i|=16;break;case x:l=8,i|=1;break;case C:return(e=Fu(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=o,e;case L:return(e=Fu(13,n,t,i)).type=L,e.elementType=L,e.lanes=o,e;case N:return(e=Fu(19,n,t,i)).elementType=N,e.lanes=o,e;case F:return Wu(n,i,o,t);case D:return(e=Fu(24,n,t,i)).elementType=D,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:l=10;break e;case O:l=9;break e;case P:l=11;break e;case z:l=14;break e;case I:l=16,r=null;break e;case R:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Fu(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Bu(e,t,n,r){return(e=Fu(7,e,r,t)).lanes=n,e}function Wu(e,t,n,r){return(e=Fu(23,e,r,t)).elementType=F,e.lanes=n,e}function qu(e,t,n){return(e=Fu(6,e,null,t)).lanes=n,e}function Hu(e,t,n){return(t=Fu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $u(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qu(e,t,n,r){var i=t.current,o=ou(),l=au(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(di(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(di(s)){n=mi(n,s,u);break e}}n=u}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),lu(i,l,o),l}function Gu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ku(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Xu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vu(e,t,null!=n&&!0===n.hydrate),t=Fu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[Yr]=n.current,Tr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gu(a);l.call(e)}}Qu(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Gu(a);u.call(e)}}hu((function(){Qu(t,a,e,i)}))}return Gu(a)}function es(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(a(200));return $u(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||si.current)za=!0;else{if(0==(n&r)){switch(za=!1,t.tag){case 3:Wa(t),qo();break;case 5:No(t);break;case 1:di(t.type)&&vi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(ai(Io,1&Io.current),null!==(t=el(e,t,n))?t.sibling:null);ai(Io,1&Io.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(Io,Io.current),r)break;return null;case 23:case 24:return t.lanes=0,Fa(e,t,n)}return el(e,t,n)}za=0!=(16384&e.flags)}else za=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,ui.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fo(t,r,l,e),i.updater=po,t.stateNode=i,i._reactInternals=t,go(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,Ia(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Du(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),o){case 0:t=Aa(null,t,i,e,n);break e;case 1:t=Ua(null,t,i,e,n);break e;case 11:t=Ra(null,t,i,e,n);break e;case 14:t=ja(null,t,i,$i(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Aa(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ua(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)qo(),t=el(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Mo=qr(t.stateNode.containerInfo.firstChild),jo=t,o=Fo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ia(e,t,r,n),qo();t=t.child}return t;case 5:return No(t),null===e&&Uo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,Ar(r,i)?l=null:null!==o&&Ar(r,o)&&(t.flags|=16),Da(e,t),Ia(e,t,l,n),t.child;case 6:return null===e&&Uo(t),null;case 13:return Qa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ra(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value;var u=t.type._context;if(ai(Qi,u._currentValue),u._currentValue=o,null!==l)if(u=l.value,0===(o=ar(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(l.children===i.children&&!si.current){t=el(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===u.tag&&((c=oo(-1,n&-n)).tag=2,ao(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),Zi(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Ia(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,Ia(e,t,r,n),t.child;case 14:return o=$i(i=t.type,t.pendingProps),ja(e,t,i,o=$i(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,eo(t,n),mo(t,r,i),go(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Fa(e,t,n)}throw Error(a(156,t.tag))},Xu.prototype.render=function(e){Qu(e,this._internalRoot,null,null)},Xu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qu(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(lu(e,4,ou()),Ku(e,4))},tt=function(e){13===e.tag&&(lu(e,67108864,ou()),Ku(e,67108864))},nt=function(e){if(13===e.tag){var t=ou(),n=au(e);lu(e,n,t),Ku(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(a(90));X(r),ne(r,i)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},ze=pu,Ie=function(e,t,n,r,i){var o=xl;xl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(xl=o)&&(Ul(),qi())}},Re=function(){0==(49&xl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,su(e,Di())}))}qi()}(),Ou())},je=function(e,t){var n=xl;xl|=2;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}};var ts={Events:[Jr,Zr,ei,Le,Ne,Ou,{current:!1}]},ns={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},rs={bundleType:ns.bundleType,version:ns.version,rendererPackageName:ns.rendererPackageName,rendererConfig:ns.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ns.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!is.isDisabled&&is.supportsFiber)try{yi=is.inject(rs),bi=is}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ts,t.createPortal=es,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xl;if(0!=(48&n))return e(t);xl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{xl=n,qi()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return Zu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(hu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=pu,t.unstable_createPortal=function(e,t){return es(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zu(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(23)},function(e,t,n){"use strict";
28
  /** @license React v0.20.2
29
  * scheduler.production.min.js
30
  *
@@ -32,36 +37,31 @@ object-assign
32
  *
33
  * This source code is licensed under the MIT license found in the
34
  * LICENSE file in the root directory of this source tree.
35
- */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,s=u.now();t.unstable_now=function(){return u.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+b;try{g(!0,e)?k.postMessage(null):(v=!1,g=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,k.postMessage(null))},i=function(e,n){y=p((function(){e(t.unstable_now())}),n)},o=function(){h(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,u=e[l];if(void 0!==a&&0>C(a,n))void 0!==u&&0>C(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],O=[],P=1,L=null,N=3,z=!1,I=!1,R=!1;function j(e){for(var t=S(O);null!==t;){if(null===t.callback)x(O);else{if(!(t.startTime<=e))break;x(O),t.sortIndex=t.expirationTime,E(T,t)}t=S(O)}}function M(e){if(R=!1,j(e),!I)if(null!==S(T))I=!0,r(F);else{var t=S(O);null!==t&&i(M,t.startTime-e)}}function F(e,n){I=!1,R&&(R=!1,o()),z=!0;var r=N;try{for(j(n),L=S(T);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,N=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===S(T)&&x(T),j(n)}else x(T);L=S(T)}if(null!==L)var u=!0;else{var s=S(O);null!==s&&i(M,s.startTime-n),u=!1}return u}finally{L=null,N=r,z=!1}}var D=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||z||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(T)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,E(O,e),null===S(T)&&e===S(O)&&(R?o():R=!0,i(M,a-l))):(e.sortIndex=u,E(T,e),I||z||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=_(n(25)),o=_(n(0)),a=_(n(2)),l=_(n(5)),u=n(30),s=_(u),c=_(n(31)),f=_(n(32)),d=_(n(56)),p=_(n(57)),h=_(n(58)),m=_(n(59)),v=_(n(60)),g=_(n(61)),y=_(n(64)),b=_(n(65));function _(e){return e&&e.__esModule?e:{default:e}}function w(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var k=n(66),E=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.providers=["Unsplash","Pixabay"],n.provider=n.props.provider,n.api_provider=a.default[n.provider],n.arr_key=n.api_provider.arr_key,n.order_key=n.api_provider.order_key,n.api_key=instant_img_localize[n.provider+"_app_id"],n.api_url=""+n.api_provider.photo_api+n.api_provider.api_query_var+n.api_key+a.default.defaults.posts_per_page,n.search_api_url=""+n.api_provider.search_api+n.api_provider.api_query_var+n.api_key+a.default.defaults.posts_per_page,n.results=(0,s.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,restapi_error:!1,api_lightbox:!1},n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.orientation="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.photoTarget=o.default.createRef(),n.providerNav=o.default.createRef(),n.controlNav=o.default.createRef(),n.photoSearch=o.default.createRef(),n.buttonLatest=o.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,_;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.container.classList.add("loading"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"setOrientation",value:function(e,t){if(t&&t.target){var n=t.target;if(n.classList.contains("active"))n.classList.remove("active"),this.orientation="";else{var r=n.parentNode.querySelectorAll("li");[].concat(w(r)).forEach((function(e){return e.classList.remove("active")})),n.classList.add("active"),this.orientation=e}""!==this.search_term&&this.doSearch(this.search_term)}}},{key:"hasOrientation",value:function(){return""!==this.orientation}},{key:"clearOrientation",value:function(){var e=this.container.querySelectorAll(".orientation-list li");[].concat(w(e)).forEach((function(e){return e.classList.remove("active")})),this.orientation=""}},{key:"doSearch",value:function(e){var t=this,n=this.photoSearch.current,r="term";this.page=1;var i=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term;this.hasOrientation()&&(i=i+"&orientation="+this.orientation),"id:"===e.substring(0,3)&&(r="id",e=e.replace("id:",""),i=(0,c.default)(this.provider,e,this.api_provider.photo_api,this.api_provider.api_query_var,this.api_key)),fetch(i).then((function(e){return e.json()})).then((function(e){if("term"===r){var i=(0,s.default)(t.provider,t.arr_key,e,!0);t.total_results=e.total,t.checkTotalResults(i.length),t.results=i,t.setState({results:t.results})}if("id"===r&&e){var o=[],a=(0,u.getResultById)(t.provider,t.arr_key,e,!0);e.errors?(t.total_results=0,t.checkTotalResults("0")):(o.push(a),t.total_results=1,t.checkTotalResults("1")),t.results=o,t.setState({results:t.results})}n.classList.remove("searching")})).catch((function(e){console.log(e),n.classList.remove("searching"),t.isLoading=!1,t.total_results=0,t.isDone=!0,t.results=[],t.setState({results:t.results})}))}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.clearOrientation()}},{key:"getPhotos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,i=t.target||t;if(!i.classList.contains("active")||n){i.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=e,this.results=[],this.clearSearch();var o=this.api_url+"&page="+this.page+"&"+this.order_key+"="+this.orderby;fetch(o).then((function(e){return e.json()})).then((function(e){var t=(0,s.default)(r.provider,r.arr_key,e);r.checkTotalResults(t.length),r.results=t,r.setState({results:t}),i.classList.remove("loading")})).catch((function(e){console.log(e),r.isLoading=!1}))}}},{key:"loadMorePhotos",value:function(){var e=this;this.page=parseInt(this.page)+1,this.container.classList.add("loading"),this.isLoading=!0;var t=this.api_url+"&page="+this.page+"&"+this.order_key+"="+this.orderby;this.is_search&&(t=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term,this.hasOrientation()&&(t=t+"&orientation="+this.orientation)),fetch(t).then((function(e){return e.json()})).then((function(t){var n=(0,s.default)(e.provider,e.arr_key,t,e.is_search);e.is_search&&"unsplash"===e.provider&&(n=t.results),n&&n.map((function(t){e.results.push(t)})),e.checkTotalResults(t.length),e.setState({results:e.results})})).catch((function(t){console.log(t),e.isLoading=!1}))}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,o,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!a.default[r].requires_key){e.next=14;break}return e.next=7,fetch((0,l.default)(r));case 7:if(i=e.sent,o=i.ok,u=i.status,o&&400!==u&&401!==u&&500!==u){e.next=14;break}return this.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 14:this.provider=r,this.api_provider=a.default[this.provider],this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.arr_key=this.api_provider.arr_key,this.order_key=this.api_provider.order_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.api_url=""+this.api_provider.photo_api+this.api_provider.api_query_var+this.api_key+a.default.defaults.posts_per_page,this.search_api_url=""+this.api_provider.search_api+this.api_provider.api_query_var+this.api_key+a.default.defaults.posts_per_page,this.getPhotos("latest",this.buttonLatest.current,!0);case 24:case"end":return e.stop()}}),e,this)})),_=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return _.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;k(t,(function(){e.msnry=new i.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-400&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0==e}},{key:"setActiveState",value:function(){var e=this;if(this.controlNav.current.querySelectorAll("button").forEach((function(e){return e.classList.remove("active")})),!this.is_search){var t=this.controlNav.current.querySelector("li button.instant-images-"+this.orderby);t&&t.classList.add("active")}setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),1e3)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),o=Math.round(r.top),a=this.container.querySelector("#tooltip");a.classList.remove("over"),n.classList.contains("tooltip--above")?a.classList.add("above"):a.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),a.innerHTML=n.dataset.title,i=i-a.offsetWidth+n.offsetWidth+5,a.style.left=i+"px",a.style.top=o+"px",setTimeout((function(){a.classList.add("over")}),150)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.setActiveState()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.setActiveState(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&o.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return o.default.createElement("div",{key:"provider-"+n},o.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},o.default.createElement("span",null,t),a.default[t.toLowerCase()].new&&o.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&o.default.createElement(f.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),this.api_provider.order&&o.default.createElement("ul",{className:"control-nav",ref:this.controlNav},this.api_provider.order.map((function(t,n){return o.default.createElement("li",{key:e.provider+"-order-"+n},o.default.createElement("button",{type:"button",className:"instant-images-"+t,onClick:function(n){return e.getPhotos(t,n)},ref:"latest"===t?e.buttonLatest:null},instant_img_localize[t]))})),o.default.createElement("li",{className:"search-field",id:"search-bar"},o.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},o.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),o.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),o.default.createElement("button",{type:"submit",id:"photo-search-submit"},o.default.createElement("i",{className:"fa fa-search"})),o.default.createElement(y.default,{container:this.container,buttonLatest:this.buttonLatest,isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&o.default.createElement(d.default,null),this.is_search&&o.default.createElement(v.default,{provider:this.provider,setOrientation:this.setOrientation.bind(this)}),o.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return o.default.createElement(g.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&o.default.createElement(m.default,null),o.default.createElement(p.default,null),o.default.createElement(h.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),o.default.createElement(b.default,null))}}]),t}(o.default.Component);t.default=E},function(e,t,n){var r,i,o;
36
  /*!
37
  * Masonry v4.2.2
38
  * Cascading grid layout library
39
  * https://masonry.desandro.com
40
  * MIT License
41
  * by David DeSandro
42
- */window,i=[n(26),n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/r,a=r-i%r;o=Math[a&&a<1?"round":"floor"](o),this.cols=Math.max(o,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},o=r.y+e.size.outerHeight,a=n+r.col,l=r.col;l<a;l++)this.colYs[l]=o;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,o=i+n.outerWidth,a=Math.floor(i/this.columnWidth);a=Math.max(0,a);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var u=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,s=a;s<=l;s++)this.colYs[s]=Math.max(u,this.colYs[s])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i;
43
  /*!
44
  * Outlayer v2.1.1
45
  * the brains and guts of a layout library
46
  * MIT license
47
- */!function(o,a){"use strict";r=[n(3),n(4),n(27),n(29)],void 0===(i=function(e,t,n,r){return function(e,t,n,r,i){var o=e.console,a=e.jQuery,l=function(){},u=0,s={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var i=++u;this.element.outlayerGUID=i,s[i]=this,this._create(),this._getOption("initLayout")&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(f,t.prototype),f.option=function(e){r.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],i=0;i<t.length;i++){var o=new n(t[i],this);r.push(o)}return r},f._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(e){return e.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var r,i=this.options[e];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[e]=r?n(r)[t]:i):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},f.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;return(n=parseFloat(n))*(p[r]||1)}(e),this.stagger;this.stagger=0},f._positionItem=function(e,t,n,r,i){r?e.goTo(t,n):(e.stagger(i*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=l,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var i=t.length;if(t&&i){var o=0;t.forEach((function(t){t.once(e,a)}))}else r();function a(){++o==i&&r()}},f.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),a)if(this.$element=this.$element||a(this.element),t){var i=a.Event(t);i.type=e,this.$element.trigger(i,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},f._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=l,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,i=n(e);return{left:t.left-r.left-i.marginLeft,top:t.top-r.top-i.marginTop,right:r.right-t.right-i.marginRight,bottom:r.bottom-t.bottom-i.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete s[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&s[t]},c.create=function(e,t){var n=d(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},c.compatOptions),n.namespace=e,n.data=c.data,n.Item=d(i),r.htmlInit(n,e),a&&a.bridget&&a.bridget(e,n),n};var p={ms:1,s:1e3};return c.Item=i,c}(o,e,t,n,r)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(o,a){r=[n(28)],void 0===(i=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var i=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&i.push(e);for(var n=e.querySelectorAll(r),o=0;o<n.length;o++)i.push(n[o])}else i.push(e)})),i},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],i=t+"Timeout";e.prototype[t]=function(){var e=this[i];clearTimeout(e);var t=arguments,o=this;this[i]=setTimeout((function(){r.apply(o,t),delete o[i]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var i=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var o=n.toDashed(r),a="data-"+o,l=document.querySelectorAll("["+a+"]"),u=document.querySelectorAll(".js-"+o),s=n.makeArray(l).concat(n.makeArray(u)),c=a+"-options",f=e.jQuery;s.forEach((function(e){var n,o=e.getAttribute(a)||e.getAttribute(c);try{n=o&&JSON.parse(o)}catch(t){return void(i&&i.error("Error parsing "+a+" on "+e.className+": "+t))}var l=new t(e,n);f&&f.data(e,r,l)}))}))},n}(o,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(o,a){"use strict";void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},function(e,t,n){var r,i,o;window,i=[n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",i="string"==typeof n.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],a={transform:i,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var u=l.prototype=Object.create(e.prototype);u.constructor=l,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.getSize=function(){this.size=t(this.element)},u.css=function(e){var t=this.element.style;for(var n in e)t[a[n]||n]=e[n]},u.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],i=e[n?"top":"bottom"],o=parseFloat(r),a=parseFloat(i),l=this.layout.size;-1!=r.indexOf("%")&&(o=o/100*l.width),-1!=i.indexOf("%")&&(a=a/100*l.height),o=isNaN(o)?0:o,a=isNaN(a)?0:a,o-=t?l.paddingLeft:l.paddingRight,a-=n?l.paddingTop:l.paddingBottom,this.position.x=o,this.position.y=a},u.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),i=n?"paddingLeft":"paddingRight",o=n?"left":"right",a=n?"right":"left",l=this.position.x+e[i];t[o]=this.getXValue(l),t[a]="";var u=r?"paddingTop":"paddingBottom",s=r?"top":"bottom",c=r?"bottom":"top",f=this.position.y+e[u];t[s]=this.getYValue(f),t[c]="",this.css(t),this.emitEvent("layout",[this])},u.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},u.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},u._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,i=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!i||this.isTransitioning){var o=e-n,a=t-r,l={};l.transform=this.getTranslate(o,a),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},u.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},u.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},u._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},u.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var s="opacity,"+i.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));u.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:s,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1)}},u.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},u.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};u.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=c[e.propertyName]||e.propertyName;delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},u._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(f)},u.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},u.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},u.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){if(!n)return[];var i=[];switch(e){case"unsplash":i=r?n[t]||[]:n||[];break;case"pixabay":i=n[t]||[]}return i},t.getResultById=function(e,t,n){if(!n)return[];var r=[];switch(e){case"unsplash":r=n||[];break;case"pixabay":r=n[t]&&n[t][0]?n[t][0]:[]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o="";switch(e){case"unsplash":o=n+"/"+t+r+i;break;case"pixabay":o=""+n+r+i+"&id="+t}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(33)),o=s(n(0)),a=s(n(5)),l=s(n(8)),u=s(n(37));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.lightbox=o.default.createRef(),n.provider=n.props.provider,n.api_key=instant_img_localize[n.provider+"_app_id"],n.inputRef=o.default.createRef(),n.loading=!1,n.state={status:"invalid",response:""},n.afterVerifiedAPICallback=n.props.afterVerifiedAPICallback.bind(n),n.closeAPILightbox=n.props.closeAPILightbox.bind(n),n.escFunction=n.escFunction.bind(n),n}var n,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"handleSubmit",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,o,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=this,this.setState({status:"loading"}),(r=this.inputRef.current.value)||this.inputRef.current.focus({preventScroll:!0}),instant_img_localize[this.provider+"_app_id"]=r,e.next=8,fetch((0,a.default)(this.provider));case 8:i=e.sent,o=i.ok,s=i.status,(c=document.querySelector('input[name="instant_img_settings['+this.provider+'_api]"]'))&&(c.value=r),(0,u.default)(this.provider+"_api",r),o?(this.setState({status:"valid",response:instant_img_localize.api_success_msg}),setTimeout((function(){n.afterVerifiedAPICallback(n.provider)}),1500)):(this.setState({status:"invalid"}),(0,l.default)(this.provider,s),400!==s&&401!==s||this.setState({response:instant_img_localize.api_invalid_msg}),429===s&&this.setState({response:instant_img_localize.api_ratelimit_msg}));case 15:case"end":return e.stop()}}),e,this)})),s=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return s.apply(this,arguments)})},{key:"closeLightbox",value:function(){var e=this;this.lightbox.current.classList.remove("active"),setTimeout((function(){e.closeAPILightbox(this.provider)}),250)}},{key:"bkgClick",value:function(e){e.target===this.lightbox.current&&this.closeLightbox()}},{key:"escFunction",value:function(e){27===e.keyCode&&this.closeLightbox()}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.escFunction,!1),this.lightbox.current.classList.add("active")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.escFunction,!1)}},{key:"render",value:function(){var e=this,t="invalid"===this.state.status?instant_img_localize.api_key_invalid:"";return o.default.createElement(i.default,null,o.default.createElement("div",{className:"api-lightbox",ref:this.lightbox,onClick:function(t){return e.bkgClick(t)},tabIndex:"-1"},o.default.createElement("div",null,o.default.createElement("div",null,o.default.createElement("button",{className:"api-lightbox--close",onClick:function(){return e.closeLightbox()}},"×",o.default.createElement("span",{className:"offscreen"},instant_img_localize.btnClose)),o.default.createElement("div",{className:"api-lightbox--details"},o.default.createElement("h3",{"data-provider":this.provider},this.provider),o.default.createElement("p",null,instant_img_localize[this.provider+"_api_desc"]),o.default.createElement("p",null,o.default.createElement("a",{href:instant_img_localize[this.provider+"_api_url"],target:"_blank"},instant_img_localize.get_api_key))),o.default.createElement("form",{onSubmit:function(t){return e.handleSubmit(t)}},o.default.createElement("label",{htmlFor:"key",className:"offscreen"},instant_img_localize.enter_api_key),o.default.createElement("div",{className:"api-lightbox--input-wrap"},o.default.createElement("span",{className:this.state.status,title:t&&t},"invalid"===this.state.status&&o.default.createElement("i",{className:"fa fa-exclamation-triangle","aria-hidden":"true"}),"valid"===this.state.status&&o.default.createElement("i",{className:"fa fa-check-circle","aria-hidden":"true"}),"loading"===this.state.status&&o.default.createElement("i",{className:"fa fa-spinner fa-spin","aria-hidden":"true"})),o.default.createElement("input",{type:"text",id:"key",ref:this.inputRef,placeholder:"Enter API Key",defaultValue:this.api_key})),this.state.response&&o.default.createElement("p",{className:"api-lightbox--response "+this.state.status},this.state.response),o.default.createElement("button",{type:"submit"},instant_img_localize.btnVerify))))))}}]),t}(o.default.Component);t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var s=n(0),c=n(18),f=n(34),d=n(68).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(u,e);var t,n,r,l=a(u);function u(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=l.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&("returnFocusOnDeactivate"!==r?"onPostDeactivate"!==r?t.tailoredFocusTrapOptions[r]=n[r]:t.onPostDeactivate=n[r]:t.returnFocusOnDeactivate=!!n[r]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=u,(n=[{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0);e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,r=t.preventScroll,i=void 0!==r&&r;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var o=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:i}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(o,o):o()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements,this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?s.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===s.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return s.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),u}(s.Component),h="undefined"==typeof Element?Function:Element;p.propTypes={active:f.bool,paused:f.bool,focusTrapOptions:f.shape({document:f.object,onActivate:f.func,onPostActivate:f.func,checkCanFocusTrap:f.func,onDeactivate:f.func,onPostDeactivate:f.func,checkCanReturnFocus:f.func,initialFocus:f.oneOfType([f.instanceOf(h),f.string,f.func,f.bool]),fallbackFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),escapeDeactivates:f.oneOfType([f.bool,f.func]),clickOutsideDeactivates:f.oneOfType([f.bool,f.func]),returnFocusOnDeactivate:f.bool,setReturnFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),allowOutsideClick:f.oneOfType([f.bool,f.func]),preventScroll:f.bool}),containerElements:f.arrayOf(f.instanceOf(h)),children:f.oneOfType([f.element,f.instanceOf(h)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},function(e,t,n){e.exports=n(35)()},function(e,t,n){"use strict";var r=n(36);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=instant_img_localize.root+"instant-images/settings/",r={setting:e,value:t},i={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};o.default.post(n,JSON.stringify(r),i).then((function(e){var t=e.data;console.log(t)})).catch((function(e){console.log(e)}))};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(1),i=n(10),o=n(39),a=n(16);function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=l(n(6));u.Axios=o,u.create=function(e){return l(a(u.defaults,e))},u.Cancel=n(17),u.CancelToken=n(53),u.isCancel=n(15),u.all=function(e){return Promise.all(e)},u.spread=n(54),u.isAxiosError=n(55),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(1),i=n(11),o=n(40),a=n(41),l=n(16),u=n(51),s=u.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&u.assertOptions(t,{silentJSONParsing:s.transitional(s.boolean,"1.0.0"),forcedJSONParsing:s.transitional(s.boolean,"1.0.0"),clarifyTimeoutError:s.transitional(s.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{i=a(f)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(e){return e=l(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(1);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(42),o=n(15),a=n(6);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1),i=n(6);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(i)&&l.push("path="+i),r.isString(o)&&l.push("domain="+o),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(47),i=n(48);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(52),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function l(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&l(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var l=e[o],u=void 0===l||a(l,o,e);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","/home/runner/work/instant-images/instant-images"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"/home/runner/work/instant-images/instant-images","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},function(e,t,n){"use strict";var r=n(17);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"error-messaging"},a.default.createElement("span",{dangerouslySetInnerHTML:{__html:""+instant_img_localize.error_restapi+instant_img_localize.error_restapi_desc}}))}}]),t}(a.default.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"loading-block"})}}]),t}(a.default.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.loadMorePhotos=n.props.loadMorePhotos.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this;return a.default.createElement("div",{className:"load-more-wrap"},a.default.createElement("button",{type:"button",className:"button",onClick:function(){return e.loadMorePhotos()}},instant_img_localize.load_more))}}]),t}(a.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"no-results"},a.default.createElement("h3",null,instant_img_localize.no_results," "),a.default.createElement("p",null,instant_img_localize.no_results_desc," "))}}]),t}(a.default.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.provider=n.props.provider,n.setOrientation=n.props.setOrientation.bind(n),n.options=o.default[n.provider].orientation,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"orientation-list"},i.default.createElement("span",null,i.default.createElement("i",{className:"fa fa-filter","aria-hidden":"true"})," ",instant_img_localize.orientation,":"),i.default.createElement("ul",null,this.options&&this.options.map((function(t,n){return i.default.createElement("li",{key:n+"-"+t,tabIndex:"0",onClick:function(n){return e.setOrientation(t,n)},onKeyPress:function(n){return e.setOrientation(t,n)}},instant_img_localize[t])}))))}}]),t}(i.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(9)),o=s(n(0)),a=s(n(2)),l=s(n(62)),u=s(n(63));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.provider=n.props.provider,n.api_provider=a.default[n.provider],n.api_key=instant_img_localize[n.provider+"_app_id"];var r=n.props.result;return n.id=r.id,n.thumb=(0,u.default)(n.provider,r,"thumb"),n.img=(0,u.default)(n.provider,r,"img"),n.full_size=(0,u.default)(n.provider,r,"full_size"),n.author=(0,u.default)(n.provider,r,"author"),n.img_title=instant_img_localize.photo_by+" "+n.author,n.filename=r.id,n.title=n.img_title,n.alt=r.alt_description?r.alt_description:null,n.alt=null===n.alt?"":n.alt,n.caption="",n.user=(0,u.default)(n.provider,r,"user"),n.name=(0,u.default)(n.provider,r,"name"),n.user_photo=(0,u.default)(n.provider,r,"user_photo"),n.user_url=(0,u.default)(n.provider,r,"user_url"),n.link=(0,u.default)(n.provider,r,"link"),n.likes=(0,u.default)(n.provider,r,"likes"),n.attribution=(0,l.default)(n.provider,n.user_url,n.name),n.view_all=instant_img_localize.view_all,n.inProgress=!1,n.container=document.querySelector(".instant-img-container"),n.showTooltip=n.props.showTooltip.bind(n),n.hideTooltip=n.props.hideTooltip.bind(n),n.setAsFeaturedImage=!1,n.insertIntoPost=!1,n.is_media_router=n.props.mediaRouter,n.is_block_editor=n.props.blockEditor,n.SetFeaturedImage=n.props.SetFeaturedImage,n.InsertImage=n.props.InsertImage,n.displayGutenbergControl=!!n.is_block_editor,n.state={filename:n.filename,title:n.title,alt:n.alt,caption:n.caption},n.photo=o.default.createRef(),n.photoUpload=o.default.createRef(),n.editScreen=o.default.createRef(),n.captionRef=o.default.createRef(),n.noticeMsg=o.default.createRef(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"download",value:function(e){e.preventDefault();var t=this,n=e.currentTarget,r=t.photo.current,o=t.noticeMsg.current;if(n.classList.contains("upload")||(n=t.photoUpload.current),n.classList.contains("success")||this.inProgress)return!1;this.inProgress=!0,n.classList.add("uploading"),r.classList.add("in-progress"),o.innerHTML=instant_img_localize.saving,setTimeout((function(){o.innerHTML=instant_img_localize.resizing,setTimeout((function(){o.innerHTML=instant_img_localize.resizing_still}),5e3)}),3e3);var a=instant_img_localize.root+"instant-images/download/",l={id:n.getAttribute("data-id"),image_url:n.getAttribute("data-url"),filename:n.getAttribute("data-id")+".jpg",custom_filename:n.getAttribute("data-filename"),title:n.getAttribute("data-title"),alt:n.getAttribute("data-alt"),caption:n.getAttribute("data-caption"),parent_id:instant_img_localize.parent_id},u={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};i.default.post(a,JSON.stringify(l),u).then((function(e){var i=e.data;if(i){var a=i.success,l=i.id,u=i.attachment,s=i.admin_url,c=i.msg;if(a){var f=s+"post.php?post="+u.id+"&action=edit";t.uploadComplete(n,r,c,f,u.id),"unsplash"===t.provider&&t.triggerUnsplashDownload(l),t.displayGutenbergControl&&t.setAsFeaturedImage&&(t.SetFeaturedImage(u.id),t.setAsFeaturedImage=!1,t.closeMediaModal()),t.displayGutenbergControl&&t.insertIntoPost&&(u.url&&(t.InsertImage(u.url,u.caption,u.alt),t.closeMediaModal()),t.insertIntoPost=!1),"true"!==t.container.dataset.mediaPopup||t.is_block_editor||(window.location="media-upload.php?type=image&tab=library&attachment_id="+u.id)}else t.uploadError(n,r,o,c)}else t.uploadError(n,r,o,instant_img_localize.error_upload)})).catch((function(e){console.log(e)}))}},{key:"triggerUnsplashDownload",value:function(e){var t=this.api_provider.photo_api+"/"+e+"/download/"+this.api_provider.api_query_var+this.api_key;fetch(t).then((function(e){return e.json()})).then((function(e){})).catch((function(e){console.log(e)}))}},{key:"setFeaturedImageClick",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.setAsFeaturedImage=!0,t.click())}},{key:"insertImageIntoPost",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.insertIntoPost=!0,t.click())}},{key:"uploadComplete",value:function(e,t,n,r,i){this.setImageTitle(e,n),t.classList.remove("in-progress"),t.classList.add("uploaded"),t.querySelector(".edit-photo").style.display="none",t.querySelector(".edit-photo-admin").style.display="inline-block",t.querySelector(".edit-photo-admin").href=r,t.querySelector(".edit-photo-admin").target="_balnk",e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("success"),this.inProgress=!1,setTimeout((function(){t.classList.remove("uploaded"),e.classList.remove("success")}),7500),this.is_block_editor&&(t.querySelector(".insert").style.display="none",t.querySelector(".set-featured").style.display="none"),this.mediaRouter(i),this.container.classList.contains("editor")&&void 0!==wp.media&&(null!==wp.media.frame.content.get()?(wp.media.frame.content.get().collection.props.set({ignore:+new Date}),wp.media.frame.content.get().options.selection.reset()):wp.media.frame.library.props.set({ignore:+new Date}))}},{key:"mediaRouter",value:function(e){if(this.is_media_router&&wp.media&&wp.media.frame&&wp.media.frame.el){var t=wp.media.frame.el.querySelector("#menu-item-browse");t&&t.click(),setTimeout((function(){null!==wp.media.frame.content.get()&&wp.media.frame.content.get().collection._requery(!0);var t=wp.media.frame.state().get("selection"),n=parseInt(e);t.reset(n?[wp.media.attachment(n)]:[])}),150)}}},{key:"uploadError",value:function(e,t,n){e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("errors"),this.setImageTitle(e,n),this.inProgress=!1,t.classList.add("has-error"),console.warn(n)}},{key:"setImageTitle",value:function(e,t){e.setAttribute("title",t)}},{key:"showEditScreen",value:function(e){e.preventDefault();var t=this;this.hideTooltip(e),t.editScreen.current.classList.add("editing"),setTimeout((function(){t.editScreen.current.focus({preventScroll:!0})}),150)}},{key:"handleEditChange",value:function(e){var t=e.target.name;"filename"===t&&this.setState({filename:e.target.value}),"title"===t&&this.setState({title:e.target.value}),"alt"===t&&this.setState({alt:e.target.value}),"caption"===t&&this.setState({caption:e.target.value})}},{key:"saveEditChange",value:function(){var e=this.photo.current.querySelector('input[name="filename"]');this.filename=e.value;var t=this.photo.current.querySelector('input[name="title"]');this.title=t.value;var n=this.photo.current.querySelector('input[name="alt"]');this.alt=n.value;var r=this.photo.current.querySelector('textarea[name="caption"]');this.caption=r.value,this.editScreen.current.classList.remove("editing"),this.photoUpload.current.click()}},{key:"cancelEditChange",value:function(e){var t=this.photo.current.querySelector('input[name="filename"]');t.value=t.dataset.original,this.setState({filename:t.value});var n=this.photo.current.querySelector('input[name="title"]');n.value=n.dataset.original,this.setState({title:n.value});var r=this.photo.current.querySelector('input[name="alt"]');r.value=r.dataset.original,this.setState({alt:r.value});var i=this.photo.current.querySelector('textarea[name="caption"]');i.value=i.dataset.original,this.setState({caption:i.value}),this.editScreen.current.classList.remove("editing"),this.photoUpload.current.focus({preventScrol:!0})}},{key:"closeMediaModal",value:function(){var e=document.querySelector(".media-modal");if(e){var t=e.querySelector("button.media-modal-close");if(!t)return!1;t.click()}}},{key:"addAttribution",value:function(e){e.preventDefault();this.captionRef.current.value=this.attribution,this.setState({caption:this.attribution})}},{key:"render",value:function(){var e=this,t=1===parseInt(this.likes)?instant_img_localize.likes:instant_img_localize.likes_plural;return o.default.createElement("article",{className:"photo",ref:this.photo},o.default.createElement("div",{className:"photo--wrap"},o.default.createElement("div",{className:"img-wrap"},o.default.createElement("a",{className:"upload loaded",href:this.full_size,ref:this.photoUpload,"data-id":this.id,"data-url":this.full_size,"data-filename":this.state.filename,"data-title":this.state.title,"data-alt":this.state.alt,"data-caption":this.state.caption,title:instant_img_localize.upload,onClick:function(t){return e.download(t)}},o.default.createElement("img",{src:this.img,alt:""}),o.default.createElement("div",{className:"status"})),o.default.createElement("div",{className:"notice-msg",ref:this.noticeMsg}),o.default.createElement("div",{className:"user-controls"},o.default.createElement("a",{className:"user fade",href:this.user_url,target:"_blank",title:"unsplash"===this.provider?this.view_all+" @ "+this.user:this.view_all+" "+this.name},o.default.createElement("div",{className:"user-wrap"},this.user_photo&&this.user_photo.length>0&&o.default.createElement("img",{src:this.user_photo}),"unsplash"===this.provider?this.user:this.name)),o.default.createElement("div",{className:"photo-options"},this.displayGutenbergControl&&o.default.createElement("button",{type:"button",className:"set-featured fade","data-title":instant_img_localize.set_as_featured,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.setFeaturedImageClick(t)}},o.default.createElement("i",{className:"fa fa-picture-o","aria-hidden":"true"}),o.default.createElement("span",{className:"offscreen"},instant_img_localize.set_as_featured)),this.displayGutenbergControl&&o.default.createElement("button",{type:"button",className:"insert fade","data-title":instant_img_localize.insert_into_post,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.insertImageIntoPost(t)}},o.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"}),o.default.createElement("span",{className:"offscreen"},instant_img_localize.insert_into_post)),o.default.createElement("a",{href:"#",className:"edit-photo-admin fade","data-title":instant_img_localize.edit_upload,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},o.default.createElement("i",{className:"fa fa-pencil","aria-hidden":"true"}),o.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_upload)),o.default.createElement("button",{type:"button",className:"edit-photo fade","data-title":instant_img_localize.edit_details,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.showEditScreen(t)}},o.default.createElement("i",{className:"fa fa-cog","aria-hidden":"true"}),o.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_details)))),o.default.createElement("div",{className:"options"},o.default.createElement("span",{className:"likes tooltip--above","data-title":this.likes+" "+t,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},o.default.createElement("i",{className:"fa fa-heart heart-like","aria-hidden":"true"})," ",this.likes),o.default.createElement("a",{className:"tooltip--above",href:this.link,"data-title":"unsplash"===this.provider?instant_img_localize.view_on_unsplash:instant_img_localize.view_on_pixabay,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},target:"_blank"},o.default.createElement("i",{className:"fa fa-external-link","aria-hidden":"true"}),o.default.createElement("span",{className:"offscreen"},"unsplash"===this.provider?instant_img_localize.view_on_unsplash:instant_img_localize.view_on_pixabay)))),o.default.createElement("div",{className:"edit-screen",tabIndex:"0",ref:this.editScreen},o.default.createElement("div",{className:"edit-screen--title"},o.default.createElement("div",null,o.default.createElement("p",{className:"heading"},instant_img_localize.edit_details),o.default.createElement("p",null,instant_img_localize.edit_details_intro)),o.default.createElement("div",{className:"preview",style:{backgroundImage:"url("+this.thumb+")"}})),o.default.createElement("label",null,o.default.createElement("span",null,instant_img_localize.edit_filename,":"),o.default.createElement("input",{type:"text",name:"filename","data-original":this.filename,placeholder:this.filename,value:this.state.filename,onChange:function(t){return e.handleEditChange(t)}}),o.default.createElement("em",null,".jpg")),o.default.createElement("label",null,o.default.createElement("span",null,instant_img_localize.edit_title,":"),o.default.createElement("input",{type:"text",name:"title","data-original":this.title,placeholder:this.title,value:this.state.title||"",onChange:function(t){return e.handleEditChange(t)}})),o.default.createElement("label",null,o.default.createElement("span",null,instant_img_localize.edit_alt,":"),o.default.createElement("input",{type:"text",name:"alt","data-original":this.alt,value:this.state.alt||"",onChange:function(t){return e.handleEditChange(t)}})),o.default.createElement("label",null,o.default.createElement("span",null,instant_img_localize.edit_caption,":"),o.default.createElement("textarea",{rows:"4",name:"caption","data-original":"",onChange:function(t){return e.handleEditChange(t)},value:this.state.caption||"",ref:this.captionRef})),o.default.createElement("div",{className:"add-attribution-row"},o.default.createElement("button",{onClick:function(t){return e.addAttribution(t)},type:"button"},instant_img_localize.attribution)),o.default.createElement("div",{className:"edit-screen--controls"},o.default.createElement("button",{type:"button",className:"button",onClick:function(t){return e.cancelEditChange(t)}},instant_img_localize.cancel)," "," ",o.default.createElement("button",{type:"button",className:"button button-primary",onClick:function(){return e.saveEditChange()}},instant_img_localize.upload_now)))))}}]),t}(o.default.Component);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=instant_img_localize.photo_by;switch(e){case"unsplash":r+=' <a href="'+t+'?utm_source=wordpress-instant-images&utm_medium=referral">'+n+'</a> on <a href="'+instant_img_localize.unsplash_url+'/?utm_source=wordpress-instant-images&utm_medium=referral">Unsplash</a>';break;case"pixabay":r+=' <a href="'+t+'?utm_source=wordpress-instant-images&utm_medium=referral">'+n+'</a> on <a href="'+instant_img_localize.pixabay_url+'/?utm_source=wordpress-instant-images&utm_medium=referral">Pixabay</a>'}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r="";switch(n){case"thumb":"pixabay"===e&&(r=t.previewURL),"unsplash"===e&&(r=t.urls.thumb);break;case"img":"pixabay"===e&&(r=t.webformatURL),"unsplash"===e&&(r=t.urls.small);break;case"full_size":"pixabay"===e&&(r=t.largeImageURL),"unsplash"===e&&(r=t.urls.full);break;case"author":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name);break;case"user":"pixabay"===e&&(r=t.user_id),"unsplash"===e&&(r=t.user.username);break;case"name":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name);break;case"user_photo":"pixabay"===e&&(r=t.userImageURL),"unsplash"===e&&(r=t.user.profile_image.small);break;case"user_url":"pixabay"===e&&(r=instant_img_localize.pixabay_url+"/users/"+t.user+"-"+t.user_id+"/"),"unsplash"===e&&(r=instant_img_localize.unsplash_url+"/@"+t.user.username+"?utm_source=wordpress-instant-images&utm_medium=referral");break;case"link":"pixabay"===e&&(r=t.pageURL),"unsplash"===e&&(r=t.links.html);break;case"likes":"pixabay"===e&&(r=t.likes),"unsplash"===e&&(r=t.likes)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.buttonLatest=n.props.buttonLatest,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this;return a.default.createElement("div",{className:this.props.isSearch?"searchResults":"searchResults hide"},a.default.createElement("span",{title:this.props.title},this.props.total),a.default.createElement("button",{type:"button",title:instant_img_localize.clear_search,onClick:function(){return e.buttonLatest.current.click()}},"x",a.default.createElement("span",{className:"offscreen"},instant_img_localize.clear_search)))}}]),t}(a.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{id:"tooltip"})}}]),t}(a.default.Component);t.default=s},function(e,t,n){var r,i;
48
  /*!
49
  * imagesLoaded v4.1.4
50
  * JavaScript is all like "You images are done yet or what?"
51
  * MIT License
52
- */!function(o,a){"use strict";r=[n(3)],void 0===(i=function(e){return function(e,t){var n=e.jQuery,r=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var o=Array.prototype.slice;function a(e,t,l){if(!(this instanceof a))return new a(e,t,l);var u,s=e;("string"==typeof e&&(s=document.querySelectorAll(e)),s)?(this.elements=(u=s,Array.isArray(u)?u:"object"==typeof u&&"number"==typeof u.length?o.call(u):[u]),this.options=i({},this.options),"function"==typeof t?l=t:i(this.options,t),l&&this.on("always",l),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(s||e))}a.prototype=Object.create(t.prototype),a.prototype.options={},a.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},a.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(r=0;r<o.length;r++){var a=o[r];this.addElementBackgroundImages(a)}}}};var l={1:!0,9:!0,11:!0};function u(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}return a.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},a.prototype.addImage=function(e){var t=new u(e);this.images.push(t)},a.prototype.addBackground=function(e,t){var n=new s(e,t);this.images.push(n)},a.prototype.check=function(){var e=this;function t(t,n,r){setTimeout((function(){e.progress(t,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},a.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,e,t)},a.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},u.prototype=Object.create(t.prototype),u.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},u.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},u.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},u.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},u.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},u.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},u.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(u.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},a.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new a(this,e,t).jqDeferred.promise(n(this))})},a.makeJQueryPlugin(),a}(o,e)}.apply(t,r))||(e.exports=i)}("undefined"!=typeof window?window:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return instant_img_localize&&instant_img_localize.default_provider?instant_img_localize.default_provider:o.default.defaults.provider};var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";n.r(t),n.d(t,"createFocusTrap",(function(){return E}));
53
  /*!
54
  * tabbable 5.2.1
55
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
56
  */
57
- var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=r.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&o.call(e,i)&&r.unshift(e),r=r.filter(n)},l=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},u=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},s=function(e){return"INPUT"===e.tagName},c=function(e){return function(e){return s(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},f=function(e,t){return!(t.disabled||function(e){return s(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=o.call(e,"details>summary:first-of-type")?e.parentElement:e;if(o.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var r=e.getBoundingClientRect(),i=r.width,a=r.height;return 0===i&&0===a}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(s(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},d=function(e,t){return!(!f(e,t)||c(t)||l(t)<0)},p=r.concat("iframe").join(","),h=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==o.call(e,p)&&f(t,e)};
58
  /*!
59
  * focus-trap 6.7.1
60
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
61
  */
62
- function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g,y=(g=[],{activateTrap:function(e){if(g.length>0){var t=g[g.length-1];t!==e&&t.pause()}var n=g.indexOf(e);-1===n||g.splice(n,1),g.push(e)},deactivateTrap:function(e){var t=g.indexOf(e);-1!==t&&g.splice(t,1),g.length>0&&g[g.length-1].unpause()}}),b=function(e){return setTimeout(e,0)},_=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},w=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},k=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},E=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},c=function(e){return!(!e||!o.containers.some((function(t){return t.contains(e)})))},f=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];t=t.apply(void 0,o)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},p=function(){var e=f("initialFocus");if(!1===e)return!1;if(void 0===e)if(c(r.activeElement))e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||f("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},g=function(){if(o.tabbableGroups=o.containers.map((function(e){var t,n,r,i=(n=[],r=[],a(e,(t=t||{}).includeContainer,d.bind(null,t)).forEach((function(e,t){var i=l(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(u).map((function(e){return e.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),o.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},E=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(p()))},S=function(e){var t=f("setReturnFocus",e);return t||!1!==t&&e},x=function(e){var t=k(e);c(t)||(w(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!h(t)}):w(i.allowOutsideClick,e)||e.preventDefault())},C=function(e){var t=k(e),n=c(t);n||t instanceof Document?n&&(o.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),E(o.mostRecentlyFocusedNode||p()))},T=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==w(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=k(e);g();var n=null;if(o.tabbableGroups.length>0){var r=_(o.tabbableGroups,(function(e){return e.container.contains(t)}));if(r<0)n=e.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var i=_(o.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(i<0&&o.tabbableGroups[r].container===t&&(i=r),i>=0){var a=0===i?o.tabbableGroups.length-1:i-1;n=o.tabbableGroups[a].lastTabbableNode}}else{var l=_(o.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&o.tabbableGroups[r].container===t&&(l=r),l>=0){var u=l===o.tabbableGroups.length-1?0:l+1;n=o.tabbableGroups[u].firstTabbableNode}}}else n=f("fallbackFocus");n&&(e.preventDefault(),E(n))}(e)},O=function(e){if(!w(i.clickOutsideDeactivates,e)){var t=k(e);c(t)||w(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},P=function(){if(o.active)return y.activateTrap(n),o.delayInitialFocusTimer=i.delayInitialFocus?b((function(){E(p())})):E(p()),r.addEventListener("focusin",C,!0),r.addEventListener("mousedown",x,{capture:!0,passive:!1}),r.addEventListener("touchstart",x,{capture:!0,passive:!1}),r.addEventListener("click",O,{capture:!0,passive:!1}),r.addEventListener("keydown",T,{capture:!0,passive:!1}),n},L=function(){if(o.active)return r.removeEventListener("focusin",C,!0),r.removeEventListener("mousedown",x,!0),r.removeEventListener("touchstart",x,!0),r.removeEventListener("click",O,!0),r.removeEventListener("keydown",T,!0),n};return(n={activate:function(e){if(o.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),i=s(e,"checkCanFocusTrap");i||g(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,t&&t();var a=function(){i&&g(),P(),n&&n()};return i?(i(o.containers.concat()).then(a,a),this):(a(),this)},deactivate:function(e){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,L(),o.active=!1,o.paused=!1,y.deactivateTrap(n);var t=s(e,"onDeactivate"),r=s(e,"onPostDeactivate"),i=s(e,"checkCanReturnFocus");t&&t();var a=s(e,"returnFocus","returnFocusOnDeactivate"),l=function(){b((function(){a&&E(S(o.nodeFocusedBeforeActivation)),r&&r()}))};return a&&i?(i(S(o.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,L()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,g(),P(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),o.active&&g(),this}}).updateContainerElements(e),n}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(79),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.color,n=void 0===t?"unsplash":t;return React.createElement("span",{className:(0,o.default)("instant-images-sidebar-icon","color-"+n)},React.createElement("svg",{viewBox:"0 0 31 58",width:"13px",height:"24px"},React.createElement("title",null,"Instant Images Logo"),React.createElement("polygon",{points:"20 0 20 23 31 23 11 58 11 34 0 34 20 0",fill:"#4a7bc5"})))}},,,function(e,t,n){"use strict";var r=o(n(78)),i=o(n(82));function o(e){return e&&e.__esModule?e:{default:e}}var a=wp.element.Fragment;(0,wp.plugins.registerPlugin)("instant-images",{render:function(){return React.createElement(a,null,React.createElement(i.default,null),React.createElement(r.default,null))}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=p(n(0)),o=p(n(24)),a=p(n(2)),l=p(n(5)),u=p(n(8)),s=p(n(67)),c=p(n(74)),f=p(n(80)),d=p(n(81));function p(e){return e&&e.__esModule?e:{default:e}}var h=wp.editPost.PluginSidebar,m=wp.element,v=m.useState,g=m.useEffect;t.default=function(){var e=v(),t=r(e,2),n=t[0],p=t[1],m=(0,s.default)(),y=a.default.defaults.provider,b=a.default.defaults.order,_=a.default[m].requires_key;return g((function(){var e,t;(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=9;break}return e.next=3,fetch((0,l.default)(m));case 3:t=e.sent,n=t.ok,r=t.status,n?p(m):(p(y),(0,u.default)(m,r)),e.next=10;break;case 9:p(y);case 10:case"end":return e.stop()}}),e,this)})),t=function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,o){try{var a=t[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))},function(){return t.apply(this,arguments)})()}),[]),i.default.createElement(h,{icon:i.default.createElement(c.default,{borderless:!0,color:"unsplash"}),name:"instant-images-sidebar",title:"Instant Images"},i.default.createElement("div",{className:"instant-img-container"},n&&i.default.createElement(o.default,{editor:"gutenberg",page:1,orderby:b,provider:n,SetFeaturedImage:d.default,InsertImage:f.default})))}},function(e,t,n){var r;
63
- /*!
64
- Copyright (c) 2018 Jed Watson.
65
- Licensed under the MIT License (MIT), see
66
- http://jedwatson.github.io/classnames
67
- */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.blocks.createBlock;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===e)return!1;var i=r("core/image",{url:e,caption:t,alt:n});wp.data.dispatch("core/editor").insertBlocks(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.data.dispatch;t.default=function(e){if(null===e)return!1;r("core/editor").editPost({featured_media:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(74),o=(r=i)&&r.__esModule?r:{default:r};var a=wp.editPost.PluginSidebarMoreMenuItem;t.default=function(){return React.createElement(a,{icon:React.createElement(o.default,{color:"unsplash"}),target:"instant-images-sidebar",className:"instant-images-menu-item"},"Instant Images")}}]);
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=82)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";var r=n(10),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:o,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):a(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",posts_per_page:"&per_page=20"},unsplash:{requires_key:!1,new:!1,filters:!0,api_query_var:"/?client_id=",photo_api:"https://api.unsplash.com/photos",collections_api:"https://api.unsplash.com/collections",search_api:"https://api.unsplash.com/search/photos",search_query_var:"query",arr_key:"results",orientation:["landscape","portrait","squarish"]},pixabay:{requires_key:!0,new:!1,filters:!0,api_query_var:"/?key=",photo_api:"https://pixabay.com/api",search_api:"https://pixabay.com/api",search_query_var:"q",arr_key:"hits",orientation:["horizontal","vertical"]}}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var a=n[i];r&&r[a]&&(this.off(e,a),delete r[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
+ */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,o=!1;function l(t){if(function(){if(!o){o=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);a=200==Math.round(e(r.width)),l.isBoxSizeOuter=a,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,g=u.marginLeft+u.marginRight,y=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&a,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+g,u.outerHeight=u.height+y,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=a.default[e],n=instant_img_localize[e+"_app_id"];return""+t.photo_api+t.api_query_var+n+"&per_page=5&page=1"};var r,i=n(2),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(47),a=n(12),o={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(13)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u}).call(this,n(19))},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=o(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)a.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_ratelimit_msg)}},function(e,t,n){e.exports=n(42)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(r.isURLSearchParams(t))a=t.toString();else{var o=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),o.push(i(t)+"="+i(e))})))})),a=o.join("&")}if(a){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(48),a=n(49),o=n(11),l=n(50),s=n(53),u=n(54),c=n(14);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var g=l(e.baseURL,e.url);function y(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,a={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,a),h=null}}if(h.open(e.method.toUpperCase(),o(g,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=y:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(y)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(g))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n,i,a){var o=new Error(e);return r(o,t,n,i,a)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],a=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(a,u),r.forEach(o,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(a).concat(o).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(23)},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";switch(e){case"unsplash":instant_img_localize.unsplash_content_filter&&(t="&content_filter="+instant_img_localize.unsplash_content_filter);break;case"pixabay":instant_img_localize.pixabay_safesearch&&(t="&safesearch="+instant_img_localize.pixabay_safesearch)}return t}},function(e,t,n){var r;
12
+ /*!
13
+ Copyright (c) 2018 Jed Watson.
14
+ Licensed under the MIT License (MIT), see
15
+ http://jedwatson.github.io/classnames
16
+ */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&e.push(o)}}else if("object"===a)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";
17
  /** @license React v17.0.2
18
  * react.production.min.js
19
  *
21
  *
22
  * This source code is licensed under the MIT license found in the
23
  * LICENSE file in the root directory of this source tree.
24
+ */var r=n(7),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var b=y.prototype=new g;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,a={},o=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:i,type:e,key:o,ref:l,props:a,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,o){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return o=o(s=e),e=""===r?"."+C(s,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),O(o,t,n,"",(function(e){return e}))):null!=o&&(S(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(x,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+C(l=e[u],u);s+=O(l,t,n,c,o)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,n,c=r+C(l,u++),o);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function T(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var a=r({},e.props),o=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:i,type:e.type,key:o,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
25
  /** @license React v17.0.2
26
  * react-dom.production.min.js
27
  *
29
  *
30
  * This source code is licensed under the MIT license found in the
31
  * LICENSE file in the root directory of this source tree.
32
+ */var r=n(0),i=n(7),a=n(24);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,x=60108,C=60114,O=60109,T=60110,P=60112,L=60113,N=60120,z=60115,I=60116,j=60121,R=60128,M=60129,F=60130,D=60131;if("function"==typeof Symbol&&Symbol.for){var A=Symbol.for;k=A("react.element"),E=A("react.portal"),S=A("react.fragment"),x=A("react.strict_mode"),C=A("react.profiler"),O=A("react.provider"),T=A("react.context"),P=A("react.forward_ref"),L=A("react.suspense"),N=A("react.suspense_list"),z=A("react.memo"),I=A("react.lazy"),j=A("react.block"),A("react.scope"),R=A("react.opaque.id"),M=A("react.debug_trace_mode"),F=A("react.offscreen"),D=A("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(1!==o||1!==l)do{if(o--,0>--l||i[o]!==a[l])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function $(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case C:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case j:return Q(e._render);case I:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(o(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Oe=null,Te=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(o(280));var t=e.stateNode;t&&(t=ei(t),Ce(e.stateNode,e.type,t))}}function Le(e){Oe?Te?Te.push(e):Te=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Te;if(Te=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function je(){}var Re=ze,Me=!1,Fe=!1;function De(){null===Oe&&null===Te||(je(),Ne())}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(o(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function We(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var qe=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){qe=!0,He=e}};function Ge(e,t,n,r,i,a,o,l,s){qe=!1,He=null,We.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Xe(i),e;if(a===r)return Xe(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=a;break}if(s===r){l=!0,r=i,n=a;break}s=s.sibling}if(!l){for(s=a.child;s;){if(s===n){l=!0,n=a,r=i;break}if(s===r){l=!0,r=a,n=i;break}s=s.sibling}if(!l)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,at=[],ot=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==ot&&gt(ot)&&(ot=null),null!==lt&&gt(lt)&&(lt=null),null!==st&&gt(st)&&(st=null),ut.forEach(yt),ct.forEach(yt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<at.length){_t(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&_t(ot,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Ct(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Ct("animationend"),Tt=Ct("animationiteration"),Pt=Ct("animationstart"),Lt=Ct("transitionend"),Nt=new Map,zt=new Map,It=["abort","abort",Ot,"animationEnd",Tt,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function jt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,a.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,i=Rt=15;else if(0!==(a=134217727&n)){var s=a&~o;0!==s?(r=Mt(s),i=Rt):0!==(l&=a)&&(r=Mt(l),i=Rt)}else 0!==(a=n&~o)?(r=Mt(a),i=Rt):0!==l&&(r=Mt(l),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&o)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-qt(t)),r|=e[n],t&=~i;return r}function Dt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function At(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?At(10,t):e;case 10:return 0===(e=Ut(192&~t))?At(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=a.unstable_UserBlockingPriority,Qt=a.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||je();var i=Xt,a=Me;Me=!0;try{Ie(i,e,t,n,r)}finally{(Me=a)||De()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<at.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(a,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ot=mt(ot,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,mt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ct.set(a,mt(ct.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=xe(r);if(null!==(i=Xr(i))){var a=Ye(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Ke(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function on(){return!1}function ln(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:on,this.isPropagationStopped=on,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),gn=ln(i({},mn,{dataTransfer:0})),yn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return xn}var On=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Tn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],In=f&&"CompositionEvent"in window,jn=null;f&&"documentMode"in document&&(jn=document.documentMode);var Rn=f&&"TextEvent"in window&&!jn,Mn=f&&(!In||jn&&8<jn&&11>=jn),Fn=String.fromCharCode(32),Dn=!1;function An(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){Sr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,xe(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,De()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(or(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}jt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),jt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),jt(It,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,l,s,u){if(Ge.apply(this,arguments),qe){if(!qe)throw Error(o(198));var c=He;qe=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Er(i,l,u),a=s}else for(o=0;o<r.length;o++){if(s=(l=r[o]).instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Er(i,l,u),a=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function xr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Cr]||(e[Cr]=!0,l.forEach((function(t){kr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ti(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),Pr(a,e,i,t),o.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;o=o.return}for(;null!==l;){if(null===(o=Xr(l)))return;if(5===(s=o.tag)||6===s){r=a=o;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Re(e,t,n)}finally{Fe=!1,De()}}((function(){var r=a,i=xe(n),o=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ot:case Tt:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Tn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Ae(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),o.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==s&&jr(o,l,s,c,!1),null!==u&&null!==f&&jr(o,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(qn(l))if(Kn)v=ar;else{v=rr;var g=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(o,v,n,i):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ie(l,"number",l.value)),g=r?Zr(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(hr=g,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(o,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":yr(o,n,i)}var y;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?An(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(g=zr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Un(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Dn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!In&&An(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}Sr(o,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ae(e,n))&&r.unshift(Nr(e,a,i)),null!=(a=Ae(e,t))&&r.push(Nr(e,a,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function jr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=Ae(n,a))&&o.unshift(Nr(n,s,l)):i||null!=(s=Ae(n,a))&&o.push(Nr(n,s,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Rr(){}var Mr=null,Fr=null;function Dr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ar(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function ai(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function oi(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function di(e){return null!=(e=e.childContextTypes)}function pi(){ai(ui),ai(si)}function hi(e,t,n){if(si.current!==li)throw Error(o(168));oi(si,t),oi(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,Q(t)||"Unknown",a));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,oi(si,e),oi(ui,ui.current),!0}function gi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,ai(ui),ai(si),oi(si,e)):ai(ui),oi(ui,n)}var yi=null,bi=null,_i=a.unstable_runWithPriority,wi=a.unstable_scheduleCallback,ki=a.unstable_cancelCallback,Ei=a.unstable_shouldYield,Si=a.unstable_requestPaint,xi=a.unstable_now,Ci=a.unstable_getCurrentPriorityLevel,Oi=a.unstable_ImmediatePriority,Ti=a.unstable_UserBlockingPriority,Pi=a.unstable_NormalPriority,Li=a.unstable_LowPriority,Ni=a.unstable_IdlePriority,zi={},Ii=void 0!==Si?Si:function(){},ji=null,Ri=null,Mi=!1,Fi=xi(),Di=1e4>Fi?xi:function(){return xi()-Fi};function Ai(){switch(Ci()){case Oi:return 99;case Ti:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(o(332))}}function Ui(e){switch(e){case 99:return Oi;case 98:return Ti;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(o(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function Wi(e,t,n){return e=Ui(e),wi(e,t,n)}function qi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==ji){Mi=!0;var e=0;try{var t=ji;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),ji=null}catch(t){throw null!==ji&&(ji=ji.slice(e+1)),wi(Oi,qi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;ai(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ea(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(zo=!0),e.firstContext=null)}function ta(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(o(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var na=!1;function ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function aa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function sa(e,t,n,r){var a=e.updateQueue;na=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?o=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==o){for(d=a.baseState,l=0,f=c=u=null;;){s=o.lane;var p=o.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:na=!0}}null!==o.callback&&(e.flags|=32,null===(s=a.effects)?a.effects=[o]:s.push(o))}else p={eventTime:p,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(o=o.next)){if(null===(s=a.shared.pending))break;o=s.next,s.next=null,a.lastBaseUpdate=s,a.shared.pending=null}}null===f&&(u=d),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,jl|=l,e.lanes=l,e.memoizedState=d}}function ua(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var ca=(new r.Component).refs;function fa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var da={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=as(),i=os(e),a=aa(r,i);a.payload=t,null!=n&&(a.callback=n),oa(e,a),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=as(),i=os(e),a=aa(r,i);a.tag=1,a.payload=t,null!=n&&(a.callback=n),oa(e,a),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=as(),r=os(e),i=aa(n,r);i.tag=2,null!=t&&(i.callback=t),oa(e,i),ls(e,r,n)}};function pa(e,t,n,r,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,a))}function ha(e,t,n){var r=!1,i=li,a=t.contextType;return"object"==typeof a&&null!==a?a=ta(a):(i=di(t)?ci:si.current,a=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=da,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ma(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&da.enqueueReplaceState(t,t.state,null)}function va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ca,ra(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=ta(a):(a=di(t)?ci:si.current,i.context=fi(e,a)),sa(e,n,i,r),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(fa(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&da.enqueueReplaceState(i,i.state,null),sa(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var ga=Array.isArray;function ya(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ca&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function ba(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function _a(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=As(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=qs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ya(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=ya(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=qs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=ya(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(ga(t)||W(t))return(t=Bs(t,e.mode,n,null)).return=e,t;ba(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(ga(n)||W(n))return null!==i?null:f(e,t,n,r,null);ba(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ga(r)||W(r))return f(t,e=e.get(n)||null,r,i,null);ba(t,r)}return null}function m(i,o,l,s){for(var u=null,c=null,f=o,m=o=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var g=p(i,f,l[m],s);if(null===g){null===f&&(f=v);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,m),null===c?u=g:c.sibling=g,c=g,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(o=a(f,o,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),o=a(v,o,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=W(s);if("function"!=typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var f=c=null,m=l,v=l=0,g=null,y=s.next();null!==m&&!y.done;v++,y=s.next()){m.index>v?(g=m,m=null):g=m.sibling;var b=p(i,m,y.value,u);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(i,m),l=a(b,l,v),null===f?c=b:f.sibling=b,f=b,m=g}if(y.done)return n(i,m),c;if(null===m){for(;!y.done;v++,y=s.next())null!==(y=d(i,y.value,u))&&(l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(m=r(i,m);!y.done;v++,y=s.next())null!==(y=h(m,i,v,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?v:y.key),l=a(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,a,s){var u="object"==typeof a&&null!==a&&a.type===S&&null===a.key;u&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case k:e:{for(c=a.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(a.type===S){n(e,u.sibling),(r=i(u,a.props.children)).return=e,e=r;break e}break;default:if(u.elementType===a.type){n(e,u.sibling),(r=i(u,a.props)).ref=ya(e,u,a),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}a.type===S?((r=Bs(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Us(a.type,a.key,a.props,null,e.mode,s)).ref=ya(e,r,a),s.return=e,e=s)}return l(e);case E:e:{for(u=a.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(a,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qs(a,e.mode,s)).return=e,e=r),l(e);if(ga(a))return m(e,r,a,s);if(W(a))return v(e,r,a,s);if(c&&ba(e,a),void 0===a&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,Q(e.type)||"Component"))}return n(e,r)}}var wa=_a(!0),ka=_a(!1),Ea={},Sa=ii(Ea),xa=ii(Ea),Ca=ii(Ea);function Oa(e){if(e===Ea)throw Error(o(174));return e}function Ta(e,t){switch(oi(Ca,t),oi(xa,e),oi(Sa,Ea),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ai(Sa),oi(Sa,t)}function Pa(){ai(Sa),ai(xa),ai(Ca)}function La(e){Oa(Ca.current);var t=Oa(Sa.current),n=he(t,e.type);t!==n&&(oi(xa,e),oi(Sa,n))}function Na(e){xa.current===e&&(ai(Sa),ai(xa))}var za=ii(0);function Ia(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ja=null,Ra=null,Ma=!1;function Fa(e,t){var n=Fs(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Aa(e){if(Ma){var t=Ra;if(t){var n=t;if(!Da(e,t)){if(!(t=qr(n.nextSibling))||!Da(e,t))return e.flags=-1025&e.flags|2,Ma=!1,void(ja=e);Fa(ja,n)}ja=e,Ra=qr(t.firstChild)}else e.flags=-1025&e.flags|2,Ma=!1,ja=e}}function Ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ja=e}function Ba(e){if(e!==ja)return!1;if(!Ma)return Ua(e),Ma=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ar(t,e.memoizedProps))for(t=Ra;t;)Fa(e,t),t=qr(t.nextSibling);if(Ua(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ra=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ra=null}}else Ra=ja?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ra=ja=null,Ma=!1}var qa=[];function Ha(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Va=w.ReactCurrentDispatcher,$a=w.ReactCurrentBatchConfig,Qa=0,Ga=null,Ya=null,Ka=null,Xa=!1,Ja=!1;function Za(){throw Error(o(321))}function eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function to(e,t,n,r,i,a){if(Qa=a,Ga=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Va.current=null===e||null===e.memoizedState?To:Po,e=n(r,i),Ja){a=0;do{if(Ja=!1,!(25>a))throw Error(o(301));a+=1,Ka=Ya=null,t.updateQueue=null,Va.current=Lo,e=n(r,i)}while(Ja)}if(Va.current=Oo,t=null!==Ya&&null!==Ya.next,Qa=0,Ka=Ya=Ga=null,Xa=!1,t)throw Error(o(300));return e}function no(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ka?Ga.memoizedState=Ka=e:Ka=Ka.next=e,Ka}function ro(){if(null===Ya){var e=Ga.alternate;e=null!==e?e.memoizedState:null}else e=Ya.next;var t=null===Ka?Ga.memoizedState:Ka.next;if(null!==t)Ka=t,Ya=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ya=e).memoizedState,baseState:Ya.baseState,baseQueue:Ya.baseQueue,queue:Ya.queue,next:null},null===Ka?Ga.memoizedState=Ka=e:Ka=Ka.next=e}return Ka}function io(e,t){return"function"==typeof t?t(e):t}function ao(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ya,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var l=i.next;i.next=a.next,a.next=l}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=a=null,u=i;do{var c=u.lane;if((Qa&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,a=r):s=s.next=f,Ga.lanes|=c,jl|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,or(r,t.memoizedState)||(zo=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function oo(e){var t=ro(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{a=e(a,l.action),l=l.next}while(l!==i);or(a,t.memoizedState)||(zo=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Qa&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(o(350))}function so(e,t,n,r){var i=Cl;if(null===i)throw Error(o(349));var a=t._getVersion,l=a(t._source),s=Va.current,u=s.useState((function(){return lo(i,t,n)})),c=u[1],f=u[0];u=Ka;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Ga;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!or(l,e)){e=n(t._source),or(f,e)||(c(e),e=os(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var s=31-qt(o),u=1<<s;r[s]|=e,o&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=os(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(h,n)&&or(m,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:f}).dispatch=c=Co.bind(null,Ga,e),u.queue=e,u.baseQueue=null,f=lo(i,t,n),u.memoizedState=u.baseState=f),f}function uo(e,t,n){return so(ro(),e,t,n)}function co(e){var t=no();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:io,lastRenderedState:e}).dispatch=Co.bind(null,Ga,e),[t.memoizedState,e]}function fo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ga.updateQueue)?(t={lastEffect:null},Ga.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function po(e){return e={current:e},no().memoizedState=e}function ho(){return ro().memoizedState}function mo(e,t,n,r){var i=no();Ga.flags|=e,i.memoizedState=fo(1|t,n,void 0,void 0===r?null:r)}function vo(e,t,n,r){var i=ro();r=void 0===r?null:r;var a=void 0;if(null!==Ya){var o=Ya.memoizedState;if(a=o.destroy,null!==r&&eo(r,o.deps))return void fo(t,n,a,r)}Ga.flags|=e,i.memoizedState=fo(1|t,n,a,r)}function go(e,t){return mo(516,4,e,t)}function yo(e,t){return vo(516,4,e,t)}function bo(e,t){return vo(4,2,e,t)}function _o(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wo(e,t,n){return n=null!=n?n.concat([e]):null,vo(4,2,_o.bind(null,t,e),n)}function ko(){}function Eo(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function So(e,t){var n=ro();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xo(e,t){var n=Ai();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=$a.transition;$a.transition=1;try{e(!1),t()}finally{$a.transition=n}}))}function Co(e,t,n){var r=as(),i=os(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ga||null!==o&&o===Ga)Ja=Xa=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=o(l,n);if(a.eagerReducer=o,a.eagerState=s,or(s,l))return}catch(e){}ls(e,i,r)}}var Oo={readContext:ta,useCallback:Za,useContext:Za,useEffect:Za,useImperativeHandle:Za,useLayoutEffect:Za,useMemo:Za,useReducer:Za,useRef:Za,useState:Za,useDebugValue:Za,useDeferredValue:Za,useTransition:Za,useMutableSource:Za,useOpaqueIdentifier:Za,unstable_isNewReconciler:!1},To={readContext:ta,useCallback:function(e,t){return no().memoizedState=[e,void 0===t?null:t],e},useContext:ta,useEffect:go,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,mo(4,2,_o.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=no();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=no();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Co.bind(null,Ga,e),[r.memoizedState,e]},useRef:po,useState:co,useDebugValue:ko,useDeferredValue:function(e){var t=co(e),n=t[0],r=t[1];return go((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=co(!1),t=e[0];return po(e=xo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=no();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},so(r,e,t,n)},useOpaqueIdentifier:function(){if(Ma){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(o(355))})),n=co(t)[1];return 0==(2&Ga.mode)&&(Ga.flags|=516,fo(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return co(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Po={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:wo,useLayoutEffect:bo,useMemo:So,useReducer:ao,useRef:ho,useState:function(){return ao(io)},useDebugValue:ko,useDeferredValue:function(e){var t=ao(io),n=t[0],r=t[1];return yo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=ao(io)[0];return[ho().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return ao(io)[0]},unstable_isNewReconciler:!1},Lo={readContext:ta,useCallback:Eo,useContext:ta,useEffect:yo,useImperativeHandle:wo,useLayoutEffect:bo,useMemo:So,useReducer:oo,useRef:ho,useState:function(){return oo(io)},useDebugValue:ko,useDeferredValue:function(e){var t=oo(io),n=t[0],r=t[1];return yo((function(){var t=$a.transition;$a.transition=1;try{r(e)}finally{$a.transition=t}}),[e]),n},useTransition:function(){var e=oo(io)[0];return[ho().current,e]},useMutableSource:uo,useOpaqueIdentifier:function(){return oo(io)[0]},unstable_isNewReconciler:!1},No=w.ReactCurrentOwner,zo=!1;function Io(e,t,n,r){t.child=null===e?ka(t,null,n,r):wa(t,e.child,n,r)}function jo(e,t,n,r,i){n=n.render;var a=t.ref;return ea(t,i),r=to(e,t,n,r,a,i),null===e||zo?(t.flags|=1,Io(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ro(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!=typeof o||Ds(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Mo(e,t,o,r,i,a))}return o=e.child,0==(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,a):(t.flags|=1,(e=As(o,r)).ref=t.ref,e.return=t,t.child=e)}function Mo(e,t,n,r,i,a){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(zo=!1,0==(a&i))return t.lanes=e.lanes,el(e,t,a);0!=(16384&e.flags)&&(zo=!0)}return Ao(e,t,n,r,a)}function Fo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return Io(e,t,i,n),t.child}function Do(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ao(e,t,n,r,i){var a=di(n)?ci:si.current;return a=fi(t,a),ea(t,i),n=to(e,t,n,r,a,i),null===e||zo?(t.flags|=1,Io(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Uo(e,t,n,r,i){if(di(n)){var a=!0;vi(t)}else a=!1;if(ea(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ha(t,n,r),va(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;"object"==typeof u&&null!==u?u=ta(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==r||s!==u)&&ma(t,o,r,u),na=!1;var d=t.memoizedState;o.state=d,sa(t,r,o,i),s=t.memoizedState,l!==r||d!==s||ui.current||na?("function"==typeof c&&(fa(t,n,c,r),s=t.memoizedState),(l=na||pa(t,n,l,r,d,s,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4)):("function"==typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,ia(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),o.props=u,f=t.pendingProps,d=o.context,"object"==typeof(s=n.contextType)&&null!==s?s=ta(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(l!==f||d!==s)&&ma(t,o,r,s),na=!1,d=t.memoizedState,o.state=d,sa(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||ui.current||na?("function"==typeof p&&(fa(t,n,p,r),h=t.memoizedState),(u=na||pa(t,n,u,r,d,h,s))?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):("function"!=typeof o.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Bo(e,t,n,r,a,i)}function Bo(e,t,n,r,i,a){Do(e,t);var o=0!=(64&t.flags);if(!r&&!o)return i&&gi(t,n,!1),el(e,t,a);r=t.stateNode,No.current=t;var l=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,l,a)):Io(e,t,l,a),t.memoizedState=r.state,i&&gi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Ta(e,t.containerInfo)}var qo,Ho,Vo,$o={dehydrated:null,retryLane:0};function Qo(e,t,n){var r,i=t.pendingProps,a=za.current,o=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),oi(za,1&a),null===e?(void 0!==i.fallback&&Aa(t),e=i.children,a=i.fallback,o?(e=Go(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,e):"number"==typeof i.unstable_expectedLoadTime?(e=Go(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$o,t.lanes=33554432,e):((n=Ws({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=Ko(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=$o,i):(n=Yo(e,t,i.children,n),t.memoizedState=null,n))}function Go(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Ws(t,i,0,null),n=Bs(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Yo(e,t,n,r){var i=e.child;return e=i.sibling,n=As(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ko(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:n};return 0==(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=l,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=As(o,l),null!==e?r=As(e,r):(r=Bs(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Jo(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Zo(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Io(e,t,r.children,n),0!=(2&(r=za.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xo(e,n);else if(19===e.tag)Xo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(oi(za,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ia(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Jo(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ia(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Jo(t,!0,n,null,a,t.lastEffect);break;case"together":Jo(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=As(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=As(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ma)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Pa(),ai(ui),ai(si),Ha(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ba(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Na(t);var a=Oa(Ca.current);if(n=t.type,null!==e&&null!=t.stateNode)Ho(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Oa(Sa.current),Ba(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)xr(wr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,l),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xr("invalid",r);break;case"textarea":se(r,l),xr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(a=l[u],"children"===u?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):s.hasOwnProperty(u)&&null!=a&&"onScroll"===u&&xr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,qo(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),a=r;break;case"iframe":case"object":case"embed":xr("load",e),a=r;break;case"video":case"audio":for(a=0;a<wr.length;a++)xr(wr[a],e);a=r;break;case"source":xr("error",e),a=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),a=r;break;case"details":xr("toggle",e),a=r;break;case"input":ee(e,r),a=Z(e,r),xr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),xr("invalid",e);break;case"textarea":se(e,r),a=le(e,r),xr("invalid",e);break;default:a=r}Ee(n,a);var c=a;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&xr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?oe(e,!!r.multiple,l,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Rr)}Dr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Vo(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));n=Oa(Ca.current),Oa(Sa.current),Ba(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return ai(za),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ba(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&za.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Cl||0==(134217727&jl)&&0==(134217727&Rl)||fs(Cl,Tl))),(r||n)&&(t.flags|=4),null);case 4:return Pa(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(ai(za),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ia(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oi(za,1&za.current|2),t.child}e=e.sibling}null!==r.tail&&Di()>Al&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ia(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ma)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Di()-r.renderingStartTime>Al&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Di(),n.sibling=null,t=za.current,oi(za,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Pa(),ai(ui),ai(si),Ha(),0!=(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Na(e),null;case 13:return ai(za),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ai(za),null;case 4:return Pa(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function al(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ho=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Oa(Sa.current);var o,l=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),l=[];break;case"option":a=ae(e,a),r=ae(e,r),l=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":a=le(e,a),r=le(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var u=a[f];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Vo=function(e,t,n,r){n!==r&&(t.flags|=4)};var ol="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=aa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Hl=r),al(0,t)},n}function sl(e,t,n){(n=aa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return al(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),al(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Is(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ua(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}ua(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Dr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(yi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){Is(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Is(t,e)}break;case 5:cl(t);break;case 4:yl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function gl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function yl(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var l=a[i],s=a[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ge(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Dl=Di(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(o(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,xl=0,Cl=null,Ol=null,Tl=0,Pl=0,Ll=ii(0),Nl=0,zl=null,Il=0,jl=0,Rl=0,Ml=0,Fl=null,Dl=0,Al=1/0;function Ul(){Al=Di()+500}var Bl,Wl=null,ql=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function as(){return 0!=(48&xl)?Di():-1!==es?es:es=Di()}function os(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Ai()?1:2;if(0===ts&&(ts=Il),0!==Vi.transition){0!==ns&&(ns=null!==Fl?Fl.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ai(),0!=(4&xl)&&98===e?e=At(12,ts):e=At(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(o(185));if(null===(e=ss(e,t)))return null;Wt(e,t,n),e===Cl&&(Rl|=t,4===Nl&&fs(e,Tl));var r=Ai();1===t?0!=(8&xl)&&0==(48&xl)?ds(e):(us(e,n),0===xl&&(Ul(),qi())):(0==(4&xl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Fl=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-qt(l),u=1<<s,c=a[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Rt;a[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=Ft(e,e===Cl?Tl:0),t=Rt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===ji?(ji=[n],Ri=wi(Oi,Hi)):ji.push(n),n=zi):14===t?n=Wi(99,ds.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&xl))throw Error(o(327));var t=e.callbackNode;if(Ts()&&e.callbackNode!==t)return null;var n=Ft(e,e===Cl?Tl:0);if(0===n)return null;var r=n,i=xl;xl|=16;var a=bs();for(Cl===e&&Tl===r||(Ul(),gs(e,r));;)try{ks();break}catch(t){ys(e,t)}if(Xi(),El.current=a,xl=i,null!==Ol?r=0:(Cl=null,Tl=0,r=Nl),0!=(Il&Rl))gs(e,0);else if(0!==r){if(2===r&&(xl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Dt(e))&&(r=_s(e,n))),1===r)throw t=zl,gs(e,0),fs(e,n),us(e,Di()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:xs(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Dl+500-Di())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){as(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(xs.bind(null,e),r);break}xs(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-qt(n);a=1<<l,(l=r[l])>i&&(i=l),n&=~a}if(n=i,10<(n=(120>(n=Di()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(xs.bind(null,e),n);break}xs(e);break;case 5:xs(e);break;default:throw Error(o(329))}}return us(e,Di()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&xl))throw Error(o(327));if(Ts(),e===Cl&&0!=(e.expiredLanes&Tl)){var t=Tl,n=_s(e,t);0!=(Il&Rl)&&(n=_s(e,t=Ft(e,t)))}else n=_s(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(xl|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Dt(e))&&(n=_s(e,t))),1===n)throw n=zl,gs(e,0),fs(e,t),us(e,Di()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e),us(e,Di()),null}function ps(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}}function hs(e,t){var n=xl;xl&=-2,xl|=8;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}}function ms(e,t){oi(Ll,Pl),Pl|=t,Il|=t}function vs(){Pl=Ll.current,ai(Ll)}function gs(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Pa(),ai(ui),ai(si),Ha();break;case 5:Na(r);break;case 4:Pa();break;case 13:case 19:ai(za);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Cl=e,Ol=As(e.current,null),Tl=Pl=Il=t,Nl=0,zl=null,Ml=Rl=jl=0}function ys(e,t){for(;;){var n=Ol;try{if(Xi(),Va.current=Oo,Xa){for(var r=Ga.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Xa=!1}if(Qa=0,Ka=Ya=Ga=null,Ja=!1,Sl.current=null,null===n||null===n.return){Nl=1,zl=t,Ol=null;break}e:{var a=e,o=n.return,l=n,s=t;if(t=Tl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&za.current),d=o;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var g=new Set;g.add(u),d.updateQueue=g}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=aa(-1,1);y.tag=2,oa(l,y)}l.lanes|=1;break e}s=void 0,l=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new ol,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=js.bind(null,a,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=o;do{switch(d.tag){case 3:a=s,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ll(0,a,t));break e;case 1:a=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,sl(d,a,t));break e}}d=d.return}while(null!==d)}Ss(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Oo,null===e?Oo:e}function _s(e,t){var n=xl;xl|=16;var r=bs();for(Cl===e&&Tl===t||gs(e,t);;)try{ws();break}catch(t){ys(e,t)}if(Xi(),xl=n,El.current=r,null!==Ol)throw Error(o(261));return Cl=null,Tl=0,Nl}function ws(){for(;null!==Ol;)Es(Ol)}function ks(){for(;null!==Ol&&!Ei();)Es(Ol)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?Ss(e):Ol=t,Sl.current=null}function Ss(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Ol=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Ol=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xs(e){var t=Ai();return Bi(99,Cs.bind(null,e,t)),null}function Cs(e,t){do{Ts()}while(null!==Ql);if(0!=(48&xl))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<a;){var u=31-qt(a),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,a&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Cl&&(Ol=Cl=null,Tl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=xl,xl|=32,Sl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,g=null;t:for(;;){for(var y;v!==s||0!==a&&3!==v.nodeType||(d=f+a),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)g=v,v=y;for(;;){if(v===l)break t;if(g===s&&++h===a&&(d=f),g===u&&++m===c&&(p=f),null!==(y=v.nextSibling))break;g=(v=g).parentNode}v=y}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Fr={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,Wl=r;do{try{Os()}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);rs=null,Wl=r;do{try{for(l=e;null!==Wl;){var b=Wl.flags;if(16&b&&ge(Wl.stateNode,""),128&b){var _=Wl.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:gl(Wl),Wl.flags&=-3;break;case 6:gl(Wl),Wl.flags&=-3,bl(Wl.alternate,Wl);break;case 1024:Wl.flags&=-1025;break;case 1028:Wl.flags&=-1025,bl(Wl.alternate,Wl);break;case 4:bl(Wl.alternate,Wl);break;case 8:yl(l,s=Wl);var k=s.alternate;ml(s),null!==k&&ml(k)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(w=Fr,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),a=cr(b,l),s&&a&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(a.node,a.offset)):(_.setEnd(a.node,a.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Fr=Mr=null,e.current=n,Wl=r;do{try{for(b=e;null!==Wl;){var E=Wl.flags;if(36&E&&dl(b,Wl.alternate,Wl),128&E){_=void 0;var S=Wl.ref;if(null!==S){var x=Wl.stateNode;switch(Wl.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(o(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,Ii(),xl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(Wl=r;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,8&Wl.flags&&((E=Wl).sibling=null,E.stateNode=null),Wl=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(yi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Di()),ql)throw ql=!1,e=Hl,Hl=null,e;return 0!=(8&xl)||qi(),null}function Os(){for(;null!==Wl;){var e=Wl.alternate;is||null===rs||(0!=(8&Wl.flags)?Ze(Wl,rs)&&(is=!0):13===Wl.tag&&wl(e,Wl)&&Ze(Wl,rs)&&(is=!0));var t=Wl.flags;0!=(256&t)&&fl(e,Wl),0==(512&t)||$l||($l=!0,Wi(97,(function(){return Ts(),null}))),Wl=Wl.nextEffect}}function Ts(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ts(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,Wi(97,(function(){return Ts(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&xl))throw Error(o(331));var t=xl;xl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===a)throw Error(o(330));Is(a,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===a)throw Error(o(330));Is(a,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return xl=t,qi(),!0}function zs(e,t,n){oa(e,t=ll(0,t=il(n,t),1)),t=as(),null!==(e=ss(e,1))&&(Wt(e,1,t),us(e,t))}function Is(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(oa(n,i),i=as(),null!==(n=ss(n,1)))Wt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function js(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=as(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(Tl&n)===n&&(4===Nl||3===Nl&&(62914560&Tl)===Tl&&500>Di()-Dl?gs(e,0):Ml|=n),us(e,t)}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Ai()?1:2:(0===ts&&(ts=Il),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=as(),null!==(e=ss(e,t))&&(Wt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fs(e,t,n,r){return new Ms(e,t,n,r)}function Ds(e){return!(!(e=e.prototype)||!e.isReactComponent)}function As(e,t){var n=e.alternate;return null===n?((n=Fs(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,a){var l=2;if(r=e,"function"==typeof e)Ds(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bs(n.children,i,a,t);case M:l=8,i|=16;break;case x:l=8,i|=1;break;case C:return(e=Fs(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case L:return(e=Fs(13,n,t,i)).type=L,e.elementType=L,e.lanes=a,e;case N:return(e=Fs(19,n,t,i)).elementType=N,e.lanes=a,e;case F:return Ws(n,i,a,t);case D:return(e=Fs(24,n,t,i)).elementType=D,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case T:l=9;break e;case P:l=11;break e;case z:l=14;break e;case I:l=16,r=null;break e;case j:l=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Fs(l,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Bs(e,t,n,r){return(e=Fs(7,e,r,t)).lanes=n,e}function Ws(e,t,n,r){return(e=Fs(23,e,r,t)).elementType=F,e.lanes=n,e}function qs(e,t,n){return(e=Fs(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,a=as(),l=os(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=aa(a,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oa(i,t),ls(i,l,a),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=Fs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ra(t),e[Yr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(o);l.call(e)}}Qs(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(o);s.call(e)}}hs((function(){Qs(t,o,e,i)}))}return Gs(o)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(o(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)zo=!0;else{if(0==(n&r)){switch(zo=!1,t.tag){case 3:Wo(t),Wa();break;case 5:La(t);break;case 1:di(t.type)&&vi(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;oi(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qo(e,t,n):(oi(za,1&za.current),null!==(t=el(e,t,n))?t.sibling:null);oi(za,1&za.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Zo(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),oi(za,za.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(e,t,n)}return el(e,t,n)}zo=0!=(16384&e.flags)}else zo=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),ea(t,n),i=to(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var a=!0;vi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ra(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fa(t,r,l,e),i.updater=da,t.stateNode=i,i._reactInternals=t,va(t,r,e,n),t=Bo(null,t,r,!0,a,n)}else t.tag=0,Io(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"==typeof e)return Ds(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),a){case 0:t=Ao(null,t,i,e,n);break e;case 1:t=Uo(null,t,i,e,n);break e;case 11:t=jo(null,t,i,e,n);break e;case 14:t=Ro(null,t,i,$i(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ao(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Uo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ia(e,t),sa(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=el(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ra=qr(t.stateNode.containerInfo.firstChild),ja=t,a=Ma=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=ka(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Io(e,t,r,n),Wa();t=t.child}return t;case 5:return La(t),null===e&&Aa(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,Ar(r,i)?l=null:null!==a&&Ar(r,a)&&(t.flags|=16),Do(e,t),Io(e,t,l,n),t.child;case 6:return null===e&&Aa(t),null;case 13:return Qo(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):Io(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,jo(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Io(e,t,t.pendingProps,n),t.child;case 8:case 12:return Io(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,a=i.value;var s=t.type._context;if(oi(Qi,s._currentValue),s._currentValue=a,null!==l)if(s=l.value,0===(a=or(s,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&a)){1===s.tag&&((c=aa(-1,n&-n)).tag=2,oa(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Io(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,ea(t,n),r=r(i=ta(i,a.unstable_observedBits)),t.flags|=1,Io(e,t,r,n),t.child;case 14:return a=$i(i=t.type,t.pendingProps),Ro(e,t,i,a=$i(i.type,a),r,n);case 15:return Mo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,ea(t,n),ha(t,r,i),va(t,r,i,n),Bo(null,t,r,!0,e,n);case 19:return Zo(e,t,n);case 23:case 24:return Fo(e,t,n)}throw Error(o(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,as()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,as()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=as(),n=os(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},ze=ps,Ie=function(e,t,n,r,i){var a=xl;xl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(xl=a)&&(Ul(),qi())}},je=function(){0==(49&xl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Di())}))}qi()}(),Ts())},Re=function(e,t){var n=xl;xl|=2;try{return e(t)}finally{0===(xl=n)&&(Ul(),qi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Ts,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{yi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xl;if(0!=(48&n))return e(t);xl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{xl=n,qi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(o(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(o(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(o(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";
33
  /** @license React v0.20.2
34
  * scheduler.production.min.js
35
  *
37
  *
38
  * This source code is licensed under the MIT license found in the
39
  * LICENSE file in the root directory of this source tree.
40
+ */var r,i,a,o;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+b;try{g(!0,e)?k.postMessage(null):(v=!1,g=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,k.postMessage(null))},i=function(e,n){y=p((function(){e(t.unstable_now())}),n)},a=function(){h(y),y=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],l=a+1,s=e[l];if(void 0!==o&&0>C(o,n))void 0!==s&&0>C(s,o)?(e[r]=s,e[l]=n,r=l):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==s&&0>C(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],T=[],P=1,L=null,N=3,z=!1,I=!1,j=!1;function R(e){for(var t=S(T);null!==t;){if(null===t.callback)x(T);else{if(!(t.startTime<=e))break;x(T),t.sortIndex=t.expirationTime,E(O,t)}t=S(T)}}function M(e){if(j=!1,R(e),!I)if(null!==S(O))I=!0,r(F);else{var t=S(T);null!==t&&i(M,t.startTime-e)}}function F(e,n){I=!1,j&&(j=!1,a()),z=!0;var r=N;try{for(R(n),L=S(O);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=L.callback;if("function"==typeof o){L.callback=null,N=L.priorityLevel;var l=o(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===S(O)&&x(O),R(n)}else x(O);L=S(O)}if(null!==L)var s=!0;else{var u=S(T);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var D=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||z||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,o){var l=t.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0<o?l+o:l:o=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>l?(e.sortIndex=o,E(T,e),null===S(O)&&e===S(T)&&(j?a():j=!0,i(M,o-l))):(e.sortIndex=s,E(O,e),I||z||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=S(n(27)),o=S(n(0)),l=S(n(2)),s=S(n(32)),u=S(n(5)),c=S(n(20)),f=S(n(33)),d=n(34),p=S(d),h=S(n(35)),m=S(n(36)),v=S(n(60)),g=S(n(61)),y=S(n(63)),b=S(n(64)),_=S(n(65)),w=S(n(66)),k=S(n(69)),E=S(n(70));function S(e){return e&&e.__esModule?e:{default:e}}var x=n(71),C=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.providers=["Unsplash","Pixabay"],n.provider=n.props.provider,n.api_provider=l.default[n.provider],n.arr_key=n.api_provider.arr_key,n.api_key=instant_img_localize[n.provider+"_app_id"],n.api_url=""+n.api_provider.photo_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.search_api_url=""+n.api_provider.search_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.results=(0,p.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,filters:s.default[n.provider].filters,search_filters:s.default[n.provider].search,restapi_error:!1,api_lightbox:!1},n.filters={},n.search_filters={},n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.view="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.delay=250,n.photoTarget=o.default.createRef(),n.providerNav=o.default.createRef(),n.controlNav=o.default.createRef(),n.photoSearch=o.default.createRef(),n.filterGroups=o.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,S;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.container.classList.add("loading"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"doSearch",value:function(e){var t=this,n=this.photoSearch.current,r="term";this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.toggleFilters();var i=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term+(0,c.default)(this.provider);"id:"===e.substring(0,3)&&(r="id",e=e.replace("id:",""),i=(0,h.default)(this.provider,e,this.api_provider.photo_api,this.api_provider.api_query_var,this.api_key));var a=(0,f.default)(this.search_filters);i="&"!==a?""+i+a:i,fetch(i).then((function(e){return e.json()})).then((function(e){if("term"===r){var i=(0,p.default)(t.provider,t.arr_key,e,!0);t.total_results=e.total,t.checkTotalResults(i.length),t.results=i,t.setState({results:t.results,search_filters:s.default[t.provider].search})}if("id"===r&&e){var a=[],o=(0,d.getResultById)(t.provider,t.arr_key,e,!0);e.errors?(t.total_results=0,t.checkTotalResults("0")):(a.push(o),t.total_results=1,t.checkTotalResults("1")),t.results=a,t.setState({results:t.results})}setTimeout((function(){n.classList.remove("searching"),t.photoTarget.current.classList.remove("loading"),t.isLoading=!1}),t.delay)})).catch((function(e){console.log(e),n.classList.remove("searching"),t.isLoading=!1,t.total_results=0,t.isDone=!0,this.photoTarget.current.classList.remove("loading"),this.isLoading=!1,t.results=[],t.setState({results:t.results})}))}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.search_filters={},this.toggleFilters()}},{key:"controlsClick",value:function(e,t){var n=e.currentTarget;this.view=t,n.classList.contains("active")||this.getPhotos(t)}},{key:"getPhotos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;if(!this.isLoading||t){this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=e,this.results=[],this.clearSearch();var i=(0,f.default)(this.filters),a=this.api_url+"&page="+this.page+"&"+(0,c.default)(this.provider)+i;fetch(a).then((function(e){return e.json()})).then((function(e){var t=(0,p.default)(r.provider,r.arr_key,e);r.checkTotalResults(t.length),r.results=t,n?r.setState({results:t,filters:s.default[r.provider].filters}):r.setState({results:t}),setTimeout((function(){r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}),r.delay)})).catch((function(e){console.log(e),r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}))}}},{key:"loadMorePhotos",value:function(){var e=this;this.page=parseInt(this.page)+1,this.container.classList.add("loading"),this.isLoading=!0;var t=this.api_url+"&page="+this.page+"&",n="";this.is_search?(t=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term,n=(0,f.default)(this.search_filters)):n=(0,f.default)(this.filters),t=n?""+t+(0,c.default)(this.provider)+n:t,fetch(t).then((function(e){return e.json()})).then((function(t){var n=(0,p.default)(e.provider,e.arr_key,t,e.is_search);e.is_search&&"unsplash"===e.provider&&(n=t.results),n&&n.map((function(t){e.results.push(t)})),e.checkTotalResults(t.length),e.setState({results:e.results}),e.isLoading=!1})).catch((function(t){console.log(t),e.isLoading=!1}))}},{key:"filterPhotos",value:function(e,t){this.filters[e]&&"#"===t||""===t?delete this.filters[e]:this.filters[e]=t,this.getPhotos(this.view,!0)}},{key:"filterSearch",value:function(e,t){this.search_filters[e]&&"#"===t||""===t?delete this.search_filters[e]:this.search_filters[e]=t,this.doSearch(this.search_term)}},{key:"toggleFilters",value:function(){var e=this,t=this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");t&&t.forEach((function(t){t.disabled=!!e.is_search})),this.is_search?this.filterGroups.current.classList.add("inactive"):this.filterGroups.current.classList.remove("inactive")}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,a,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!l.default[r].requires_key){e.next=14;break}return e.next=7,fetch((0,u.default)(r));case 7:if(i=e.sent,a=i.ok,o=i.status,a&&400!==o&&401!==o&&500!==o){e.next=14;break}return this.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 14:this.provider=r,this.api_provider=l.default[this.provider],this.filters={},this.search_filters={},this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.arr_key=this.api_provider.arr_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.api_url=""+this.api_provider.photo_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.search_api_url=""+this.api_provider.search_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.view="latest",this.getPhotos(this.view,!0,!0);case 26:case"end":return e.stop()}}),e,this)})),S=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,a){try{var o=e[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return S.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;x(t,(function(){e.msnry=new a.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-400&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0==e}},{key:"doneLoading",value:function(){var e=this;setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),e.delay)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),a=Math.round(r.top),o=this.container.querySelector("#tooltip");o.classList.remove("over"),n.classList.contains("tooltip--above")?o.classList.add("above"):o.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),o.innerHTML=n.dataset.title,i=i-o.offsetWidth+n.offsetWidth+5,o.style.left=i+"px",o.style.top=a+"px",setTimeout((function(){o.classList.add("over")}),t.delay)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.doneLoading()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.doneLoading(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&o.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return o.default.createElement("div",{key:"provider-"+n},o.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},o.default.createElement("span",null,t),l.default[t.toLowerCase()].new&&o.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&o.default.createElement(m.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),o.default.createElement("div",{className:"control-nav",ref:this.controlNav},o.default.createElement("div",{className:"control-nav--filters-wrap",ref:this.filterGroups},Object.entries(this.state.filters).length&&o.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.filters).map((function(t,n){var i=r(t,2),a=i[0],l=i[1];return o.default.createElement(g.default,{key:a+"-"+n,filterKey:a,provider:e.provider,data:l,function:e.filterPhotos.bind(e)})})))),o.default.createElement("div",{className:"control-nav--search search-field",id:"search-bar"},o.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},o.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),o.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),o.default.createElement("button",{type:"submit",id:"photo-search-submit"},o.default.createElement("i",{className:"fa fa-search"})),o.default.createElement(k.default,{container:this.container,getPhotos:this.getPhotos.bind(this),isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&o.default.createElement(v.default,null),this.is_search&&"gutenberg"!==this.editor&&o.default.createElement("div",{className:"search-results-header"},o.default.createElement("h2",null,this.search_term),o.default.createElement("div",{className:"search-results-header--text"},this.total_results+" "+instant_img_localize.search_results," ",o.default.createElement("strong",null,""+this.search_term)," - ",o.default.createElement("button",{title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},instant_img_localize.clear_search)),Object.entries(this.state.search_filters).length&&o.default.createElement("div",{className:"control-nav--filters-wrap"},o.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.search_filters).map((function(t,n){var i=r(t,2),a=i[0],l=i[1];return o.default.createElement(g.default,{key:a+"-"+n,filterKey:a,provider:e.provider,data:l,function:e.filterSearch.bind(e)})}))))),o.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return o.default.createElement(w.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&o.default.createElement(_.default,null),o.default.createElement(y.default,null),o.default.createElement(b.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),o.default.createElement(E.default,null))}}]),t}(o.default.Component);t.default=C},function(e,t,n){var r,i,a;
41
  /*!
42
  * Masonry v4.2.2
43
  * Cascading grid layout library
44
  * https://masonry.desandro.com
45
  * MIT License
46
  * by David DeSandro
47
+ */window,i=[n(28),n(4)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,a=i/r,o=r-i%r;a=Math[o&&o<1?"round":"floor"](a),this.cols=Math.max(a,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},a=r.y+e.size.outerHeight,o=n+r.col,l=r.col;l<o;l++)this.colYs[l]=a;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,a=i+n.outerWidth,o=Math.floor(i/this.columnWidth);o=Math.max(0,o);var l=Math.floor(a/this.columnWidth);l-=a%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=o;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){var r,i;
48
  /*!
49
  * Outlayer v2.1.1
50
  * the brains and guts of a layout library
51
  * MIT license
52
+ */!function(a,o){"use strict";r=[n(3),n(4),n(29),n(31)],void 0===(i=function(e,t,n,r){return function(e,t,n,r,i){var a=e.console,o=e.jQuery,l=function(){},s=0,u={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,o&&(this.$element=o(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var i=++s;this.element.outlayerGUID=i,u[i]=this,this._create(),this._getOption("initLayout")&&this.layout()}else a&&a.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(f,t.prototype),f.option=function(e){r.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],i=0;i<t.length;i++){var a=new n(t[i],this);r.push(a)}return r},f._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(e){return e.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var r,i=this.options[e];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[e]=r?n(r)[t]:i):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},f.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;return(n=parseFloat(n))*(p[r]||1)}(e),this.stagger;this.stagger=0},f._positionItem=function(e,t,n,r,i){r?e.goTo(t,n):(e.stagger(i*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=l,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var i=t.length;if(t&&i){var a=0;t.forEach((function(t){t.once(e,o)}))}else r();function o(){++a==i&&r()}},f.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),o)if(this.$element=this.$element||o(this.element),t){var i=o.Event(t);i.type=e,this.$element.trigger(i,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},f._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=l,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,i=n(e);return{left:t.left-r.left-i.marginLeft,top:t.top-r.top-i.marginTop,right:r.right-t.right-i.marginRight,bottom:r.bottom-t.bottom-i.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},c.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},c.create=function(e,t){var n=d(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},c.compatOptions),n.namespace=e,n.data=c.data,n.Item=d(i),r.htmlInit(n,e),o&&o.bridget&&o.bridget(e,n),n};var p={ms:1,s:1e3};return c.Item=i,c}(a,e,t,n,r)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(a,o){r=[n(30)],void 0===(i=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var i=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&i.push(e);for(var n=e.querySelectorAll(r),a=0;a<n.length;a++)i.push(n[a])}else i.push(e)})),i},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],i=t+"Timeout";e.prototype[t]=function(){var e=this[i];clearTimeout(e);var t=arguments,a=this;this[i]=setTimeout((function(){r.apply(a,t),delete a[i]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var i=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var a=n.toDashed(r),o="data-"+a,l=document.querySelectorAll("["+o+"]"),s=document.querySelectorAll(".js-"+a),u=n.makeArray(l).concat(n.makeArray(s)),c=o+"-options",f=e.jQuery;u.forEach((function(e){var n,a=e.getAttribute(o)||e.getAttribute(c);try{n=a&&JSON.parse(a)}catch(t){return void(i&&i.error("Error parsing "+o+" on "+e.className+": "+t))}var l=new t(e,n);f&&f.data(e,r,l)}))}))},n}(a,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(a,o){"use strict";void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},function(e,t,n){var r,i,a;window,i=[n(3),n(4)],void 0===(a="function"==typeof(r=function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",i="string"==typeof n.transform?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],o={transform:i,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var s=l.prototype=Object.create(e.prototype);s.constructor=l,s._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},s.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.getSize=function(){this.size=t(this.element)},s.css=function(e){var t=this.element.style;for(var n in e)t[o[n]||n]=e[n]},s.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],i=e[n?"top":"bottom"],a=parseFloat(r),o=parseFloat(i),l=this.layout.size;-1!=r.indexOf("%")&&(a=a/100*l.width),-1!=i.indexOf("%")&&(o=o/100*l.height),a=isNaN(a)?0:a,o=isNaN(o)?0:o,a-=t?l.paddingLeft:l.paddingRight,o-=n?l.paddingTop:l.paddingBottom,this.position.x=a,this.position.y=o},s.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),i=n?"paddingLeft":"paddingRight",a=n?"left":"right",o=n?"right":"left",l=this.position.x+e[i];t[a]=this.getXValue(l),t[o]="";var s=r?"paddingTop":"paddingBottom",u=r?"top":"bottom",c=r?"bottom":"top",f=this.position.y+e[s];t[u]=this.getYValue(f),t[c]="",this.css(t),this.emitEvent("layout",[this])},s.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},s.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},s._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,i=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!i||this.isTransitioning){var a=e-n,o=t-r,l={};l.transform=this.getTranslate(a,o),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},s.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},s.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},s.moveTo=s._transitionTo,s.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},s._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},s.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+i.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));s.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},s.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},s.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};s.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=c[e.propertyName]||e.propertyName;delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this])}},s.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},s._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return s.removeTransitionStyles=function(){this.css(f)},s.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},s.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},s.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},s.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},s.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},s.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},s.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},s.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?r.apply(t,i):r)||(e.exports=a)},function(e,t,n){"use strict";e.exports={unsplash:{filters:{order_by:{label:"orderby",default:"latest",filters:["latest","popular","oldest"]}},search:{order_by:{label:"orderby",default:"relevance",filters:["relevance","latest"]},orientation:{label:"orientation",default:"all",filters:["all","landscape","portrait","squarish"]},color:{label:"colors",default:"all",filters:["all","black_and_white","black","white","yellow","orange","red","purple","magenta","green","teal","blue"]}}},pixabay:{filters:{order:{label:"orderby",default:"popular",filters:["latest","popular"]},image_type:{label:"type",default:"all",filters:["all","photo","illustration","vector"]},category:{label:"category",default:"all",filters:["all","backgrounds","fashion","nature","science","education","feelings","health","people","religion","places","animals","industry","computer","food","sports","transportation","travel","buildings","business","music"]},colors:{label:"colors",default:"all",filters:["all","grayscale","red","orange","yellow","green","turquoise","blue","lilac","pink","white","gray","black","brown","transparent"]},orientation:{label:"orientation",default:"all",filters:["all","horizontal","vertical"]}},search:{colors:{label:"colors",default:"all",filters:["all","grayscale","red","orange","yellow","green","turquoise","blue","lilac","pink","white","gray","black","brown","transparent"]},orientation:{label:"orientation",default:"all",filters:["all","horizontal","vertical"]}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"&"+Object.keys(e).map((function(t){return t+"="+e[t]})).join("&")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){if(!n)return[];var i=[];switch(e){case"unsplash":i=r?n[t]||[]:n||[];break;case"pixabay":i=n[t]||[]}return i},t.getResultById=function(e,t,n){if(!n)return[];var r=[];switch(e){case"unsplash":r=n||[];break;case"pixabay":r=n[t]&&n[t][0]?n[t][0]:[]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var a="";switch(e){case"unsplash":a=n+"/"+t+r+i;break;case"pixabay":a=""+n+r+i+"&id="+t}return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(37)),a=u(n(0)),o=u(n(5)),l=u(n(8)),s=u(n(41));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.lightbox=a.default.createRef(),n.provider=n.props.provider,n.api_key=instant_img_localize[n.provider+"_app_id"],n.inputRef=a.default.createRef(),n.loading=!1,n.state={status:"invalid",response:""},n.afterVerifiedAPICallback=n.props.afterVerifiedAPICallback.bind(n),n.closeAPILightbox=n.props.closeAPILightbox.bind(n),n.escFunction=n.escFunction.bind(n),n}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"handleSubmit",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,a,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=this,this.setState({status:"loading"}),(r=this.inputRef.current.value)||this.inputRef.current.focus({preventScroll:!0}),instant_img_localize[this.provider+"_app_id"]=r,e.next=8,fetch((0,o.default)(this.provider));case 8:i=e.sent,a=i.ok,u=i.status,(c=document.querySelector('input[name="instant_img_settings['+this.provider+'_api]"]'))&&(c.value=r),(0,s.default)(this.provider+"_api",r),a?(this.setState({status:"valid",response:instant_img_localize.api_success_msg}),setTimeout((function(){n.afterVerifiedAPICallback(n.provider)}),1500)):(this.setState({status:"invalid"}),(0,l.default)(this.provider,u),400!==u&&401!==u||this.setState({response:instant_img_localize.api_invalid_msg}),429===u&&this.setState({response:instant_img_localize.api_ratelimit_msg}));case 15:case"end":return e.stop()}}),e,this)})),u=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,a){try{var o=e[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return u.apply(this,arguments)})},{key:"closeLightbox",value:function(){var e=this;this.lightbox.current.classList.remove("active"),setTimeout((function(){e.closeAPILightbox(this.provider)}),250)}},{key:"bkgClick",value:function(e){e.target===this.lightbox.current&&this.closeLightbox()}},{key:"escFunction",value:function(e){27===e.keyCode&&this.closeLightbox()}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.escFunction,!1),this.lightbox.current.classList.add("active")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.escFunction,!1)}},{key:"render",value:function(){var e=this,t="invalid"===this.state.status?instant_img_localize.api_key_invalid:"";return a.default.createElement(i.default,null,a.default.createElement("div",{className:"api-lightbox",ref:this.lightbox,onClick:function(t){return e.bkgClick(t)},tabIndex:"-1"},a.default.createElement("div",null,a.default.createElement("div",null,a.default.createElement("button",{className:"api-lightbox--close",onClick:function(){return e.closeLightbox()}},"×",a.default.createElement("span",{className:"offscreen"},instant_img_localize.btnClose)),a.default.createElement("div",{className:"api-lightbox--details"},a.default.createElement("h3",{"data-provider":this.provider},this.provider),a.default.createElement("p",null,instant_img_localize[this.provider+"_api_desc"]),a.default.createElement("p",null,a.default.createElement("a",{href:instant_img_localize[this.provider+"_api_url"],target:"_blank"},instant_img_localize.get_api_key))),a.default.createElement("form",{onSubmit:function(t){return e.handleSubmit(t)}},a.default.createElement("label",{htmlFor:"key",className:"offscreen"},instant_img_localize.enter_api_key),a.default.createElement("div",{className:"api-lightbox--input-wrap"},a.default.createElement("span",{className:this.state.status,title:t&&t},"invalid"===this.state.status&&a.default.createElement("i",{className:"fa fa-exclamation-triangle","aria-hidden":"true"}),"valid"===this.state.status&&a.default.createElement("i",{className:"fa fa-check-circle","aria-hidden":"true"}),"loading"===this.state.status&&a.default.createElement("i",{className:"fa fa-spinner fa-spin","aria-hidden":"true"})),a.default.createElement("input",{type:"text",id:"key",ref:this.inputRef,placeholder:"Enter API Key",defaultValue:this.api_key})),this.state.response&&a.default.createElement("p",{className:"api-lightbox--response "+this.state.status},this.state.response),a.default.createElement("button",{type:"submit"},instant_img_localize.btnVerify))))))}}]),t}(a.default.Component);t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=n(0),c=n(18),f=n(38),d=n(73).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,l=o(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&("returnFocusOnDeactivate"!==r?"onPostDeactivate"!==r?t.tailoredFocusTrapOptions[r]=n[r]:t.onPostDeactivate=n[r]:t.returnFocusOnDeactivate=!!n[r]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=s,(n=[{key:"getDocument",value:function(){return this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0)}},{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n,r=t;if("string"==typeof t&&!(r=null===(n=this.getDocument())||void 0===n?void 0:n.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(r=t()))throw new Error("`".concat(e,"` did not return a node"));return r}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.getDocument();e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,r=t.preventScroll,i=void 0!==r&&r;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var a=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:i}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(a,a):a()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.props.active&&this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements),this.props.active&&(this.updatePreviousElement(),this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),s}(u.Component),h="undefined"==typeof Element?Function:Element;p.propTypes={active:f.bool,paused:f.bool,focusTrapOptions:f.shape({document:f.object,onActivate:f.func,onPostActivate:f.func,checkCanFocusTrap:f.func,onDeactivate:f.func,onPostDeactivate:f.func,checkCanReturnFocus:f.func,initialFocus:f.oneOfType([f.instanceOf(h),f.string,f.func,f.bool]),fallbackFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),escapeDeactivates:f.oneOfType([f.bool,f.func]),clickOutsideDeactivates:f.oneOfType([f.bool,f.func]),returnFocusOnDeactivate:f.bool,setReturnFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),allowOutsideClick:f.oneOfType([f.bool,f.func]),preventScroll:f.bool}),containerElements:f.arrayOf(f.instanceOf(h)),children:f.oneOfType([f.element,f.instanceOf(h)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},function(e,t,n){e.exports=n(39)()},function(e,t,n){"use strict";var r=n(40);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=instant_img_localize.root+"instant-images/settings/",r={setting:e,value:t},i={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};a.default.post(n,JSON.stringify(r),i).then((function(e){var t=e.data;console.log(t)})).catch((function(e){console.log(e)}))};var r,i=n(9),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(1),i=n(10),a=n(43),o=n(16);function l(e){var t=new a(e),n=i(a.prototype.request,t);return r.extend(n,a.prototype,t),r.extend(n,t),n}var s=l(n(6));s.Axios=a,s.create=function(e){return l(o(s.defaults,e))},s.Cancel=n(17),s.CancelToken=n(57),s.isCancel=n(15),s.all=function(e){return Promise.all(e)},s.spread=n(58),s.isAxiosError=n(59),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(1),i=n(11),a=n(44),o=n(45),l=n(16),s=n(55),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new a,response:new a}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!r){var c=[o,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(a),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{i=o(f)}catch(e){return Promise.reject(e)}for(;a.length;)i=i.then(a.shift(),a.shift());return i},c.prototype.getUri=function(e){return e=l(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(1);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(46),a=n(15),o=n(6);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1),i=n(6);e.exports=function(e,t,n){var a=this||i;return r.forEach(n,(function(n){e=n.call(a,e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,a,o){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(i)&&l.push("path="+i),r.isString(a)&&l.push("domain="+a),!0===o&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(51),i=n(52);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),n=r.trim(e.substr(a+1)),t){if(o[t]&&i.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(56),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},o=r.version.split(".");function l(e,t){for(var n=t?t.split("."):o,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&l(t);function o(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(o(r," has been removed in "+t));return i&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var l=e[a],s=void 0===l||o(l,a,e);if(!0!==s)throw new TypeError("option "+a+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:i}},function(e){e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')},function(e,t,n){"use strict";var r=n(17);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"error-messaging"},o.default.createElement("span",{dangerouslySetInnerHTML:{__html:""+instant_img_localize.error_restapi+instant_img_localize.error_restapi_desc}}))}}]),t}(o.default.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(62)),a=l(n(21)),o=l(n(0));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.data=n.props.data,n.default=n.data.default,n.filterKey=n.props.filterKey,n.provider=n.props.provider,n.id=n.provider+"-"+n.filterKey,n.clickHandler=n.props.function.bind(n),n.toggleMenu=n.toggleMenu.bind(n),n.closeMenuOutside=n.closeMenuOutside.bind(n),n.focusOutside=n.focusOutside.bind(n),n.escClick=n.escClick.bind(n),n.isColor="colors"===n.filterKey||"color"===n.filterKey,n.state={expanded:!1,selected:n.data.default},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"toggleMenu",value:function(e){var t=this;if(e.preventDefault(),e.currentTarget.disabled)return!1;this.state.expanded?this.setState({expanded:!1},(function(){document.removeEventListener("click",t.closeMenuOutside)})):this.setState({expanded:!0},(function(){document.addEventListener("click",t.closeMenuOutside)}))}},{key:"closeMenuOutside",value:function(e){var t=this;this.menu.contains(e.target)||this.trigger.contains(e.target)||this.setState({expanded:!1},(function(){document.removeEventListener("click",t.closeMenuOutside)}))}},{key:"focusOutside",value:function(e){this.dropdown.contains(e.target)||this.closeMenuOutside(e)}},{key:"escClick",value:function(e){"Escape"===e.key&&this.setState({expanded:!1})}},{key:"click",value:function(e,t){var n=this,r=this.state.selected!==t?t:this.default;this.setState({selected:r}),this.clickHandler(e,r),setTimeout((function(){n.trigger.click()}),100)}},{key:"convertColor",value:function(e){return"lilac"===e&&(e="DarkViolet"),"grayscale"!==e&&"black_and_white"!==e||(e="LightGray"),e}},{key:"componentDidMount",value:function(){i.init(this.dropdown,{selector:"button"}),document.addEventListener("keyup",this.focusOutside),document.addEventListener("keydown",this.escClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.focusOutside),document.removeEventListener("keydown",this.escClick)}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"filter-dropdown",id:this.id,ref:function(t){e.dropdown=t}},o.default.createElement("button",{onClick:this.toggleMenu,className:"filter-dropdown--button","aria-expanded":this.state.expanded?"true":"false",ref:function(t){e.trigger=t}},o.default.createElement("span",{className:"filter-dropdown--button-label"},instant_img_localize.filters[this.data.label]),o.default.createElement("span",{className:"filter-dropdown--button-selected"},this.state.selected,o.default.createElement("i",{className:"fa fa-caret-down","aria-hidden":"true"}))),o.default.createElement("div",{className:(0,a.default)("filter-dropdown--menu",this.state.expanded?"expanded":null),"data-key":this.filterKey,"aria-hidden":this.state.expanded?"false":"true",ref:function(t){e.menu=t}},this.data.filters&&this.data.filters.map((function(t,n){return o.default.createElement("button",{key:n,className:(0,a.default)("filter-dropdown--item",e.state.selected===t?"selected":null),onClick:function(){return e.click(e.filterKey,t)}},t.replace(/_/g," "),"all"!==t&&"transparent"!==t&&e.isColor?o.default.createElement("span",{className:"_color",style:{color:e.convertColor(t)}}):null)}))))}}]),t}(o.default.Component);t.default=s},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e,t){(t=Object.assign({},r,t)).target=e,t.next=t.next?t.next:"down",t.prev=t.prev?t.prev:"up",t.target&&t.selector&&(a(t),window.addEventListener(t.event,(function(e){i(e,t)})))};var r=n(1),i=n(2),a=n(7);n(8)},function(e,t,n){"use strict";e.exports={selector:"a",loop:!0,event:"keydown",next:"down right",prev:"up left"}},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(5),o=n(6);e.exports=function(e,t){var n=e.target,l=e.which||e.keycode,s=t.target.querySelectorAll(t.selector);s=s?Array.prototype.slice.call(s):s;var u=a(n,s);if(!s||!u)return!1;if(-1!==o(t.next,r).indexOf(l)){var c=i(n,s,"next");if(c<s.length)return s[c].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[0].focus(),e.preventDefault(),e.stopPropagation(),!1}if(-1!==o(t.prev,r).indexOf(l)){var f=i(n,s,"previous");if(f<s.length&&-1!==f)return s[f].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return s[s.length-1].focus(),e.preventDefault(),e.stopPropagation(),!1}return!0}},function(e,t,n){"use strict";e.exports={up:38,right:39,down:40,left:37,escape:27,enter:13,spacebar:32,tab:9}},function(e,t,n){"use strict";e.exports=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",r=Array.prototype.slice.call(t).indexOf(e);if(-1!==r)return"previous"===n?r-1:r+1}},function(e,t,n){"use strict";e.exports=function(e,t){return-1!==Array.prototype.slice.call(t).indexOf(e)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=e.split(" "),r=[],i=0;i<n.length;i++)r.push(t[n[i]]);return r}},function(e,t,n){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.target||!e.selector)return!1;var t=e.target.querySelectorAll(e.selector);(t=t?Array.prototype.slice.call(t):t).forEach((function(e){e.tabIndex=0}))}},function(e,t,n){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,n;if(null==this)throw new TypeError("this is null or not defined");var r=Object(this),i=r.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),n=0;n<i;){var a;n in r&&(a=r[n],e.call(t,a,n,r)),n++}})}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"loading-block"})}}]),t}(o.default.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.loadMorePhotos=n.props.loadMorePhotos.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:"load-more-wrap"},o.default.createElement("button",{type:"button",className:"button",onClick:function(){return e.loadMorePhotos()}},instant_img_localize.load_more))}}]),t}(o.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return o.default.createElement("div",{className:"no-results"},o.default.createElement("h3",null,instant_img_localize.no_results," "),o.default.createElement("p",null,instant_img_localize.no_results_desc," "))}}]),t}(o.default.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(9)),a=u(n(0)),o=u(n(2)),l=u(n(67)),s=u(n(68));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.provider=n.props.provider,n.api_provider=o.default[n.provider],n.api_key=instant_img_localize[n.provider+"_app_id"];var r=n.props.result;return n.id=r.id,n.thumb=(0,s.default)(n.provider,r,"thumb"),n.img=(0,s.default)(n.provider,r,"img"),n.full_size=(0,s.default)(n.provider,r,"full_size"),n.author=(0,s.default)(n.provider,r,"author"),n.img_title=instant_img_localize.photo_by+" "+n.author,n.filename=r.id,n.title=n.img_title,n.alt=r.alt_description?r.alt_description:null,n.alt=null===n.alt?"":n.alt,n.caption="",n.user=(0,s.default)(n.provider,r,"user"),n.name=(0,s.default)(n.provider,r,"name"),n.user_photo=(0,s.default)(n.provider,r,"user_photo"),n.user_url=(0,s.default)(n.provider,r,"user_url"),n.link=(0,s.default)(n.provider,r,"link"),n.likes=(0,s.default)(n.provider,r,"likes"),n.attribution=(0,l.default)(n.provider,n.user_url,n.name),n.view_all=instant_img_localize.view_all,n.inProgress=!1,n.container=document.querySelector(".instant-img-container"),n.showTooltip=n.props.showTooltip.bind(n),n.hideTooltip=n.props.hideTooltip.bind(n),n.setAsFeaturedImage=!1,n.insertIntoPost=!1,n.is_media_router=n.props.mediaRouter,n.is_block_editor=n.props.blockEditor,n.SetFeaturedImage=n.props.SetFeaturedImage,n.InsertImage=n.props.InsertImage,n.displayGutenbergControl=!!n.is_block_editor,n.state={filename:n.filename,title:n.title,alt:n.alt,caption:n.caption},n.photo=a.default.createRef(),n.photoUpload=a.default.createRef(),n.editScreen=a.default.createRef(),n.captionRef=a.default.createRef(),n.noticeMsg=a.default.createRef(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"download",value:function(e){e.preventDefault();var t=this,n=e.currentTarget,r=t.photo.current,a=t.noticeMsg.current;if(n.classList.contains("upload")||(n=t.photoUpload.current),n.classList.contains("success")||this.inProgress)return!1;this.inProgress=!0,n.classList.add("uploading"),r.classList.add("in-progress"),a.innerHTML=instant_img_localize.saving,setTimeout((function(){a.innerHTML=instant_img_localize.resizing,setTimeout((function(){a.innerHTML=instant_img_localize.resizing_still}),5e3)}),3e3);var o=instant_img_localize.root+"instant-images/download/",l={id:n.getAttribute("data-id"),image_url:n.getAttribute("data-url"),filename:n.getAttribute("data-id")+".jpg",custom_filename:n.getAttribute("data-filename"),title:n.getAttribute("data-title"),alt:n.getAttribute("data-alt"),caption:n.getAttribute("data-caption"),parent_id:instant_img_localize.parent_id},s={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};i.default.post(o,JSON.stringify(l),s).then((function(e){var i=e.data;if(i){var o=i.success,l=i.id,s=i.attachment,u=i.admin_url,c=i.msg;if(o){var f=u+"post.php?post="+s.id+"&action=edit";t.uploadComplete(n,r,c,f,s.id),"unsplash"===t.provider&&t.triggerUnsplashDownload(l),t.displayGutenbergControl&&t.setAsFeaturedImage&&(t.SetFeaturedImage(s.id),t.setAsFeaturedImage=!1,t.closeMediaModal()),t.displayGutenbergControl&&t.insertIntoPost&&(s.url&&(t.InsertImage(s.url,s.caption,s.alt),t.closeMediaModal()),t.insertIntoPost=!1),"true"!==t.container.dataset.mediaPopup||t.is_block_editor||(window.location="media-upload.php?type=image&tab=library&attachment_id="+s.id)}else t.uploadError(n,r,a,c)}else t.uploadError(n,r,a,instant_img_localize.error_upload)})).catch((function(e){console.log(e)}))}},{key:"triggerUnsplashDownload",value:function(e){var t=this.api_provider.photo_api+"/"+e+"/download/"+this.api_provider.api_query_var+this.api_key;fetch(t).then((function(e){return e.json()})).then((function(e){})).catch((function(e){console.log(e)}))}},{key:"setFeaturedImageClick",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.setAsFeaturedImage=!0,t.click())}},{key:"insertImageIntoPost",value:function(e){this.hideTooltip(e);var t=this.photoUpload.current;t&&(this.insertIntoPost=!0,t.click())}},{key:"uploadComplete",value:function(e,t,n,r,i){this.setImageTitle(e,n),t.classList.remove("in-progress"),t.classList.add("uploaded"),t.querySelector(".edit-photo").style.display="none",t.querySelector(".edit-photo-admin").style.display="inline-block",t.querySelector(".edit-photo-admin").href=r,t.querySelector(".edit-photo-admin").target="_balnk",e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("success"),this.inProgress=!1,setTimeout((function(){t.classList.remove("uploaded"),e.classList.remove("success")}),7500),this.is_block_editor&&(t.querySelector(".insert").style.display="none",t.querySelector(".set-featured").style.display="none"),this.mediaRouter(i),this.container.classList.contains("editor")&&void 0!==wp.media&&(null!==wp.media.frame.content.get()?(wp.media.frame.content.get().collection.props.set({ignore:+new Date}),wp.media.frame.content.get().options.selection.reset()):wp.media.frame.library.props.set({ignore:+new Date}))}},{key:"mediaRouter",value:function(e){if(this.is_media_router&&wp.media&&wp.media.frame&&wp.media.frame.el){var t=wp.media.frame.el.querySelector("#menu-item-browse");t&&t.click(),setTimeout((function(){null!==wp.media.frame.content.get()&&wp.media.frame.content.get().collection._requery(!0);var t=wp.media.frame.state().get("selection"),n=parseInt(e);t.reset(n?[wp.media.attachment(n)]:[])}),150)}}},{key:"uploadError",value:function(e,t,n){e.classList.remove("uploading"),e.classList.remove("resizing"),e.classList.add("errors"),this.setImageTitle(e,n),this.inProgress=!1,t.classList.add("has-error"),console.warn(n)}},{key:"setImageTitle",value:function(e,t){e.setAttribute("title",t)}},{key:"showEditScreen",value:function(e){e.preventDefault();var t=this;this.hideTooltip(e),t.editScreen.current.classList.add("editing"),setTimeout((function(){t.editScreen.current.focus({preventScroll:!0})}),150)}},{key:"handleEditChange",value:function(e){var t=e.target.name;"filename"===t&&this.setState({filename:e.target.value}),"title"===t&&this.setState({title:e.target.value}),"alt"===t&&this.setState({alt:e.target.value}),"caption"===t&&this.setState({caption:e.target.value})}},{key:"saveEditChange",value:function(){var e=this.photo.current.querySelector('input[name="filename"]');this.filename=e.value;var t=this.photo.current.querySelector('input[name="title"]');this.title=t.value;var n=this.photo.current.querySelector('input[name="alt"]');this.alt=n.value;var r=this.photo.current.querySelector('textarea[name="caption"]');this.caption=r.value,this.editScreen.current.classList.remove("editing"),this.photoUpload.current.click()}},{key:"cancelEditChange",value:function(e){var t=this.photo.current.querySelector('input[name="filename"]');t.value=t.dataset.original,this.setState({filename:t.value});var n=this.photo.current.querySelector('input[name="title"]');n.value=n.dataset.original,this.setState({title:n.value});var r=this.photo.current.querySelector('input[name="alt"]');r.value=r.dataset.original,this.setState({alt:r.value});var i=this.photo.current.querySelector('textarea[name="caption"]');i.value=i.dataset.original,this.setState({caption:i.value}),this.editScreen.current.classList.remove("editing"),this.photoUpload.current.focus({preventScrol:!0})}},{key:"closeMediaModal",value:function(){var e=document.querySelector(".media-modal");if(e){var t=e.querySelector("button.media-modal-close");if(!t)return!1;t.click()}}},{key:"addAttribution",value:function(e){e.preventDefault();this.captionRef.current.value=this.attribution,this.setState({caption:this.attribution})}},{key:"render",value:function(){var e=this,t=1===parseInt(this.likes)?instant_img_localize.likes:instant_img_localize.likes_plural;return a.default.createElement("article",{className:"photo",ref:this.photo},a.default.createElement("div",{className:"photo--wrap"},a.default.createElement("div",{className:"img-wrap"},a.default.createElement("a",{className:"upload loaded",href:this.full_size,ref:this.photoUpload,"data-id":this.id,"data-url":this.full_size,"data-filename":this.state.filename,"data-title":this.state.title,"data-alt":this.state.alt,"data-caption":this.state.caption,title:instant_img_localize.upload,onClick:function(t){return e.download(t)}},a.default.createElement("img",{src:this.img,alt:""}),a.default.createElement("div",{className:"status"})),a.default.createElement("div",{className:"notice-msg",ref:this.noticeMsg}),a.default.createElement("div",{className:"user-controls"},a.default.createElement("a",{className:"user fade",href:this.user_url,target:"_blank",title:"unsplash"===this.provider?this.view_all+" @ "+this.user:this.view_all+" "+this.name},a.default.createElement("div",{className:"user-wrap"},this.user_photo&&this.user_photo.length>0&&a.default.createElement("img",{src:this.user_photo}),"unsplash"===this.provider?this.user:this.name)),a.default.createElement("div",{className:"photo-options"},this.displayGutenbergControl&&a.default.createElement("button",{type:"button",className:"set-featured fade","data-title":instant_img_localize.set_as_featured,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.setFeaturedImageClick(t)}},a.default.createElement("i",{className:"fa fa-picture-o","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.set_as_featured)),this.displayGutenbergControl&&a.default.createElement("button",{type:"button",className:"insert fade","data-title":instant_img_localize.insert_into_post,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.insertImageIntoPost(t)}},a.default.createElement("i",{className:"fa fa-plus","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.insert_into_post)),a.default.createElement("a",{href:"#",className:"edit-photo-admin fade","data-title":instant_img_localize.edit_upload,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},a.default.createElement("i",{className:"fa fa-pencil","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_upload)),a.default.createElement("button",{type:"button",className:"edit-photo fade","data-title":instant_img_localize.edit_details,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},onClick:function(t){return e.showEditScreen(t)}},a.default.createElement("i",{className:"fa fa-cog","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},instant_img_localize.edit_details)))),a.default.createElement("div",{className:"options"},a.default.createElement("span",{className:"likes tooltip--above","data-title":this.likes+" "+t,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)}},a.default.createElement("i",{className:"fa fa-heart heart-like","aria-hidden":"true"})," ",this.likes),a.default.createElement("a",{className:"tooltip--above",href:this.link,"data-title":"unsplash"===this.provider?instant_img_localize.view_on_unsplash:instant_img_localize.view_on_pixabay,onMouseEnter:function(t){return e.showTooltip(t)},onMouseLeave:function(t){return e.hideTooltip(t)},target:"_blank"},a.default.createElement("i",{className:"fa fa-external-link","aria-hidden":"true"}),a.default.createElement("span",{className:"offscreen"},"unsplash"===this.provider?instant_img_localize.view_on_unsplash:instant_img_localize.view_on_pixabay)))),a.default.createElement("div",{className:"edit-screen",tabIndex:"0",ref:this.editScreen},a.default.createElement("div",{className:"edit-screen--title"},a.default.createElement("div",null,a.default.createElement("p",{className:"heading"},instant_img_localize.edit_details),a.default.createElement("p",null,instant_img_localize.edit_details_intro)),a.default.createElement("div",{className:"preview",style:{backgroundImage:"url("+this.thumb+")"}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_filename,":"),a.default.createElement("input",{type:"text",name:"filename","data-original":this.filename,placeholder:this.filename,value:this.state.filename,onChange:function(t){return e.handleEditChange(t)}}),a.default.createElement("em",null,".jpg")),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_title,":"),a.default.createElement("input",{type:"text",name:"title","data-original":this.title,placeholder:this.title,value:this.state.title||"",onChange:function(t){return e.handleEditChange(t)}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_alt,":"),a.default.createElement("input",{type:"text",name:"alt","data-original":this.alt,value:this.state.alt||"",onChange:function(t){return e.handleEditChange(t)}})),a.default.createElement("label",null,a.default.createElement("span",null,instant_img_localize.edit_caption,":"),a.default.createElement("textarea",{rows:"4",name:"caption","data-original":"",onChange:function(t){return e.handleEditChange(t)},value:this.state.caption||"",ref:this.captionRef})),a.default.createElement("div",{className:"add-attribution-row"},a.default.createElement("button",{onClick:function(t){return e.addAttribution(t)},type:"button"},instant_img_localize.attribution)),a.default.createElement("div",{className:"edit-screen--controls"},a.default.createElement("button",{type:"button",className:"button",onClick:function(t){return e.cancelEditChange(t)}},instant_img_localize.cancel)," "," ",a.default.createElement("button",{type:"button",className:"button button-primary",onClick:function(){return e.saveEditChange()}},instant_img_localize.upload_now)))))}}]),t}(a.default.Component);t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=instant_img_localize.photo_by;switch(e){case"unsplash":r+=' <a href="'+t+'?utm_source=wordpress-instant-images&utm_medium=referral">'+n+'</a> on <a href="'+instant_img_localize.unsplash_url+'/?utm_source=wordpress-instant-images&utm_medium=referral">Unsplash</a>';break;case"pixabay":r+=' <a href="'+t+'?utm_source=wordpress-instant-images&utm_medium=referral">'+n+'</a> on <a href="'+instant_img_localize.pixabay_url+'/?utm_source=wordpress-instant-images&utm_medium=referral">Pixabay</a>'}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r="";switch(n){case"thumb":"pixabay"===e&&(r=t.previewURL),"unsplash"===e&&(r=t.urls.thumb);break;case"img":"pixabay"===e&&(r=t.webformatURL),"unsplash"===e&&(r=t.urls.small);break;case"full_size":"pixabay"===e&&(r=t.largeImageURL),"unsplash"===e&&(r=t.urls.full);break;case"author":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name);break;case"user":"pixabay"===e&&(r=t.user_id),"unsplash"===e&&(r=t.user.username);break;case"name":"pixabay"===e&&(r=t.user),"unsplash"===e&&(r=t.user.name);break;case"user_photo":"pixabay"===e&&(r=t.userImageURL),"unsplash"===e&&(r=t.user.profile_image.small);break;case"user_url":"pixabay"===e&&(r=instant_img_localize.pixabay_url+"/users/"+t.user+"-"+t.user_id+"/"),"unsplash"===e&&(r=instant_img_localize.unsplash_url+"/@"+t.user.username+"?utm_source=wordpress-instant-images&utm_medium=referral");break;case"link":"pixabay"===e&&(r=t.pageURL),"unsplash"===e&&(r=t.links.html);break;case"likes":"pixabay"===e&&(r=t.likes),"unsplash"===e&&(r=t.likes)}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.getPhotos=n.props.getPhotos.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this;return o.default.createElement("div",{className:this.props.isSearch?"searchResults":"searchResults hide"},o.default.createElement("span",{title:this.props.title},this.props.total),o.default.createElement("button",{type:"button",title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},"x",o.default.createElement("span",{className:"offscreen"},instant_img_localize.clear_search)))}}]),t}(o.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),o=(r=a)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return o.default.createElement("div",{id:"tooltip"})}}]),t}(o.default.Component);t.default=u},function(e,t,n){var r,i;
53
  /*!
54
  * imagesLoaded v4.1.4
55
  * JavaScript is all like "You images are done yet or what?"
56
  * MIT License
57
+ */!function(a,o){"use strict";r=[n(3)],void 0===(i=function(e){return function(e,t){var n=e.jQuery,r=e.console;function i(e,t){for(var n in t)e[n]=t[n];return e}var a=Array.prototype.slice;function o(e,t,l){if(!(this instanceof o))return new o(e,t,l);var s,u=e;("string"==typeof e&&(u=document.querySelectorAll(e)),u)?(this.elements=(s=u,Array.isArray(s)?s:"object"==typeof s&&"number"==typeof s.length?a.call(s):[s]),this.options=i({},this.options),"function"==typeof t?l=t:i(this.options,t),l&&this.on("always",l),this.getImages(),n&&(this.jqDeferred=new n.Deferred),setTimeout(this.check.bind(this))):r.error("Bad element for imagesLoaded "+(u||e))}o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&l[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var o=a[r];this.addElementBackgroundImages(o)}}}};var l={1:!0,9:!0,11:!0};function s(e){this.img=e}function u(e,t){this.url=e,this.element=t,this.img=new Image}return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new s(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var n=new u(e,t);this.images.push(n)},o.prototype.check=function(){var e=this;function t(t,n,r){setTimeout((function(){e.progress(t,n,r)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},o.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&r&&r.log("progress: "+n,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},s.prototype=Object.create(t.prototype),s.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},s.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype=Object.create(s.prototype),u.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},u.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},u.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((n=t).fn.imagesLoaded=function(e,t){return new o(this,e,t).jqDeferred.promise(n(this))})},o.makeJQueryPlugin(),o}(a,e)}.apply(t,r))||(e.exports=i)}("undefined"!=typeof window?window:this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return instant_img_localize&&instant_img_localize.default_provider?instant_img_localize.default_provider:a.default.defaults.provider};var r,i=n(2),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";n.r(t),n.d(t,"createFocusTrap",(function(){return E}));
58
  /*!
59
  * tabbable 5.2.1
60
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
61
  */
62
+ var r=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=r.join(","),a="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r=r.filter(n)},l=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},s=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},u=function(e){return"INPUT"===e.tagName},c=function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)},f=function(e,t){return!(t.disabled||function(e){return u(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var r=e.getBoundingClientRect(),i=r.width,o=r.height;return 0===i&&0===o}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(u(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},d=function(e,t){return!(!f(e,t)||c(t)||l(t)<0)},p=r.concat("iframe").join(","),h=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,p)&&f(t,e)};
63
  /*!
64
  * focus-trap 6.7.1
65
  * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
66
  */
67
+ function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g,y=(g=[],{activateTrap:function(e){if(g.length>0){var t=g[g.length-1];t!==e&&t.pause()}var n=g.indexOf(e);-1===n||g.splice(n,1),g.push(e)},deactivateTrap:function(e){var t=g.indexOf(e);-1!==t&&g.splice(t,1),g.length>0&&g[g.length-1].unpause()}}),b=function(e){return setTimeout(e,0)},_=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},w=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},k=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},E=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},u=function(e,t,n){return e&&void 0!==e[t]?e[t]:i[n||t]},c=function(e){return!(!e||!a.containers.some((function(t){return t.contains(e)})))},f=function(e){var t=i[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];t=t.apply(void 0,a)}if(!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var l=t;if("string"==typeof t&&!(l=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},p=function(){var e=f("initialFocus");if(!1===e)return!1;if(void 0===e)if(c(r.activeElement))e=r.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||f("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},g=function(){if(a.tabbableGroups=a.containers.map((function(e){var t,n,r,i=(n=[],r=[],o(e,(t=t||{}).includeContainer,d.bind(null,t)).forEach((function(e,t){var i=l(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(s).map((function(e){return e.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},E=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(p()))},S=function(e){var t=f("setReturnFocus",e);return t||!1!==t&&e},x=function(e){var t=k(e);c(t)||(w(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!h(t)}):w(i.allowOutsideClick,e)||e.preventDefault())},C=function(e){var t=k(e),n=c(t);n||t instanceof Document?n&&(a.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),E(a.mostRecentlyFocusedNode||p()))},O=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==w(i.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=k(e);g();var n=null;if(a.tabbableGroups.length>0){var r=_(a.tabbableGroups,(function(e){return e.container.contains(t)}));if(r<0)n=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var i=_(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(i<0&&a.tabbableGroups[r].container===t&&(i=r),i>=0){var o=0===i?a.tabbableGroups.length-1:i-1;n=a.tabbableGroups[o].lastTabbableNode}}else{var l=_(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(l<0&&a.tabbableGroups[r].container===t&&(l=r),l>=0){var s=l===a.tabbableGroups.length-1?0:l+1;n=a.tabbableGroups[s].firstTabbableNode}}}else n=f("fallbackFocus");n&&(e.preventDefault(),E(n))}(e)},T=function(e){if(!w(i.clickOutsideDeactivates,e)){var t=k(e);c(t)||w(i.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}},P=function(){if(a.active)return y.activateTrap(n),a.delayInitialFocusTimer=i.delayInitialFocus?b((function(){E(p())})):E(p()),r.addEventListener("focusin",C,!0),r.addEventListener("mousedown",x,{capture:!0,passive:!1}),r.addEventListener("touchstart",x,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",O,{capture:!0,passive:!1}),n},L=function(){if(a.active)return r.removeEventListener("focusin",C,!0),r.removeEventListener("mousedown",x,!0),r.removeEventListener("touchstart",x,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",O,!0),n};return(n={activate:function(e){if(a.active)return this;var t=u(e,"onActivate"),n=u(e,"onPostActivate"),i=u(e,"checkCanFocusTrap");i||g(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,t&&t();var o=function(){i&&g(),P(),n&&n()};return i?(i(a.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!a.active)return this;clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,L(),a.active=!1,a.paused=!1,y.deactivateTrap(n);var t=u(e,"onDeactivate"),r=u(e,"onPostDeactivate"),i=u(e,"checkCanReturnFocus");t&&t();var o=u(e,"returnFocus","returnFocusOnDeactivate"),l=function(){b((function(){o&&E(S(a.nodeFocusedBeforeActivation)),r&&r()}))};return o&&i?(i(S(a.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return a.paused||!a.active||(a.paused=!0,L()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,g(),P(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),a.active&&g(),this}}).updateContainerElements(e),n}},,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(21),a=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.color,n=void 0===t?"unsplash":t;return React.createElement("span",{className:(0,a.default)("instant-images-sidebar-icon","color-"+n)},React.createElement("svg",{viewBox:"0 0 31 58",width:"13px",height:"24px"},React.createElement("title",null,"Instant Images Logo"),React.createElement("polygon",{points:"20 0 20 23 31 23 11 58 11 34 0 34 20 0",fill:"#4a7bc5"})))}},,,function(e,t,n){"use strict";var r=a(n(83)),i=a(n(86));function a(e){return e&&e.__esModule?e:{default:e}}var o=wp.element.Fragment;(0,wp.plugins.registerPlugin)("instant-images",{render:function(){return React.createElement(o,null,React.createElement(i.default,null),React.createElement(r.default,null))}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=p(n(0)),a=p(n(26)),o=p(n(2)),l=p(n(5)),s=p(n(8)),u=p(n(72)),c=p(n(79)),f=p(n(84)),d=p(n(85));function p(e){return e&&e.__esModule?e:{default:e}}var h=wp.editPost.PluginSidebar,m=wp.element,v=m.useState,g=m.useEffect;t.default=function(){var e=v(),t=r(e,2),n=t[0],p=t[1],m=(0,u.default)(),y=o.default.defaults.provider,b=o.default.defaults.order,_=o.default[m].requires_key;return g((function(){var e,t;(e=regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_){e.next=9;break}return e.next=3,fetch((0,l.default)(m));case 3:t=e.sent,n=t.ok,r=t.status,n?p(m):(p(y),(0,s.default)(m,r)),e.next=10;break;case 9:p(y);case 10:case"end":return e.stop()}}),e,this)})),t=function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(i,a){try{var o=t[i](a),l=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))},function(){return t.apply(this,arguments)})()}),[]),i.default.createElement(h,{icon:i.default.createElement(c.default,{borderless:!0,color:"unsplash"}),name:"instant-images-sidebar",title:"Instant Images"},i.default.createElement("div",{className:"instant-img-container"},n&&i.default.createElement(a.default,{editor:"gutenberg",page:1,orderby:b,provider:n,SetFeaturedImage:d.default,InsertImage:f.default})))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.blocks.createBlock;t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===e)return!1;var i=r("core/image",{url:e,caption:t,alt:n});wp.data.dispatch("core/editor").insertBlocks(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=wp.data.dispatch;t.default=function(e){if(null===e)return!1;r("core/editor").editPost({featured_media:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(79),a=(r=i)&&r.__esModule?r:{default:r};var o=wp.editPost.PluginSidebarMoreMenuItem;t.default=function(){return React.createElement(o,{icon:React.createElement(a.default,{color:"unsplash"}),target:"instant-images-sidebar",className:"instant-images-menu-item"},"Instant Images")}}]);
 
 
 
 
 
dist/js/instant-images-media.js CHANGED
@@ -86,6 +86,17 @@
86
  /************************************************************************/
87
  /******/ ({
88
 
 
 
 
 
 
 
 
 
 
 
 
89
  /***/ "./node_modules/axios/index.js":
90
  /*!*************************************!*\
91
  !*** ./node_modules/axios/index.js ***!
@@ -2176,6 +2187,74 @@ module.exports = {
2176
 
2177
  module.exports = JSON.parse("{\"_from\":\"axios@^0.21.2\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"raw\":\"axios@^0.21.2\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"^0.21.2\",\"saveSpec\":null,\"fetchSpec\":\"^0.21.2\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_shasum\":\"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575\",\"_spec\":\"axios@^0.21.2\",\"_where\":\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2179
  /***/ }),
2180
 
2181
  /***/ "./node_modules/desandro-matches-selector/matches-selector.js":
@@ -3883,10 +3962,23 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
3883
  _this.updatePreviousElement();
3884
 
3885
  return _this;
3886
- } // TODO: Need more test coverage for this function
 
 
 
 
 
 
3887
 
3888
 
3889
  _createClass(FocusTrap, [{
 
 
 
 
 
 
 
3890
  key: "getNodeForOption",
3891
  value: function getNodeForOption(optionName) {
3892
  var optionValue = this.tailoredFocusTrapOptions[optionName];
@@ -3898,7 +3990,9 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
3898
  var node = optionValue;
3899
 
3900
  if (typeof optionValue === 'string') {
3901
- node = document.querySelector(optionValue);
 
 
3902
 
3903
  if (!node) {
3904
  throw new Error("`".concat(optionName, "` refers to no known node"));
@@ -3926,8 +4020,7 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
3926
  }, {
3927
  key: "updatePreviousElement",
3928
  value: function updatePreviousElement() {
3929
- // SSR: careful to check if `document` exists before accessing it as a variable
3930
- var currentDocument = this.props.focusTrapOptions.document || (typeof document !== 'undefined' ? document : undefined);
3931
 
3932
  if (currentDocument) {
3933
  this.previouslyFocusedElement = currentDocument.activeElement;
@@ -4001,7 +4094,14 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
4001
  }, {
4002
  key: "componentDidMount",
4003
  value: function componentDidMount() {
4004
- this.setupFocusTrap();
 
 
 
 
 
 
 
4005
  }
4006
  }, {
4007
  key: "componentDidUpdate",
@@ -4033,9 +4133,22 @@ var FocusTrap = /*#__PURE__*/function (_React$Component) {
4033
  if (hasUnpaused) {
4034
  this.focusTrap.unpause();
4035
  }
4036
- } else if (prevProps.containerElements !== this.props.containerElements) {
4037
- this.focusTrapElements = this.props.containerElements;
4038
- this.setupFocusTrap();
 
 
 
 
 
 
 
 
 
 
 
 
 
4039
  }
4040
  }
4041
  }, {
@@ -39483,6 +39596,289 @@ exports.default = ErrorMessage;
39483
 
39484
  /***/ }),
39485
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39486
  /***/ "./src/js/components/LoadMore.js":
39487
  /*!***************************************!*\
39488
  !*** ./src/js/components/LoadMore.js ***!
@@ -39670,99 +40066,6 @@ exports.default = NoResults;
39670
 
39671
  /***/ }),
39672
 
39673
- /***/ "./src/js/components/Orientation.js":
39674
- /*!******************************************!*\
39675
- !*** ./src/js/components/Orientation.js ***!
39676
- \******************************************/
39677
- /*! no static exports found */
39678
- /***/ (function(module, exports, __webpack_require__) {
39679
-
39680
- "use strict";
39681
-
39682
-
39683
- Object.defineProperty(exports, "__esModule", {
39684
- value: true
39685
- });
39686
-
39687
- var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
39688
-
39689
- var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
39690
-
39691
- var _react2 = _interopRequireDefault(_react);
39692
-
39693
- var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.js");
39694
-
39695
- var _API2 = _interopRequireDefault(_API);
39696
-
39697
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39698
-
39699
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
39700
-
39701
- function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
39702
-
39703
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
39704
-
39705
- var Orientation = function (_React$Component) {
39706
- _inherits(Orientation, _React$Component);
39707
-
39708
- function Orientation(props) {
39709
- _classCallCheck(this, Orientation);
39710
-
39711
- var _this = _possibleConstructorReturn(this, (Orientation.__proto__ || Object.getPrototypeOf(Orientation)).call(this, props));
39712
-
39713
- _this.provider = _this.props.provider;
39714
- _this.setOrientation = _this.props.setOrientation.bind(_this);
39715
- _this.options = _API2.default[_this.provider].orientation;
39716
- return _this;
39717
- }
39718
-
39719
- _createClass(Orientation, [{
39720
- key: "render",
39721
- value: function render() {
39722
- var _this2 = this;
39723
-
39724
- return _react2.default.createElement(
39725
- "div",
39726
- { className: "orientation-list" },
39727
- _react2.default.createElement(
39728
- "span",
39729
- null,
39730
- _react2.default.createElement("i", { className: "fa fa-filter", "aria-hidden": "true" }),
39731
- " ",
39732
- instant_img_localize.orientation,
39733
- ":"
39734
- ),
39735
- _react2.default.createElement(
39736
- "ul",
39737
- null,
39738
- this.options && this.options.map(function (option, iterator) {
39739
- return _react2.default.createElement(
39740
- "li",
39741
- {
39742
- key: iterator + "-" + option,
39743
- tabIndex: "0",
39744
- onClick: function onClick(e) {
39745
- return _this2.setOrientation(option, e);
39746
- },
39747
- onKeyPress: function onKeyPress(e) {
39748
- return _this2.setOrientation(option, e);
39749
- }
39750
- },
39751
- instant_img_localize[option]
39752
- );
39753
- })
39754
- )
39755
- );
39756
- }
39757
- }]);
39758
-
39759
- return Orientation;
39760
- }(_react2.default.Component);
39761
-
39762
- exports.default = Orientation;
39763
-
39764
- /***/ }),
39765
-
39766
  /***/ "./src/js/components/Photo.js":
39767
  /*!************************************!*\
39768
  !*** ./src/js/components/Photo.js ***!
@@ -40732,6 +41035,8 @@ Object.defineProperty(exports, "__esModule", {
40732
  value: true
40733
  });
40734
 
 
 
40735
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
40736
 
40737
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
@@ -40746,10 +41051,22 @@ var _API = __webpack_require__(/*! ../constants/API */ "./src/js/constants/API.j
40746
 
40747
  var _API2 = _interopRequireDefault(_API);
40748
 
 
 
 
 
40749
  var _buildTestURL = __webpack_require__(/*! ../functions/buildTestURL */ "./src/js/functions/buildTestURL.js");
40750
 
40751
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
40752
 
 
 
 
 
 
 
 
 
40753
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
40754
 
40755
  var _getResults2 = _interopRequireDefault(_getResults);
@@ -40766,6 +41083,10 @@ var _ErrorMessage = __webpack_require__(/*! ./ErrorMessage */ "./src/js/componen
40766
 
40767
  var _ErrorMessage2 = _interopRequireDefault(_ErrorMessage);
40768
 
 
 
 
 
40769
  var _LoadingBlock = __webpack_require__(/*! ./LoadingBlock */ "./src/js/components/LoadingBlock.js");
40770
 
40771
  var _LoadingBlock2 = _interopRequireDefault(_LoadingBlock);
@@ -40778,10 +41099,6 @@ var _NoResults = __webpack_require__(/*! ./NoResults */ "./src/js/components/NoR
40778
 
40779
  var _NoResults2 = _interopRequireDefault(_NoResults);
40780
 
40781
- var _Orientation = __webpack_require__(/*! ./Orientation */ "./src/js/components/Orientation.js");
40782
-
40783
- var _Orientation2 = _interopRequireDefault(_Orientation);
40784
-
40785
  var _Photo = __webpack_require__(/*! ./Photo */ "./src/js/components/Photo.js");
40786
 
40787
  var _Photo2 = _interopRequireDefault(_Photo);
@@ -40798,8 +41115,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
40798
 
40799
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
40800
 
40801
- function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
40802
-
40803
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
40804
 
40805
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
@@ -40818,14 +41133,12 @@ var PhotoList = function (_React$Component) {
40818
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
40819
 
40820
  _this.providers = ["Unsplash", "Pixabay"];
40821
-
40822
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
40823
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
40824
  _this.arr_key = _this.api_provider.arr_key;
40825
- _this.order_key = _this.api_provider.order_key;
40826
 
 
40827
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
40828
-
40829
  _this.api_url = "" + _this.api_provider.photo_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
40830
  _this.search_api_url = "" + _this.api_provider.search_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
40831
 
@@ -40833,29 +41146,35 @@ var PhotoList = function (_React$Component) {
40833
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
40834
  _this.state = {
40835
  results: _this.results,
 
 
40836
  restapi_error: false,
40837
  api_lightbox: false
40838
  };
40839
 
 
 
 
40840
  _this.orderby = _this.props.orderby; // Orderby
40841
  _this.page = _this.props.page; // Page
40842
 
40843
  _this.is_search = false;
40844
  _this.search_term = "";
40845
  _this.total_results = 0;
40846
- _this.orientation = "";
40847
  _this.isLoading = false; // Loading flag.
40848
  _this.isDone = false; // Done flag.
40849
  _this.errorMsg = "";
40850
  _this.msnry = "";
40851
  _this.tooltipInterval = "";
 
40852
 
40853
  // Refs.
40854
  _this.photoTarget = _react2.default.createRef();
40855
  _this.providerNav = _react2.default.createRef();
40856
  _this.controlNav = _react2.default.createRef();
40857
  _this.photoSearch = _react2.default.createRef();
40858
- _this.buttonLatest = _react2.default.createRef();
40859
 
40860
  // Editor props.
40861
  _this.editor = _this.props.editor ? _this.props.editor : "classic";
@@ -40939,69 +41258,6 @@ var PhotoList = function (_React$Component) {
40939
  }
40940
  }
40941
 
40942
- /**
40943
- * Orientation filter. Availlable during a search only.
40944
- *
40945
- * @param {string} orientation The orientation of the photos.
40946
- * @param {MouseEvent} event The dispatched orientation setter event.
40947
- * @since 4.2
40948
- */
40949
-
40950
- }, {
40951
- key: "setOrientation",
40952
- value: function setOrientation(orientation, event) {
40953
- if (event && event.target) {
40954
- var target = event.target;
40955
-
40956
- if (target.classList.contains("active")) {
40957
- // Clear orientation
40958
- target.classList.remove("active");
40959
- this.orientation = "";
40960
- } else {
40961
- // Set orientation
40962
- var siblings = target.parentNode.querySelectorAll("li");
40963
- [].concat(_toConsumableArray(siblings)).forEach(function (el) {
40964
- return el.classList.remove("active");
40965
- }); // remove active classes
40966
-
40967
- target.classList.add("active");
40968
- this.orientation = orientation;
40969
- }
40970
-
40971
- if (this.search_term !== "") {
40972
- this.doSearch(this.search_term);
40973
- }
40974
- }
40975
- }
40976
-
40977
- /**
40978
- * Is their an orientation set.
40979
- *
40980
- * @since 4.2
40981
- */
40982
-
40983
- }, {
40984
- key: "hasOrientation",
40985
- value: function hasOrientation() {
40986
- return this.orientation === "" ? false : true;
40987
- }
40988
-
40989
- /**
40990
- * Clear the orientation.
40991
- *
40992
- * @since 4.2
40993
- */
40994
-
40995
- }, {
40996
- key: "clearOrientation",
40997
- value: function clearOrientation() {
40998
- var items = this.container.querySelectorAll(".orientation-list li");
40999
- [].concat(_toConsumableArray(items)).forEach(function (el) {
41000
- return el.classList.remove("active");
41001
- }); // remove active classes
41002
- this.orientation = "";
41003
- }
41004
-
41005
  /**
41006
  * Run the search.
41007
  *
@@ -41015,25 +41271,28 @@ var PhotoList = function (_React$Component) {
41015
  var self = this;
41016
  var input = this.photoSearch.current;
41017
  var type = "term";
41018
- this.page = 1; // reset page num
41019
 
41020
- var url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
 
 
 
 
41021
 
41022
- if (this.hasOrientation()) {
41023
- // Set orientation
41024
- url = url + "&orientation=" + this.orientation;
41025
- }
41026
 
41027
  // Search by ID.
41028
  // Allow users to search by photo by prepending id:{photo_id} to search terms.
41029
  var search_type = term.substring(0, 3);
41030
-
41031
  if (search_type === "id:") {
41032
  type = "id";
41033
  term = term.replace("id:", "");
41034
  url = (0, _searchByID2.default)(this.provider, term, this.api_provider.photo_api, this.api_provider.api_query_var, this.api_key);
41035
  }
41036
 
 
 
 
 
41037
  fetch(url).then(function (data) {
41038
  return data.json();
41039
  }).then(function (data) {
@@ -41047,7 +41306,10 @@ var PhotoList = function (_React$Component) {
41047
 
41048
  // Update Props.
41049
  self.results = results;
41050
- self.setState({ results: self.results });
 
 
 
41051
  }
41052
 
41053
  // Search by ID.
@@ -41074,7 +41336,12 @@ var PhotoList = function (_React$Component) {
41074
  self.setState({ results: self.results });
41075
  }
41076
 
41077
- input.classList.remove("searching");
 
 
 
 
 
41078
  }).catch(function (error) {
41079
  console.log(error);
41080
 
@@ -41084,6 +41351,9 @@ var PhotoList = function (_React$Component) {
41084
  self.total_results = 0;
41085
  self.isDone = true;
41086
 
 
 
 
41087
  // Update Props.
41088
  self.results = [];
41089
  self.setState({ results: self.results });
@@ -41091,7 +41361,7 @@ var PhotoList = function (_React$Component) {
41091
  }
41092
 
41093
  /**
41094
- * Reset search results and results view.
41095
  *
41096
  * @since 3.0
41097
  */
@@ -41099,43 +41369,65 @@ var PhotoList = function (_React$Component) {
41099
  }, {
41100
  key: "clearSearch",
41101
  value: function clearSearch() {
41102
- var input = this.photoSearch.current;
41103
- input.value = "";
41104
  this.total_results = 0;
41105
  this.is_search = false;
41106
  this.search_term = "";
41107
- this.clearOrientation();
 
41108
  }
41109
 
41110
  /**
41111
- * Get the initial set of photos for the current view (New/Popular/Old/etc...).
41112
  *
 
41113
  * @param {string} view Current view.
41114
- * @param {Element} e The clicked element.
41115
- * @param {Boolean} reset Is this an app reset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41116
  * @since 3.0
41117
  */
41118
 
41119
  }, {
41120
  key: "getPhotos",
41121
- value: function getPhotos(view, e) {
41122
- var reset = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
 
41123
 
41124
  var self = this;
41125
- var el = e.target || e;
41126
 
41127
- if (el.classList.contains("active") && !reset) {
41128
  return; // exit if active
41129
  }
41130
 
41131
- el.classList.add("loading"); // Add class to nav btn
41132
  this.isLoading = true;
41133
  this.page = 1;
41134
  this.orderby = view;
41135
  this.results = [];
41136
  this.clearSearch();
41137
 
41138
- var url = this.api_url + "&page=" + this.page + "&" + this.order_key + "=" + this.orderby;
 
 
 
 
41139
 
41140
  fetch(url).then(function (data) {
41141
  return data.json();
@@ -41149,12 +41441,25 @@ var PhotoList = function (_React$Component) {
41149
  self.results = results;
41150
 
41151
  // Set results state.
41152
- self.setState({ results: results });
 
 
 
 
 
 
 
 
 
41153
 
41154
- // Remove class from nav btn.
41155
- el.classList.remove("loading");
 
 
 
41156
  }).catch(function (error) {
41157
  console.log(error);
 
41158
  self.isLoading = false;
41159
  });
41160
  }
@@ -41173,17 +41478,19 @@ var PhotoList = function (_React$Component) {
41173
  this.container.classList.add("loading");
41174
  this.isLoading = true;
41175
 
41176
- var url = this.api_url + "&page=" + this.page + "&" + this.order_key + "=" + this.orderby;
 
41177
 
41178
  if (this.is_search) {
41179
  url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
41180
-
41181
- if (this.hasOrientation()) {
41182
- // Set orientation
41183
- url = url + "&orientation=" + this.orientation;
41184
- }
41185
  }
41186
 
 
 
 
41187
  fetch(url).then(function (data) {
41188
  return data.json();
41189
  }).then(function (data) {
@@ -41204,12 +41511,72 @@ var PhotoList = function (_React$Component) {
41204
 
41205
  // Update Props
41206
  self.setState({ results: self.results });
 
 
41207
  }).catch(function (error) {
41208
  console.log(error);
41209
  self.isLoading = false;
41210
  });
41211
  }
41212
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41213
  /**
41214
  * Callback after activating and verififying an API key.
41215
  *
@@ -41303,6 +41670,10 @@ var PhotoList = function (_React$Component) {
41303
  this.provider = provider;
41304
  this.api_provider = _API2.default[this.provider];
41305
 
 
 
 
 
41306
  // Remove active from buttons.
41307
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
41308
  button.classList.remove("active");
@@ -41313,16 +41684,16 @@ var PhotoList = function (_React$Component) {
41313
 
41314
  // Set current provider params.
41315
  this.arr_key = this.api_provider.arr_key;
41316
- this.order_key = this.api_provider.order_key;
41317
  this.api_key = instant_img_localize[this.provider + "_app_id"];
41318
 
41319
  this.api_url = "" + this.api_provider.photo_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
41320
  this.search_api_url = "" + this.api_provider.search_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
41321
 
41322
  // At last, get the photos.
41323
- this.getPhotos("latest", this.buttonLatest.current, true);
 
41324
 
41325
- case 24:
41326
  case "end":
41327
  return _context.stop();
41328
  }
@@ -41330,7 +41701,7 @@ var PhotoList = function (_React$Component) {
41330
  }, _callee, this);
41331
  }));
41332
 
41333
- function switchProvider(_x2) {
41334
  return _ref.apply(this, arguments);
41335
  }
41336
 
@@ -41392,31 +41763,19 @@ var PhotoList = function (_React$Component) {
41392
  }
41393
 
41394
  /**
41395
- * Sets the main navigation active state.
41396
  *
41397
  * @since 3.0
41398
  */
41399
 
41400
  }, {
41401
- key: "setActiveState",
41402
- value: function setActiveState() {
41403
  var self = this;
41404
- // Remove .active class from control nav.
41405
- this.controlNav.current.querySelectorAll("button").forEach(function (el) {
41406
- return el.classList.remove("active");
41407
- });
41408
-
41409
- // Set active item, if not search.
41410
- if (!this.is_search) {
41411
- var active = this.controlNav.current.querySelector("li button.instant-images-" + this.orderby);
41412
- if (active) {
41413
- active.classList.add("active");
41414
- }
41415
- }
41416
  setTimeout(function () {
41417
  self.isLoading = false;
41418
  self.container.classList.remove("loading");
41419
- }, 1000);
41420
  }
41421
 
41422
  /**
@@ -41455,7 +41814,7 @@ var PhotoList = function (_React$Component) {
41455
 
41456
  setTimeout(function () {
41457
  tooltip.classList.add("over");
41458
- }, 150);
41459
  }, 750);
41460
  }
41461
 
@@ -41479,7 +41838,7 @@ var PhotoList = function (_React$Component) {
41479
  key: "componentDidUpdate",
41480
  value: function componentDidUpdate() {
41481
  this.renderLayout();
41482
- this.setActiveState();
41483
  }
41484
 
41485
  // Component Init
@@ -41487,10 +41846,10 @@ var PhotoList = function (_React$Component) {
41487
  }, {
41488
  key: "componentDidMount",
41489
  value: function componentDidMount() {
41490
- var _this2 = this;
41491
 
41492
  this.renderLayout();
41493
- this.setActiveState();
41494
  this.test();
41495
  this.container.classList.remove("loading");
41496
  this.wrapper.classList.add("loaded");
@@ -41502,14 +41861,14 @@ var PhotoList = function (_React$Component) {
41502
  } else {
41503
  // Add scroll event
41504
  window.addEventListener("scroll", function () {
41505
- return _this2.onScroll();
41506
  });
41507
  }
41508
  }
41509
  }, {
41510
  key: "render",
41511
  value: function render() {
41512
- var _this3 = this;
41513
 
41514
  return _react2.default.createElement(
41515
  "div",
@@ -41526,9 +41885,9 @@ var PhotoList = function (_React$Component) {
41526
  {
41527
  "data-provider": provider.toLowerCase(),
41528
  onClick: function onClick(e) {
41529
- return _this3.switchProvider(e);
41530
  },
41531
- className: _this3.provider === provider.toLowerCase() ? "provider-nav--btn active" : "provider-nav--btn"
41532
  },
41533
  _react2.default.createElement(
41534
  "span",
@@ -41549,34 +41908,43 @@ var PhotoList = function (_React$Component) {
41549
  afterVerifiedAPICallback: this.afterVerifiedAPICallback.bind(this),
41550
  closeAPILightbox: this.closeAPILightbox.bind(this)
41551
  }),
41552
- this.api_provider.order && _react2.default.createElement(
41553
- "ul",
41554
  { className: "control-nav", ref: this.controlNav },
41555
- this.api_provider.order.map(function (order, iterator) {
41556
- return _react2.default.createElement(
41557
- "li",
41558
- { key: _this3.provider + "-order-" + iterator },
41559
- _react2.default.createElement(
41560
- "button",
41561
- {
41562
- type: "button",
41563
- className: "instant-images-" + order,
41564
- onClick: function onClick(e) {
41565
- return _this3.getPhotos(order, e);
41566
- },
41567
- ref: order === "latest" ? _this3.buttonLatest : null
41568
- },
41569
- instant_img_localize[order]
41570
- )
41571
- );
41572
- }),
41573
  _react2.default.createElement(
41574
- "li",
41575
- { className: "search-field", id: "search-bar" },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41576
  _react2.default.createElement(
41577
  "form",
41578
  { onSubmit: function onSubmit(e) {
41579
- return _this3.search(e);
41580
  }, autoComplete: "off" },
41581
  _react2.default.createElement(
41582
  "label",
@@ -41596,7 +41964,7 @@ var PhotoList = function (_React$Component) {
41596
  ),
41597
  _react2.default.createElement(_ResultsToolTip2.default, {
41598
  container: this.container,
41599
- buttonLatest: this.buttonLatest,
41600
  isSearch: this.is_search,
41601
  total: this.total_results,
41602
  title: this.total_results + " " + instant_img_localize.search_results + " " + this.search_term
@@ -41605,25 +41973,73 @@ var PhotoList = function (_React$Component) {
41605
  )
41606
  ),
41607
  this.state.restapi_error && _react2.default.createElement(_ErrorMessage2.default, null),
41608
- this.is_search && _react2.default.createElement(_Orientation2.default, {
41609
- provider: this.provider,
41610
- setOrientation: this.setOrientation.bind(this)
41611
- }),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41612
  _react2.default.createElement(
41613
  "div",
41614
  { id: "photos", className: "photo-target", ref: this.photoTarget },
41615
  this.state.results.map(function (result, iterator) {
41616
  return _react2.default.createElement(_Photo2.default, {
41617
- provider: _this3.provider,
41618
  result: result,
41619
- key: _this3.provider + "-" + result.id + "-" + iterator,
41620
- editor: _this3.editor,
41621
- mediaRouter: _this3.is_media_router,
41622
- blockEditor: _this3.is_block_editor,
41623
- SetFeaturedImage: _this3.SetFeaturedImage,
41624
- InsertImage: _this3.InsertImage,
41625
- showTooltip: _this3.showTooltip,
41626
- hideTooltip: _this3.hideTooltip
41627
  });
41628
  })
41629
  ),
@@ -41678,7 +42094,7 @@ var ResultsToolTip = function (_React$Component) {
41678
 
41679
  var _this = _possibleConstructorReturn(this, (ResultsToolTip.__proto__ || Object.getPrototypeOf(ResultsToolTip)).call(this, props));
41680
 
41681
- _this.buttonLatest = _this.props.buttonLatest;
41682
  return _this;
41683
  }
41684
 
@@ -41703,7 +42119,7 @@ var ResultsToolTip = function (_React$Component) {
41703
  type: "button",
41704
  title: instant_img_localize.clear_search,
41705
  onClick: function onClick() {
41706
- return _this2.buttonLatest.current.click();
41707
  }
41708
  },
41709
  "x",
@@ -41793,32 +42209,113 @@ module.exports = {
41793
  },
41794
  unsplash: {
41795
  requires_key: false,
 
 
41796
  api_query_var: "/?client_id=",
41797
  photo_api: "https://api.unsplash.com/photos",
41798
  collections_api: "https://api.unsplash.com/collections",
41799
  search_api: "https://api.unsplash.com/search/photos",
41800
  search_query_var: "query",
41801
  arr_key: "results",
41802
- order_key: "order_by",
41803
- order: ["latest", "popular", "oldest"],
41804
  orientation: ["landscape", "portrait", "squarish"]
41805
  },
41806
  pixabay: {
41807
  requires_key: true,
41808
- new: true,
 
41809
  api_query_var: "/?key=",
41810
  photo_api: "https://pixabay.com/api",
41811
  search_api: "https://pixabay.com/api",
41812
  search_query_var: "q",
41813
  arr_key: "hits",
41814
- order_key: "order",
41815
- order: ["latest", "popular"],
41816
  orientation: ["horizontal", "vertical"]
41817
  }
41818
  };
41819
 
41820
  /***/ }),
41821
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41822
  /***/ "./src/js/functions/buildTestURL.js":
41823
  /*!******************************************!*\
41824
  !*** ./src/js/functions/buildTestURL.js ***!
@@ -41897,6 +42394,78 @@ function capitalize(s) {
41897
 
41898
  /***/ }),
41899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41900
  /***/ "./src/js/functions/generateAttribution.js.js":
41901
  /*!****************************************************!*\
41902
  !*** ./src/js/functions/generateAttribution.js.js ***!
86
  /************************************************************************/
87
  /******/ ({
88
 
89
+ /***/ "./node_modules/a11yarrows/dist/a11yarrows.min.js":
90
+ /*!********************************************************!*\
91
+ !*** ./node_modules/a11yarrows/dist/a11yarrows.min.js ***!
92
+ \********************************************************/
93
+ /*! no static exports found */
94
+ /***/ (function(module, exports, __webpack_require__) {
95
+
96
+ !function(e,t){ true?module.exports=t():undefined}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=function(e,t){if((t=Object.assign({},n,t)).target=e,t.next=t.next?t.next:"down",t.prev=t.prev?t.prev:"up",!t.target||!t.selector)return;i(t),window.addEventListener(t.event,function(e){o(e,t)})};var n=r(1),o=r(2),i=r(7);r(8)},function(e,t,r){"use strict";e.exports={selector:"a",loop:!0,event:"keydown",next:"down right",prev:"up left"}},function(e,t,r){"use strict";var n=r(3),o=r(4),i=r(5),u=r(6);e.exports=function(e,t){var r=e.target,f=e.which||e.keycode,c=t.target.querySelectorAll(t.selector);c=c?Array.prototype.slice.call(c):c;var a=i(r,c);if(!c||!a)return!1;if(-1!==u(t.next,n).indexOf(f)){var l=o(r,c,"next");if(l<c.length)return c[l].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return c[0].focus(),e.preventDefault(),e.stopPropagation(),!1}if(-1!==u(t.prev,n).indexOf(f)){var p=o(r,c,"previous");if(p<c.length&&-1!==p)return c[p].focus(),e.preventDefault(),e.stopPropagation(),!1;if(t.loop)return c[c.length-1].focus(),e.preventDefault(),e.stopPropagation(),!1}return!0}},function(e,t,r){"use strict";e.exports={up:38,right:39,down:40,left:37,escape:27,enter:13,spacebar:32,tab:9}},function(e,t,r){"use strict";e.exports=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"next",n=Array.prototype.slice.call(t).indexOf(e);if(-1!==n)return"previous"===r?n-1:n+1}},function(e,t,r){"use strict";e.exports=function(e,t){return-1!==Array.prototype.slice.call(t).indexOf(e)}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=e.split(" "),n=[],o=0;o<r.length;o++)n.push(t[r[o]]);return n}},function(e,t,r){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(!e.target||!e.selector)return!1;var t=e.target.querySelectorAll(e.selector);(t=t?Array.prototype.slice.call(t):t).forEach(function(e){e.tabIndex=0})}},function(e,t,r){"use strict";"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(e),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},writable:!0,configurable:!0}),Array.prototype.forEach||(Array.prototype.forEach=function(e){var t,r;if(null==this)throw new TypeError("this is null or not defined");var n=Object(this),o=n.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(t=arguments[1]),r=0;r<o;){var i;r in n&&(i=n[r],e.call(t,i,r,n)),r++}})}])});
97
+
98
+ /***/ }),
99
+
100
  /***/ "./node_modules/axios/index.js":
101
  /*!*************************************!*\
102
  !*** ./node_modules/axios/index.js ***!
2187
 
2188
  module.exports = JSON.parse("{\"_from\":\"axios@^0.21.2\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"raw\":\"axios@^0.21.2\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"^0.21.2\",\"saveSpec\":null,\"fetchSpec\":\"^0.21.2\"},\"_requiredBy\":[\"/\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_shasum\":\"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575\",\"_spec\":\"axios@^0.21.2\",\"_where\":\"/Users/darrencooney/Local Sites/instant-images/app/public/wp-content/plugins/instant-images\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
2189
 
2190
+ /***/ }),
2191
+
2192
+ /***/ "./node_modules/classnames/index.js":
2193
+ /*!******************************************!*\
2194
+ !*** ./node_modules/classnames/index.js ***!
2195
+ \******************************************/
2196
+ /*! no static exports found */
2197
+ /***/ (function(module, exports, __webpack_require__) {
2198
+
2199
+ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
2200
+ Copyright (c) 2018 Jed Watson.
2201
+ Licensed under the MIT License (MIT), see
2202
+ http://jedwatson.github.io/classnames
2203
+ */
2204
+ /* global define */
2205
+
2206
+ (function () {
2207
+ 'use strict';
2208
+
2209
+ var hasOwn = {}.hasOwnProperty;
2210
+
2211
+ function classNames() {
2212
+ var classes = [];
2213
+
2214
+ for (var i = 0; i < arguments.length; i++) {
2215
+ var arg = arguments[i];
2216
+ if (!arg) continue;
2217
+
2218
+ var argType = typeof arg;
2219
+
2220
+ if (argType === 'string' || argType === 'number') {
2221
+ classes.push(arg);
2222
+ } else if (Array.isArray(arg)) {
2223
+ if (arg.length) {
2224
+ var inner = classNames.apply(null, arg);
2225
+ if (inner) {
2226
+ classes.push(inner);
2227
+ }
2228
+ }
2229
+ } else if (argType === 'object') {
2230
+ if (arg.toString === Object.prototype.toString) {
2231
+ for (var key in arg) {
2232
+ if (hasOwn.call(arg, key) && arg[key]) {
2233
+ classes.push(key);
2234
+ }
2235
+ }
2236
+ } else {
2237
+ classes.push(arg.toString());
2238
+ }
2239
+ }
2240
+ }
2241
+
2242
+ return classes.join(' ');
2243
+ }
2244
+
2245
+ if ( true && module.exports) {
2246
+ classNames.default = classNames;
2247
+ module.exports = classNames;
2248
+ } else if (true) {
2249
+ // register as 'classnames', consistent with npm package name
2250
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
2251
+ return classNames;
2252
+ }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
2253
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
2254
+ } else {}
2255
+ }());
2256
+
2257
+
2258
  /***/ }),
2259
 
2260
  /***/ "./node_modules/desandro-matches-selector/matches-selector.js":
3962
  _this.updatePreviousElement();
3963
 
3964
  return _this;
3965
+ }
3966
+ /**
3967
+ * Gets the configured document.
3968
+ * @returns {Document|undefined} Configured document, falling back to the main
3969
+ * document, if it exists. During SSR, `undefined` is returned since the
3970
+ * document doesn't exist.
3971
+ */
3972
 
3973
 
3974
  _createClass(FocusTrap, [{
3975
+ key: "getDocument",
3976
+ value: function getDocument() {
3977
+ // SSR: careful to check if `document` exists before accessing it as a variable
3978
+ return this.props.focusTrapOptions.document || (typeof document !== 'undefined' ? document : undefined);
3979
+ } // TODO: Need more test coverage for this function
3980
+
3981
+ }, {
3982
  key: "getNodeForOption",
3983
  value: function getNodeForOption(optionName) {
3984
  var optionValue = this.tailoredFocusTrapOptions[optionName];
3990
  var node = optionValue;
3991
 
3992
  if (typeof optionValue === 'string') {
3993
+ var _this$getDocument;
3994
+
3995
+ node = (_this$getDocument = this.getDocument()) === null || _this$getDocument === void 0 ? void 0 : _this$getDocument.querySelector(optionValue);
3996
 
3997
  if (!node) {
3998
  throw new Error("`".concat(optionName, "` refers to no known node"));
4020
  }, {
4021
  key: "updatePreviousElement",
4022
  value: function updatePreviousElement() {
4023
+ var currentDocument = this.getDocument();
 
4024
 
4025
  if (currentDocument) {
4026
  this.previouslyFocusedElement = currentDocument.activeElement;
4094
  }, {
4095
  key: "componentDidMount",
4096
  value: function componentDidMount() {
4097
+ if (this.props.active) {
4098
+ this.setupFocusTrap();
4099
+ } // else, wait for later activation in case the `focusTrapOptions` will be updated
4100
+ // again before the trap is activated (e.g. if waiting to know what the document
4101
+ // object will be, so the Trap must be rendered, but the consumer is waiting to
4102
+ // activate until they have obtained the document from a ref)
4103
+ // @see https://github.com/focus-trap/focus-trap-react/issues/539
4104
+
4105
  }
4106
  }, {
4107
  key: "componentDidUpdate",
4133
  if (hasUnpaused) {
4134
  this.focusTrap.unpause();
4135
  }
4136
+ } else {
4137
+ // NOTE: if we're in `componentDidUpdate` and we don't have a trap yet,
4138
+ // it either means it shouldn't be active, or it should be but none of
4139
+ // of given `containerElements` were present in the DOM the last time
4140
+ // we tried to create the trap
4141
+ if (prevProps.containerElements !== this.props.containerElements) {
4142
+ this.focusTrapElements = this.props.containerElements;
4143
+ } // don't create the trap unless it should be active in case the consumer
4144
+ // is still updating `focusTrapOptions`
4145
+ // @see https://github.com/focus-trap/focus-trap-react/issues/539
4146
+
4147
+
4148
+ if (this.props.active) {
4149
+ this.updatePreviousElement();
4150
+ this.setupFocusTrap();
4151
+ }
4152
  }
4153
  }
4154
  }, {
39596
 
39597
  /***/ }),
39598
 
39599
+ /***/ "./src/js/components/Filter.js":
39600
+ /*!*************************************!*\
39601
+ !*** ./src/js/components/Filter.js ***!
39602
+ \*************************************/
39603
+ /*! no static exports found */
39604
+ /***/ (function(module, exports, __webpack_require__) {
39605
+
39606
+ "use strict";
39607
+
39608
+
39609
+ Object.defineProperty(exports, "__esModule", {
39610
+ value: true
39611
+ });
39612
+
39613
+ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
39614
+
39615
+ var _a11yarrows = __webpack_require__(/*! a11yarrows */ "./node_modules/a11yarrows/dist/a11yarrows.min.js");
39616
+
39617
+ var a11yarrows = _interopRequireWildcard(_a11yarrows);
39618
+
39619
+ var _classnames = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
39620
+
39621
+ var _classnames2 = _interopRequireDefault(_classnames);
39622
+
39623
+ var _react = __webpack_require__(/*! react */ "./node_modules/react/index.js");
39624
+
39625
+ var _react2 = _interopRequireDefault(_react);
39626
+
39627
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
39628
+
39629
+ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
39630
+
39631
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
39632
+
39633
+ function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
39634
+
39635
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
39636
+
39637
+ var Filter = function (_React$Component) {
39638
+ _inherits(Filter, _React$Component);
39639
+
39640
+ function Filter(props) {
39641
+ _classCallCheck(this, Filter);
39642
+
39643
+ var _this = _possibleConstructorReturn(this, (Filter.__proto__ || Object.getPrototypeOf(Filter)).call(this, props));
39644
+
39645
+ _this.data = _this.props.data;
39646
+ _this.default = _this.data.default;
39647
+ _this.filterKey = _this.props.filterKey;
39648
+ _this.provider = _this.props.provider;
39649
+ _this.id = _this.provider + "-" + _this.filterKey;
39650
+ _this.clickHandler = _this.props.function.bind(_this);
39651
+ _this.toggleMenu = _this.toggleMenu.bind(_this);
39652
+ _this.closeMenuOutside = _this.closeMenuOutside.bind(_this);
39653
+ _this.focusOutside = _this.focusOutside.bind(_this);
39654
+ _this.escClick = _this.escClick.bind(_this);
39655
+ _this.isColor = _this.filterKey === "colors" || _this.filterKey === "color";
39656
+ _this.state = {
39657
+ expanded: false,
39658
+ selected: _this.data.default
39659
+ };
39660
+ return _this;
39661
+ }
39662
+
39663
+ /**
39664
+ * Toggle menu open/closed.
39665
+ *
39666
+ * @param {Event} event The click event.
39667
+ */
39668
+
39669
+
39670
+ _createClass(Filter, [{
39671
+ key: "toggleMenu",
39672
+ value: function toggleMenu(event) {
39673
+ var _this2 = this;
39674
+
39675
+ event.preventDefault();
39676
+
39677
+ // If disabled, don't open menu.
39678
+ var target = event.currentTarget;
39679
+ if (target.disabled) {
39680
+ return false;
39681
+ }
39682
+
39683
+ if (this.state.expanded) {
39684
+ this.setState({ expanded: false }, function () {
39685
+ document.removeEventListener("click", _this2.closeMenuOutside);
39686
+ });
39687
+ } else {
39688
+ this.setState({ expanded: true }, function () {
39689
+ document.addEventListener("click", _this2.closeMenuOutside);
39690
+ });
39691
+ }
39692
+ }
39693
+
39694
+ /**
39695
+ * Close menu when clicking outside.
39696
+ *
39697
+ * @param {Event} event The click event.
39698
+ */
39699
+
39700
+ }, {
39701
+ key: "closeMenuOutside",
39702
+ value: function closeMenuOutside(event) {
39703
+ var _this3 = this;
39704
+
39705
+ if (!this.menu.contains(event.target) && !this.trigger.contains(event.target)) {
39706
+ this.setState({ expanded: false }, function () {
39707
+ document.removeEventListener("click", _this3.closeMenuOutside);
39708
+ });
39709
+ }
39710
+ }
39711
+
39712
+ /**
39713
+ * Checks for focus outside of component.
39714
+ *
39715
+ * @param {Event} event The click event.
39716
+ */
39717
+
39718
+ }, {
39719
+ key: "focusOutside",
39720
+ value: function focusOutside(event) {
39721
+ if (!this.dropdown.contains(event.target)) {
39722
+ this.closeMenuOutside(event);
39723
+ }
39724
+ }
39725
+
39726
+ /**
39727
+ * Detect esc key press.
39728
+ *
39729
+ * @param {Event} event The click event.
39730
+ */
39731
+
39732
+ }, {
39733
+ key: "escClick",
39734
+ value: function escClick(event) {
39735
+ if (event.key === "Escape") {
39736
+ this.setState({ expanded: false });
39737
+ }
39738
+ }
39739
+
39740
+ /**
39741
+ * Click handler for the filter buttons.
39742
+ *
39743
+ * @param {string} filter The current filter key.
39744
+ * @param {string} value The value to filter.
39745
+ */
39746
+
39747
+ }, {
39748
+ key: "click",
39749
+ value: function click(filter, value) {
39750
+ var self = this;
39751
+ var newValue = this.state.selected !== value ? value : this.default;
39752
+
39753
+ this.setState({
39754
+ selected: newValue
39755
+ });
39756
+ this.clickHandler(filter, newValue);
39757
+
39758
+ // Delay for effect.
39759
+ setTimeout(function () {
39760
+ self.trigger.click();
39761
+ }, 100);
39762
+ }
39763
+
39764
+ /**
39765
+ * Convert a color to a CSS value.
39766
+ * @see https://www.w3schools.com/colors/colors_names.asp
39767
+ *
39768
+ * @param {string} color The current color.
39769
+ * @return {string} The color.
39770
+ */
39771
+
39772
+ }, {
39773
+ key: "convertColor",
39774
+ value: function convertColor(color) {
39775
+ if (color === "lilac") {
39776
+ color = "DarkViolet";
39777
+ }
39778
+ if (color === "grayscale" || color === "black_and_white") {
39779
+ color = "LightGray";
39780
+ }
39781
+ return color;
39782
+ }
39783
+
39784
+ // Initiate functions on mount.
39785
+
39786
+ }, {
39787
+ key: "componentDidMount",
39788
+ value: function componentDidMount() {
39789
+ // Initiate arrow menus.
39790
+ a11yarrows.init(this.dropdown, {
39791
+ selector: "button"
39792
+ });
39793
+
39794
+ // Check for focus outside.
39795
+ document.addEventListener("keyup", this.focusOutside);
39796
+ document.addEventListener("keydown", this.escClick);
39797
+ }
39798
+
39799
+ // Functions to run on unmount.
39800
+
39801
+ }, {
39802
+ key: "componentWillUnmount",
39803
+ value: function componentWillUnmount() {
39804
+ document.removeEventListener("keyup", this.focusOutside);
39805
+ document.removeEventListener("keydown", this.escClick);
39806
+ }
39807
+ }, {
39808
+ key: "render",
39809
+ value: function render() {
39810
+ var _this4 = this;
39811
+
39812
+ return _react2.default.createElement(
39813
+ "div",
39814
+ {
39815
+ className: "filter-dropdown",
39816
+ id: this.id,
39817
+ ref: function ref(element) {
39818
+ _this4.dropdown = element;
39819
+ }
39820
+ },
39821
+ _react2.default.createElement(
39822
+ "button",
39823
+ {
39824
+ onClick: this.toggleMenu,
39825
+ className: "filter-dropdown--button",
39826
+ "aria-expanded": this.state.expanded ? "true" : "false",
39827
+ ref: function ref(element) {
39828
+ _this4.trigger = element;
39829
+ }
39830
+ },
39831
+ _react2.default.createElement(
39832
+ "span",
39833
+ { className: "filter-dropdown--button-label" },
39834
+ instant_img_localize.filters[this.data.label]
39835
+ ),
39836
+ _react2.default.createElement(
39837
+ "span",
39838
+ { className: "filter-dropdown--button-selected" },
39839
+ this.state.selected,
39840
+ _react2.default.createElement("i", { className: "fa fa-caret-down", "aria-hidden": "true" })
39841
+ )
39842
+ ),
39843
+ _react2.default.createElement(
39844
+ "div",
39845
+ {
39846
+ className: (0, _classnames2.default)("filter-dropdown--menu", this.state.expanded ? "expanded" : null),
39847
+ "data-key": this.filterKey,
39848
+ "aria-hidden": this.state.expanded ? "false" : "true",
39849
+ ref: function ref(element) {
39850
+ _this4.menu = element;
39851
+ }
39852
+ },
39853
+ this.data.filters && this.data.filters.map(function (value, key) {
39854
+ return _react2.default.createElement(
39855
+ "button",
39856
+ {
39857
+ key: key,
39858
+ className: (0, _classnames2.default)("filter-dropdown--item", _this4.state.selected === value ? "selected" : null),
39859
+ onClick: function onClick() {
39860
+ return _this4.click(_this4.filterKey, value);
39861
+ }
39862
+ },
39863
+ value.replace(/_/g, " "),
39864
+ value !== "all" && value !== "transparent" && _this4.isColor ? _react2.default.createElement("span", {
39865
+ className: "_color",
39866
+ style: { color: _this4.convertColor(value) }
39867
+ }) : null
39868
+ );
39869
+ })
39870
+ )
39871
+ );
39872
+ }
39873
+ }]);
39874
+
39875
+ return Filter;
39876
+ }(_react2.default.Component);
39877
+
39878
+ exports.default = Filter;
39879
+
39880
+ /***/ }),
39881
+
39882
  /***/ "./src/js/components/LoadMore.js":
39883
  /*!***************************************!*\
39884
  !*** ./src/js/components/LoadMore.js ***!
40066
 
40067
  /***/ }),
40068
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40069
  /***/ "./src/js/components/Photo.js":
40070
  /*!************************************!*\
40071
  !*** ./src/js/components/Photo.js ***!
41035
  value: true
41036
  });
41037
 
41038
+ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
41039
+
41040
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
41041
 
41042
  var _masonryLayout = __webpack_require__(/*! masonry-layout */ "./node_modules/masonry-layout/masonry.js");
41051
 
41052
  var _API2 = _interopRequireDefault(_API);
41053
 
41054
+ var _filters = __webpack_require__(/*! ../constants/filters */ "./src/js/constants/filters.js");
41055
+
41056
+ var _filters2 = _interopRequireDefault(_filters);
41057
+
41058
  var _buildTestURL = __webpack_require__(/*! ../functions/buildTestURL */ "./src/js/functions/buildTestURL.js");
41059
 
41060
  var _buildTestURL2 = _interopRequireDefault(_buildTestURL);
41061
 
41062
+ var _contentSafety = __webpack_require__(/*! ../functions/contentSafety */ "./src/js/functions/contentSafety.js");
41063
+
41064
+ var _contentSafety2 = _interopRequireDefault(_contentSafety);
41065
+
41066
+ var _createQS = __webpack_require__(/*! ../functions/createQS */ "./src/js/functions/createQS.js");
41067
+
41068
+ var _createQS2 = _interopRequireDefault(_createQS);
41069
+
41070
  var _getResults = __webpack_require__(/*! ../functions/getResults */ "./src/js/functions/getResults.js");
41071
 
41072
  var _getResults2 = _interopRequireDefault(_getResults);
41083
 
41084
  var _ErrorMessage2 = _interopRequireDefault(_ErrorMessage);
41085
 
41086
+ var _Filter = __webpack_require__(/*! ./Filter */ "./src/js/components/Filter.js");
41087
+
41088
+ var _Filter2 = _interopRequireDefault(_Filter);
41089
+
41090
  var _LoadingBlock = __webpack_require__(/*! ./LoadingBlock */ "./src/js/components/LoadingBlock.js");
41091
 
41092
  var _LoadingBlock2 = _interopRequireDefault(_LoadingBlock);
41099
 
41100
  var _NoResults2 = _interopRequireDefault(_NoResults);
41101
 
 
 
 
 
41102
  var _Photo = __webpack_require__(/*! ./Photo */ "./src/js/components/Photo.js");
41103
 
41104
  var _Photo2 = _interopRequireDefault(_Photo);
41115
 
41116
  function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
41117
 
 
 
41118
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
41119
 
41120
  function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
41133
  var _this = _possibleConstructorReturn(this, (PhotoList.__proto__ || Object.getPrototypeOf(PhotoList)).call(this, props));
41134
 
41135
  _this.providers = ["Unsplash", "Pixabay"];
 
41136
  _this.provider = _this.props.provider; // Unsplash, Pixabay, etc.
41137
  _this.api_provider = _API2.default[_this.provider]; // The API settings for the provider.
41138
  _this.arr_key = _this.api_provider.arr_key;
 
41139
 
41140
+ // API Vars.
41141
  _this.api_key = instant_img_localize[_this.provider + "_app_id"];
 
41142
  _this.api_url = "" + _this.api_provider.photo_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
41143
  _this.search_api_url = "" + _this.api_provider.search_api + _this.api_provider.api_query_var + _this.api_key + _API2.default.defaults.posts_per_page;
41144
 
41146
  _this.results = (0, _getResults2.default)(_this.provider, _this.arr_key, _this.props.results);
41147
  _this.state = {
41148
  results: _this.results,
41149
+ filters: _filters2.default[_this.provider].filters,
41150
+ search_filters: _filters2.default[_this.provider].search,
41151
  restapi_error: false,
41152
  api_lightbox: false
41153
  };
41154
 
41155
+ _this.filters = {};
41156
+ _this.search_filters = {};
41157
+
41158
  _this.orderby = _this.props.orderby; // Orderby
41159
  _this.page = _this.props.page; // Page
41160
 
41161
  _this.is_search = false;
41162
  _this.search_term = "";
41163
  _this.total_results = 0;
41164
+ _this.view = "";
41165
  _this.isLoading = false; // Loading flag.
41166
  _this.isDone = false; // Done flag.
41167
  _this.errorMsg = "";
41168
  _this.msnry = "";
41169
  _this.tooltipInterval = "";
41170
+ _this.delay = 250;
41171
 
41172
  // Refs.
41173
  _this.photoTarget = _react2.default.createRef();
41174
  _this.providerNav = _react2.default.createRef();
41175
  _this.controlNav = _react2.default.createRef();
41176
  _this.photoSearch = _react2.default.createRef();
41177
+ _this.filterGroups = _react2.default.createRef();
41178
 
41179
  // Editor props.
41180
  _this.editor = _this.props.editor ? _this.props.editor : "classic";
41258
  }
41259
  }
41260
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41261
  /**
41262
  * Run the search.
41263
  *
41271
  var self = this;
41272
  var input = this.photoSearch.current;
41273
  var type = "term";
 
41274
 
41275
+ this.photoTarget.current.classList.add("loading");
41276
+ this.isLoading = true;
41277
+
41278
+ this.page = 1; // Reset currentpage num.
41279
+ this.toggleFilters(); // Disable filters.
41280
 
41281
+ var url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term + (0, _contentSafety2.default)(this.provider);
 
 
 
41282
 
41283
  // Search by ID.
41284
  // Allow users to search by photo by prepending id:{photo_id} to search terms.
41285
  var search_type = term.substring(0, 3);
 
41286
  if (search_type === "id:") {
41287
  type = "id";
41288
  term = term.replace("id:", "");
41289
  url = (0, _searchByID2.default)(this.provider, term, this.api_provider.photo_api, this.api_provider.api_query_var, this.api_key);
41290
  }
41291
 
41292
+ // Get search filters.
41293
+ var filters = (0, _createQS2.default)(this.search_filters);
41294
+ url = filters !== "&" ? "" + url + filters : url;
41295
+
41296
  fetch(url).then(function (data) {
41297
  return data.json();
41298
  }).then(function (data) {
41306
 
41307
  // Update Props.
41308
  self.results = results;
41309
+ self.setState({
41310
+ results: self.results,
41311
+ search_filters: _filters2.default[self.provider].search
41312
+ });
41313
  }
41314
 
41315
  // Search by ID.
41336
  self.setState({ results: self.results });
41337
  }
41338
 
41339
+ // Delay for effect.
41340
+ setTimeout(function () {
41341
+ input.classList.remove("searching");
41342
+ self.photoTarget.current.classList.remove("loading");
41343
+ self.isLoading = false;
41344
+ }, self.delay);
41345
  }).catch(function (error) {
41346
  console.log(error);
41347
 
41351
  self.total_results = 0;
41352
  self.isDone = true;
41353
 
41354
+ this.photoTarget.current.classList.remove("loading");
41355
+ this.isLoading = false;
41356
+
41357
  // Update Props.
41358
  self.results = [];
41359
  self.setState({ results: self.results });
41361
  }
41362
 
41363
  /**
41364
+ * Reset search results, settings and results view.
41365
  *
41366
  * @since 3.0
41367
  */
41369
  }, {
41370
  key: "clearSearch",
41371
  value: function clearSearch() {
41372
+ this.photoSearch.current.value = "";
 
41373
  this.total_results = 0;
41374
  this.is_search = false;
41375
  this.search_term = "";
41376
+ this.search_filters = {}; // Reset search filters.
41377
+ this.toggleFilters(); // Re-enable filters.
41378
  }
41379
 
41380
  /**
41381
+ * Click event for the control nav items.
41382
  *
41383
+ * @param {Event} e The clicked element event.
41384
  * @param {string} view Current view.
41385
+ * @since 4.6
41386
+ */
41387
+
41388
+ }, {
41389
+ key: "controlsClick",
41390
+ value: function controlsClick(e, view) {
41391
+ var target = e.currentTarget;
41392
+ this.view = view;
41393
+ if (!target.classList.contains("active")) {
41394
+ this.getPhotos(view);
41395
+ }
41396
+ }
41397
+
41398
+ /**
41399
+ * Get the initial set of photos for the current view (New/Popular/Filters/etc...).
41400
+ *
41401
+ * @param {string} view Current view.
41402
+ * @param {Boolean} reset Is this an app reset.
41403
+ * @param {Boolean} switcher Is this a provider switch.
41404
  * @since 3.0
41405
  */
41406
 
41407
  }, {
41408
  key: "getPhotos",
41409
+ value: function getPhotos(view) {
41410
+ var reset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
41411
+ var switcher = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
41412
 
41413
  var self = this;
 
41414
 
41415
+ if (this.isLoading && !reset) {
41416
  return; // exit if active
41417
  }
41418
 
41419
+ this.photoTarget.current.classList.add("loading");
41420
  this.isLoading = true;
41421
  this.page = 1;
41422
  this.orderby = view;
41423
  this.results = [];
41424
  this.clearSearch();
41425
 
41426
+ // Get filters.
41427
+ var filters = (0, _createQS2.default)(this.filters);
41428
+
41429
+ // Build URL.
41430
+ var url = this.api_url + "&page=" + this.page + "&" + (0, _contentSafety2.default)(this.provider) + filters;
41431
 
41432
  fetch(url).then(function (data) {
41433
  return data.json();
41441
  self.results = results;
41442
 
41443
  // Set results state.
41444
+ if (!switcher) {
41445
+ self.setState({
41446
+ results: results
41447
+ });
41448
+ } else {
41449
+ self.setState({
41450
+ results: results,
41451
+ filters: _filters2.default[self.provider].filters
41452
+ });
41453
+ }
41454
 
41455
+ // Delay for effect.
41456
+ setTimeout(function () {
41457
+ self.photoTarget.current.classList.remove("loading");
41458
+ self.isLoading = false;
41459
+ }, self.delay);
41460
  }).catch(function (error) {
41461
  console.log(error);
41462
+ self.photoTarget.current.classList.remove("loading");
41463
  self.isLoading = false;
41464
  });
41465
  }
41478
  this.container.classList.add("loading");
41479
  this.isLoading = true;
41480
 
41481
+ var url = this.api_url + "&page=" + this.page + "&";
41482
+ var filters = "";
41483
 
41484
  if (this.is_search) {
41485
  url = this.search_api_url + "&page=" + this.page + "&" + this.api_provider.search_query_var + "=" + this.search_term;
41486
+ filters = (0, _createQS2.default)(this.search_filters);
41487
+ } else {
41488
+ filters = (0, _createQS2.default)(this.filters);
 
 
41489
  }
41490
 
41491
+ // Build URL
41492
+ url = filters ? "" + url + (0, _contentSafety2.default)(this.provider) + filters : url;
41493
+
41494
  fetch(url).then(function (data) {
41495
  return data.json();
41496
  }).then(function (data) {
41511
 
41512
  // Update Props
41513
  self.setState({ results: self.results });
41514
+
41515
+ self.isLoading = false;
41516
  }).catch(function (error) {
41517
  console.log(error);
41518
  self.isLoading = false;
41519
  });
41520
  }
41521
 
41522
+ /**
41523
+ * Filter the photo listing.
41524
+ *
41525
+ * @param {string} filter The current filter key.
41526
+ * @param {string} value The value to filter.
41527
+ */
41528
+
41529
+ }, {
41530
+ key: "filterPhotos",
41531
+ value: function filterPhotos(filter, value) {
41532
+ if (this.filters[filter] && value === "#" || value === "") {
41533
+ delete this.filters[filter];
41534
+ } else {
41535
+ this.filters[filter] = value;
41536
+ }
41537
+ this.getPhotos(this.view, true);
41538
+ }
41539
+
41540
+ /**
41541
+ * Filter the search results.
41542
+ *
41543
+ * @param {string} filter The current filter key.
41544
+ * @param {string} value The value to filter.
41545
+ */
41546
+
41547
+ }, {
41548
+ key: "filterSearch",
41549
+ value: function filterSearch(filter, value) {
41550
+ if (this.search_filters[filter] && value === "#" || value === "") {
41551
+ delete this.search_filters[filter];
41552
+ } else {
41553
+ this.search_filters[filter] = value;
41554
+ }
41555
+ this.doSearch(this.search_term);
41556
+ }
41557
+
41558
+ /**
41559
+ * Toggle the active state of all filters.
41560
+ */
41561
+
41562
+ }, {
41563
+ key: "toggleFilters",
41564
+ value: function toggleFilters() {
41565
+ var _this2 = this;
41566
+
41567
+ var filters = this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");
41568
+ if (filters) {
41569
+ filters.forEach(function (button) {
41570
+ button.disabled = _this2.is_search ? true : false;
41571
+ });
41572
+ }
41573
+ if (this.is_search) {
41574
+ this.filterGroups.current.classList.add("inactive");
41575
+ } else {
41576
+ this.filterGroups.current.classList.remove("inactive");
41577
+ }
41578
+ }
41579
+
41580
  /**
41581
  * Callback after activating and verififying an API key.
41582
  *
41670
  this.provider = provider;
41671
  this.api_provider = _API2.default[this.provider];
41672
 
41673
+ // Clear filters.
41674
+ this.filters = {};
41675
+ this.search_filters = {};
41676
+
41677
  // Remove active from buttons.
41678
  this.providerNav.current.querySelectorAll("button").forEach(function (button) {
41679
  button.classList.remove("active");
41684
 
41685
  // Set current provider params.
41686
  this.arr_key = this.api_provider.arr_key;
 
41687
  this.api_key = instant_img_localize[this.provider + "_app_id"];
41688
 
41689
  this.api_url = "" + this.api_provider.photo_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
41690
  this.search_api_url = "" + this.api_provider.search_api + this.api_provider.api_query_var + this.api_key + _API2.default.defaults.posts_per_page;
41691
 
41692
  // At last, get the photos.
41693
+ this.view = "latest";
41694
+ this.getPhotos(this.view, true, true);
41695
 
41696
+ case 26:
41697
  case "end":
41698
  return _context.stop();
41699
  }
41701
  }, _callee, this);
41702
  }));
41703
 
41704
+ function switchProvider(_x3) {
41705
  return _ref.apply(this, arguments);
41706
  }
41707
 
41763
  }
41764
 
41765
  /**
41766
+ * Sets the loading state.
41767
  *
41768
  * @since 3.0
41769
  */
41770
 
41771
  }, {
41772
+ key: "doneLoading",
41773
+ value: function doneLoading() {
41774
  var self = this;
 
 
 
 
 
 
 
 
 
 
 
 
41775
  setTimeout(function () {
41776
  self.isLoading = false;
41777
  self.container.classList.remove("loading");
41778
+ }, self.delay);
41779
  }
41780
 
41781
  /**
41814
 
41815
  setTimeout(function () {
41816
  tooltip.classList.add("over");
41817
+ }, self.delay);
41818
  }, 750);
41819
  }
41820
 
41838
  key: "componentDidUpdate",
41839
  value: function componentDidUpdate() {
41840
  this.renderLayout();
41841
+ this.doneLoading();
41842
  }
41843
 
41844
  // Component Init
41846
  }, {
41847
  key: "componentDidMount",
41848
  value: function componentDidMount() {
41849
+ var _this3 = this;
41850
 
41851
  this.renderLayout();
41852
+ this.doneLoading();
41853
  this.test();
41854
  this.container.classList.remove("loading");
41855
  this.wrapper.classList.add("loaded");
41861
  } else {
41862
  // Add scroll event
41863
  window.addEventListener("scroll", function () {
41864
+ return _this3.onScroll();
41865
  });
41866
  }
41867
  }
41868
  }, {
41869
  key: "render",
41870
  value: function render() {
41871
+ var _this4 = this;
41872
 
41873
  return _react2.default.createElement(
41874
  "div",
41885
  {
41886
  "data-provider": provider.toLowerCase(),
41887
  onClick: function onClick(e) {
41888
+ return _this4.switchProvider(e);
41889
  },
41890
+ className: _this4.provider === provider.toLowerCase() ? "provider-nav--btn active" : "provider-nav--btn"
41891
  },
41892
  _react2.default.createElement(
41893
  "span",
41908
  afterVerifiedAPICallback: this.afterVerifiedAPICallback.bind(this),
41909
  closeAPILightbox: this.closeAPILightbox.bind(this)
41910
  }),
41911
+ _react2.default.createElement(
41912
+ "div",
41913
  { className: "control-nav", ref: this.controlNav },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41914
  _react2.default.createElement(
41915
+ "div",
41916
+ {
41917
+ className: "control-nav--filters-wrap",
41918
+ ref: this.filterGroups
41919
+ },
41920
+ Object.entries(this.state.filters).length && _react2.default.createElement(
41921
+ "div",
41922
+ { className: "control-nav--filters" },
41923
+ Object.entries(this.state.filters).map(function (_ref2, i) {
41924
+ var _ref3 = _slicedToArray(_ref2, 2),
41925
+ key = _ref3[0],
41926
+ filter = _ref3[1];
41927
+
41928
+ return _react2.default.createElement(_Filter2.default, {
41929
+ key: key + "-" + i,
41930
+ filterKey: key,
41931
+ provider: _this4.provider,
41932
+ data: filter,
41933
+ "function": _this4.filterPhotos.bind(_this4)
41934
+ });
41935
+ })
41936
+ )
41937
+ ),
41938
+ _react2.default.createElement(
41939
+ "div",
41940
+ {
41941
+ className: "control-nav--search search-field",
41942
+ id: "search-bar"
41943
+ },
41944
  _react2.default.createElement(
41945
  "form",
41946
  { onSubmit: function onSubmit(e) {
41947
+ return _this4.search(e);
41948
  }, autoComplete: "off" },
41949
  _react2.default.createElement(
41950
  "label",
41964
  ),
41965
  _react2.default.createElement(_ResultsToolTip2.default, {
41966
  container: this.container,
41967
+ getPhotos: this.getPhotos.bind(this),
41968
  isSearch: this.is_search,
41969
  total: this.total_results,
41970
  title: this.total_results + " " + instant_img_localize.search_results + " " + this.search_term
41973
  )
41974
  ),
41975
  this.state.restapi_error && _react2.default.createElement(_ErrorMessage2.default, null),
41976
+ this.is_search && this.editor !== "gutenberg" && _react2.default.createElement(
41977
+ "div",
41978
+ { className: "search-results-header" },
41979
+ _react2.default.createElement(
41980
+ "h2",
41981
+ null,
41982
+ this.search_term
41983
+ ),
41984
+ _react2.default.createElement(
41985
+ "div",
41986
+ { className: "search-results-header--text" },
41987
+ this.total_results + " " + instant_img_localize.search_results,
41988
+ " ",
41989
+ _react2.default.createElement(
41990
+ "strong",
41991
+ null,
41992
+ "" + this.search_term
41993
+ ),
41994
+ " - ",
41995
+ _react2.default.createElement(
41996
+ "button",
41997
+ {
41998
+ title: instant_img_localize.clear_search,
41999
+ onClick: function onClick() {
42000
+ return _this4.getPhotos("latest");
42001
+ }
42002
+ },
42003
+ instant_img_localize.clear_search
42004
+ )
42005
+ ),
42006
+ Object.entries(this.state.search_filters).length && _react2.default.createElement(
42007
+ "div",
42008
+ { className: "control-nav--filters-wrap" },
42009
+ _react2.default.createElement(
42010
+ "div",
42011
+ { className: "control-nav--filters" },
42012
+ Object.entries(this.state.search_filters).map(function (_ref4, i) {
42013
+ var _ref5 = _slicedToArray(_ref4, 2),
42014
+ key = _ref5[0],
42015
+ filter = _ref5[1];
42016
+
42017
+ return _react2.default.createElement(_Filter2.default, {
42018
+ key: key + "-" + i,
42019
+ filterKey: key,
42020
+ provider: _this4.provider,
42021
+ data: filter,
42022
+ "function": _this4.filterSearch.bind(_this4)
42023
+ });
42024
+ })
42025
+ )
42026
+ )
42027
+ ),
42028
  _react2.default.createElement(
42029
  "div",
42030
  { id: "photos", className: "photo-target", ref: this.photoTarget },
42031
  this.state.results.map(function (result, iterator) {
42032
  return _react2.default.createElement(_Photo2.default, {
42033
+ provider: _this4.provider,
42034
  result: result,
42035
+ key: _this4.provider + "-" + result.id + "-" + iterator,
42036
+ editor: _this4.editor,
42037
+ mediaRouter: _this4.is_media_router,
42038
+ blockEditor: _this4.is_block_editor,
42039
+ SetFeaturedImage: _this4.SetFeaturedImage,
42040
+ InsertImage: _this4.InsertImage,
42041
+ showTooltip: _this4.showTooltip,
42042
+ hideTooltip: _this4.hideTooltip
42043
  });
42044
  })
42045
  ),
42094
 
42095
  var _this = _possibleConstructorReturn(this, (ResultsToolTip.__proto__ || Object.getPrototypeOf(ResultsToolTip)).call(this, props));
42096
 
42097
+ _this.getPhotos = _this.props.getPhotos.bind(_this);
42098
  return _this;
42099
  }
42100
 
42119
  type: "button",
42120
  title: instant_img_localize.clear_search,
42121
  onClick: function onClick() {
42122
+ return _this2.getPhotos("latest");
42123
  }
42124
  },
42125
  "x",
42209
  },
42210
  unsplash: {
42211
  requires_key: false,
42212
+ new: false,
42213
+ filters: true,
42214
  api_query_var: "/?client_id=",
42215
  photo_api: "https://api.unsplash.com/photos",
42216
  collections_api: "https://api.unsplash.com/collections",
42217
  search_api: "https://api.unsplash.com/search/photos",
42218
  search_query_var: "query",
42219
  arr_key: "results",
 
 
42220
  orientation: ["landscape", "portrait", "squarish"]
42221
  },
42222
  pixabay: {
42223
  requires_key: true,
42224
+ new: false,
42225
+ filters: true,
42226
  api_query_var: "/?key=",
42227
  photo_api: "https://pixabay.com/api",
42228
  search_api: "https://pixabay.com/api",
42229
  search_query_var: "q",
42230
  arr_key: "hits",
 
 
42231
  orientation: ["horizontal", "vertical"]
42232
  }
42233
  };
42234
 
42235
  /***/ }),
42236
 
42237
+ /***/ "./src/js/constants/filters.js":
42238
+ /*!*************************************!*\
42239
+ !*** ./src/js/constants/filters.js ***!
42240
+ \*************************************/
42241
+ /*! no static exports found */
42242
+ /***/ (function(module, exports, __webpack_require__) {
42243
+
42244
+ "use strict";
42245
+
42246
+
42247
+ module.exports = {
42248
+ unsplash: {
42249
+ filters: {
42250
+ order_by: {
42251
+ label: "orderby",
42252
+ default: "latest",
42253
+ filters: ["latest", "popular", "oldest"]
42254
+ }
42255
+ },
42256
+ search: {
42257
+ order_by: {
42258
+ label: "orderby",
42259
+ default: "relevance",
42260
+ filters: ["relevance", "latest"]
42261
+ },
42262
+ orientation: {
42263
+ label: "orientation",
42264
+ default: "all",
42265
+ filters: ["all", "landscape", "portrait", "squarish"]
42266
+ },
42267
+ color: {
42268
+ label: "colors",
42269
+ default: "all",
42270
+ filters: ["all", "black_and_white", "black", "white", "yellow", "orange", "red", "purple", "magenta", "green", "teal", "blue"]
42271
+ }
42272
+ }
42273
+ },
42274
+ pixabay: {
42275
+ filters: {
42276
+ order: {
42277
+ label: "orderby",
42278
+ default: "popular",
42279
+ filters: ["latest", "popular"]
42280
+ },
42281
+ image_type: {
42282
+ label: "type",
42283
+ default: "all",
42284
+ filters: ["all", "photo", "illustration", "vector"]
42285
+ },
42286
+ category: {
42287
+ label: "category",
42288
+ default: "all",
42289
+ filters: ["all", "backgrounds", "fashion", "nature", "science", "education", "feelings", "health", "people", "religion", "places", "animals", "industry", "computer", "food", "sports", "transportation", "travel", "buildings", "business", "music"]
42290
+ },
42291
+ colors: {
42292
+ label: "colors",
42293
+ default: "all",
42294
+ filters: ["all", "grayscale", "red", "orange", "yellow", "green", "turquoise", "blue", "lilac", "pink", "white", "gray", "black", "brown", "transparent"]
42295
+ },
42296
+ orientation: {
42297
+ label: "orientation",
42298
+ default: "all",
42299
+ filters: ["all", "horizontal", "vertical"]
42300
+ }
42301
+ },
42302
+ search: {
42303
+ colors: {
42304
+ label: "colors",
42305
+ default: "all",
42306
+ filters: ["all", "grayscale", "red", "orange", "yellow", "green", "turquoise", "blue", "lilac", "pink", "white", "gray", "black", "brown", "transparent"]
42307
+ },
42308
+ orientation: {
42309
+ label: "orientation",
42310
+ default: "all",
42311
+ filters: ["all", "horizontal", "vertical"]
42312
+ }
42313
+ }
42314
+ }
42315
+ };
42316
+
42317
+ /***/ }),
42318
+
42319
  /***/ "./src/js/functions/buildTestURL.js":
42320
  /*!******************************************!*\
42321
  !*** ./src/js/functions/buildTestURL.js ***!
42394
 
42395
  /***/ }),
42396
 
42397
+ /***/ "./src/js/functions/contentSafety.js":
42398
+ /*!*******************************************!*\
42399
+ !*** ./src/js/functions/contentSafety.js ***!
42400
+ \*******************************************/
42401
+ /*! no static exports found */
42402
+ /***/ (function(module, exports, __webpack_require__) {
42403
+
42404
+ "use strict";
42405
+
42406
+
42407
+ Object.defineProperty(exports, "__esModule", {
42408
+ value: true
42409
+ });
42410
+ exports.default = contentSafety;
42411
+ /**
42412
+ * Set the photo safety for indicating that only images suitable for all ages should be returned.
42413
+ * @see https://unsplash.com/documentation#content-safety
42414
+ * @see https://pixabay.com/api/docs/
42415
+ *
42416
+ * @param {string} provider The current service provider.
42417
+ * @return {string} The api string for filtering content.
42418
+ */
42419
+ function contentSafety(provider) {
42420
+ var str = "";
42421
+ switch (provider) {
42422
+ case "unsplash":
42423
+ if (instant_img_localize.unsplash_content_filter) {
42424
+ str = "&content_filter=" + instant_img_localize.unsplash_content_filter;
42425
+ }
42426
+ break;
42427
+
42428
+ case "pixabay":
42429
+ if (instant_img_localize.pixabay_safesearch) {
42430
+ str = "&safesearch=" + instant_img_localize.pixabay_safesearch;
42431
+ }
42432
+ break;
42433
+ }
42434
+ return str;
42435
+ }
42436
+
42437
+ /***/ }),
42438
+
42439
+ /***/ "./src/js/functions/createQS.js":
42440
+ /*!**************************************!*\
42441
+ !*** ./src/js/functions/createQS.js ***!
42442
+ \**************************************/
42443
+ /*! no static exports found */
42444
+ /***/ (function(module, exports, __webpack_require__) {
42445
+
42446
+ "use strict";
42447
+
42448
+
42449
+ Object.defineProperty(exports, "__esModule", {
42450
+ value: true
42451
+ });
42452
+ exports.default = createQS;
42453
+ /**
42454
+ * Create a querystring from an object.
42455
+ *
42456
+ * @param {string} obj The object.
42457
+ * @return {string} The generated querystring.
42458
+ */
42459
+ function createQS(obj) {
42460
+ var qs = Object.keys(obj).map(function (key) {
42461
+ return key + "=" + obj[key];
42462
+ }).join("&");
42463
+
42464
+ return "&" + qs;
42465
+ }
42466
+
42467
+ /***/ }),
42468
+
42469
  /***/ "./src/js/functions/generateAttribution.js.js":
42470
  /*!****************************************************!*\
42471
  !*** ./src/js/functions/generateAttribution.js.js ***!
dist/js/instant-images-media.min.js CHANGED
@@ -1,14 +1,19 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=76)}([function(e,t,n){"use strict";e.exports=n(20)},function(e,t,n){"use strict";var r=n(10),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",posts_per_page:"&per_page=20"},unsplash:{requires_key:!1,api_query_var:"/?client_id=",photo_api:"https://api.unsplash.com/photos",collections_api:"https://api.unsplash.com/collections",search_api:"https://api.unsplash.com/search/photos",search_query_var:"query",arr_key:"results",order_key:"order_by",order:["latest","popular","oldest"],orientation:["landscape","portrait","squarish"]},pixabay:{requires_key:!0,new:!0,api_query_var:"/?key=",photo_api:"https://pixabay.com/api",search_api:"https://pixabay.com/api",search_query_var:"q",arr_key:"hits",order_key:"order",order:["latest","popular"],orientation:["horizontal","vertical"]}}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
- */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var o,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);o=200==Math.round(e(r.width)),l.isBoxSizeOuter=o,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,g=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&o,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+y,u.outerHeight=u.height+g,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default[e],n=instant_img_localize[e+"_app_id"];return""+t.photo_api+t.api_query_var+n+"&per_page=5&page=1"};var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(43),o=n(12),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(13)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(19))},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
- */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_ratelimit_msg)}},function(e,t,n){e.exports=n(38)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(44),o=n(45),a=n(11),l=n(46),s=n(49),u=n(50),c=n(14);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var y=l(e.baseURL,e.url);function g(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(21)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";
 
 
 
 
 
12
  /** @license React v17.0.2
13
  * react.production.min.js
14
  *
@@ -16,7 +21,7 @@ object-assign
16
  *
17
  * This source code is licensed under the MIT license found in the
18
  * LICENSE file in the root directory of this source tree.
19
- */var r=n(7),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+T(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(l=e[u],u);s+=C(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=C(l=l.value,t,n,c=r+T(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function O(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
20
  /** @license React v17.0.2
21
  * react-dom.production.min.js
22
  *
@@ -24,7 +29,7 @@ object-assign
24
  *
25
  * This source code is licensed under the MIT license found in the
26
  * LICENSE file in the root directory of this source tree.
27
- */var r=n(0),i=n(7),o=n(22);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,x=60108,T=60114,C=60109,O=60110,P=60112,L=60113,N=60120,z=60115,I=60116,R=60121,j=60128,M=60129,A=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),E=D("react.portal"),S=D("react.fragment"),x=D("react.strict_mode"),T=D("react.profiler"),C=D("react.provider"),O=D("react.context"),P=D("react.forward_ref"),L=D("react.suspense"),N=D("react.suspense_list"),z=D("react.memo"),I=D("react.lazy"),R=D("react.block"),D("react.scope"),j=D("react.opaque.id"),M=D("react.debug_trace_mode"),A=D("react.offscreen"),F=D("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function $(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case T:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case R:return Q(e._render);case I:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Ce=null,Oe=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),Te(e.stateNode,e.type,t))}}function Le(e){Ce?Oe?Oe.push(e):Oe=[e]:Ce=e}function Ne(){if(Ce){var e=Ce,t=Oe;if(Oe=Ce=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function Ie(e,t,n,r,i){return e(t,n,r,i)}function Re(){}var je=ze,Me=!1,Ae=!1;function Fe(){null===Ce&&null===Oe||(Re(),Ne())}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function qe(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var We=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){We=!0,He=e}};function Ge(e,t,n,r,i,o,a,l,s){We=!1,He=null,qe.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&yt(at)&&(at=null),null!==lt&&yt(lt)&&(lt=null),null!==st&&yt(st)&&(st=null),ut.forEach(gt),ct.forEach(gt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Tt(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ct=Tt("animationend"),Ot=Tt("animationiteration"),Pt=Tt("animationstart"),Lt=Tt("transitionend"),Nt=new Map,zt=new Map,It=["abort","abort",Ct,"animationEnd",Ot,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var jt=8;function Mt(e){if(0!=(1&e))return jt=15,1;if(0!=(2&e))return jt=14,2;if(0!=(4&e))return jt=13,4;var t=24&e;return 0!==t?(jt=12,t):0!=(32&e)?(jt=11,32):0!==(t=192&e)?(jt=10,t):0!=(256&e)?(jt=9,256):0!==(t=3584&e)?(jt=8,t):0!=(4096&e)?(jt=7,4096):0!==(t=4186112&e)?(jt=6,t):0!==(t=62914560&e)?(jt=5,t):67108864&e?(jt=4,67108864):0!=(134217728&e)?(jt=3,134217728):0!==(t=805306368&e)?(jt=2,t):0!=(1073741824&e)?(jt=1,1073741824):(jt=8,e)}function At(e,t){var n=e.pendingLanes;if(0===n)return jt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=jt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Mt(s),i=jt):0!==(l&=o)&&(r=Mt(l),i=jt)}else 0!==(o=n&~a)?(r=Mt(o),i=jt):0!==l&&(r=Mt(l),i=jt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Mt(t),i<=jt)return t;jt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Dt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Dt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||Re();var i=Xt,o=Me;Me=!0;try{Ie(i,e,t,n,r)}finally{(Me=o)||Fe()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=xe(r);if(null!==(i=Xr(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),yn=ln(i({},mn,{dataTransfer:0})),gn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return xn}var Cn=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),On=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],In=f&&"CompositionEvent"in window,Rn=null;f&&"documentMode"in document&&(Rn=document.documentMode);var jn=f&&"TextEvent"in window&&!Rn,Mn=f&&(!In||Rn&&8<Rn&&11>=Rn),An=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){Sr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,xe(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,yr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Rt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Rt(It,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,s,u){if(Ge.apply(this,arguments),We){if(!We)throw Error(a(198));var c=He;We=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function xr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){e[Tr]||(e[Tr]=!0,l.forEach((function(t){kr.has(t)||Or(t,!1,e,null),Or(t,!0,e,null)})))}function Or(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(i|=4),Pr(o,e,i,t),a.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=Xr(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Ae)return e(t,n);Ae=!0;try{je(e,t,n)}finally{Ae=!1,Fe()}}((function(){var r=o,i=xe(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ct:case Ot:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=De(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=Ir(p))h++;for(p=0,m=d;m;m=Ir(m))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==s&&Rr(a,l,s,c,!1),null!==u&&null!==f&&Rr(a,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(Wn(l))if(Kn)v=or;else{v=rr;var y=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,i):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ie(l,"number",l.value)),y=r?Zr(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(hr=y,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,gr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,i)}var g;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(y=zr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=Un(n))&&(b.data=g))),(g=jn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,An);case"textInput":return(e=t.data)===An&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!In&&Dn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}Sr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Nr(e,o,i)),null!=(o=De(e,t))&&r.push(Nr(e,o,i))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=De(n,o))&&a.unshift(Nr(n,s,l)):i||null!=(s=De(n,o))&&a.push(Nr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function jr(){}var Mr=null,Ar=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Dr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return null!=(e=e.childContextTypes)}function pi(){oi(ui),oi(si)}function hi(e,t,n){if(si.current!==li)throw Error(a(168));ai(si,t),ai(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,ai(si,e),ai(ui,ui.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,oi(ui),oi(si),ai(si,e)):oi(ui),ai(ui,n)}var gi=null,bi=null,_i=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,Si=o.unstable_requestPaint,xi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Ci=o.unstable_ImmediatePriority,Oi=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,zi={},Ii=void 0!==Si?Si:function(){},Ri=null,ji=null,Mi=!1,Ai=xi(),Fi=1e4>Ai?xi:function(){return xi()-Ai};function Di(){switch(Ti()){case Ci:return 99;case Oi:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Ci;case 98:return Oi;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(a(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function qi(e,t,n){return e=Ui(e),wi(e,t,n)}function Wi(){if(null!==ji){var e=ji;ji=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==Ri){Mi=!0;var e=0;try{var t=Ri;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),wi(Ci,Wi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;oi(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(za=!0),e.firstContext=null)}function to(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(a(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=o.baseState,l=0,f=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Rl|=l,e.lanes=l,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=os(),r=as(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),ao(e,i),ls(e,r,n)}};function ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=to(o):(i=di(t)?ci:si.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=to(o):(o=di(t)?ci:si.current,i.context=fi(e,o)),so(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),so(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var go=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===co&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ds(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ws(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(go(t)||q(t))return(t=Bs(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(go(n)||q(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(go(r)||q(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function m(i,a,l,s){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(i,f,l[m],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=q(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,m=l,v=l=0,y=null,g=s.next();null!==m&&!g.done;v++,g=s.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=s.next())null!==(g=d(i,g.value,u))&&(l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=s.next())null!==(g=h(m,i,v,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var u="object"==typeof o&&null!==o&&o.type===S&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===S){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===S?((r=Bs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Us(o.type,o.key,o.props,null,e.mode,s)).ref=bo(e,r,o),s.return=e,e=s)}return l(e);case E:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(o,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Ws(o,e.mode,s)).return=e,e=r),l(e);if(go(o))return m(e,r,o,s);if(q(o))return v(e,r,o,s);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Q(e.type)||"Component"))}return n(e,r)}}var ko=wo(!0),Eo=wo(!1),So={},xo=ii(So),To=ii(So),Co=ii(So);function Oo(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(ai(Co,t),ai(To,e),ai(xo,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(xo),ai(xo,t)}function Lo(){oi(xo),oi(To),oi(Co)}function No(e){Oo(Co.current);var t=Oo(xo.current),n=he(t,e.type);t!==n&&(ai(To,e),ai(xo,n))}function zo(e){To.current===e&&(oi(xo),oi(To))}var Io=ii(0);function Ro(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var jo=null,Mo=null,Ao=!1;function Fo(e,t){var n=As(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Do(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Uo(e){if(Ao){var t=Mo;if(t){var n=t;if(!Do(e,t)){if(!(t=Wr(n.nextSibling))||!Do(e,t))return e.flags=-1025&e.flags|2,Ao=!1,void(jo=e);Fo(jo,n)}jo=e,Mo=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Ao=!1,jo=e}}function Bo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;jo=e}function qo(e){if(e!==jo)return!1;if(!Ao)return Bo(e),Ao=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Dr(t,e.memoizedProps))for(t=Mo;t;)Fo(e,t),t=Wr(t.nextSibling);if(Bo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=jo?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){Mo=jo=null,Ao=!1}var Ho=[];function Vo(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var $o=w.ReactCurrentDispatcher,Qo=w.ReactCurrentBatchConfig,Go=0,Yo=null,Ko=null,Xo=null,Jo=!1,Zo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Go=o,Yo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=null===e||null===e.memoizedState?Oa:Pa,e=n(r,i),Zo){o=0;do{if(Zo=!1,!(25>o))throw Error(a(301));o+=1,Xo=Ko=null,t.updateQueue=null,$o.current=La,e=n(r,i)}while(Zo)}if($o.current=Ca,t=null!==Ko&&null!==Ko.next,Go=0,Xo=Ko=Yo=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ia(){if(null===Ko){var e=Yo.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Xo?Yo.memoizedState:Xo.next;if(null!==t)Xo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function oa(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=o=null,u=i;do{var c=u.lane;if((Go&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,o=r):s=s.next=f,Yo.lanes|=c,Rl|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=l,ar(r,t.memoizedState)||(za=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ar(o,t.memoizedState)||(za=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Go&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function ua(e,t,n,r){var i=Tl;if(null===i)throw Error(a(349));var o=t._getVersion,l=o(t._source),s=$o.current,u=s.useState((function(){return sa(i,t,n)})),c=u[1],f=u[0];u=Xo;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Yo;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=as(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Wt(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=as(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=c=Ta.bind(null,Yo,e),u.queue=e,u.baseQueue=null,f=sa(i,t,n),u.memoizedState=u.baseState=f),f}function ca(e,t,n){return ua(ia(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Ta.bind(null,Yo,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yo.updateQueue)?(t={lastEffect:null},Yo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ra().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();Yo.flags|=e,i.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,o,r)}Yo.flags|=e,i.memoizedState=da(1|t,n,o,r)}function ya(e,t){return ma(516,4,e,t)}function ga(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function ka(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xa(e,t){var n=Di();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Ta(e,t,n){var r=os(),i=as(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Yo||null!==a&&a===Yo)Zo=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(o.eagerReducer=a,o.eagerState=s,ar(s,l))return}catch(e){}ls(e,i,r)}}var Ca={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},Oa={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Yo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:ka,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ya((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=xa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ua(r,e,t,n)},useOpaqueIdentifier:function(){if(Ao){var e=!1,t=function(e){return{$$typeof:j,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yo.mode)&&(Yo.flags|=516,da(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:aa,useRef:ha,useState:function(){return aa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},La={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:la,useRef:ha,useState:function(){return la(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=la(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=la(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Na=w.ReactCurrentOwner,za=!1;function Ia(e,t,n,r){t.child=null===e?Eo(t,null,n,r):ko(t,e.child,n,r)}function Ra(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,Ia(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Fs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,o):(t.flags|=1,(e=Ds(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(za=!1,0==(o&i))return t.lanes=e.lanes,el(e,t,o);0!=(16384&e.flags)&&(za=!0)}return Da(e,t,n,r,o)}function Aa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return Ia(e,t,i,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Da(e,t,n,r,i){var o=di(n)?ci:si.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,Ia(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ua(e,t,n,r,i){if(di(n)){var o=!0;vi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=to(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&vo(t,a,r,u),no=!1;var d=t.memoizedState;a.state=d,so(t,r,a,i),s=t.memoizedState,l!==r||d!==s||ui.current||no?("function"==typeof c&&(fo(t,n,c,r),s=t.memoizedState),(l=no||ho(t,n,l,r,d,s,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),a.props=u,f=t.pendingProps,d=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=to(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==s)&&vo(t,a,r,s),no=!1,d=t.memoizedState,a.state=d,so(t,r,a,i);var h=t.memoizedState;l!==f||d!==h||ui.current||no?("function"==typeof p&&(fo(t,n,p,r),h=t.memoizedState),(u=no||ho(t,n,u,r,d,h,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&yi(t,n,!1),el(e,t,o);r=t.stateNode,Na.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,l,o)):Ia(e,t,l,o),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Po(e,t.containerInfo)}var Wa,Ha,Va,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=Io.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(Io,1&o),null===e?(void 0!==i.fallback&&Uo(t),e=i.children,o=i.fallback,a?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=qs({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ka(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,i):(n=Ya(e,t,i.children,n),t.memoizedState=null,n))}function Ga(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=qs(t,i,0,null),n=Bs(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Ya(e,t,n,r){var i=e.child;return e=i.sibling,n=Ds(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ka(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ds(a,l),null!==e?r=Ds(e,r):(r=Bs(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Io.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ai(Io,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ro(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ro(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ds(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ds(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Lo(),oi(ui),oi(si),Vo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zo(t);var o=Oo(Co.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Oo(xo.current),qo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)xr(wr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,l),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xr("invalid",r);break;case"textarea":se(r,l),xr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(o=l[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&xr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=jr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,Wa(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),o=r;break;case"iframe":case"object":case"embed":xr("load",e),o=r;break;case"video":case"audio":for(o=0;o<wr.length;o++)xr(wr[o],e);o=r;break;case"source":xr("error",e),o=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),o=r;break;case"details":xr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),xr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),xr("invalid",e);break;case"textarea":se(e,r),o=le(e,r),xr("invalid",e);break;default:o=r}Ee(n,o);var c=o;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"==typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&xr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=jr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Oo(Co.current),Oo(xo.current),qo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return oi(Io),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Io.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Tl||0==(134217727&Rl)&&0==(134217727&jl)||fs(Tl,Ol))),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Cr(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(oi(Io),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ro(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(Io,1&Io.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Dl&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ro(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ao)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Dl&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Io.current,ai(Io,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),oi(ui),oi(si),Vo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return zo(e),null;case 13:return oi(Io),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(Io),null;case 4:return Lo(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Oo(xo.current);var a,l=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=jr)}for(f in Ee(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===j?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Va=function(e,t,n,r){n!==r&&(t.flags|=4)};var al="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Hl=r),ol(0,t)},n}function sl(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ol(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Is(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&uo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}uo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(gi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){Is(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Is(t,e)}break;case 5:cl(t);break;case 4:gl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=jr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function gl(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var l=o[i],s=o[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ye(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fl=Fi(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=js.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,xl=0,Tl=null,Cl=null,Ol=0,Pl=0,Ll=ii(0),Nl=0,zl=null,Il=0,Rl=0,jl=0,Ml=0,Al=null,Fl=0,Dl=1/0;function Ul(){Dl=Fi()+500}var Bl,ql=null,Wl=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function os(){return 0!=(48&xl)?Fi():-1!==es?es:es=Fi()}function as(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Di()?1:2;if(0===ts&&(ts=Il),0!==Vi.transition){0!==ns&&(ns=null!==Al?Al.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Di(),0!=(4&xl)&&98===e?e=Dt(12,ts):e=Dt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(a(185));if(null===(e=ss(e,t)))return null;qt(e,t,n),e===Tl&&(jl|=t,4===Nl&&fs(e,Ol));var r=Di();1===t?0!=(8&xl)&&0==(48&xl)?ds(e):(us(e,n),0===xl&&(Ul(),Wi())):(0==(4&xl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Al=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Wt(l),u=1<<s,c=o[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=jt;o[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=At(e,e===Tl?Ol:0),t=jt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===Ri?(Ri=[n],ji=wi(Ci,Hi)):Ri.push(n),n=zi):14===t?n=qi(99,ds.bind(null,e)):n=qi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&xl))throw Error(a(327));var t=e.callbackNode;if(Os()&&e.callbackNode!==t)return null;var n=At(e,e===Tl?Ol:0);if(0===n)return null;var r=n,i=xl;xl|=16;var o=bs();for(Tl===e&&Ol===r||(Ul(),ys(e,r));;)try{ks();break}catch(t){gs(e,t)}if(Xi(),El.current=o,xl=i,null!==Cl?r=0:(Tl=null,Ol=0,r=Nl),0!=(Il&jl))ys(e,0);else if(0!==r){if(2===r&&(xl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ft(e))&&(r=_s(e,n))),1===r)throw t=zl,ys(e,0),fs(e,n),us(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:xs(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Fl+500-Fi())){if(0!==At(e,0))break;if(((i=e.suspendedLanes)&n)!==n){os(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(xs.bind(null,e),r);break}xs(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-Wt(n);o=1<<l,(l=r[l])>i&&(i=l),n&=~o}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(xs.bind(null,e),n);break}xs(e);break;case 5:xs(e);break;default:throw Error(a(329))}}return us(e,Fi()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&xl))throw Error(a(327));if(Os(),e===Tl&&0!=(e.expiredLanes&Ol)){var t=Ol,n=_s(e,t);0!=(Il&jl)&&(n=_s(e,t=At(e,t)))}else n=_s(e,t=At(e,0));if(0!==e.tag&&2===n&&(xl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ft(e))&&(n=_s(e,t))),1===n)throw n=zl,ys(e,0),fs(e,t),us(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e),us(e,Fi()),null}function ps(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}}function hs(e,t){var n=xl;xl&=-2,xl|=8;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}}function ms(e,t){ai(Ll,Pl),Pl|=t,Il|=t}function vs(){Pl=Ll.current,oi(Ll)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Cl)for(n=Cl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Lo(),oi(ui),oi(si),Vo();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:oi(Io);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Tl=e,Cl=Ds(e.current,null),Ol=Pl=Il=t,Nl=0,zl=null,Ml=jl=Rl=0}function gs(e,t){for(;;){var n=Cl;try{if(Xi(),$o.current=Ca,Jo){for(var r=Yo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Go=0,Xo=Ko=Yo=null,Zo=!1,Sl.current=null,null===n||null===n.return){Nl=1,zl=t,Cl=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=Ol,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Io.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(u),d.updateQueue=y}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=oo(-1,1);g.tag=2,ao(l,g)}l.lanes|=1;break e}s=void 0,l=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new al,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=Rs.bind(null,o,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,lo(d,ll(0,o,t));break e;case 1:o=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,lo(d,sl(d,o,t));break e}}d=d.return}while(null!==d)}Ss(n)}catch(e){t=e,Cl===n&&null!==n&&(Cl=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Ca,null===e?Ca:e}function _s(e,t){var n=xl;xl|=16;var r=bs();for(Tl===e&&Ol===t||ys(e,t);;)try{ws();break}catch(t){gs(e,t)}if(Xi(),xl=n,El.current=r,null!==Cl)throw Error(a(261));return Tl=null,Ol=0,Nl}function ws(){for(;null!==Cl;)Es(Cl)}function ks(){for(;null!==Cl&&!Ei();)Es(Cl)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?Ss(e):Cl=t,Sl.current=null}function Ss(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Cl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Cl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Cl=t);Cl=t=e}while(null!==t);0===Nl&&(Nl=5)}function xs(e){var t=Di();return Bi(99,Ts.bind(null,e,t)),null}function Ts(e,t){do{Os()}while(null!==Ql);if(0!=(48&xl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var u=31-Wt(o),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,o&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Tl&&(Cl=Tl=null,Ol=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=xl,xl|=32,Sl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,y=null;t:for(;;){for(var g;v!==s||0!==o&&3!==v.nodeType||(d=f+o),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===l)break t;if(y===s&&++h===o&&(d=f),y===u&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Ar={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,ql=r;do{try{Cs()}catch(e){if(null===ql)throw Error(a(330));Is(ql,e),ql=ql.nextEffect}}while(null!==ql);rs=null,ql=r;do{try{for(l=e;null!==ql;){var b=ql.flags;if(16&b&&ye(ql.stateNode,""),128&b){var _=ql.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:yl(ql),ql.flags&=-3;break;case 6:yl(ql),ql.flags&=-3,bl(ql.alternate,ql);break;case 1024:ql.flags&=-1025;break;case 1028:ql.flags&=-1025,bl(ql.alternate,ql);break;case 4:bl(ql.alternate,ql);break;case 8:gl(l,s=ql);var k=s.alternate;ml(s),null!==k&&ml(k)}ql=ql.nextEffect}}catch(e){if(null===ql)throw Error(a(330));Is(ql,e),ql=ql.nextEffect}}while(null!==ql);if(w=Ar,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),o=cr(b,l),s&&o&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Ar=Mr=null,e.current=n,ql=r;do{try{for(b=e;null!==ql;){var E=ql.flags;if(36&E&&dl(b,ql.alternate,ql),128&E){_=void 0;var S=ql.ref;if(null!==S){var x=ql.stateNode;switch(ql.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}ql=ql.nextEffect}}catch(e){if(null===ql)throw Error(a(330));Is(ql,e),ql=ql.nextEffect}}while(null!==ql);ql=null,Ii(),xl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(ql=r;null!==ql;)t=ql.nextEffect,ql.nextEffect=null,8&ql.flags&&((E=ql).sibling=null,E.stateNode=null),ql=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(gi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Fi()),Wl)throw Wl=!1,e=Hl,Hl=null,e;return 0!=(8&xl)||Wi(),null}function Cs(){for(;null!==ql;){var e=ql.alternate;is||null===rs||(0!=(8&ql.flags)?Ze(ql,rs)&&(is=!0):13===ql.tag&&wl(e,ql)&&Ze(ql,rs)&&(is=!0));var t=ql.flags;0!=(256&t)&&fl(e,ql),0==(512&t)||$l||($l=!0,qi(97,(function(){return Os(),null}))),ql=ql.nextEffect}}function Os(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,qi(97,(function(){return Os(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,qi(97,(function(){return Os(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&xl))throw Error(a(331));var t=xl;xl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===o)throw Error(a(330));Is(o,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===o)throw Error(a(330));Is(o,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return xl=t,Wi(),!0}function zs(e,t,n){ao(e,t=ll(0,t=il(n,t),1)),t=os(),null!==(e=ss(e,1))&&(qt(e,1,t),us(e,t))}function Is(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(ao(n,i),i=os(),null!==(n=ss(n,1)))qt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Rs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=os(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Ol&n)===n&&(4===Nl||3===Nl&&(62914560&Ol)===Ol&&500>Fi()-Fl?ys(e,0):Ml|=n),us(e,t)}function js(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Di()?1:2:(0===ts&&(ts=Il),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=os(),null!==(e=ss(e,t))&&(qt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function As(e,t,n,r){return new Ms(e,t,n,r)}function Fs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ds(e,t){var n=e.alternate;return null===n?((n=As(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Fs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bs(n.children,i,o,t);case M:l=8,i|=16;break;case x:l=8,i|=1;break;case T:return(e=As(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case L:return(e=As(13,n,t,i)).type=L,e.elementType=L,e.lanes=o,e;case N:return(e=As(19,n,t,i)).elementType=N,e.lanes=o,e;case A:return qs(n,i,o,t);case F:return(e=As(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case O:l=9;break e;case P:l=11;break e;case z:l=14;break e;case I:l=16,r=null;break e;case R:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=As(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Bs(e,t,n,r){return(e=As(7,e,r,t)).lanes=n,e}function qs(e,t,n,r){return(e=As(23,e,r,t)).elementType=A,e.lanes=n,e}function Ws(e,t,n){return(e=As(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=As(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,o=os(),l=as(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),ls(i,l,o),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=As(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[Yr]=n.current,Cr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(a);l.call(e)}}Qs(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(a);s.call(e)}}hs((function(){Qs(t,a,e,i)}))}return Gs(a)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(a(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)za=!0;else{if(0==(n&r)){switch(za=!1,t.tag){case 3:qa(t),Wo();break;case 5:No(t);break;case 1:di(t.type)&&vi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(ai(Io,1&Io.current),null!==(t=el(e,t,n))?t.sibling:null);ai(Io,1&Io.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(Io,Io.current),r)break;return null;case 23:case 24:return t.lanes=0,Aa(e,t,n)}return el(e,t,n)}za=0!=(16384&e.flags)}else za=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fo(t,r,l,e),i.updater=po,t.stateNode=i,i._reactInternals=t,yo(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,Ia(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Fs(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),o){case 0:t=Da(null,t,i,e,n);break e;case 1:t=Ua(null,t,i,e,n);break e;case 11:t=Ra(null,t,i,e,n);break e;case 14:t=ja(null,t,i,$i(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ua(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),so(t,r,null,n),(r=t.memoizedState.element)===i)Wo(),t=el(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Mo=Wr(t.stateNode.containerInfo.firstChild),jo=t,o=Ao=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ia(e,t,r,n),Wo();t=t.child}return t;case 5:return No(t),null===e&&Uo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,Dr(r,i)?l=null:null!==o&&Dr(r,o)&&(t.flags|=16),Fa(e,t),Ia(e,t,l,n),t.child;case 6:return null===e&&Uo(t),null;case 13:return Qa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ra(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value;var s=t.type._context;if(ai(Qi,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=ar(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=oo(-1,n&-n)).tag=2,ao(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}Ia(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,Ia(e,t,r,n),t.child;case 14:return o=$i(i=t.type,t.pendingProps),ja(e,t,i,o=$i(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,eo(t,n),mo(t,r,i),yo(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Aa(e,t,n)}throw Error(a(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,os()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,os()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=os(),n=as(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(a(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},ze=ps,Ie=function(e,t,n,r,i){var o=xl;xl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(xl=o)&&(Ul(),Wi())}},Re=function(){0==(49&xl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Fi())}))}Wi()}(),Os())},je=function(e,t){var n=xl;xl|=2;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Os,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{gi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xl;if(0!=(48&n))return e(t);xl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{xl=n,Wi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(a(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(23)},function(e,t,n){"use strict";
28
  /** @license React v0.20.2
29
  * scheduler.production.min.js
30
  *
@@ -32,19 +37,19 @@ object-assign
32
  *
33
  * This source code is licensed under the MIT license found in the
34
  * LICENSE file in the root directory of this source tree.
35
- */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,g=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();_=e+b;try{y(!0,e)?k.postMessage(null):(v=!1,y=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,k.postMessage(null))},i=function(e,n){g=p((function(){e(t.unstable_now())}),n)},o=function(){h(g),g=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,s=e[l];if(void 0!==a&&0>T(a,n))void 0!==s&&0>T(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>T(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],P=1,L=null,N=3,z=!1,I=!1,R=!1;function j(e){for(var t=S(O);null!==t;){if(null===t.callback)x(O);else{if(!(t.startTime<=e))break;x(O),t.sortIndex=t.expirationTime,E(C,t)}t=S(O)}}function M(e){if(R=!1,j(e),!I)if(null!==S(C))I=!0,r(A);else{var t=S(O);null!==t&&i(M,t.startTime-e)}}function A(e,n){I=!1,R&&(R=!1,o()),z=!0;var r=N;try{for(j(n),L=S(C);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,N=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===S(C)&&x(C),j(n)}else x(C);L=S(C)}if(null!==L)var s=!0;else{var u=S(O);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||z||(I=!0,r(A))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,E(O,e),null===S(C)&&e===S(O)&&(R?o():R=!0,i(M,a-l))):(e.sortIndex=s,E(C,e),I||z||(I=!0,r(A))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=_(n(25)),o=_(n(0)),a=_(n(2)),l=_(n(5)),s=n(30),u=_(s),c=_(n(31)),f=_(n(32)),d=_(n(56)),p=_(n(57)),h=_(n(58)),m=_(n(59)),v=_(n(60)),y=_(n(61)),g=_(n(64)),b=_(n(65));function _(e){return e&&e.__esModule?e:{default:e}}function w(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var k=n(66),E=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.providers=["Unsplash","Pixabay"],n.provider=n.props.provider,n.api_provider=a.default[n.provider],n.arr_key=n.api_provider.arr_key,n.order_key=n.api_provider.order_key,n.api_key=instant_img_localize[n.provider+"_app_id"],n.api_url=""+n.api_provider.photo_api+n.api_provider.api_query_var+n.api_key+a.default.defaults.posts_per_page,n.search_api_url=""+n.api_provider.search_api+n.api_provider.api_query_var+n.api_key+a.default.defaults.posts_per_page,n.results=(0,u.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,restapi_error:!1,api_lightbox:!1},n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.orientation="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.photoTarget=o.default.createRef(),n.providerNav=o.default.createRef(),n.controlNav=o.default.createRef(),n.photoSearch=o.default.createRef(),n.buttonLatest=o.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,_;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.container.classList.add("loading"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"setOrientation",value:function(e,t){if(t&&t.target){var n=t.target;if(n.classList.contains("active"))n.classList.remove("active"),this.orientation="";else{var r=n.parentNode.querySelectorAll("li");[].concat(w(r)).forEach((function(e){return e.classList.remove("active")})),n.classList.add("active"),this.orientation=e}""!==this.search_term&&this.doSearch(this.search_term)}}},{key:"hasOrientation",value:function(){return""!==this.orientation}},{key:"clearOrientation",value:function(){var e=this.container.querySelectorAll(".orientation-list li");[].concat(w(e)).forEach((function(e){return e.classList.remove("active")})),this.orientation=""}},{key:"doSearch",value:function(e){var t=this,n=this.photoSearch.current,r="term";this.page=1;var i=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term;this.hasOrientation()&&(i=i+"&orientation="+this.orientation),"id:"===e.substring(0,3)&&(r="id",e=e.replace("id:",""),i=(0,c.default)(this.provider,e,this.api_provider.photo_api,this.api_provider.api_query_var,this.api_key)),fetch(i).then((function(e){return e.json()})).then((function(e){if("term"===r){var i=(0,u.default)(t.provider,t.arr_key,e,!0);t.total_results=e.total,t.checkTotalResults(i.length),t.results=i,t.setState({results:t.results})}if("id"===r&&e){var o=[],a=(0,s.getResultById)(t.provider,t.arr_key,e,!0);e.errors?(t.total_results=0,t.checkTotalResults("0")):(o.push(a),t.total_results=1,t.checkTotalResults("1")),t.results=o,t.setState({results:t.results})}n.classList.remove("searching")})).catch((function(e){console.log(e),n.classList.remove("searching"),t.isLoading=!1,t.total_results=0,t.isDone=!0,t.results=[],t.setState({results:t.results})}))}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.clearOrientation()}},{key:"getPhotos",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this,i=t.target||t;if(!i.classList.contains("active")||n){i.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=e,this.results=[],this.clearSearch();var o=this.api_url+"&page="+this.page+"&"+this.order_key+"="+this.orderby;fetch(o).then((function(e){return e.json()})).then((function(e){var t=(0,u.default)(r.provider,r.arr_key,e);r.checkTotalResults(t.length),r.results=t,r.setState({results:t}),i.classList.remove("loading")})).catch((function(e){console.log(e),r.isLoading=!1}))}}},{key:"loadMorePhotos",value:function(){var e=this;this.page=parseInt(this.page)+1,this.container.classList.add("loading"),this.isLoading=!0;var t=this.api_url+"&page="+this.page+"&"+this.order_key+"="+this.orderby;this.is_search&&(t=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term,this.hasOrientation()&&(t=t+"&orientation="+this.orientation)),fetch(t).then((function(e){return e.json()})).then((function(t){var n=(0,u.default)(e.provider,e.arr_key,t,e.is_search);e.is_search&&"unsplash"===e.provider&&(n=t.results),n&&n.map((function(t){e.results.push(t)})),e.checkTotalResults(t.length),e.setState({results:e.results})})).catch((function(t){console.log(t),e.isLoading=!1}))}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,o,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!a.default[r].requires_key){e.next=14;break}return e.next=7,fetch((0,l.default)(r));case 7:if(i=e.sent,o=i.ok,s=i.status,o&&400!==s&&401!==s&&500!==s){e.next=14;break}return this.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 14:this.provider=r,this.api_provider=a.default[this.provider],this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.arr_key=this.api_provider.arr_key,this.order_key=this.api_provider.order_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.api_url=""+this.api_provider.photo_api+this.api_provider.api_query_var+this.api_key+a.default.defaults.posts_per_page,this.search_api_url=""+this.api_provider.search_api+this.api_provider.api_query_var+this.api_key+a.default.defaults.posts_per_page,this.getPhotos("latest",this.buttonLatest.current,!0);case 24:case"end":return e.stop()}}),e,this)})),_=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return _.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;k(t,(function(){e.msnry=new i.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-400&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0==e}},{key:"setActiveState",value:function(){var e=this;if(this.controlNav.current.querySelectorAll("button").forEach((function(e){return e.classList.remove("active")})),!this.is_search){var t=this.controlNav.current.querySelector("li button.instant-images-"+this.orderby);t&&t.classList.add("active")}setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),1e3)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),o=Math.round(r.top),a=this.container.querySelector("#tooltip");a.classList.remove("over"),n.classList.contains("tooltip--above")?a.classList.add("above"):a.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),a.innerHTML=n.dataset.title,i=i-a.offsetWidth+n.offsetWidth+5,a.style.left=i+"px",a.style.top=o+"px",setTimeout((function(){a.classList.add("over")}),150)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.setActiveState()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.setActiveState(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return o.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&o.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return o.default.createElement("div",{key:"provider-"+n},o.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},o.default.createElement("span",null,t),a.default[t.toLowerCase()].new&&o.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&o.default.createElement(f.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),this.api_provider.order&&o.default.createElement("ul",{className:"control-nav",ref:this.controlNav},this.api_provider.order.map((function(t,n){return o.default.createElement("li",{key:e.provider+"-order-"+n},o.default.createElement("button",{type:"button",className:"instant-images-"+t,onClick:function(n){return e.getPhotos(t,n)},ref:"latest"===t?e.buttonLatest:null},instant_img_localize[t]))})),o.default.createElement("li",{className:"search-field",id:"search-bar"},o.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},o.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),o.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),o.default.createElement("button",{type:"submit",id:"photo-search-submit"},o.default.createElement("i",{className:"fa fa-search"})),o.default.createElement(g.default,{container:this.container,buttonLatest:this.buttonLatest,isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&o.default.createElement(d.default,null),this.is_search&&o.default.createElement(v.default,{provider:this.provider,setOrientation:this.setOrientation.bind(this)}),o.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return o.default.createElement(y.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&o.default.createElement(m.default,null),o.default.createElement(p.default,null),o.default.createElement(h.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),o.default.createElement(b.default,null))}}]),t}(o.default.Component);t.default=E},function(e,t,n){var r,i,o;
36
  /*!
37
  * Masonry v4.2.2
38
  * Cascading grid layout library
39
  * https://masonry.desandro.com
40
  * MIT License
41
  * by David DeSandro
42
- */window,i=[n(26),n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/r,a=r-i%r;o=Math[a&&a<1?"round":"floor"](o),this.cols=Math.max(o,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},o=r.y+e.size.outerHeight,a=n+r.col,l=r.col;l<a;l++)this.colYs[l]=o;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,o=i+n.outerWidth,a=Math.floor(i/this.columnWidth);a=Math.max(0,a);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=a;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i;
43
  /*!
44
  * Outlayer v2.1.1
45
  * the brains and guts of a layout library
46
  * MIT license
47
- */!function(o,a){"use strict";r=[n(3),n(4),n(27),n(29)],void 0===(i=function(e,t,n,r){return function(e,t,n,r,i){var o=e.console,a=e.jQuery,l=function(){},s=0,u={};function c(e,t){var n=r.getQueryElement(e);if(n){this.element=n,a&&(this.$element=a(this.element)),this.options=r.extend({},this.constructor.defaults),this.option(t);var i=++s;this.element.outlayerGUID=i,u[i]=this,this._create(),this._getOption("initLayout")&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(n||e))}c.namespace="outlayer",c.Item=i,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=c.prototype;function d(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}r.extend(f,t.prototype),f.option=function(e){r.extend(this.options,e)},f._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),r.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(e){for(var t=this._filterFindItemElements(e),n=this.constructor.Item,r=[],i=0;i<t.length;i++){var o=new n(t[i],this);r.push(o)}return r},f._filterFindItemElements=function(e){return r.filterFindElements(e,this.options.itemSelector)},f.getItemElements=function(){return this.items.map((function(e){return e.element}))},f.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=n(this.element)},f._getMeasurement=function(e,t){var r,i=this.options[e];i?("string"==typeof i?r=this.element.querySelector(i):i instanceof HTMLElement&&(r=i),this[e]=r?n(r)[t]:i):this[e]=0},f.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},f._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},f._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var n=[];e.forEach((function(e){var r=this._getItemLayoutPosition(e);r.item=e,r.isInstant=t||e.isLayoutInstant,n.push(r)}),this),this._processLayoutQueue(n)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},f.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),n=t&&t[1],r=t&&t[2];if(!n.length)return 0;return(n=parseFloat(n))*(p[r]||1)}(e),this.stagger;this.stagger=0},f._positionItem=function(e,t,n,r,i){r?e.goTo(t,n):(e.stagger(i*this.stagger),e.moveTo(t,n))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=l,f._setContainerMeasure=function(e,t){if(void 0!==e){var n=this.size;n.isBorderBox&&(e+=t?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},f._emitCompleteOnItems=function(e,t){var n=this;function r(){n.dispatchEvent(e+"Complete",null,[t])}var i=t.length;if(t&&i){var o=0;t.forEach((function(t){t.once(e,a)}))}else r();function a(){++o==i&&r()}},f.dispatchEvent=function(e,t,n){var r=t?[t].concat(n):n;if(this.emitEvent(e,r),a)if(this.$element=this.$element||a(this.element),t){var i=a.Event(t);i.type=e,this.$element.trigger(i,n)}else this.$element.trigger(e,n)},f.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},f.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},f.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},f.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){r.removeFrom(this.stamps,e),this.unignore(e)}),this)},f._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),e=r.makeArray(e)},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},f._manageStamp=l,f._getElementOffset=function(e){var t=e.getBoundingClientRect(),r=this._boundingRect,i=n(e);return{left:t.left-r.left-i.marginLeft,top:t.top-r.top-i.marginTop,right:r.right-t.right-i.marginRight,bottom:r.bottom-t.bottom-i.marginBottom}},f.handleEvent=r.handleEvent,f.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},r.debounceMethod(c,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var e=n(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},f.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},f.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},f.prepended=function(e){var t=this._itemize(e);if(t.length){var n=this.items.slice(0);this.items=t.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(n)}},f.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.reveal()}))}},f.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,n){e.stagger(n*t),e.hide()}))}},f.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},f.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},f.getItem=function(e){for(var t=0;t<this.items.length;t++){var n=this.items[t];if(n.element==e)return n}},f.getItems=function(e){e=r.makeArray(e);var t=[];return e.forEach((function(e){var n=this.getItem(e);n&&t.push(n)}),this),t},f.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),r.removeFrom(this.items,e)}),this)},f.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete u[t],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},c.data=function(e){var t=(e=r.getQueryElement(e))&&e.outlayerGUID;return t&&u[t]},c.create=function(e,t){var n=d(c);return n.defaults=r.extend({},c.defaults),r.extend(n.defaults,t),n.compatOptions=r.extend({},c.compatOptions),n.namespace=e,n.data=c.data,n.Item=d(i),r.htmlInit(n,e),a&&a.bridget&&a.bridget(e,n),n};var p={ms:1,s:1e3};return c.Item=i,c}(o,e,t,n,r)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(o,a){r=[n(28)],void 0===(i=function(e){return function(e,t){"use strict";var n={extend:function(e,t){for(var n in t)e[n]=t[n];return e},modulo:function(e,t){return(e%t+t)%t}},r=Array.prototype.slice;n.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?r.call(e):[e]},n.removeFrom=function(e,t){var n=e.indexOf(t);-1!=n&&e.splice(n,1)},n.getParent=function(e,n){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,n))return e},n.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},n.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.filterFindElements=function(e,r){e=n.makeArray(e);var i=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(r){t(e,r)&&i.push(e);for(var n=e.querySelectorAll(r),o=0;o<n.length;o++)i.push(n[o])}else i.push(e)})),i},n.debounceMethod=function(e,t,n){n=n||100;var r=e.prototype[t],i=t+"Timeout";e.prototype[t]=function(){var e=this[i];clearTimeout(e);var t=arguments,o=this;this[i]=setTimeout((function(){r.apply(o,t),delete o[i]}),n)}},n.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},n.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,n){return t+"-"+n})).toLowerCase()};var i=e.console;return n.htmlInit=function(t,r){n.docReady((function(){var o=n.toDashed(r),a="data-"+o,l=document.querySelectorAll("["+a+"]"),s=document.querySelectorAll(".js-"+o),u=n.makeArray(l).concat(n.makeArray(s)),c=a+"-options",f=e.jQuery;u.forEach((function(e){var n,o=e.getAttribute(a)||e.getAttribute(c);try{n=o&&JSON.parse(o)}catch(t){return void(i&&i.error("Error parsing "+a+" on "+e.className+": "+t))}var l=new t(e,n);f&&f.data(e,r,l)}))}))},n}(o,e)}.apply(t,r))||(e.exports=i)}(window)},function(e,t,n){var r,i;!function(o,a){"use strict";void 0===(i="function"==typeof(r=a)?r.call(t,n,t,e):r)||(e.exports=i)}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],n=0;n<t.length;n++){var r=t[n]+"MatchesSelector";if(e[r])return r}}();return function(t,n){return t[e](n)}}))},function(e,t,n){var r,i,o;window,i=[n(3),n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=document.documentElement.style,r="string"==typeof n.transition?"transition":"WebkitTransition",i="string"==typeof n.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],a={transform:i,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"};function l(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var s=l.prototype=Object.create(e.prototype);s.constructor=l,s._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},s.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},s.getSize=function(){this.size=t(this.element)},s.css=function(e){var t=this.element.style;for(var n in e)t[a[n]||n]=e[n]},s.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=e[t?"left":"right"],i=e[n?"top":"bottom"],o=parseFloat(r),a=parseFloat(i),l=this.layout.size;-1!=r.indexOf("%")&&(o=o/100*l.width),-1!=i.indexOf("%")&&(a=a/100*l.height),o=isNaN(o)?0:o,a=isNaN(a)?0:a,o-=t?l.paddingLeft:l.paddingRight,a-=n?l.paddingTop:l.paddingBottom,this.position.x=o,this.position.y=a},s.layoutPosition=function(){var e=this.layout.size,t={},n=this.layout._getOption("originLeft"),r=this.layout._getOption("originTop"),i=n?"paddingLeft":"paddingRight",o=n?"left":"right",a=n?"right":"left",l=this.position.x+e[i];t[o]=this.getXValue(l),t[a]="";var s=r?"paddingTop":"paddingBottom",u=r?"top":"bottom",c=r?"bottom":"top",f=this.position.y+e[s];t[u]=this.getYValue(f),t[c]="",this.css(t),this.emitEvent("layout",[this])},s.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},s.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},s._transitionTo=function(e,t){this.getPosition();var n=this.position.x,r=this.position.y,i=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!i||this.isTransitioning){var o=e-n,a=t-r,l={};l.transform=this.getTranslate(o,a),this.transition({to:l,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},s.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},s.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},s.moveTo=s._transitionTo,s.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},s._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},s.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var n in e.onTransitionEnd)t.onEnd[n]=e.onTransitionEnd[n];for(n in e.to)t.ingProperties[n]=!0,e.isCleaning&&(t.clean[n]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var u="opacity,"+i.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));s.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:u,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1)}},s.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},s.onotransitionend=function(e){this.ontransitionend(e)};var c={"-webkit-transform":"transform"};s.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,n=c[e.propertyName]||e.propertyName;delete t.ingProperties[n],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),n in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[n]),n in t.onEnd&&(t.onEnd[n].call(this),delete t.onEnd[n]),this.emitEvent("transitionEnd",[this])}},s.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},s._removeStyles=function(e){var t={};for(var n in e)t[n]="";this.css(t)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return s.removeTransitionStyles=function(){this.css(f)},s.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},s.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},s.remove=function(){r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},s.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},s.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},s.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var n in t)return n},s.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},s.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},s.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},l})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){if(!n)return[];var i=[];switch(e){case"unsplash":i=r?n[t]||[]:n||[];break;case"pixabay":i=n[t]||[]}return i},t.getResultById=function(e,t,n){if(!n)return[];var r=[];switch(e){case"unsplash":r=n||[];break;case"pixabay":r=n[t]&&n[t][0]?n[t][0]:[]}return r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i){var o="";switch(e){case"unsplash":o=n+"/"+t+r+i;break;case"pixabay":o=""+n+r+i+"&id="+t}return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(33)),o=u(n(0)),a=u(n(5)),l=u(n(8)),s=u(n(37));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.lightbox=o.default.createRef(),n.provider=n.props.provider,n.api_key=instant_img_localize[n.provider+"_app_id"],n.inputRef=o.default.createRef(),n.loading=!1,n.state={status:"invalid",response:""},n.afterVerifiedAPICallback=n.props.afterVerifiedAPICallback.bind(n),n.closeAPILightbox=n.props.closeAPILightbox.bind(n),n.escFunction=n.escFunction.bind(n),n}var n,u;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"handleSubmit",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,o,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.preventDefault(),n=this,this.setState({status:"loading"}),(r=this.inputRef.current.value)||this.inputRef.current.focus({preventScroll:!0}),instant_img_localize[this.provider+"_app_id"]=r,e.next=8,fetch((0,a.default)(this.provider));case 8:i=e.sent,o=i.ok,u=i.status,(c=document.querySelector('input[name="instant_img_settings['+this.provider+'_api]"]'))&&(c.value=r),(0,s.default)(this.provider+"_api",r),o?(this.setState({status:"valid",response:instant_img_localize.api_success_msg}),setTimeout((function(){n.afterVerifiedAPICallback(n.provider)}),1500)):(this.setState({status:"invalid"}),(0,l.default)(this.provider,u),400!==u&&401!==u||this.setState({response:instant_img_localize.api_invalid_msg}),429===u&&this.setState({response:instant_img_localize.api_ratelimit_msg}));case 15:case"end":return e.stop()}}),e,this)})),u=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return u.apply(this,arguments)})},{key:"closeLightbox",value:function(){var e=this;this.lightbox.current.classList.remove("active"),setTimeout((function(){e.closeAPILightbox(this.provider)}),250)}},{key:"bkgClick",value:function(e){e.target===this.lightbox.current&&this.closeLightbox()}},{key:"escFunction",value:function(e){27===e.keyCode&&this.closeLightbox()}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.escFunction,!1),this.lightbox.current.classList.add("active")}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.escFunction,!1)}},{key:"render",value:function(){var e=this,t="invalid"===this.state.status?instant_img_localize.api_key_invalid:"";return o.default.createElement(i.default,null,o.default.createElement("div",{className:"api-lightbox",ref:this.lightbox,onClick:function(t){return e.bkgClick(t)},tabIndex:"-1"},o.default.createElement("div",null,o.default.createElement("div",null,o.default.createElement("button",{className:"api-lightbox--close",onClick:function(){return e.closeLightbox()}},"×",o.default.createElement("span",{className:"offscreen"},instant_img_localize.btnClose)),o.default.createElement("div",{className:"api-lightbox--details"},o.default.createElement("h3",{"data-provider":this.provider},this.provider),o.default.createElement("p",null,instant_img_localize[this.provider+"_api_desc"]),o.default.createElement("p",null,o.default.createElement("a",{href:instant_img_localize[this.provider+"_api_url"],target:"_blank"},instant_img_localize.get_api_key))),o.default.createElement("form",{onSubmit:function(t){return e.handleSubmit(t)}},o.default.createElement("label",{htmlFor:"key",className:"offscreen"},instant_img_localize.enter_api_key),o.default.createElement("div",{className:"api-lightbox--input-wrap"},o.default.createElement("span",{className:this.state.status,title:t&&t},"invalid"===this.state.status&&o.default.createElement("i",{className:"fa fa-exclamation-triangle","aria-hidden":"true"}),"valid"===this.state.status&&o.default.createElement("i",{className:"fa fa-check-circle","aria-hidden":"true"}),"loading"===this.state.status&&o.default.createElement("i",{className:"fa fa-spinner fa-spin","aria-hidden":"true"})),o.default.createElement("input",{type:"text",id:"key",ref:this.inputRef,placeholder:"Enter API Key",defaultValue:this.api_key})),this.state.response&&o.default.createElement("p",{className:"api-lightbox--response "+this.state.status},this.state.response),o.default.createElement("button",{type:"submit"},instant_img_localize.btnVerify))))))}}]),t}(o.default.Component);t.default=c},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var u=n(0),c=n(18),f=n(34),d=n(68).createFocusTrap,p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(s,e);var t,n,r,l=a(s);function s(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=l.call(this,e)).tailoredFocusTrapOptions={returnFocusOnDeactivate:!1},t.returnFocusOnDeactivate=!0;var n=e.focusTrapOptions;for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&("returnFocusOnDeactivate"!==r?"onPostDeactivate"!==r?t.tailoredFocusTrapOptions[r]=n[r]:t.onPostDeactivate=n[r]:t.returnFocusOnDeactivate=!!n[r]);return t.focusTrapElements=e.containerElements||[],t.updatePreviousElement(),t}return t=s,(n=[{key:"getNodeForOption",value:function(e){var t=this.tailoredFocusTrapOptions[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=document.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n}},{key:"getReturnFocusNode",value:function(){var e=this.getNodeForOption("setReturnFocus");return e||this.previouslyFocusedElement}},{key:"updatePreviousElement",value:function(){var e=this.props.focusTrapOptions.document||("undefined"!=typeof document?document:void 0);e&&(this.previouslyFocusedElement=e.activeElement)}},{key:"deactivateTrap",value:function(){var e=this,t=this.tailoredFocusTrapOptions,n=t.checkCanReturnFocus,r=t.preventScroll,i=void 0!==r&&r;this.focusTrap&&this.focusTrap.deactivate({returnFocus:!1});var o=function(){var t=e.getReturnFocusNode();(null==t?void 0:t.focus)&&e.returnFocusOnDeactivate&&t.focus({preventScroll:i}),e.onPostDeactivate&&e.onPostDeactivate.call(null)};n?n(this.getReturnFocusNode()).then(o,o):o()}},{key:"setupFocusTrap",value:function(){if(!this.focusTrap){var e=this.focusTrapElements.map(c.findDOMNode);e.some(Boolean)&&(this.focusTrap=this.props._createFocusTrap(e,this.tailoredFocusTrapOptions),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause())}}},{key:"componentDidMount",value:function(){this.setupFocusTrap()}},{key:"componentDidUpdate",value:function(e){if(this.focusTrap){e.containerElements!==this.props.containerElements&&this.focusTrap.updateContainerElements(this.props.containerElements);var t=!e.active&&this.props.active,n=e.active&&!this.props.active,r=!e.paused&&this.props.paused,i=e.paused&&!this.props.paused;if(t&&(this.updatePreviousElement(),this.focusTrap.activate()),n)return void this.deactivateTrap();r&&this.focusTrap.pause(),i&&this.focusTrap.unpause()}else e.containerElements!==this.props.containerElements&&(this.focusTrapElements=this.props.containerElements,this.setupFocusTrap())}},{key:"componentWillUnmount",value:function(){this.deactivateTrap()}},{key:"render",value:function(){var e=this,t=this.props.children?u.Children.only(this.props.children):void 0;if(t){if(t.type&&t.type===u.Fragment)throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");return u.cloneElement(t,{ref:function(n){var r=e.props.containerElements;t&&("function"==typeof t.ref?t.ref(n):t.ref&&(t.ref.current=n)),e.focusTrapElements=r||[n]}})}return null}}])&&i(t.prototype,n),r&&i(t,r),s}(u.Component),h="undefined"==typeof Element?Function:Element;p.propTypes={active:f.bool,paused:f.bool,focusTrapOptions:f.shape({document:f.object,onActivate:f.func,onPostActivate:f.func,checkCanFocusTrap:f.func,onDeactivate:f.func,onPostDeactivate:f.func,checkCanReturnFocus:f.func,initialFocus:f.oneOfType([f.instanceOf(h),f.string,f.func,f.bool]),fallbackFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),escapeDeactivates:f.oneOfType([f.bool,f.func]),clickOutsideDeactivates:f.oneOfType([f.bool,f.func]),returnFocusOnDeactivate:f.bool,setReturnFocus:f.oneOfType([f.instanceOf(h),f.string,f.func]),allowOutsideClick:f.oneOfType([f.bool,f.func]),preventScroll:f.bool}),containerElements:f.arrayOf(f.instanceOf(h)),children:f.oneOfType([f.element,f.instanceOf(h)])},p.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:d},e.exports=p},function(e,t,n){e.exports=n(35)()},function(e,t,n){"use strict";var r=n(36);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=instant_img_localize.root+"instant-images/settings/",r={setting:e,value:t},i={headers:{"X-WP-Nonce":instant_img_localize.nonce,"Content-Type":"application/json"}};o.default.post(n,JSON.stringify(r),i).then((function(e){var t=e.data;console.log(t)})).catch((function(e){console.log(e)}))};var r,i=n(9),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(1),i=n(10),o=n(39),a=n(16);function l(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var s=l(n(6));s.Axios=o,s.create=function(e){return l(a(s.defaults,e))},s.Cancel=n(17),s.CancelToken=n(53),s.isCancel=n(15),s.all=function(e){return Promise.all(e)},s.spread=n(54),s.isAxiosError=n(55),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(1),i=n(11),o=n(40),a=n(41),l=n(16),s=n(51),u=s.validators;function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=l(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=e;n.length;){var d=n.shift(),p=n.shift();try{f=d(f)}catch(e){p(e);break}}try{i=a(f)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(e){return e=l(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(l(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(l(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(1);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(1),i=n(42),o=n(15),a=n(6);function l(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return l(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return l(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(l(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(1),i=n(6);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(14);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var l=[];l.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),r.isString(i)&&l.push("path="+i),r.isString(o)&&l.push("domain="+o),!0===a&&l.push("secure"),document.cookie=l.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(47),i=n(48);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(1),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(1);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(52),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={},a=r.version.split(".");function l(e,t){for(var n=t?t.split("."):a,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}i.transitional=function(e,t,n){var i=t&&l(t);function a(e,t){return"[Axios v"+r.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,l){if(!1===e)throw new Error(a(r," has been removed in "+t));return i&&!o[r]&&(o[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,l)}},e.exports={isOlderVersion:l,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var l=e[o],s=void 0===l||a(l,o,e);if(!0!==s)throw new TypeError("option "+o+" must be "+s)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.4","/home/runner/work/instant-images/instant-images"]],"_from":"axios@0.21.4","_id":"axios@0.21.4","_inBundle":false,"_integrity":"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.4","name":"axios","escapedName":"axios","rawSpec":"0.21.4","saveSpec":null,"fetchSpec":"0.21.4"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz","_spec":"0.21.4","_where":"/home/runner/work/instant-images/instant-images","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.14.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"homepage":"https://axios-http.com","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.4"}')},function(e,t,n){"use strict";var r=n(17);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"error-messaging"},a.default.createElement("span",{dangerouslySetInnerHTML:{__html:""+instant_img_localize.error_restapi+instant_img_localize.error_restapi_desc}}))}}]),t}(a.default.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"loading-block"})}}]),t}(a.default.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.loadMorePhotos=n.props.loadMorePhotos.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this;return a.default.createElement("div",{className:"load-more-wrap"},a.default.createElement("button",{type:"button",className:"button",onClick:function(){return e.loadMorePhotos()}},instant_img_localize.load_more))}}]),t}(a.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return l(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",{className:"no-results"},a.default.createElement("h3",null,instant_img_localize.no_results," "),a.default.createElement("p",null,instant_img_localize.no_results_desc," "))}}]),t}(a.default.Component);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=a(n(0)),o=a(n(2));function a(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.provider=n.props.provider,n.setOrientation=n.props.setOrientation.bind(n),n.options=o.default[n.provider].orientation,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"orientation-list"},i.default.createElement("span",null,i.default.createElement("i",{className:"fa fa-filter","aria-hidden":"true"})," ",instant_img_localize.orientation,":"),i.default.createElement("ul",null,this.options&&this.options.map((function(t,n){return i.default.createElement("li",{key:n+"-"+t,tabIndex:"0",onClick:function(n){return e.setOrientation(t,n)},onKeyPress:function(n){return e.setOrientation(t,n)}},instant_img_localize[t])}))))}}]),t}(i.default.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(9)),o=u(n(0)),a=u(n(2)),l=u(n(62)),s=u(n(63));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.provider=n.props.provider,n.api_provider=a.default[n.provider],n.api_key=instant_img_localize[n.provider+"_app_id"];var r=n.props.result;return n.id=r.id,n.thumb=(0,s.default)(n.provider,r,"thumb"),n.img=(0,s.default)(n.provider,r,"img"),n.full_size=(0,s.default)(n.provider,r,"full_size"),n.author=(0,s.default)(n.provider,r,"author"),n.img_title=instant_img_localize.photo_by+" "+n.author,n.filename=r.id,n.title=n.img_title,n.alt=r.alt_description?r.alt_description:null,n.alt=null===n.alt?"":n.alt,n.caption="",n.user=(0,s.default)(n.provider,r,"user"),n.name=(0,s.default)(n.provider,r,"name"),n.user_photo=(0,s.default)(n.provider,r,"user_photo"),n.user_url=(0,s.default)(n.provider,r,"user_url"),n.link=(0,s.default)(n.provider,r,"link"),n.likes=(0,s.default)(n.provider,r,"likes"),n.attribution=(0,l.default)(n.provider,n.user_url,n.name),n.view_all=instant_img_localize.view_all,n.inProgress=!1,n.container=document.querySelector(".instant-img-container"),n.showTooltip=n.props.showTooltip.bind(n),n.hideTooltip=n.props.hideTooltip.bind(n),n.setAsFeaturedImage=!1,n.insertIntoPost=!1,n.is_media_router=n.props.mediaRouter,n.is_block_editor=n.props.blockEditor,n.SetFeaturedImage=n.props.SetFeaturedImage,n.InsertImage=n.props.InsertImage,n.displayGutenbergControl=!!n.is_block_editor,n.state={filename:n.filename,title:n.title,alt:n.alt,caption:n.caption},n.photo=o.default.createRef(),n.photoUpload=o.default.createRef(),n.editScreen=o.default.createRef(),n.captionRef=o.default.createRef(),n.noticeMsg=o.default.createRef(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?O
1
+ !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=81)}([function(e,t,n){"use strict";e.exports=n(22)},function(e,t,n){"use strict";var r=n(10),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function l(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isPlainObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){s(t[r])&&s(n)?t[r]=e(t[r],n):s(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";e.exports={defaults:{provider:"unsplash",order:"latest",posts_per_page:"&per_page=20"},unsplash:{requires_key:!1,new:!1,filters:!0,api_query_var:"/?client_id=",photo_api:"https://api.unsplash.com/photos",collections_api:"https://api.unsplash.com/collections",search_api:"https://api.unsplash.com/search/photos",search_query_var:"query",arr_key:"results",orientation:["landscape","portrait","squarish"]},pixabay:{requires_key:!0,new:!1,filters:!0,api_query_var:"/?key=",photo_api:"https://pixabay.com/api",search_api:"https://pixabay.com/api",search_query_var:"q",arr_key:"hits",orientation:["horizontal","vertical"]}}},function(e,t,n){var r,i;"undefined"!=typeof window&&window,void 0===(i="function"==typeof(r=function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return-1==r.indexOf(t)&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return-1!=r&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var o=n[i];r&&r[o]&&(this.off(e,o),delete r[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){var r,i;
2
  /*!
3
  * getSize v2.0.3
4
  * measure size of elements
5
  * MIT license
6
+ */window,void 0===(i="function"==typeof(r=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],r=n.length;function i(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var o,a=!1;function l(t){if(function(){if(!a){a=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var r=i(t);o=200==Math.round(e(r.width)),l.isBoxSizeOuter=o,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var s=i(t);if("none"==s.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<r;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var c=u.isBorderBox="border-box"==s.boxSizing,f=0;f<r;f++){var d=n[f],p=s[d],h=parseFloat(p);u[d]=isNaN(h)?0:h}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,g=u.marginTop+u.marginBottom,b=u.borderLeftWidth+u.borderRightWidth,_=u.borderTopWidth+u.borderBottomWidth,w=c&&o,k=e(s.width);!1!==k&&(u.width=k+(w?0:m+b));var E=e(s.height);return!1!==E&&(u.height=E+(w?0:v+_)),u.innerWidth=u.width-(m+b),u.innerHeight=u.height-(v+_),u.outerWidth=u.width+y,u.outerHeight=u.height+g,u}}return l})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=o.default[e],n=instant_img_localize[e+"_app_id"];return""+t.photo_api+t.api_query_var+n+"&per_page=5&page=1"};var r,i=n(2),o=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";(function(t){var r=n(1),i=n(47),o=n(12),a={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(13)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(a)})),e.exports=u}).call(this,n(19))},function(e,t,n){"use strict";
7
  /*
8
  object-assign
9
  (c) Sindre Sorhus
10
  @license MIT
11
+ */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,s=a(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){"use strict";function r(e){return"string"!=typeof e?"":e.charAt(0).toUpperCase()+e.slice(1)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=instant_img_localize;400!==t&&401!==t||console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_invalid_msg);429===t&&console.warn("["+n.instant_images+" - "+t+" Error] "+r(e)+": "+n.api_ratelimit_msg)}},function(e,t,n){e.exports=n(42)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(1);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(1),i=n(48),o=n(49),a=n(11),l=n(50),s=n(53),u=n(54),c=n(14);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers,p=e.responseType;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(m+":"+v)}var y=l(e.baseURL,e.url);function g(){if(h){var r="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,o={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h};i(t,n,o),h=null}}if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(c("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){n(c("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(c(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(y))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),n(e),h=null)})),f||(f=null),h.send(f)}))}},function(e,t,n){"use strict";var r=n(12);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],l=["validateStatus"];function s(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=s(void 0,e[i])):n[i]=s(void 0,t[i])})),r.forEach(l,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var c=i.concat(o).concat(a).concat(l),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===c.indexOf(e)}));return r.forEach(f,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(23)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,u=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?u=s.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(s=u,u=[];++f<t;)s&&s[f].run();f=-1,t=u.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||l(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";switch(e){case"unsplash":instant_img_localize.unsplash_content_filter&&(t="&content_filter="+instant_img_localize.unsplash_content_filter);break;case"pixabay":instant_img_localize.pixabay_safesearch&&(t="&safesearch="+instant_img_localize.pixabay_safesearch)}return t}},function(e,t,n){var r;
12
+ /*!
13
+ Copyright (c) 2018 Jed Watson.
14
+ Licensed under the MIT License (MIT), see
15
+ http://jedwatson.github.io/classnames
16
+ */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var a=i.apply(null,r);a&&e.push(a)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var l in r)n.call(r,l)&&r[l]&&e.push(l);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";
17
  /** @license React v17.0.2
18
  * react.production.min.js
19
  *
21
  *
22
  * This source code is licensed under the MIT license found in the
23
  * LICENSE file in the root directory of this source tree.
24
+ */var r=n(7),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,s=60112;t.Suspense=60113;var u=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function y(){}function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var b=g.prototype=new y;b.constructor=g,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,o={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===o[r]&&(o[r]=s[r]);return{$$typeof:i,type:e,key:a,ref:l,props:o,_owner:_.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var x=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case o:s=!0}}if(s)return a=a(s=e),e=""===r?"."+T(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(x,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+T(l=e[u],u);s+=O(l,t,n,c,a)}else if("function"==typeof(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,n,c=r+T(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function C(e,t,n){if(null==e)return e;var r=[],i=0;return O(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var L={current:null};function N(){var e=L.current;if(null===e)throw Error(p(321));return e}var z={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:C,forEach:function(e,t,n){C(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return C(e,(function(){t++})),t},toArray:function(e){return C(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(p(143));return e}},t.Component=v,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];o.children=u}return{$$typeof:i,type:e.type,key:a,ref:l,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return N().useCallback(e,t)},t.useContext=function(e,t){return N().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return N().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return N().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return N().useLayoutEffect(e,t)},t.useMemo=function(e,t){return N().useMemo(e,t)},t.useReducer=function(e,t,n){return N().useReducer(e,t,n)},t.useRef=function(e){return N().useRef(e)},t.useState=function(e){return N().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";
25
  /** @license React v17.0.2
26
  * react-dom.production.min.js
27
  *
29
  *
30
  * This source code is licensed under the MIT license found in the
31
  * LICENSE file in the root directory of this source tree.
32
+ */var r=n(0),i=n(7),o=n(24);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function v(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);y[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,E=60106,S=60107,x=60108,T=60114,O=60109,C=60110,P=60112,L=60113,N=60120,z=60115,j=60116,I=60121,R=60128,M=60129,A=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var D=Symbol.for;k=D("react.element"),E=D("react.portal"),S=D("react.fragment"),x=D("react.strict_mode"),T=D("react.profiler"),O=D("react.provider"),C=D("react.context"),P=D("react.forward_ref"),L=D("react.suspense"),N=D("react.suspense_list"),z=D("react.memo"),j=D("react.lazy"),I=D("react.block"),D("react.scope"),R=D("react.opaque.id"),M=D("react.debug_trace_mode"),A=D("react.offscreen"),F=D("react.legacy_hidden")}var U,B="function"==typeof Symbol&&Symbol.iterator;function q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(1!==a||1!==l)do{if(a--,0>--l||i[a]!==o[l])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function $(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case T:return"Profiler";case x:return"StrictMode";case L:return"Suspense";case N:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case z:return Q(e.type);case I:return Q(e._render);case j:t=e._payload,e=e._init;try{return Q(e(t))}catch(e){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function ue(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ge={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function _e(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ge.hasOwnProperty(e)&&ge[e]?(""+t).trim():t+"px"}function we(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=_e(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ge).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ge[t]=ge[e]}))}));var ke=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Te=null,Oe=null,Ce=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Te)throw Error(a(280));var t=e.stateNode;t&&(t=ei(t),Te(e.stateNode,e.type,t))}}function Le(e){Oe?Ce?Ce.push(e):Ce=[e]:Oe=e}function Ne(){if(Oe){var e=Oe,t=Ce;if(Ce=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function ze(e,t){return e(t)}function je(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Re=ze,Me=!1,Ae=!1;function Fe(){null===Oe&&null===Ce||(Ie(),Ne())}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=ei(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ue=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ue=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(e){Ue=!1}function qe(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var We=!1,He=null,Ve=!1,$e=null,Qe={onError:function(e){We=!0,He=e}};function Ge(e,t,n,r,i,o,a,l,s){We=!1,He=null,qe.apply(Qe,arguments)}function Ye(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Xe(e){if(Ye(e)!==e)throw Error(a(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,it=!1,ot=[],at=null,lt=null,st=null,ut=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function mt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=Jr(t))&&tt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function gt(e,t,n){yt(e)&&n.delete(t)}function bt(){for(it=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==at&&yt(at)&&(at=null),null!==lt&&yt(lt)&&(lt=null),null!==st&&yt(st)&&(st=null),ut.forEach(gt),ct.forEach(gt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,bt)))}function wt(e){function t(t){return _t(t,e)}if(0<ot.length){_t(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&_t(at,e),null!==lt&&_t(lt,e),null!==st&&_t(st,e),ut.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},xt={};function Tt(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Tt("animationend"),Ct=Tt("animationiteration"),Pt=Tt("animationstart"),Lt=Tt("transitionend"),Nt=new Map,zt=new Map,jt=["abort","abort",Ot,"animationEnd",Ct,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Lt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),zt.set(r,t),Nt.set(r,i),u(i,[r])}}(0,o.unstable_now)();var Rt=8;function Mt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function At(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==o)r=o,i=Rt=15;else if(0!==(o=134217727&n)){var s=o&~a;0!==s?(r=Mt(s),i=Rt):0!==(l&=o)&&(r=Mt(l),i=Rt)}else 0!==(o=n&~a)?(r=Mt(o),i=Rt):0!==l&&(r=Mt(l),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Mt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Dt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Ut(24&~t))?Dt(10,t):e;case 10:return 0===(e=Ut(192&~t))?Dt(8,t):e;case 8:return 0===(e=Ut(3584&~t))&&(0===(e=Ut(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Ut(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Ut(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2;var $t=o.unstable_UserBlockingPriority,Qt=o.unstable_runWithPriority,Gt=!0;function Yt(e,t,n,r){Me||Ie();var i=Xt,o=Me;Me=!0;try{je(i,e,t,n,r)}finally{(Me=o)||Fe()}}function Kt(e,t,n,r){Qt($t,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Gt)if((i=0==(4&t))&&0<ot.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var o=Jt(e,t,n,r);if(null===o)i&&ht(e,r);else{if(i){if(-1<dt.indexOf(e))return e=pt(o,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return at=mt(at,e,t,n,r,i),!0;case"dragenter":return lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return st=mt(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,mt(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,mt(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;ht(e,r)}Lr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=xe(r);if(null!==(i=Xr(i))){var o=Ye(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Ke(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Lr(e,t,r,i,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return tn=i.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:an,this.isPropagationStopped=an,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=i({},fn,{view:0,detail:0}),hn=ln(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(mn),yn=ln(i({},mn,{dataTransfer:0})),gn=ln(i({},pn,{relatedTarget:0})),bn=ln(i({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),_n=ln(i({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),wn=ln(i({},fn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function xn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Tn(){return xn}var On=ln(i({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Ln=ln(i({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=ln(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),zn=[9,13,27,32],jn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Rn=f&&"TextEvent"in window&&!In,Mn=f&&(!jn||In&&8<In&&11>=In),An=String.fromCharCode(32),Fn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Hn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,$n=null;function Qn(e){Sr(e,0)}function Gn(e){if(X(Zr(e)))return e}function Yn(e,t){if("change"===e)return t}var Kn=!1;if(f){var Xn;if(f){var Jn="oninput"in document;if(!Jn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Jn="function"==typeof Zn.oninput}Xn=Jn}else Xn=!1;Kn=Xn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),$n=Vn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];if(Hn(t,$n,e,xe(e)),e=Qn,Me)e(t);else{Me=!0;try{ze(e,t)}finally{Me=!1,Fe()}}}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function ir(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function sr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function fr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,hr=null,mr=null,vr=null,yr=!1;function gr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==hr||hr!==J(r)||("selectionStart"in(r=hr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=zr(mr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(jt,2);for(var br="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<br.length;_r++)zt.set(br[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,l,s,u){if(Ge.apply(this,arguments),We){if(!We)throw Error(a(198));var c=He;We=!1,He=null,Ve||(Ve=!0,$e=c)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Er(i,l,u),o=s}}}if(Ve)throw e=$e,Ve=!1,$e=null,e}function xr(e,t){var n=ti(t),r=e+"__bubble";n.has(r)||(Pr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Or(e){e[Tr]||(e[Tr]=!0,l.forEach((function(t){kr.has(t)||Cr(t,!1,e,null),Cr(t,!0,e,null)})))}function Cr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ti(o),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(i|=4),Pr(o,e,i,t),a.add(l))}function Pr(e,t,n,r){var i=zt.get(t);switch(void 0===i?2:i){case 0:i=Yt;break;case 1:i=Kt;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Ue||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===i||8===l.nodeType&&l.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;a=a.return}for(;null!==l;){if(null===(a=Xr(l)))return;if(5===(s=a.tag)||6===s){r=o=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Ae)return e(t,n);Ae=!0;try{Re(e,t,n)}finally{Ae=!1,Fe()}}((function(){var r=o,i=xe(n),a=[];e:{var l=Nt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=On;break;case"focusin":u="focus",s=gn;break;case"focusout":u="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Ot:case Ct:case Pt:s=bn;break;case Lt:s=Ln;break;case"scroll":s=hn;break;case"wheel":s=Nn;break;case"copy":case"cut":case"paste":s=_n;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=De(h,d))&&c.push(Nr(h,m,p)))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,i),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Xr(u)&&!u[Yr])&&(s||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Xr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=vn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:Zr(s),p=null==u?l:Zr(u),(l=new c(m,h+"leave",s,n,i)).target=f,l.relatedTarget=p,m=null,Xr(i)===r&&((c=new c(d,h+"enter",u,n,i)).target=p,c.relatedTarget=f,m=c),f=m,s&&u)e:{for(d=u,h=0,p=c=s;p;p=jr(p))h++;for(p=0,m=d;m;m=jr(m))p++;for(;0<h-p;)c=jr(c),h--;for(;0<p-h;)d=jr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=jr(c),d=jr(d)}c=null}else c=null;null!==s&&Ir(a,l,s,c,!1),null!==u&&null!==f&&Ir(a,f,u,c,!0)}if("select"===(s=(l=r?Zr(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var v=Yn;else if(Wn(l))if(Kn)v=or;else{v=rr;var y=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=ir);switch(v&&(v=v(e,r))?Hn(a,v,n,i):(y&&y(e,l,r),"focusout"===e&&(y=l._wrapperState)&&y.controlled&&"number"===l.type&&ie(l,"number",l.value)),y=r?Zr(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(hr=y,mr=r,vr=null);break;case"focusout":vr=mr=hr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,gr(a,n,i);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":gr(a,n,i)}var g;if(jn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=nn()):(en="value"in(Zt=i)?Zt.value:Zt.textContent,Bn=!0)),0<(y=zr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:y}),g?b.data=g:null!==(g=Un(n))&&(b.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(Fn=!0,An);case"textInput":return(e=t.data)===An&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!jn&&Dn(e,t)?(e=nn(),tn=en=Zt=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=zr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}Sr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=De(e,n))&&r.unshift(Nr(e,o,i)),null!=(o=De(e,t))&&r.push(Nr(e,o,i))),e=e.return}return r}function jr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,i?null!=(s=De(n,o))&&a.unshift(Nr(n,s,l)):i||null!=(s=De(n,o))&&a.push(Nr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Rr(){}var Mr=null,Ar=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Dr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Vr=0;var $r=Math.random().toString(36).slice(2),Qr="__reactFiber$"+$r,Gr="__reactProps$"+$r,Yr="__reactContainer$"+$r,Kr="__reactEvents$"+$r;function Xr(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Qr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Qr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ei(e){return e[Gr]||null}function ti(e){var t=e[Kr];return void 0===t&&(t=e[Kr]=new Set),t}var ni=[],ri=-1;function ii(e){return{current:e}}function oi(e){0>ri||(e.current=ni[ri],ni[ri]=null,ri--)}function ai(e,t){ri++,ni[ri]=e.current,e.current=t}var li={},si=ii(li),ui=ii(!1),ci=li;function fi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return null!=(e=e.childContextTypes)}function pi(){oi(ui),oi(si)}function hi(e,t,n){if(si.current!==li)throw Error(a(168));ai(si,t),ai(ui,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Q(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,ci=si.current,ai(si,e),ai(ui,ui.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,oi(ui),oi(si),ai(si,e)):oi(ui),ai(ui,n)}var gi=null,bi=null,_i=o.unstable_runWithPriority,wi=o.unstable_scheduleCallback,ki=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,Si=o.unstable_requestPaint,xi=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Ci=o.unstable_UserBlockingPriority,Pi=o.unstable_NormalPriority,Li=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,zi={},ji=void 0!==Si?Si:function(){},Ii=null,Ri=null,Mi=!1,Ai=xi(),Fi=1e4>Ai?xi:function(){return xi()-Ai};function Di(){switch(Ti()){case Oi:return 99;case Ci:return 98;case Pi:return 97;case Li:return 96;case Ni:return 95;default:throw Error(a(332))}}function Ui(e){switch(e){case 99:return Oi;case 98:return Ci;case 97:return Pi;case 96:return Li;case 95:return Ni;default:throw Error(a(332))}}function Bi(e,t){return e=Ui(e),_i(e,t)}function qi(e,t,n){return e=Ui(e),wi(e,t,n)}function Wi(){if(null!==Ri){var e=Ri;Ri=null,ki(e)}Hi()}function Hi(){if(!Mi&&null!==Ii){Mi=!0;var e=0;try{var t=Ii;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(t){throw null!==Ii&&(Ii=Ii.slice(e+1)),wi(Oi,Wi),t}finally{Mi=!1}}}var Vi=w.ReactCurrentBatchConfig;function $i(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Qi=ii(null),Gi=null,Yi=null,Ki=null;function Xi(){Ki=Yi=Gi=null}function Ji(e){var t=Qi.current;oi(Qi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function eo(e,t){Gi=e,Ki=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(za=!0),e.firstContext=null)}function to(e,t){if(Ki!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Ki=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Gi)throw Error(a(308));Yi=t,Gi.dependencies={lanes:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var no=!1;function ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function io(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function oo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ao(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,r){var o=e.updateQueue;no=!1;var a=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=u)}}if(null!==a){for(d=o.baseState,l=0,f=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(s=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=m.payload)?h.call(p,d,s):h))break e;d=i({},d,s);break e;case 2:no=!0}}null!==a.callback&&(e.flags|=32,null===(s=o.effects)?o.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(a=a.next)){if(null===(s=o.shared.pending))break;a=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}null===f&&(u=d),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=f,Il|=l,e.lanes=l,e.memoizedState=d}}function uo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function fo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var po={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=os(),i=as(e),o=oo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),ao(e,o),ls(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=os(),r=as(e),i=oo(n,r);i.tag=2,null!=t&&(i.callback=t),ao(e,i),ls(e,r,n)}};function ho(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function mo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"==typeof o&&null!==o?o=to(o):(i=di(t)?ci:si.current,o=(r=null!=(r=t.contextTypes))?fi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=po,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&po.enqueueReplaceState(t,t.state,null)}function yo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,ro(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=to(o):(o=di(t)?ci:si.current,i.context=fi(e,o)),so(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(fo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&po.enqueueReplaceState(i,i.state,null),so(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var go=Array.isArray;function bo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===co&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _o(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function wo(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ds(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ws(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=bo(e,t,n),r.return=e,r):((r=Us(n.type,n.key,n.props,null,e.mode,r)).ref=bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Bs(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ws(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Us(t.type,t.key,t.props,null,e.mode,n)).ref=bo(e,null,t),n.return=e,n;case E:return(t=Hs(t,e.mode,n)).return=e,t}if(go(t)||q(t))return(t=Bs(t,e.mode,n,null)).return=e,t;_o(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):u(e,t,n,r):null;case E:return n.key===i?c(e,t,n,r):null}if(go(n)||q(n))return null!==i?null:f(e,t,n,r,null);_o(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):u(t,e,r,i);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(go(r)||q(r))return f(t,e=e.get(n)||null,r,i,null);_o(t,r)}return null}function m(i,a,l,s){for(var u=null,c=null,f=a,m=a=0,v=null;null!==f&&m<l.length;m++){f.index>m?(v=f,f=null):v=f.sibling;var y=p(i,f,l[m],s);if(null===y){null===f&&(f=v);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y,f=v}if(m===l.length)return n(i,f),u;if(null===f){for(;m<l.length;m++)null!==(f=d(i,l[m],s))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);m<l.length;m++)null!==(v=h(f,i,m,l[m],s))&&(e&&null!==v.alternate&&f.delete(null===v.key?m:v.key),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(i,e)})),u}function v(i,l,s,u){var c=q(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,m=l,v=l=0,y=null,g=s.next();null!==m&&!g.done;v++,g=s.next()){m.index>v?(y=m,m=null):y=m.sibling;var b=p(i,m,g.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(i,m),l=o(b,l,v),null===f?c=b:f.sibling=b,f=b,m=y}if(g.done)return n(i,m),c;if(null===m){for(;!g.done;v++,g=s.next())null!==(g=d(i,g.value,u))&&(l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return c}for(m=r(i,m);!g.done;v++,g=s.next())null!==(g=h(m,i,v,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?v:g.key),l=o(g,l,v),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),c}return function(e,r,o,s){var u="object"==typeof o&&null!==o&&o.type===S&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case k:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===S){n(e,u.sibling),(r=i(u,o.props.children)).return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),(r=i(u,o.props)).ref=bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===S?((r=Bs(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=Us(o.type,o.key,o.props,null,e.mode,s)).ref=bo(e,r,o),s.return=e,e=s)}return l(e);case E:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Hs(o,e.mode,s)).return=e,e=r}return l(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Ws(o,e.mode,s)).return=e,e=r),l(e);if(go(o))return m(e,r,o,s);if(q(o))return v(e,r,o,s);if(c&&_o(e,o),void 0===o&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Q(e.type)||"Component"))}return n(e,r)}}var ko=wo(!0),Eo=wo(!1),So={},xo=ii(So),To=ii(So),Oo=ii(So);function Co(e){if(e===So)throw Error(a(174));return e}function Po(e,t){switch(ai(Oo,t),ai(To,e),ai(xo,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}oi(xo),ai(xo,t)}function Lo(){oi(xo),oi(To),oi(Oo)}function No(e){Co(Oo.current);var t=Co(xo.current),n=he(t,e.type);t!==n&&(ai(To,e),ai(xo,n))}function zo(e){To.current===e&&(oi(xo),oi(To))}var jo=ii(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ro=null,Mo=null,Ao=!1;function Fo(e,t){var n=As(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Do(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Uo(e){if(Ao){var t=Mo;if(t){var n=t;if(!Do(e,t)){if(!(t=Wr(n.nextSibling))||!Do(e,t))return e.flags=-1025&e.flags|2,Ao=!1,void(Ro=e);Fo(Ro,n)}Ro=e,Mo=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Ao=!1,Ro=e}}function Bo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ro=e}function qo(e){if(e!==Ro)return!1;if(!Ao)return Bo(e),Ao=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Dr(t,e.memoizedProps))for(t=Mo;t;)Fo(e,t),t=Wr(t.nextSibling);if(Bo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mo=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mo=null}}else Mo=Ro?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){Mo=Ro=null,Ao=!1}var Ho=[];function Vo(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var $o=w.ReactCurrentDispatcher,Qo=w.ReactCurrentBatchConfig,Go=0,Yo=null,Ko=null,Xo=null,Jo=!1,Zo=!1;function ea(){throw Error(a(321))}function ta(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function na(e,t,n,r,i,o){if(Go=o,Yo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,$o.current=null===e||null===e.memoizedState?Ca:Pa,e=n(r,i),Zo){o=0;do{if(Zo=!1,!(25>o))throw Error(a(301));o+=1,Xo=Ko=null,t.updateQueue=null,$o.current=La,e=n(r,i)}while(Zo)}if($o.current=Oa,t=null!==Ko&&null!==Ko.next,Go=0,Xo=Ko=Yo=null,Jo=!1,t)throw Error(a(300));return e}function ra(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ia(){if(null===Ko){var e=Yo.alternate;e=null!==e?e.memoizedState:null}else e=Ko.next;var t=null===Xo?Yo.memoizedState:Xo.next;if(null!==t)Xo=t,Ko=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ko=e).memoizedState,baseState:Ko.baseState,baseQueue:Ko.baseQueue,queue:Ko.queue,next:null},null===Xo?Yo.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function oa(e,t){return"function"==typeof t?t(e):t}function aa(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ko,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=l=o=null,u=i;do{var c=u.lane;if((Go&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,o=r):s=s.next=f,Yo.lanes|=c,Il|=c}u=u.next}while(null!==u&&u!==i);null===s?o=r:s.next=l,ar(r,t.memoizedState)||(za=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var l=i=i.next;do{o=e(o,l.action),l=l.next}while(l!==i);ar(o,t.memoizedState)||(za=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Go&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function ua(e,t,n,r){var i=Tl;if(null===i)throw Error(a(349));var o=t._getVersion,l=o(t._source),s=$o.current,u=s.useState((function(){return sa(i,t,n)})),c=u[1],f=u[0];u=Xo;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var v=Yo;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=o(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=as(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var s=31-Wt(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=as(v);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(m,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:f}).dispatch=c=Ta.bind(null,Yo,e),u.queue=e,u.baseQueue=null,f=sa(i,t,n),u.memoizedState=u.baseState=f),f}function ca(e,t,n){return ua(ia(),e,t,n)}function fa(e){var t=ra();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e}).dispatch=Ta.bind(null,Yo,e),[t.memoizedState,e]}function da(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yo.updateQueue)?(t={lastEffect:null},Yo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},ra().memoizedState=e}function ha(){return ia().memoizedState}function ma(e,t,n,r){var i=ra();Yo.flags|=e,i.memoizedState=da(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ia();r=void 0===r?null:r;var o=void 0;if(null!==Ko){var a=Ko.memoizedState;if(o=a.destroy,null!==r&&ta(r,a.deps))return void da(t,n,o,r)}Yo.flags|=e,i.memoizedState=da(1|t,n,o,r)}function ya(e,t){return ma(516,4,e,t)}function ga(e,t){return va(516,4,e,t)}function ba(e,t){return va(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)}function ka(){}function Ea(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ta(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function xa(e,t){var n=Di();Bi(98>n?98:n,(function(){e(!0)})),Bi(97<n?97:n,(function(){var n=Qo.transition;Qo.transition=1;try{e(!1),t()}finally{Qo.transition=n}}))}function Ta(e,t,n){var r=os(),i=as(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Yo||null!==a&&a===Yo)Zo=Jo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(o.eagerReducer=a,o.eagerState=s,ar(s,l))return}catch(e){}ls(e,i,r)}}var Oa={readContext:to,useCallback:ea,useContext:ea,useEffect:ea,useImperativeHandle:ea,useLayoutEffect:ea,useMemo:ea,useReducer:ea,useRef:ea,useState:ea,useDebugValue:ea,useDeferredValue:ea,useTransition:ea,useMutableSource:ea,useOpaqueIdentifier:ea,unstable_isNewReconciler:!1},Ca={readContext:to,useCallback:function(e,t){return ra().memoizedState=[e,void 0===t?null:t],e},useContext:to,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=ra();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ra();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Yo,e),[r.memoizedState,e]},useRef:pa,useState:fa,useDebugValue:ka,useDeferredValue:function(e){var t=fa(e),n=t[0],r=t[1];return ya((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=fa(!1),t=e[0];return pa(e=xa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=ra();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ua(r,e,t,n)},useOpaqueIdentifier:function(){if(Ao){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Vr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yo.mode)&&(Yo.flags|=516,da(5,(function(){n("r:"+(Vr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(Vr++).toString(36)),t},unstable_isNewReconciler:!1},Pa={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:aa,useRef:ha,useState:function(){return aa(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=aa(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=aa(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(oa)[0]},unstable_isNewReconciler:!1},La={readContext:to,useCallback:Ea,useContext:to,useEffect:ga,useImperativeHandle:wa,useLayoutEffect:ba,useMemo:Sa,useReducer:la,useRef:ha,useState:function(){return la(oa)},useDebugValue:ka,useDeferredValue:function(e){var t=la(oa),n=t[0],r=t[1];return ga((function(){var t=Qo.transition;Qo.transition=1;try{r(e)}finally{Qo.transition=t}}),[e]),n},useTransition:function(){var e=la(oa)[0];return[ha().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return la(oa)[0]},unstable_isNewReconciler:!1},Na=w.ReactCurrentOwner,za=!1;function ja(e,t,n,r){t.child=null===e?Eo(t,null,n,r):ko(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return eo(t,i),r=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,ja(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ra(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Fs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Us(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,i,o))}return a=e.child,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?el(e,t,o):(t.flags|=1,(e=Ds(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,i,o){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(za=!1,0==(o&i))return t.lanes=e.lanes,el(e,t,o);0!=(16384&e.flags)&&(za=!0)}return Da(e,t,n,r,o)}function Aa(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},ms(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;t.memoizedState={baseLanes:0},ms(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,ms(t,r);return ja(e,t,i,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Da(e,t,n,r,i){var o=di(n)?ci:si.current;return o=fi(t,o),eo(t,i),n=na(e,t,n,r,o,i),null===e||za?(t.flags|=1,ja(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,el(e,t,i))}function Ua(e,t,n,r,i){if(di(n)){var o=!0;vi(t)}else o=!1;if(eo(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),yo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=to(u):u=fi(t,u=di(n)?ci:si.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&vo(t,a,r,u),no=!1;var d=t.memoizedState;a.state=d,so(t,r,a,i),s=t.memoizedState,l!==r||d!==s||ui.current||no?("function"==typeof c&&(fo(t,n,c,r),s=t.memoizedState),(l=no||ho(t,n,l,r,d,s,u))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,io(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:$i(t.type,l),a.props=u,f=t.pendingProps,d=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=to(s):s=fi(t,s=di(n)?ci:si.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==s)&&vo(t,a,r,s),no=!1,d=t.memoizedState,a.state=d,so(t,r,a,i);var h=t.memoizedState;l!==f||d!==h||ui.current||no?("function"==typeof p&&(fo(t,n,p,r),h=t.memoizedState),(u=no||ho(t,n,u,r,d,h,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,o,i)}function Ba(e,t,n,r,i,o){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&yi(t,n,!1),el(e,t,o);r=t.stateNode,Na.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,l,o)):ja(e,t,l,o),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?hi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&hi(0,t.context,!1),Po(e,t.containerInfo)}var Wa,Ha,Va,$a={dehydrated:null,retryLane:0};function Qa(e,t,n){var r,i=t.pendingProps,o=jo.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ai(jo,1&o),null===e?(void 0!==i.fallback&&Uo(t),e=i.children,o=i.fallback,a?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ga(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=$a,t.lanes=33554432,e):((n=qs({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ka(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=$a,i):(n=Ya(e,t,i.children,n),t.memoizedState=null,n))}function Ga(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=qs(t,i,0,null),n=Bs(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Ya(e,t,n,r){var i=e.child;return e=i.sibling,n=Ds(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ka(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Ds(a,l),null!==e?r=Ds(e,r):(r=Bs(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Xa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Ja(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Za(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ja(e,t,r.children,n),0!=(2&(r=jo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Xa(e,n);else if(19===e.tag)Xa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ai(jo,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ja(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ja(t,!0,n,null,o,t.lastEffect);break;case"together":Ja(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function el(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Il|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ds(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ds(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function tl(e,t){if(!Ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function nl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return di(t.type)&&pi(),null;case 3:return Lo(),oi(ui),oi(si),Vo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:zo(t);var o=Co(Oo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Co(xo.current),qo(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Gr]=l,n){case"dialog":xr("cancel",r),xr("close",r);break;case"iframe":case"object":case"embed":xr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)xr(wr[e],r);break;case"source":xr("error",r);break;case"img":case"image":case"link":xr("error",r),xr("load",r);break;case"details":xr("toggle",r);break;case"input":ee(r,l),xr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},xr("invalid",r);break;case"textarea":se(r,l),xr("invalid",r)}for(var u in Ee(n,l),e=null,l)l.hasOwnProperty(u)&&(o=l[u],"children"===u?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):s.hasOwnProperty(u)&&null!=o&&"onScroll"===u&&xr("scroll",r));switch(n){case"input":K(r),re(r,l,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=pe(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Qr]=t,e[Gr]=r,Wa(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":xr("cancel",e),xr("close",e),o=r;break;case"iframe":case"object":case"embed":xr("load",e),o=r;break;case"video":case"audio":for(o=0;o<wr.length;o++)xr(wr[o],e);o=r;break;case"source":xr("error",e),o=r;break;case"img":case"image":case"link":xr("error",e),xr("load",e),o=r;break;case"details":xr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),xr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),xr("invalid",e);break;case"textarea":se(e,r),o=le(e,r),xr("invalid",e);break;default:o=r}Ee(n,o);var c=o;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?we(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"==typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&xr("scroll",e):null!=f&&_(e,l,f,u))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Rr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Va(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Co(Oo.current),Co(xo.current),qo(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return oi(jo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&jo.current)?0===Nl&&(Nl=3):(0!==Nl&&3!==Nl||(Nl=4),null===Tl||0==(134217727&Il)&&0==(134217727&Rl)||fs(Tl,Cl))),(r||n)&&(t.flags|=4),null);case 4:return Lo(),null===e&&Or(t.stateNode.containerInfo),null;case 10:return Ji(t),null;case 17:return di(t.type)&&pi(),null;case 19:if(oi(jo),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)tl(r,!1);else{if(0!==Nl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Io(e))){for(t.flags|=64,tl(r,!1),null!==(l=u.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(u=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ai(jo,1&jo.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Dl&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Io(u))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),tl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate&&!Ao)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Dl&&1073741824!==n&&(t.flags|=64,l=!0,tl(r,!1),t.lanes=33554432);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=jo.current,ai(jo,l?1&t|2:1&t),n):null;case 23:case 24:return vs(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rl(e){switch(e.tag){case 1:di(e.type)&&pi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Lo(),oi(ui),oi(si),Vo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return zo(e),null;case 13:return oi(jo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return oi(jo),null;case 4:return Lo(),null;case 10:return Ji(e),null;case 23:case 24:return vs(),null;default:return null}}function il(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Co(xo.current);var a,l=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),l=[];break;case"option":o=oe(e,o),r=oe(e,r),l=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),l=[];break;case"textarea":o=le(e,o),r=le(e,r),l=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in Ee(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var u=o[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&xr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Va=function(e,t,n,r){n!==r&&(t.flags|=4)};var al="function"==typeof WeakMap?WeakMap:Map;function ll(e,t,n){(n=oo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Hl=r),ol(0,t)},n}function sl(e,t,n){(n=oo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return ol(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Vl?Vl=new Set([this]):Vl.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function cl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){js(e,t)}else t.current=null}function fl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function dl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Ls(n,e),Ps(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&uo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}uo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&wt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function pl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=_e("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(bi&&"function"==typeof bi.onCommitFiberUnmount)try{bi.onCommitFiberUnmount(gi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Ls(t,n);else{r=t;try{i()}catch(e){js(r,e)}}n=n.next}while(n!==e)}break;case 1:if(cl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){js(t,e)}break;case 5:cl(t);break;case 4:gl(e,t)}}function ml(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vl(e){return 5===e.tag||3===e.tag||4===e.tag}function yl(e){e:{for(var t=e.return;null!==t;){if(vl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||vl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function gl(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var l=e,s=i,u=s;;)if(hl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=i.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hl(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var l=o[i],s=o[i+1];"style"===l?we(n,s):"dangerouslySetInnerHTML"===l?ve(n,s):"children"===l?ye(n,s):_(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,wt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fl=Fi(),pl(t.child,!0)),void _l(t);case 19:return void _l(t);case 17:return;case 23:case 24:return void pl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Rs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function wl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var kl=Math.ceil,El=w.ReactCurrentDispatcher,Sl=w.ReactCurrentOwner,xl=0,Tl=null,Ol=null,Cl=0,Pl=0,Ll=ii(0),Nl=0,zl=null,jl=0,Il=0,Rl=0,Ml=0,Al=null,Fl=0,Dl=1/0;function Ul(){Dl=Fi()+500}var Bl,ql=null,Wl=!1,Hl=null,Vl=null,$l=!1,Ql=null,Gl=90,Yl=[],Kl=[],Xl=null,Jl=0,Zl=null,es=-1,ts=0,ns=0,rs=null,is=!1;function os(){return 0!=(48&xl)?Fi():-1!==es?es:es=Fi()}function as(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Di()?1:2;if(0===ts&&(ts=jl),0!==Vi.transition){0!==ns&&(ns=null!==Al?Al.pendingLanes:0),e=ts;var t=4186112&~ns;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Di(),0!=(4&xl)&&98===e?e=Dt(12,ts):e=Dt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ts),e}function ls(e,t,n){if(50<Jl)throw Jl=0,Zl=null,Error(a(185));if(null===(e=ss(e,t)))return null;qt(e,t,n),e===Tl&&(Rl|=t,4===Nl&&fs(e,Cl));var r=Di();1===t?0!=(8&xl)&&0==(48&xl)?ds(e):(us(e,n),0===xl&&(Ul(),Wi())):(0==(4&xl)||98!==r&&99!==r||(null===Xl?Xl=new Set([e]):Xl.add(e)),us(e,n)),Al=e}function ss(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function us(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Wt(l),u=1<<s,c=o[s];if(-1===c){if(0==(u&r)||0!=(u&i)){c=t,Mt(u);var f=Rt;o[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=At(e,e===Tl?Cl:0),t=Rt,0===r)null!==n&&(n!==zi&&ki(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==zi&&ki(n)}15===t?(n=ds.bind(null,e),null===Ii?(Ii=[n],Ri=wi(Oi,Hi)):Ii.push(n),n=zi):14===t?n=qi(99,ds.bind(null,e)):n=qi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),cs.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function cs(e){if(es=-1,ns=ts=0,0!=(48&xl))throw Error(a(327));var t=e.callbackNode;if(Cs()&&e.callbackNode!==t)return null;var n=At(e,e===Tl?Cl:0);if(0===n)return null;var r=n,i=xl;xl|=16;var o=bs();for(Tl===e&&Cl===r||(Ul(),ys(e,r));;)try{ks();break}catch(t){gs(e,t)}if(Xi(),El.current=o,xl=i,null!==Ol?r=0:(Tl=null,Cl=0,r=Nl),0!=(jl&Rl))ys(e,0);else if(0!==r){if(2===r&&(xl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Ft(e))&&(r=_s(e,n))),1===r)throw t=zl,ys(e,0),fs(e,n),us(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:xs(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=Fl+500-Fi())){if(0!==At(e,0))break;if(((i=e.suspendedLanes)&n)!==n){os(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ur(xs.bind(null,e),r);break}xs(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var l=31-Wt(n);o=1<<l,(l=r[l])>i&&(i=l),n&=~o}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*kl(n/1960))-n)){e.timeoutHandle=Ur(xs.bind(null,e),n);break}xs(e);break;case 5:xs(e);break;default:throw Error(a(329))}}return us(e,Fi()),e.callbackNode===t?cs.bind(null,e):null}function fs(e,t){for(t&=~Ml,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function ds(e){if(0!=(48&xl))throw Error(a(327));if(Cs(),e===Tl&&0!=(e.expiredLanes&Cl)){var t=Cl,n=_s(e,t);0!=(jl&Rl)&&(n=_s(e,t=At(e,t)))}else n=_s(e,t=At(e,0));if(0!==e.tag&&2===n&&(xl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Ft(e))&&(n=_s(e,t))),1===n)throw n=zl,ys(e,0),fs(e,t),us(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,xs(e),us(e,Fi()),null}function ps(e,t){var n=xl;xl|=1;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}}function hs(e,t){var n=xl;xl&=-2,xl|=8;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}}function ms(e,t){ai(Ll,Pl),Pl|=t,jl|=t}function vs(){Pl=Ll.current,oi(Ll)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&pi();break;case 3:Lo(),oi(ui),oi(si),Vo();break;case 5:zo(r);break;case 4:Lo();break;case 13:case 19:oi(jo);break;case 10:Ji(r);break;case 23:case 24:vs()}n=n.return}Tl=e,Ol=Ds(e.current,null),Cl=Pl=jl=t,Nl=0,zl=null,Ml=Rl=Il=0}function gs(e,t){for(;;){var n=Ol;try{if(Xi(),$o.current=Oa,Jo){for(var r=Yo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Jo=!1}if(Go=0,Xo=Ko=Yo=null,Zo=!1,Sl.current=null,null===n||null===n.return){Nl=1,zl=t,Ol=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=Cl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&jo.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=d.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(p){var v=d.updateQueue;if(null===v){var y=new Set;y.add(u),d.updateQueue=y}else v.add(u);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var g=oo(-1,1);g.tag=2,ao(l,g)}l.lanes|=1;break e}s=void 0,l=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new al,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var _=Is.bind(null,o,u,l);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Q(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Nl&&(Nl=2),s=il(s,l),d=a;do{switch(d.tag){case 3:o=s,d.flags|=4096,t&=-t,d.lanes|=t,lo(d,ll(0,o,t));break e;case 1:o=s;var w=d.type,k=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===Vl||!Vl.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,lo(d,sl(d,o,t));break e}}d=d.return}while(null!==d)}Ss(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function bs(){var e=El.current;return El.current=Oa,null===e?Oa:e}function _s(e,t){var n=xl;xl|=16;var r=bs();for(Tl===e&&Cl===t||ys(e,t);;)try{ws();break}catch(t){gs(e,t)}if(Xi(),xl=n,El.current=r,null!==Ol)throw Error(a(261));return Tl=null,Cl=0,Nl}function ws(){for(;null!==Ol;)Es(Ol)}function ks(){for(;null!==Ol&&!Ei();)Es(Ol)}function Es(e){var t=Bl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?Ss(e):Ol=t,Sl.current=null}function Ss(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=nl(n,t,Pl)))return void(Ol=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Pl)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rl(t)))return n.flags&=2047,void(Ol=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===Nl&&(Nl=5)}function xs(e){var t=Di();return Bi(99,Ts.bind(null,e,t)),null}function Ts(e,t){do{Cs()}while(null!==Ql);if(0!=(48&xl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<o;){var u=31-Wt(o),c=1<<u;i[u]=0,l[u]=-1,s[u]=-1,o&=~c}if(null!==Xl&&0==(24&r)&&Xl.has(e)&&Xl.delete(e),e===Tl&&(Ol=Tl=null,Cl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=xl,xl|=32,Sl.current=null,Mr=Gt,dr(l=fr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,o=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,m=0,v=l,y=null;t:for(;;){for(var g;v!==s||0!==o&&3!==v.nodeType||(d=f+o),v!==u||0!==c&&3!==v.nodeType||(p=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(g=v.firstChild);)y=v,v=g;for(;;){if(v===l)break t;if(y===s&&++h===o&&(d=f),y===u&&++m===c&&(p=f),null!==(g=v.nextSibling))break;y=(v=y).parentNode}v=g}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Ar={focusedElem:l,selectionRange:s},Gt=!1,rs=null,is=!1,ql=r;do{try{Os()}catch(e){if(null===ql)throw Error(a(330));js(ql,e),ql=ql.nextEffect}}while(null!==ql);rs=null,ql=r;do{try{for(l=e;null!==ql;){var b=ql.flags;if(16&b&&ye(ql.stateNode,""),128&b){var _=ql.alternate;if(null!==_){var w=_.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:yl(ql),ql.flags&=-3;break;case 6:yl(ql),ql.flags&=-3,bl(ql.alternate,ql);break;case 1024:ql.flags&=-1025;break;case 1028:ql.flags&=-1025,bl(ql.alternate,ql);break;case 4:bl(ql.alternate,ql);break;case 8:gl(l,s=ql);var k=s.alternate;ml(s),null!==k&&ml(k)}ql=ql.nextEffect}}catch(e){if(null===ql)throw Error(a(330));js(ql,e),ql=ql.nextEffect}}while(null!==ql);if(w=Ar,_=fr(),b=w.focusedElem,l=w.selectionRange,_!==b&&b&&b.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&dr(b)&&(_=l.start,void 0===(w=l.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!w.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),o=cr(b,l),s&&o&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>l?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Gt=!!Mr,Ar=Mr=null,e.current=n,ql=r;do{try{for(b=e;null!==ql;){var E=ql.flags;if(36&E&&dl(b,ql.alternate,ql),128&E){_=void 0;var S=ql.ref;if(null!==S){var x=ql.stateNode;switch(ql.tag){case 5:_=x;break;default:_=x}"function"==typeof S?S(_):S.current=_}}ql=ql.nextEffect}}catch(e){if(null===ql)throw Error(a(330));js(ql,e),ql=ql.nextEffect}}while(null!==ql);ql=null,ji(),xl=i}else e.current=n;if($l)$l=!1,Ql=e,Gl=t;else for(ql=r;null!==ql;)t=ql.nextEffect,ql.nextEffect=null,8&ql.flags&&((E=ql).sibling=null,E.stateNode=null),ql=t;if(0===(r=e.pendingLanes)&&(Vl=null),1===r?e===Zl?Jl++:(Jl=0,Zl=e):Jl=0,n=n.stateNode,bi&&"function"==typeof bi.onCommitFiberRoot)try{bi.onCommitFiberRoot(gi,n,void 0,64==(64&n.current.flags))}catch(e){}if(us(e,Fi()),Wl)throw Wl=!1,e=Hl,Hl=null,e;return 0!=(8&xl)||Wi(),null}function Os(){for(;null!==ql;){var e=ql.alternate;is||null===rs||(0!=(8&ql.flags)?Ze(ql,rs)&&(is=!0):13===ql.tag&&wl(e,ql)&&Ze(ql,rs)&&(is=!0));var t=ql.flags;0!=(256&t)&&fl(e,ql),0==(512&t)||$l||($l=!0,qi(97,(function(){return Cs(),null}))),ql=ql.nextEffect}}function Cs(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Bi(e,Ns)}return!1}function Ps(e,t){Yl.push(t,e),$l||($l=!0,qi(97,(function(){return Cs(),null})))}function Ls(e,t){Kl.push(t,e),$l||($l=!0,qi(97,(function(){return Cs(),null})))}function Ns(){if(null===Ql)return!1;var e=Ql;if(Ql=null,0!=(48&xl))throw Error(a(331));var t=xl;xl|=32;var n=Kl;Kl=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],l=i.destroy;if(i.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===o)throw Error(a(330));js(o,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var s=i.create;i.destroy=s()}catch(e){if(null===o)throw Error(a(330));js(o,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return xl=t,Wi(),!0}function zs(e,t,n){ao(e,t=ll(0,t=il(n,t),1)),t=os(),null!==(e=ss(e,1))&&(qt(e,1,t),us(e,t))}function js(e,t){if(3===e.tag)zs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){zs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r))){var i=sl(n,e=il(t,e),1);if(ao(n,i),i=os(),null!==(n=ss(n,1)))qt(n,1,i),us(n,i);else if("function"==typeof r.componentDidCatch&&(null===Vl||!Vl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Is(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=os(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(Cl&n)===n&&(4===Nl||3===Nl&&(62914560&Cl)===Cl&&500>Fi()-Fl?ys(e,0):Ml|=n),us(e,t)}function Rs(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Di()?1:2:(0===ts&&(ts=jl),0===(t=Ut(62914560&~ts))&&(t=4194304))),n=os(),null!==(e=ss(e,t))&&(qt(e,t,n),us(e,n))}function Ms(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function As(e,t,n,r){return new Ms(e,t,n,r)}function Fs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ds(e,t){var n=e.alternate;return null===n?((n=As(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Us(e,t,n,r,i,o){var l=2;if(r=e,"function"==typeof e)Fs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bs(n.children,i,o,t);case M:l=8,i|=16;break;case x:l=8,i|=1;break;case T:return(e=As(12,n,t,8|i)).elementType=T,e.type=T,e.lanes=o,e;case L:return(e=As(13,n,t,i)).type=L,e.elementType=L,e.lanes=o,e;case N:return(e=As(19,n,t,i)).elementType=N,e.lanes=o,e;case A:return qs(n,i,o,t);case F:return(e=As(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case C:l=9;break e;case P:l=11;break e;case z:l=14;break e;case j:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=As(l,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Bs(e,t,n,r){return(e=As(7,e,r,t)).lanes=n,e}function qs(e,t,n,r){return(e=As(23,e,r,t)).elementType=A,e.lanes=n,e}function Ws(e,t,n){return(e=As(6,e,null,t)).lanes=n,e}function Hs(e,t,n){return(t=As(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vs(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function $s(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qs(e,t,n,r){var i=t.current,o=os(),l=as(i);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(di(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(di(u)){n=mi(n,u,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=oo(o,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ao(i,t),ls(i,l,o),l}function Gs(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Ks(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Xs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Vs(e,t,null!=n&&!0===n.hydrate),t=As(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ro(t),e[Yr]=n.current,Or(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zs(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var l=i;i=function(){var e=Gs(a);l.call(e)}}Qs(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Xs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var s=i;i=function(){var e=Gs(a);s.call(e)}}hs((function(){Qs(t,a,e,i)}))}return Gs(a)}function eu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(a(200));return $s(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)za=!0;else{if(0==(n&r)){switch(za=!1,t.tag){case 3:qa(t),Wo();break;case 5:No(t);break;case 1:di(t.type)&&vi(t);break;case 4:Po(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ai(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Qa(e,t,n):(ai(jo,1&jo.current),null!==(t=el(e,t,n))?t.sibling:null);ai(jo,1&jo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ai(jo,jo.current),r)break;return null;case 23:case 24:return t.lanes=0,Aa(e,t,n)}return el(e,t,n)}za=0!=(16384&e.flags)}else za=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=fi(t,si.current),eo(t,n),i=na(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,di(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,ro(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&fo(t,r,l,e),i.updater=po,t.stateNode=i,i._reactInternals=t,yo(t,r,e,n),t=Ba(null,t,r,!0,o,n)}else t.tag=0,ja(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Fs(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===z)return 14}return 2}(i),e=$i(i,e),o){case 0:t=Da(null,t,i,e,n);break e;case 1:t=Ua(null,t,i,e,n);break e;case 11:t=Ia(null,t,i,e,n);break e;case 14:t=Ra(null,t,i,$i(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Da(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ua(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(qa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,io(e,t),so(t,r,null,n),(r=t.memoizedState.element)===i)Wo(),t=el(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Mo=Wr(t.stateNode.containerInfo.firstChild),Ro=t,o=Ao=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else ja(e,t,r,n),Wo();t=t.child}return t;case 5:return No(t),null===e&&Uo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,l=i.children,Dr(r,i)?l=null:null!==o&&Dr(r,o)&&(t.flags|=16),Fa(e,t),ja(e,t,l,n),t.child;case 6:return null===e&&Uo(t),null;case 13:return Qa(e,t,n);case 4:return Po(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ko(t,null,r,n):ja(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return ja(e,t,t.pendingProps,n),t.child;case 8:case 12:return ja(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,l=t.memoizedProps,o=i.value;var s=t.type._context;if(ai(Qi,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,0===(o=ar(s,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823))){if(l.children===i.children&&!ui.current){t=el(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&o)){1===s.tag&&((c=oo(-1,n&-n)).tag=2,ao(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),Zi(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=l}ja(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,eo(t,n),r=r(i=to(i,o.unstable_observedBits)),t.flags|=1,ja(e,t,r,n),t.child;case 14:return o=$i(i=t.type,t.pendingProps),Ra(e,t,i,o=$i(i.type,o),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,di(r)?(e=!0,vi(t)):e=!1,eo(t,n),mo(t,r,i),yo(t,r,i,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Aa(e,t,n)}throw Error(a(156,t.tag))},Xs.prototype.render=function(e){Qs(e,this._internalRoot,null,null)},Xs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qs(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ls(e,4,os()),Ks(e,4))},tt=function(e){13===e.tag&&(ls(e,67108864,os()),Ks(e,67108864))},nt=function(e){if(13===e.tag){var t=os(),n=as(e);ls(e,n,t),Ks(e,n)}},rt=function(e,t){return t()},Te=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ei(r);if(!i)throw Error(a(90));X(r),ne(r,i)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},ze=ps,je=function(e,t,n,r,i){var o=xl;xl|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(xl=o)&&(Ul(),Wi())}},Ie=function(){0==(49&xl)&&(function(){if(null!==Xl){var e=Xl;Xl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,us(e,Fi())}))}Wi()}(),Cs())},Re=function(e,t){var n=xl;xl|=2;try{return e(t)}finally{0===(xl=n)&&(Ul(),Wi())}};var tu={Events:[Jr,Zr,ei,Le,Ne,Cs,{current:!1}]},nu={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{gi=iu.inject(ru),bi=iu}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=eu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=xl;if(0!=(48&n))return e(t);xl|=1;try{if(e)return Bi(99,e.bind(null,t))}finally{xl=n,Wi()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(a(200));return Zs(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(a(40));return!!e._reactRootContainer&&(hs((function(){Zs(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=ps,t.unstable_createPortal=function(e,t){return eu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zs(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(25)},function(e,t,n){"use strict";
33
  /** @license React v0.20.2
34
  * scheduler.production.min.js
35
  *
37
  *
38
  * This source code is licensed under the MIT license found in the
39
  * LICENSE file in the root directory of this source tree.
40
+ */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;t.unstable_now=function(){return l.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,f=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,y=null,g=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();_=e+b;try{y(!0,e)?k.postMessage(null):(v=!1,y=null)}catch(e){throw k.postMessage(null),e}}else v=!1},r=function(e){y=e,v||(v=!0,k.postMessage(null))},i=function(e,n){g=p((function(){e(t.unstable_now())}),n)},o=function(){h(g),g=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<T(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],l=o+1,s=e[l];if(void 0!==a&&0>T(a,n))void 0!==s&&0>T(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==s&&0>T(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],C=[],P=1,L=null,N=3,z=!1,j=!1,I=!1;function R(e){for(var t=S(C);null!==t;){if(null===t.callback)x(C);else{if(!(t.startTime<=e))break;x(C),t.sortIndex=t.expirationTime,E(O,t)}t=S(C)}}function M(e){if(I=!1,R(e),!j)if(null!==S(O))j=!0,r(A);else{var t=S(C);null!==t&&i(M,t.startTime-e)}}function A(e,n){j=!1,I&&(I=!1,o()),z=!0;var r=N;try{for(R(n),L=S(O);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,N=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===S(O)&&x(O),R(n)}else x(O);L=S(O)}if(null!==L)var s=!0;else{var u=S(C);null!==u&&i(M,u.startTime-n),s=!1}return s}finally{L=null,N=r,z=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){j||z||(j=!0,r(A))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var l=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?l+a:l:a=l,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,E(C,e),null===S(O)&&e===S(C)&&(I?o():I=!0,i(M,a-l))):(e.sortIndex=s,E(O,e),j||z||(j=!0,r(A))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&l.return&&l.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=S(n(27)),a=S(n(0)),l=S(n(2)),s=S(n(32)),u=S(n(5)),c=S(n(20)),f=S(n(33)),d=n(34),p=S(d),h=S(n(35)),m=S(n(36)),v=S(n(60)),y=S(n(61)),g=S(n(63)),b=S(n(64)),_=S(n(65)),w=S(n(66)),k=S(n(69)),E=S(n(70));function S(e){return e&&e.__esModule?e:{default:e}}var x=n(71),T=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.providers=["Unsplash","Pixabay"],n.provider=n.props.provider,n.api_provider=l.default[n.provider],n.arr_key=n.api_provider.arr_key,n.api_key=instant_img_localize[n.provider+"_app_id"],n.api_url=""+n.api_provider.photo_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.search_api_url=""+n.api_provider.search_api+n.api_provider.api_query_var+n.api_key+l.default.defaults.posts_per_page,n.results=(0,p.default)(n.provider,n.arr_key,n.props.results),n.state={results:n.results,filters:s.default[n.provider].filters,search_filters:s.default[n.provider].search,restapi_error:!1,api_lightbox:!1},n.filters={},n.search_filters={},n.orderby=n.props.orderby,n.page=n.props.page,n.is_search=!1,n.search_term="",n.total_results=0,n.view="",n.isLoading=!1,n.isDone=!1,n.errorMsg="",n.msnry="",n.tooltipInterval="",n.delay=250,n.photoTarget=a.default.createRef(),n.providerNav=a.default.createRef(),n.controlNav=a.default.createRef(),n.photoSearch=a.default.createRef(),n.filterGroups=a.default.createRef(),n.editor=n.props.editor?n.props.editor:"classic",n.is_block_editor="gutenberg"===n.props.editor,n.is_media_router="media-router"===n.props.editor,n.SetFeaturedImage=n.props.SetFeaturedImage?n.props.SetFeaturedImage.bind(n):"",n.InsertImage=n.props.InsertImage?n.props.InsertImage.bind(n):"",n.is_block_editor?(n.container=document.querySelector("body"),n.container.classList.add("loading"),n.wrapper=document.querySelector("body")):(n.container=n.props.container.closest(".instant-img-container"),n.wrapper=n.props.container.closest(".instant-images-wrapper"),n.container.classList.add("loading")),n}var n,S;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"test",value:function(){var e=this,t=instant_img_localize.root+"instant-images/test/",n=new XMLHttpRequest;n.open("POST",t,!0),n.setRequestHeader("X-WP-Nonce",instant_img_localize.nonce),n.setRequestHeader("Content-Type","application/json"),n.send(),n.onload=function(){n.status>=200&&n.status<400?JSON.parse(n.response).success||e.setState({restapi_error:!0}):e.setState({restapi_error:!0})},n.onerror=function(t){console.log(t),e.setState({restapi_error:!0})}}},{key:"search",value:function(e){e.preventDefault();var t=this.photoSearch.current,n=t.value;n.length>2?(t.classList.add("searching"),this.container.classList.add("loading"),this.search_term=n,this.is_search=!0,this.doSearch(this.search_term)):t.focus()}},{key:"doSearch",value:function(e){var t=this,n=this.photoSearch.current,r="term";this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.toggleFilters();var i=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term+(0,c.default)(this.provider);"id:"===e.substring(0,3)&&(r="id",e=e.replace("id:",""),i=(0,h.default)(this.provider,e,this.api_provider.photo_api,this.api_provider.api_query_var,this.api_key));var o=(0,f.default)(this.search_filters);i="&"!==o?""+i+o:i,fetch(i).then((function(e){return e.json()})).then((function(e){if("term"===r){var i=(0,p.default)(t.provider,t.arr_key,e,!0);t.total_results=e.total,t.checkTotalResults(i.length),t.results=i,t.setState({results:t.results,search_filters:s.default[t.provider].search})}if("id"===r&&e){var o=[],a=(0,d.getResultById)(t.provider,t.arr_key,e,!0);e.errors?(t.total_results=0,t.checkTotalResults("0")):(o.push(a),t.total_results=1,t.checkTotalResults("1")),t.results=o,t.setState({results:t.results})}setTimeout((function(){n.classList.remove("searching"),t.photoTarget.current.classList.remove("loading"),t.isLoading=!1}),t.delay)})).catch((function(e){console.log(e),n.classList.remove("searching"),t.isLoading=!1,t.total_results=0,t.isDone=!0,this.photoTarget.current.classList.remove("loading"),this.isLoading=!1,t.results=[],t.setState({results:t.results})}))}},{key:"clearSearch",value:function(){this.photoSearch.current.value="",this.total_results=0,this.is_search=!1,this.search_term="",this.search_filters={},this.toggleFilters()}},{key:"controlsClick",value:function(e,t){var n=e.currentTarget;this.view=t,n.classList.contains("active")||this.getPhotos(t)}},{key:"getPhotos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this;if(!this.isLoading||t){this.photoTarget.current.classList.add("loading"),this.isLoading=!0,this.page=1,this.orderby=e,this.results=[],this.clearSearch();var i=(0,f.default)(this.filters),o=this.api_url+"&page="+this.page+"&"+(0,c.default)(this.provider)+i;fetch(o).then((function(e){return e.json()})).then((function(e){var t=(0,p.default)(r.provider,r.arr_key,e);r.checkTotalResults(t.length),r.results=t,n?r.setState({results:t,filters:s.default[r.provider].filters}):r.setState({results:t}),setTimeout((function(){r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}),r.delay)})).catch((function(e){console.log(e),r.photoTarget.current.classList.remove("loading"),r.isLoading=!1}))}}},{key:"loadMorePhotos",value:function(){var e=this;this.page=parseInt(this.page)+1,this.container.classList.add("loading"),this.isLoading=!0;var t=this.api_url+"&page="+this.page+"&",n="";this.is_search?(t=this.search_api_url+"&page="+this.page+"&"+this.api_provider.search_query_var+"="+this.search_term,n=(0,f.default)(this.search_filters)):n=(0,f.default)(this.filters),t=n?""+t+(0,c.default)(this.provider)+n:t,fetch(t).then((function(e){return e.json()})).then((function(t){var n=(0,p.default)(e.provider,e.arr_key,t,e.is_search);e.is_search&&"unsplash"===e.provider&&(n=t.results),n&&n.map((function(t){e.results.push(t)})),e.checkTotalResults(t.length),e.setState({results:e.results}),e.isLoading=!1})).catch((function(t){console.log(t),e.isLoading=!1}))}},{key:"filterPhotos",value:function(e,t){this.filters[e]&&"#"===t||""===t?delete this.filters[e]:this.filters[e]=t,this.getPhotos(this.view,!0)}},{key:"filterSearch",value:function(e,t){this.search_filters[e]&&"#"===t||""===t?delete this.search_filters[e]:this.search_filters[e]=t,this.doSearch(this.search_term)}},{key:"toggleFilters",value:function(){var e=this,t=this.filterGroups.current.querySelectorAll("button.filter-dropdown--button");t&&t.forEach((function(t){t.disabled=!!e.is_search})),this.is_search?this.filterGroups.current.classList.add("inactive"):this.filterGroups.current.classList.remove("inactive")}},{key:"afterVerifiedAPICallback",value:function(e){var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&(this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden"),t.click())}},{key:"closeAPILightbox",value:function(e){this.setState({api_lightbox:!1}),document.body.classList.remove("overflow-hidden");var t=this.providerNav.current.querySelector("button[data-provider="+e+"]");t&&t.focus({preventScroll:!0})}},{key:"switchProvider",value:(n=regeneratorRuntime.mark((function e(t){var n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.currentTarget,(r=n.dataset.provider)!==this.provider){e.next=4;break}return e.abrupt("return",!1);case 4:if(!l.default[r].requires_key){e.next=14;break}return e.next=7,fetch((0,u.default)(r));case 7:if(i=e.sent,o=i.ok,a=i.status,o&&400!==a&&401!==a&&500!==a){e.next=14;break}return this.setState({api_lightbox:r}),document.body.classList.add("overflow-hidden"),e.abrupt("return");case 14:this.provider=r,this.api_provider=l.default[this.provider],this.filters={},this.search_filters={},this.providerNav.current.querySelectorAll("button").forEach((function(e){e.classList.remove("active")})),n.classList.add("active"),this.arr_key=this.api_provider.arr_key,this.api_key=instant_img_localize[this.provider+"_app_id"],this.api_url=""+this.api_provider.photo_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.search_api_url=""+this.api_provider.search_api+this.api_provider.api_query_var+this.api_key+l.default.defaults.posts_per_page,this.view="latest",this.getPhotos(this.view,!0,!0);case 26:case"end":return e.stop()}}),e,this)})),S=function(){var e=n.apply(this,arguments);return new Promise((function(t,n){return function r(i,o){try{var a=e[i](o),l=a.value}catch(e){return void n(e)}if(!a.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));t(l)}("next")}))},function(e){return S.apply(this,arguments)})},{key:"renderLayout",value:function(){if(this.is_block_editor)return!1;var e=this,t=e.photoTarget.current;x(t,(function(){e.msnry=new o.default(t,{itemSelector:".photo"}),e.photoTarget.current.querySelectorAll(".photo").forEach((function(e){e.classList.add("in-view")}))}))}},{key:"onScroll",value:function(){window.innerHeight+window.pageYOffset>=document.body.scrollHeight-400&&!this.isLoading&&!this.isDone&&this.loadMorePhotos()}},{key:"checkTotalResults",value:function(e){this.isDone=0==e}},{key:"doneLoading",value:function(){var e=this;setTimeout((function(){e.isLoading=!1,e.container.classList.remove("loading")}),e.delay)}},{key:"showTooltip",value:function(e){var t=this,n=e.currentTarget,r=n.getBoundingClientRect(),i=Math.round(r.left),o=Math.round(r.top),a=this.container.querySelector("#tooltip");a.classList.remove("over"),n.classList.contains("tooltip--above")?a.classList.add("above"):a.classList.remove("above"),this.tooltipInterval=setInterval((function(){clearInterval(t.tooltipInterval),a.innerHTML=n.dataset.title,i=i-a.offsetWidth+n.offsetWidth+5,a.style.left=i+"px",a.style.top=o+"px",setTimeout((function(){a.classList.add("over")}),t.delay)}),750)}},{key:"hideTooltip",value:function(){clearInterval(this.tooltipInterval),this.container.querySelector("#tooltip").classList.remove("over")}},{key:"componentDidUpdate",value:function(){this.renderLayout(),this.doneLoading()}},{key:"componentDidMount",value:function(){var e=this;this.renderLayout(),this.doneLoading(),this.test(),this.container.classList.remove("loading"),this.wrapper.classList.add("loaded"),this.is_block_editor||this.is_media_router?(this.page=0,this.loadMorePhotos()):window.addEventListener("scroll",(function(){return e.onScroll()}))}},{key:"render",value:function(){var e=this;return a.default.createElement("div",{id:"photo-listing",className:this.provider},this.providers&&a.default.createElement("nav",{className:"provider-nav",ref:this.providerNav},this.providers.map((function(t,n){return a.default.createElement("div",{key:"provider-"+n},a.default.createElement("button",{"data-provider":t.toLowerCase(),onClick:function(t){return e.switchProvider(t)},className:e.provider===t.toLowerCase()?"provider-nav--btn active":"provider-nav--btn"},a.default.createElement("span",null,t),l.default[t.toLowerCase()].new&&a.default.createElement("span",{className:"provider-nav--new"},"New")))}))),this.state.api_lightbox&&a.default.createElement(m.default,{provider:this.state.api_lightbox,afterVerifiedAPICallback:this.afterVerifiedAPICallback.bind(this),closeAPILightbox:this.closeAPILightbox.bind(this)}),a.default.createElement("div",{className:"control-nav",ref:this.controlNav},a.default.createElement("div",{className:"control-nav--filters-wrap",ref:this.filterGroups},Object.entries(this.state.filters).length&&a.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.filters).map((function(t,n){var i=r(t,2),o=i[0],l=i[1];return a.default.createElement(y.default,{key:o+"-"+n,filterKey:o,provider:e.provider,data:l,function:e.filterPhotos.bind(e)})})))),a.default.createElement("div",{className:"control-nav--search search-field",id:"search-bar"},a.default.createElement("form",{onSubmit:function(t){return e.search(t)},autoComplete:"off"},a.default.createElement("label",{htmlFor:"photo-search",className:"offscreen"},instant_img_localize.search_label),a.default.createElement("input",{type:"search",id:"photo-search",placeholder:instant_img_localize.search,ref:this.photoSearch}),a.default.createElement("button",{type:"submit",id:"photo-search-submit"},a.default.createElement("i",{className:"fa fa-search"})),a.default.createElement(k.default,{container:this.container,getPhotos:this.getPhotos.bind(this),isSearch:this.is_search,total:this.total_results,title:this.total_results+" "+instant_img_localize.search_results+" "+this.search_term})))),this.state.restapi_error&&a.default.createElement(v.default,null),this.is_search&&"gutenberg"!==this.editor&&a.default.createElement("div",{className:"search-results-header"},a.default.createElement("h2",null,this.search_term),a.default.createElement("div",{className:"search-results-header--text"},this.total_results+" "+instant_img_localize.search_results," ",a.default.createElement("strong",null,""+this.search_term)," - ",a.default.createElement("button",{title:instant_img_localize.clear_search,onClick:function(){return e.getPhotos("latest")}},instant_img_localize.clear_search)),Object.entries(this.state.search_filters).length&&a.default.createElement("div",{className:"control-nav--filters-wrap"},a.default.createElement("div",{className:"control-nav--filters"},Object.entries(this.state.search_filters).map((function(t,n){var i=r(t,2),o=i[0],l=i[1];return a.default.createElement(y.default,{key:o+"-"+n,filterKey:o,provider:e.provider,data:l,function:e.filterSearch.bind(e)})}))))),a.default.createElement("div",{id:"photos",className:"photo-target",ref:this.photoTarget},this.state.results.map((function(t,n){return a.default.createElement(w.default,{provider:e.provider,result:t,key:e.provider+"-"+t.id+"-"+n,editor:e.editor,mediaRouter:e.is_media_router,blockEditor:e.is_block_editor,SetFeaturedImage:e.SetFeaturedImage,InsertImage:e.InsertImage,showTooltip:e.showTooltip,hideTooltip:e.hideTooltip})}))),0==this.total_results&&!0===this.is_search&&a.default.createElement(_.default,null),a.default.createElement(g.default,null),a.default.createElement(b.default,{loadMorePhotos:this.loadMorePhotos.bind(this)}),a.default.createElement(E.default,null))}}]),t}(a.default.Component);t.default=T},function(e,t,n){var r,i,o;
41
  /*!
42
  * Masonry v4.2.2
43
  * Cascading grid layout library
44
  * https://masonry.desandro.com
45
  * MIT License
46
  * by David DeSandro
47
+ */window,i=[n(28),n(4)],void 0===(o="function"==typeof(r=function(e,t){"use strict";var n=e.create("masonry");n.compatOptions.fitWidth="isFitWidth";var r=n.prototype;return r._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},r.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],n=e&&e.element;this.columnWidth=n&&t(n).outerWidth||this.containerWidth}var r=this.columnWidth+=this.gutter,i=this.containerWidth+this.gutter,o=i/r,a=r-i%r;o=Math[a&&a<1?"round":"floor"](o),this.cols=Math.max(o,1)},r.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,n=t(e);this.containerWidth=n&&n.innerWidth},r._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,n=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var r=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](n,e),i={x:this.columnWidth*r.col,y:r.y},o=r.y+e.size.outerHeight,a=n+r.col,l=r.col;l<a;l++)this.colYs[l]=o;return i},r._getTopColPosition=function(e){var t=this._getTopColGroup(e),n=Math.min.apply(Math,t);return{col:t.indexOf(n),y:n}},r._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],n=this.cols+1-e,r=0;r<n;r++)t[r]=this._getColGroupY(r,e);return t},r._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var n=this.colYs.slice(e,e+t);return Math.max.apply(Math,n)},r._getHorizontalColPosition=function(e,t){var n=this.horizontalColIndex%this.cols;n=e>1&&n+e>this.cols?0:n;var r=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=r?n+e:this.horizontalColIndex,{col:n,y:this._getColGroupY(n,e)}},r._manageStamp=function(e){var n=t(e),r=this._getElementOffset(e),i=this._getOption("originLeft")?r.left:r.right,o=i+n.outerWidth,a=Math.floor(i/this.columnWidth);a=Math.max(0,a);var l=Math.floor(o/this.columnWidth);l-=o%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var s=(this._getOption("originTop")?r.top:r.bottom)+n.outerHeight,u=a;u<=l;u++)this.colYs[u]=Math.max(s,this.colYs[u])},r._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},r._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},r.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},n})?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r,i;
48
  /*!
49
  * Outlayer v2.1.1
50
  * the brains and guts of a layout library
51
  * MIT license