Version Description
July 12, 2019 =
Some minor bug fixes and improvements.
Download this release
Release Info
Developer | dgwyer |
Plugin | Simple Sitemap – Automatically Generate a Responsive Sitemap |
Version | 3.2 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.2
- assets/css/simple-sitemap-admin.css +112 -0
- assets/css/simple-sitemap.css +303 -0
- {images → assets/images}/content-censor-thumb.png +0 -0
- {images → assets/images}/david.png +0 -0
- {images → assets/images}/facebook.png +0 -0
- {images → assets/images}/flexible-faq-thumb.png +0 -0
- {images → assets/images}/info.png +0 -0
- {images → assets/images}/seo-media-manager-thumb.png +0 -0
- assets/images/simple-sitemap-block.png +0 -0
- {images → assets/images}/twitter.png +0 -0
- {images → assets/images}/yt.png +0 -0
- assets/js/simple-sitemap-admin.js +27 -0
- block_assets/js/blocks.editor.js +12999 -0
- block_assets/js/blocks.editor.js.map +1 -0
- classes/bootstrap.php +53 -0
- classes/enqueue-scripts.php +201 -0
- classes/settings.php +412 -0
- classes/shortcodes/shortcodes.php +37 -0
- classes/shortcodes/simple-sitemap-group-shortcode.php +192 -140
- classes/shortcodes/simple-sitemap-shortcode.php +202 -197
- classes/simple-sitemap-settings.php +0 -217
- css/simple-sitemap-admin.css +0 -203
- css/simple-sitemap.css +0 -1
- freemius/LICENSE.txt +674 -0
- freemius/assets/css/admin/account.css +1 -0
assets/css/simple-sitemap-admin.css
ADDED
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Admin settings page styles. */
|
2 |
+
|
3 |
+
.wrap a, .wrap a:visited {
|
4 |
+
color: #388d8c;
|
5 |
+
}
|
6 |
+
.wrap a:hover {
|
7 |
+
color: #59afad;
|
8 |
+
}
|
9 |
+
|
10 |
+
.wrap .plugin-btn {
|
11 |
+
display: inline-block;
|
12 |
+
padding: 7px 7px;
|
13 |
+
margin: 15px 0 0 0;
|
14 |
+
font-size: 16px;
|
15 |
+
background: #279a97bf;
|
16 |
+
border: 2px #237976a1 solid;
|
17 |
+
border-radius: 2px;
|
18 |
+
color: #fff;
|
19 |
+
text-decoration: none;
|
20 |
+
}
|
21 |
+
.wrap .plugin-btn:hover, .wrap .plugin-btn:visited {
|
22 |
+
color: #fff;
|
23 |
+
}
|
24 |
+
|
25 |
+
.pro {
|
26 |
+
background: #f5d53e;
|
27 |
+
margin: 0 0 0 0;
|
28 |
+
padding: 1px 3px;
|
29 |
+
font-weight: bold;
|
30 |
+
border-radius: 2px;
|
31 |
+
font-size: 10px;
|
32 |
+
color: #151515;
|
33 |
+
}
|
34 |
+
|
35 |
+
.wrap .pro a {
|
36 |
+
color: #151515;
|
37 |
+
text-decoration: none;
|
38 |
+
}
|
39 |
+
|
40 |
+
.shortcode-attributes {
|
41 |
+
list-style-type:disc;
|
42 |
+
}
|
43 |
+
|
44 |
+
.shortcode-attributes li {
|
45 |
+
margin-left: 25px;
|
46 |
+
}
|
47 |
+
|
48 |
+
.ss-box {
|
49 |
+
background:#fff;
|
50 |
+
border: 1px dashed #ccc;
|
51 |
+
font-size: 13px;
|
52 |
+
margin: 20px 0 10px 0;
|
53 |
+
padding: 10px 10px 5px 10px;
|
54 |
+
}
|
55 |
+
|
56 |
+
#settings-wrap, #shortcodes-wrap, #attributes-wrap, #blocks-wrap {
|
57 |
+
display: none;
|
58 |
+
}
|
59 |
+
|
60 |
+
#settings-btn, #attributes-btn, #shortcodes-btn, #blocks-btn {
|
61 |
+
margin-left: 10px;
|
62 |
+
}
|
63 |
+
|
64 |
+
.social-link {
|
65 |
+
display: inline-block;
|
66 |
+
line-height: 0;
|
67 |
+
}
|
68 |
+
|
69 |
+
/* Other wpgoplugins.com styles */
|
70 |
+
|
71 |
+
.other-plugins-tbl {
|
72 |
+
display: inline-table;
|
73 |
+
}
|
74 |
+
|
75 |
+
.plugin-image-link {
|
76 |
+
line-height: 0;
|
77 |
+
display: block;
|
78 |
+
width: 144px;
|
79 |
+
}
|
80 |
+
|
81 |
+
.wrap .plugin-text-link {
|
82 |
+
padding: 0;
|
83 |
+
width: 144px;
|
84 |
+
}
|
85 |
+
|
86 |
+
.plugin-text-link div {
|
87 |
+
text-align: center;
|
88 |
+
margin: 0;
|
89 |
+
}
|
90 |
+
|
91 |
+
.plugin-text-link h3 {
|
92 |
+
margin: 0;
|
93 |
+
font-size: 15px;
|
94 |
+
margin-top: -5px;
|
95 |
+
}
|
96 |
+
|
97 |
+
.plugin-text-link a {
|
98 |
+
text-decoration: none;
|
99 |
+
}
|
100 |
+
|
101 |
+
.other-plugins-tbl img {
|
102 |
+
box-shadow: 0 10px 16px 0 rgba(0,0,0,0.1), 0 6px 20px 0 rgba(0,0,0,0.19);
|
103 |
+
width: 140px;
|
104 |
+
border-radius: 5px;
|
105 |
+
border: 1px #fff solid;
|
106 |
+
}
|
107 |
+
|
108 |
+
/* Misc */
|
109 |
+
|
110 |
+
.code-link {
|
111 |
+
text-decoration: none;
|
112 |
+
}
|
assets/css/simple-sitemap.css
ADDED
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Simple Sitemap Menu */
|
2 |
+
|
3 |
+
body .simple-sitemap-menu li {
|
4 |
+
float: initial;
|
5 |
+
}
|
6 |
+
|
7 |
+
/* Simple Sitemap */
|
8 |
+
|
9 |
+
.simple-sitemap-container ul {
|
10 |
+
margin: 0 0 0 1.2em;
|
11 |
+
padding: 0;
|
12 |
+
}
|
13 |
+
|
14 |
+
/* The following rule seems necessary when the Gutenberg plugin is not installed. */
|
15 |
+
.editor-styles-wrapper .simple-sitemap-container ul, .editor-styles-wrapper .simple-sitemap-container ol {
|
16 |
+
margin: 0 0 0 1.2em;
|
17 |
+
padding: 0;
|
18 |
+
}
|
19 |
+
|
20 |
+
.simple-sitemap-wrap:not(:first-of-type) {
|
21 |
+
margin-top: 1.5em;
|
22 |
+
}
|
23 |
+
|
24 |
+
.simple-sitemap-container .excerpt {
|
25 |
+
font-size: 0.85em;
|
26 |
+
/* line-height: 17px;
|
27 |
+
margin-top: -2px;
|
28 |
+
color: #555;
|
29 |
+
margin-bottom: -5px;
|
30 |
+
padding: 3px 3px 0 0;
|
31 |
+
*/
|
32 |
+
}
|
33 |
+
|
34 |
+
.simple-sitemap-container span.excerpt {
|
35 |
+
/* margin-left: -9px; */
|
36 |
+
position: relative;
|
37 |
+
left: 8px;
|
38 |
+
}
|
39 |
+
|
40 |
+
.simple-sitemap-container .separator {
|
41 |
+
border-bottom: 1px #eee solid;
|
42 |
+
margin-bottom: -5px;
|
43 |
+
margin-top: 18px;
|
44 |
+
padding: 0;
|
45 |
+
}
|
46 |
+
|
47 |
+
/* don't show the bottom border on the last entry */
|
48 |
+
.simple-sitemap-container ul.main > li:last-child .separator {
|
49 |
+
border-bottom: 0;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* featured image */
|
53 |
+
.simple-sitemap-fi {
|
54 |
+
position: relative;
|
55 |
+
top: 6px;
|
56 |
+
left: -5px;
|
57 |
+
margin-left: 5px;
|
58 |
+
}
|
59 |
+
|
60 |
+
/* Flexbox sitemap columns */
|
61 |
+
|
62 |
+
.simple-sitemap-container.col {
|
63 |
+
padding: 0;
|
64 |
+
margin: 0;
|
65 |
+
display: flex;
|
66 |
+
flex-wrap: wrap;
|
67 |
+
}
|
68 |
+
.simple-sitemap-wrap.col {
|
69 |
+
width: 260px;
|
70 |
+
margin-right: 20px;
|
71 |
+
margin-top: 10px;
|
72 |
+
}
|
73 |
+
.simple-sitemap-wrap.col ul.main {
|
74 |
+
margin-left: 20px;
|
75 |
+
}
|
76 |
+
|
77 |
+
.simple-sitemap-container.hide-icon ul.main {
|
78 |
+
margin-left: 0;
|
79 |
+
list-style-type: none;
|
80 |
+
}
|
81 |
+
|
82 |
+
.simple-sitemap-container.hide-icon ul.main ul.children {
|
83 |
+
list-style-type: none;
|
84 |
+
}
|
85 |
+
|
86 |
+
/* Horizontal Sitemap */
|
87 |
+
|
88 |
+
.horizontal ul.children {
|
89 |
+
display: inline;
|
90 |
+
margin-left: 0;
|
91 |
+
}
|
92 |
+
|
93 |
+
.simple-sitemap-wrap > ul.horizontal {
|
94 |
+
list-style-type: none;
|
95 |
+
margin: 0;
|
96 |
+
}
|
97 |
+
|
98 |
+
.simple-sitemap-wrap > ul.horizontal li {
|
99 |
+
display: inline;
|
100 |
+
}
|
101 |
+
|
102 |
+
/* Sitemap Tab Styles (for new tabs added June 2019) */
|
103 |
+
|
104 |
+
.simple-sitemap-container.tab-enabled * {
|
105 |
+
box-sizing: border-box;
|
106 |
+
}
|
107 |
+
|
108 |
+
.simple-sitemap-container.tab-enabled ul.main {
|
109 |
+
margin: 2em 1em 2em 3em;
|
110 |
+
}
|
111 |
+
|
112 |
+
.simple-sitemap-container.tab-enabled ul.main.horizontal, .simple-sitemap-container.tab-enabled ul.main.horizontal {
|
113 |
+
margin: 2em 1em 2em 2em;
|
114 |
+
}
|
115 |
+
|
116 |
+
.simple-sitemap-container.tab-enabled .no-posts {
|
117 |
+
font-style: italic;
|
118 |
+
margin: 2em 1em 2em 2em;
|
119 |
+
}
|
120 |
+
|
121 |
+
.simple-sitemap-container .no-posts {
|
122 |
+
font-style: italic;
|
123 |
+
/*margin: 2em 1em 2em 3em;*/
|
124 |
+
}
|
125 |
+
|
126 |
+
/*.simple-sitemap-container.tab-enabled {
|
127 |
+
max-width: 650px;
|
128 |
+
width: 80%;
|
129 |
+
margin: 0 auto;
|
130 |
+
}*/
|
131 |
+
.simple-sitemap-container.tab-enabled .post-type {
|
132 |
+
margin: 0;
|
133 |
+
font-weight: normal;
|
134 |
+
}
|
135 |
+
.simple-sitemap-container.tab-enabled label {
|
136 |
+
cursor: pointer;
|
137 |
+
float: left;
|
138 |
+
margin: 0 5px 0 0;
|
139 |
+
display: block;
|
140 |
+
background-color: #eee;
|
141 |
+
border-radius: 4px 4px 0 0;
|
142 |
+
}
|
143 |
+
.simple-sitemap-container.tab-enabled input {
|
144 |
+
display: none;
|
145 |
+
}
|
146 |
+
/*.simple-sitemap-container.tab-enabled input:checked + label {
|
147 |
+
background-color: #de5737;
|
148 |
+
}
|
149 |
+
.simple-sitemap-container.tab-enabled input:checked + label > * {
|
150 |
+
color: #ffffff;
|
151 |
+
}
|
152 |
+
*/
|
153 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-1"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-1,
|
154 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-2"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-2,
|
155 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-3"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-3,
|
156 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-4"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-4,
|
157 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-5"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-5,
|
158 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-6"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-6,
|
159 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-7"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-7,
|
160 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-8"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-8,
|
161 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-9"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-9,
|
162 |
+
.simple-sitemap-container.tab-enabled input[id^="simple-sitemap-tab-10"]:checked ~ .simple-sitemap-content .simple-sitemap-tab-10 {
|
163 |
+
display: block;
|
164 |
+
}
|
165 |
+
.simple-sitemap-container.tab-enabled .simple-sitemap-content {
|
166 |
+
clear: both;
|
167 |
+
position: relative;
|
168 |
+
}
|
169 |
+
.simple-sitemap-container.tab-enabled .panel {
|
170 |
+
width: 100%;
|
171 |
+
/* padding: 25px 20px;
|
172 |
+
position: absolute;
|
173 |
+
top: 0;
|
174 |
+
left: 0;
|
175 |
+
*/
|
176 |
+
display: none;
|
177 |
+
border: 1px solid #ddd;
|
178 |
+
/*border-top: 4px solid #de5737;*/
|
179 |
+
border-radius: 0 0 4px 4px;
|
180 |
+
}
|
181 |
+
|
182 |
+
/*@media only screen and (max-width: 500px) {
|
183 |
+
.simple-sitemap-container.tab-enabled label {
|
184 |
+
width: 100%;
|
185 |
+
border-radius: 0;
|
186 |
+
}
|
187 |
+
.simple-sitemap-container.tab-enabled label[for^="simple-sitemap-tab-1"] {
|
188 |
+
border-radius: 4px 4px 0 0;
|
189 |
+
}
|
190 |
+
}*/
|
191 |
+
|
192 |
+
/* react-select */
|
193 |
+
.components-panel__row.simple-sitemap .react-select-container {
|
194 |
+
min-width: 120px;
|
195 |
+
}
|
196 |
+
|
197 |
+
/* Labels */
|
198 |
+
|
199 |
+
.label-wide label {
|
200 |
+
max-width: 100%;
|
201 |
+
}
|
202 |
+
|
203 |
+
/* Tab colors */
|
204 |
+
|
205 |
+
.components-panel .tab-colors {
|
206 |
+
display: block;
|
207 |
+
}
|
208 |
+
|
209 |
+
.components-panel .series-color {
|
210 |
+
display: inline-block;
|
211 |
+
margin: 0 0 0 5px;
|
212 |
+
}
|
213 |
+
|
214 |
+
.components-panel .series-color:first-of-type {
|
215 |
+
margin: 0;
|
216 |
+
}
|
217 |
+
|
218 |
+
.components-panel .series-color, .components-panel .series-color > div {
|
219 |
+
width: 22px;
|
220 |
+
height: 22px;
|
221 |
+
}
|
222 |
+
|
223 |
+
.components-panel .series-color > div {
|
224 |
+
border-radius: 0;
|
225 |
+
border: 1px solid #ccc;
|
226 |
+
}
|
227 |
+
|
228 |
+
/* Inspector panel: @todo these need moving to a block admin only stylesheet */
|
229 |
+
|
230 |
+
/* disabled styles for inspector panel elements */
|
231 |
+
.components-panel__row.simple-sitemap .disabled .components-base-control__help {
|
232 |
+
color: rgb(232, 119, 119);
|
233 |
+
}
|
234 |
+
|
235 |
+
.edit-post-settings-sidebar__panel-block .components-panel__body .components-panel__row.simple-sitemap .components-base-control
|
236 |
+
/*.edit-post-settings-sidebar__panel-block .components-panel__body .components-panel__row.simple-sitemap .components-base-control:last-child*/ {
|
237 |
+
margin-bottom: 0;
|
238 |
+
}
|
239 |
+
|
240 |
+
.components-panel__row.simple-sitemap .components-base-control .components-base-control__field {
|
241 |
+
margin-bottom: 8px;
|
242 |
+
}
|
243 |
+
|
244 |
+
.components-panel__row.simple-sitemap .components-base-control .components-base-control__help {
|
245 |
+
margin-bottom: 4px;
|
246 |
+
}
|
247 |
+
|
248 |
+
.components-panel__row.simple-sitemap.order {
|
249 |
+
justify-content: start;
|
250 |
+
margin-bottom: 20px;
|
251 |
+
}
|
252 |
+
|
253 |
+
.mb20 {
|
254 |
+
margin-bottom: 20px;
|
255 |
+
}
|
256 |
+
|
257 |
+
.components-panel__row.simple-sitemap.order .components-base-control:first-child {
|
258 |
+
margin-right: 1em;
|
259 |
+
}
|
260 |
+
|
261 |
+
.components-panel__row.simple-sitemap.general-chk {
|
262 |
+
margin-top: 0;
|
263 |
+
}
|
264 |
+
|
265 |
+
/*.components-panel__row.simple-sitemap > .components-base-control {
|
266 |
+
margin-bottom: 0;
|
267 |
+
}*/
|
268 |
+
|
269 |
+
/*.edit-post-settings-sidebar__panel-block .components-panel__body .series-checkboxes .components-base-control {
|
270 |
+
margin-bottom: 0;
|
271 |
+
padding: 0;
|
272 |
+
}
|
273 |
+
.edit-post-settings-sidebar__panel-block .components-panel__body .series-checkboxes .components-base-control input {
|
274 |
+
margin-right: 5px;
|
275 |
+
}*/
|
276 |
+
|
277 |
+
/* test we need all styles below */
|
278 |
+
|
279 |
+
/*
|
280 |
+
.components-panel .series-checkboxes {
|
281 |
+
display: flex;
|
282 |
+
justify-content: flex-start;
|
283 |
+
align-items: center;
|
284 |
+
}
|
285 |
+
/*
|
286 |
+
.components-panel .series-checkboxes .series-checkbox {
|
287 |
+
width: 28px;
|
288 |
+
height: 18px;
|
289 |
+
margin: 2px 20px 0;
|
290 |
+
border-radius: 3px;
|
291 |
+
}
|
292 |
+
*/
|
293 |
+
|
294 |
+
/*
|
295 |
+
.components-panel .chart-colors-grid {
|
296 |
+
display: grid;
|
297 |
+
grid-gap: 2px;
|
298 |
+
grid-template-columns: repeat(auto-fit, minmax(20px, 20px));
|
299 |
+
}
|
300 |
+
.components-panel .chart-colors-grid li {
|
301 |
+
margin: 0;
|
302 |
+
}
|
303 |
+
*/
|
{images → assets/images}/content-censor-thumb.png
RENAMED
File without changes
|
{images → assets/images}/david.png
RENAMED
File without changes
|
{images → assets/images}/facebook.png
RENAMED
File without changes
|
{images → assets/images}/flexible-faq-thumb.png
RENAMED
File without changes
|
{images → assets/images}/info.png
RENAMED
File without changes
|
{images → assets/images}/seo-media-manager-thumb.png
RENAMED
File without changes
|
assets/images/simple-sitemap-block.png
ADDED
Binary file
|
{images → assets/images}/twitter.png
RENAMED
File without changes
|
{images → assets/images}/yt.png
RENAMED
File without changes
|
assets/js/simple-sitemap-admin.js
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function($) {
|
2 |
+
|
3 |
+
// Reset plugin settings link
|
4 |
+
$('#simple-sitemap-reset > a').on( 'click', function() {
|
5 |
+
var res = confirm('Are you sure? All plugin options will be reset to their default settings!');
|
6 |
+
if( res === true ) {
|
7 |
+
$('#simple-sitemap-reset-form').submit();
|
8 |
+
}
|
9 |
+
});
|
10 |
+
|
11 |
+
// setup event listeners for expandable sections
|
12 |
+
['settings', 'blocks', 'shortcodes', 'attributes'].map(function(section) {
|
13 |
+
const btn = $('#' + section + '-btn');
|
14 |
+
const wrap = $('#' + section + '-wrap');
|
15 |
+
|
16 |
+
btn.on('click', function() {
|
17 |
+
var isHidden = wrap.is( ":hidden" );
|
18 |
+
wrap.toggle( function() {
|
19 |
+
if(isHidden) {
|
20 |
+
btn.html('Collapse <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-up-alt2"></span>');
|
21 |
+
} else {
|
22 |
+
btn.html('Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span>');
|
23 |
+
}
|
24 |
+
});
|
25 |
+
});
|
26 |
+
});
|
27 |
+
});
|
block_assets/js/blocks.editor.js
ADDED
@@ -0,0 +1,12999 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/******/ (function(modules) { // webpackBootstrap
|
2 |
+
/******/ // The module cache
|
3 |
+
/******/ var installedModules = {};
|
4 |
+
/******/
|
5 |
+
/******/ // The require function
|
6 |
+
/******/ function __webpack_require__(moduleId) {
|
7 |
+
/******/
|
8 |
+
/******/ // Check if module is in cache
|
9 |
+
/******/ if(installedModules[moduleId]) {
|
10 |
+
/******/ return installedModules[moduleId].exports;
|
11 |
+
/******/ }
|
12 |
+
/******/ // Create a new module (and put it into the cache)
|
13 |
+
/******/ var module = installedModules[moduleId] = {
|
14 |
+
/******/ i: moduleId,
|
15 |
+
/******/ l: false,
|
16 |
+
/******/ exports: {}
|
17 |
+
/******/ };
|
18 |
+
/******/
|
19 |
+
/******/ // Execute the module function
|
20 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
+
/******/
|
22 |
+
/******/ // Flag the module as loaded
|
23 |
+
/******/ module.l = true;
|
24 |
+
/******/
|
25 |
+
/******/ // Return the exports of the module
|
26 |
+
/******/ return module.exports;
|
27 |
+
/******/ }
|
28 |
+
/******/
|
29 |
+
/******/
|
30 |
+
/******/ // expose the modules object (__webpack_modules__)
|
31 |
+
/******/ __webpack_require__.m = modules;
|
32 |
+
/******/
|
33 |
+
/******/ // expose the module cache
|
34 |
+
/******/ __webpack_require__.c = installedModules;
|
35 |
+
/******/
|
36 |
+
/******/ // define getter function for harmony exports
|
37 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
39 |
+
/******/ Object.defineProperty(exports, name, {
|
40 |
+
/******/ configurable: false,
|
41 |
+
/******/ enumerable: true,
|
42 |
+
/******/ get: getter
|
43 |
+
/******/ });
|
44 |
+
/******/ }
|
45 |
+
/******/ };
|
46 |
+
/******/
|
47 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
48 |
+
/******/ __webpack_require__.n = function(module) {
|
49 |
+
/******/ var getter = module && module.__esModule ?
|
50 |
+
/******/ function getDefault() { return module['default']; } :
|
51 |
+
/******/ function getModuleExports() { return module; };
|
52 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
53 |
+
/******/ return getter;
|
54 |
+
/******/ };
|
55 |
+
/******/
|
56 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
57 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
58 |
+
/******/
|
59 |
+
/******/ // __webpack_public_path__
|
60 |
+
/******/ __webpack_require__.p = "";
|
61 |
+
/******/
|
62 |
+
/******/ // Load entry module and return exports
|
63 |
+
/******/ return __webpack_require__(__webpack_require__.s = 93);
|
64 |
+
/******/ })
|
65 |
+
/************************************************************************/
|
66 |
+
/******/ ([
|
67 |
+
/* 0 */
|
68 |
+
/***/ (function(module, exports) {
|
69 |
+
|
70 |
+
// shim for using process in browser
|
71 |
+
var process = module.exports = {};
|
72 |
+
|
73 |
+
// cached from whatever global is present so that test runners that stub it
|
74 |
+
// don't break things. But we need to wrap it in a try catch in case it is
|
75 |
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
76 |
+
// function because try/catches deoptimize in certain engines.
|
77 |
+
|
78 |
+
var cachedSetTimeout;
|
79 |
+
var cachedClearTimeout;
|
80 |
+
|
81 |
+
function defaultSetTimout() {
|
82 |
+
throw new Error('setTimeout has not been defined');
|
83 |
+
}
|
84 |
+
function defaultClearTimeout () {
|
85 |
+
throw new Error('clearTimeout has not been defined');
|
86 |
+
}
|
87 |
+
(function () {
|
88 |
+
try {
|
89 |
+
if (typeof setTimeout === 'function') {
|
90 |
+
cachedSetTimeout = setTimeout;
|
91 |
+
} else {
|
92 |
+
cachedSetTimeout = defaultSetTimout;
|
93 |
+
}
|
94 |
+
} catch (e) {
|
95 |
+
cachedSetTimeout = defaultSetTimout;
|
96 |
+
}
|
97 |
+
try {
|
98 |
+
if (typeof clearTimeout === 'function') {
|
99 |
+
cachedClearTimeout = clearTimeout;
|
100 |
+
} else {
|
101 |
+
cachedClearTimeout = defaultClearTimeout;
|
102 |
+
}
|
103 |
+
} catch (e) {
|
104 |
+
cachedClearTimeout = defaultClearTimeout;
|
105 |
+
}
|
106 |
+
} ())
|
107 |
+
function runTimeout(fun) {
|
108 |
+
if (cachedSetTimeout === setTimeout) {
|
109 |
+
//normal enviroments in sane situations
|
110 |
+
return setTimeout(fun, 0);
|
111 |
+
}
|
112 |
+
// if setTimeout wasn't available but was latter defined
|
113 |
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
114 |
+
cachedSetTimeout = setTimeout;
|
115 |
+
return setTimeout(fun, 0);
|
116 |
+
}
|
117 |
+
try {
|
118 |
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
119 |
+
return cachedSetTimeout(fun, 0);
|
120 |
+
} catch(e){
|
121 |
+
try {
|
122 |
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
123 |
+
return cachedSetTimeout.call(null, fun, 0);
|
124 |
+
} catch(e){
|
125 |
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
126 |
+
return cachedSetTimeout.call(this, fun, 0);
|
127 |
+
}
|
128 |
+
}
|
129 |
+
|
130 |
+
|
131 |
+
}
|
132 |
+
function runClearTimeout(marker) {
|
133 |
+
if (cachedClearTimeout === clearTimeout) {
|
134 |
+
//normal enviroments in sane situations
|
135 |
+
return clearTimeout(marker);
|
136 |
+
}
|
137 |
+
// if clearTimeout wasn't available but was latter defined
|
138 |
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
139 |
+
cachedClearTimeout = clearTimeout;
|
140 |
+
return clearTimeout(marker);
|
141 |
+
}
|
142 |
+
try {
|
143 |
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
144 |
+
return cachedClearTimeout(marker);
|
145 |
+
} catch (e){
|
146 |
+
try {
|
147 |
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
148 |
+
return cachedClearTimeout.call(null, marker);
|
149 |
+
} catch (e){
|
150 |
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
151 |
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
152 |
+
return cachedClearTimeout.call(this, marker);
|
153 |
+
}
|
154 |
+
}
|
155 |
+
|
156 |
+
|
157 |
+
|
158 |
+
}
|
159 |
+
var queue = [];
|
160 |
+
var draining = false;
|
161 |
+
var currentQueue;
|
162 |
+
var queueIndex = -1;
|
163 |
+
|
164 |
+
function cleanUpNextTick() {
|
165 |
+
if (!draining || !currentQueue) {
|
166 |
+
return;
|
167 |
+
}
|
168 |
+
draining = false;
|
169 |
+
if (currentQueue.length) {
|
170 |
+
queue = currentQueue.concat(queue);
|
171 |
+
} else {
|
172 |
+
queueIndex = -1;
|
173 |
+
}
|
174 |
+
if (queue.length) {
|
175 |
+
drainQueue();
|
176 |
+
}
|
177 |
+
}
|
178 |
+
|
179 |
+
function drainQueue() {
|
180 |
+
if (draining) {
|
181 |
+
return;
|
182 |
+
}
|
183 |
+
var timeout = runTimeout(cleanUpNextTick);
|
184 |
+
draining = true;
|
185 |
+
|
186 |
+
var len = queue.length;
|
187 |
+
while(len) {
|
188 |
+
currentQueue = queue;
|
189 |
+
queue = [];
|
190 |
+
while (++queueIndex < len) {
|
191 |
+
if (currentQueue) {
|
192 |
+
currentQueue[queueIndex].run();
|
193 |
+
}
|
194 |
+
}
|
195 |
+
queueIndex = -1;
|
196 |
+
len = queue.length;
|
197 |
+
}
|
198 |
+
currentQueue = null;
|
199 |
+
draining = false;
|
200 |
+
runClearTimeout(timeout);
|
201 |
+
}
|
202 |
+
|
203 |
+
process.nextTick = function (fun) {
|
204 |
+
var args = new Array(arguments.length - 1);
|
205 |
+
if (arguments.length > 1) {
|
206 |
+
for (var i = 1; i < arguments.length; i++) {
|
207 |
+
args[i - 1] = arguments[i];
|
208 |
+
}
|
209 |
+
}
|
210 |
+
queue.push(new Item(fun, args));
|
211 |
+
if (queue.length === 1 && !draining) {
|
212 |
+
runTimeout(drainQueue);
|
213 |
+
}
|
214 |
+
};
|
215 |
+
|
216 |
+
// v8 likes predictible objects
|
217 |
+
function Item(fun, array) {
|
218 |
+
this.fun = fun;
|
219 |
+
this.array = array;
|
220 |
+
}
|
221 |
+
Item.prototype.run = function () {
|
222 |
+
this.fun.apply(null, this.array);
|
223 |
+
};
|
224 |
+
process.title = 'browser';
|
225 |
+
process.browser = true;
|
226 |
+
process.env = {};
|
227 |
+
process.argv = [];
|
228 |
+
process.version = ''; // empty string to avoid regexp issues
|
229 |
+
process.versions = {};
|
230 |
+
|
231 |
+
function noop() {}
|
232 |
+
|
233 |
+
process.on = noop;
|
234 |
+
process.addListener = noop;
|
235 |
+
process.once = noop;
|
236 |
+
process.off = noop;
|
237 |
+
process.removeListener = noop;
|
238 |
+
process.removeAllListeners = noop;
|
239 |
+
process.emit = noop;
|
240 |
+
process.prependListener = noop;
|
241 |
+
process.prependOnceListener = noop;
|
242 |
+
|
243 |
+
process.listeners = function (name) { return [] }
|
244 |
+
|
245 |
+
process.binding = function (name) {
|
246 |
+
throw new Error('process.binding is not supported');
|
247 |
+
};
|
248 |
+
|
249 |
+
process.cwd = function () { return '/' };
|
250 |
+
process.chdir = function (dir) {
|
251 |
+
throw new Error('process.chdir is not supported');
|
252 |
+
};
|
253 |
+
process.umask = function() { return 0; };
|
254 |
+
|
255 |
+
|
256 |
+
/***/ }),
|
257 |
+
/* 1 */
|
258 |
+
/***/ (function(module, exports) {
|
259 |
+
|
260 |
+
var core = module.exports = { version: '2.6.5' };
|
261 |
+
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
262 |
+
|
263 |
+
|
264 |
+
/***/ }),
|
265 |
+
/* 2 */
|
266 |
+
/***/ (function(module, exports) {
|
267 |
+
|
268 |
+
module.exports = React;
|
269 |
+
|
270 |
+
/***/ }),
|
271 |
+
/* 3 */
|
272 |
+
/***/ (function(module, exports, __webpack_require__) {
|
273 |
+
|
274 |
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
275 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
276 |
+
*
|
277 |
+
* This source code is licensed under the MIT license found in the
|
278 |
+
* LICENSE file in the root directory of this source tree.
|
279 |
+
*/
|
280 |
+
|
281 |
+
if (process.env.NODE_ENV !== 'production') {
|
282 |
+
var ReactIs = __webpack_require__(18);
|
283 |
+
|
284 |
+
// By explicitly using `prop-types` you are opting into new development behavior.
|
285 |
+
// http://fb.me/prop-types-in-prod
|
286 |
+
var throwOnDirectAccess = true;
|
287 |
+
module.exports = __webpack_require__(42)(ReactIs.isElement, throwOnDirectAccess);
|
288 |
+
} else {
|
289 |
+
// By explicitly using `prop-types` you are opting into new production behavior.
|
290 |
+
// http://fb.me/prop-types-in-prod
|
291 |
+
module.exports = __webpack_require__(45)();
|
292 |
+
}
|
293 |
+
|
294 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
295 |
+
|
296 |
+
/***/ }),
|
297 |
+
/* 4 */
|
298 |
+
/***/ (function(module, exports, __webpack_require__) {
|
299 |
+
|
300 |
+
var store = __webpack_require__(65)('wks');
|
301 |
+
var uid = __webpack_require__(28);
|
302 |
+
var Symbol = __webpack_require__(5).Symbol;
|
303 |
+
var USE_SYMBOL = typeof Symbol == 'function';
|
304 |
+
|
305 |
+
var $exports = module.exports = function (name) {
|
306 |
+
return store[name] || (store[name] =
|
307 |
+
USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
|
308 |
+
};
|
309 |
+
|
310 |
+
$exports.store = store;
|
311 |
+
|
312 |
+
|
313 |
+
/***/ }),
|
314 |
+
/* 5 */
|
315 |
+
/***/ (function(module, exports) {
|
316 |
+
|
317 |
+
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
318 |
+
var global = module.exports = typeof window != 'undefined' && window.Math == Math
|
319 |
+
? window : typeof self != 'undefined' && self.Math == Math ? self
|
320 |
+
// eslint-disable-next-line no-new-func
|
321 |
+
: Function('return this')();
|
322 |
+
if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
|
323 |
+
|
324 |
+
|
325 |
+
/***/ }),
|
326 |
+
/* 6 */
|
327 |
+
/***/ (function(module, exports) {
|
328 |
+
|
329 |
+
module.exports = ReactDOM;
|
330 |
+
|
331 |
+
/***/ }),
|
332 |
+
/* 7 */
|
333 |
+
/***/ (function(module, exports, __webpack_require__) {
|
334 |
+
|
335 |
+
"use strict";
|
336 |
+
/**
|
337 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
338 |
+
*
|
339 |
+
* This source code is licensed under the MIT license found in the
|
340 |
+
* LICENSE file in the root directory of this source tree.
|
341 |
+
*/
|
342 |
+
|
343 |
+
|
344 |
+
|
345 |
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
346 |
+
|
347 |
+
module.exports = ReactPropTypesSecret;
|
348 |
+
|
349 |
+
|
350 |
+
/***/ }),
|
351 |
+
/* 8 */
|
352 |
+
/***/ (function(module, exports, __webpack_require__) {
|
353 |
+
|
354 |
+
// to indexed object, toObject with fallback for non-array-like ES3 strings
|
355 |
+
var IObject = __webpack_require__(104);
|
356 |
+
var defined = __webpack_require__(60);
|
357 |
+
module.exports = function (it) {
|
358 |
+
return IObject(defined(it));
|
359 |
+
};
|
360 |
+
|
361 |
+
|
362 |
+
/***/ }),
|
363 |
+
/* 9 */
|
364 |
+
/***/ (function(module, exports, __webpack_require__) {
|
365 |
+
|
366 |
+
var global = __webpack_require__(5);
|
367 |
+
var core = __webpack_require__(1);
|
368 |
+
var ctx = __webpack_require__(72);
|
369 |
+
var hide = __webpack_require__(13);
|
370 |
+
var has = __webpack_require__(12);
|
371 |
+
var PROTOTYPE = 'prototype';
|
372 |
+
|
373 |
+
var $export = function (type, name, source) {
|
374 |
+
var IS_FORCED = type & $export.F;
|
375 |
+
var IS_GLOBAL = type & $export.G;
|
376 |
+
var IS_STATIC = type & $export.S;
|
377 |
+
var IS_PROTO = type & $export.P;
|
378 |
+
var IS_BIND = type & $export.B;
|
379 |
+
var IS_WRAP = type & $export.W;
|
380 |
+
var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
|
381 |
+
var expProto = exports[PROTOTYPE];
|
382 |
+
var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];
|
383 |
+
var key, own, out;
|
384 |
+
if (IS_GLOBAL) source = name;
|
385 |
+
for (key in source) {
|
386 |
+
// contains in native
|
387 |
+
own = !IS_FORCED && target && target[key] !== undefined;
|
388 |
+
if (own && has(exports, key)) continue;
|
389 |
+
// export native or passed
|
390 |
+
out = own ? target[key] : source[key];
|
391 |
+
// prevent global pollution for namespaces
|
392 |
+
exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
|
393 |
+
// bind timers to global for call from export context
|
394 |
+
: IS_BIND && own ? ctx(out, global)
|
395 |
+
// wrap global constructors for prevent change them in library
|
396 |
+
: IS_WRAP && target[key] == out ? (function (C) {
|
397 |
+
var F = function (a, b, c) {
|
398 |
+
if (this instanceof C) {
|
399 |
+
switch (arguments.length) {
|
400 |
+
case 0: return new C();
|
401 |
+
case 1: return new C(a);
|
402 |
+
case 2: return new C(a, b);
|
403 |
+
} return new C(a, b, c);
|
404 |
+
} return C.apply(this, arguments);
|
405 |
+
};
|
406 |
+
F[PROTOTYPE] = C[PROTOTYPE];
|
407 |
+
return F;
|
408 |
+
// make static versions for prototype methods
|
409 |
+
})(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
|
410 |
+
// export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
|
411 |
+
if (IS_PROTO) {
|
412 |
+
(exports.virtual || (exports.virtual = {}))[key] = out;
|
413 |
+
// export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
|
414 |
+
if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);
|
415 |
+
}
|
416 |
+
}
|
417 |
+
};
|
418 |
+
// type bitmap
|
419 |
+
$export.F = 1; // forced
|
420 |
+
$export.G = 2; // global
|
421 |
+
$export.S = 4; // static
|
422 |
+
$export.P = 8; // proto
|
423 |
+
$export.B = 16; // bind
|
424 |
+
$export.W = 32; // wrap
|
425 |
+
$export.U = 64; // safe
|
426 |
+
$export.R = 128; // real proto method for `library`
|
427 |
+
module.exports = $export;
|
428 |
+
|
429 |
+
|
430 |
+
/***/ }),
|
431 |
+
/* 10 */
|
432 |
+
/***/ (function(module, exports, __webpack_require__) {
|
433 |
+
|
434 |
+
var anObject = __webpack_require__(14);
|
435 |
+
var IE8_DOM_DEFINE = __webpack_require__(73);
|
436 |
+
var toPrimitive = __webpack_require__(61);
|
437 |
+
var dP = Object.defineProperty;
|
438 |
+
|
439 |
+
exports.f = __webpack_require__(11) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
|
440 |
+
anObject(O);
|
441 |
+
P = toPrimitive(P, true);
|
442 |
+
anObject(Attributes);
|
443 |
+
if (IE8_DOM_DEFINE) try {
|
444 |
+
return dP(O, P, Attributes);
|
445 |
+
} catch (e) { /* empty */ }
|
446 |
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
|
447 |
+
if ('value' in Attributes) O[P] = Attributes.value;
|
448 |
+
return O;
|
449 |
+
};
|
450 |
+
|
451 |
+
|
452 |
+
/***/ }),
|
453 |
+
/* 11 */
|
454 |
+
/***/ (function(module, exports, __webpack_require__) {
|
455 |
+
|
456 |
+
// Thank's IE8 for his funny defineProperty
|
457 |
+
module.exports = !__webpack_require__(24)(function () {
|
458 |
+
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
|
459 |
+
});
|
460 |
+
|
461 |
+
|
462 |
+
/***/ }),
|
463 |
+
/* 12 */
|
464 |
+
/***/ (function(module, exports) {
|
465 |
+
|
466 |
+
var hasOwnProperty = {}.hasOwnProperty;
|
467 |
+
module.exports = function (it, key) {
|
468 |
+
return hasOwnProperty.call(it, key);
|
469 |
+
};
|
470 |
+
|
471 |
+
|
472 |
+
/***/ }),
|
473 |
+
/* 13 */
|
474 |
+
/***/ (function(module, exports, __webpack_require__) {
|
475 |
+
|
476 |
+
var dP = __webpack_require__(10);
|
477 |
+
var createDesc = __webpack_require__(26);
|
478 |
+
module.exports = __webpack_require__(11) ? function (object, key, value) {
|
479 |
+
return dP.f(object, key, createDesc(1, value));
|
480 |
+
} : function (object, key, value) {
|
481 |
+
object[key] = value;
|
482 |
+
return object;
|
483 |
+
};
|
484 |
+
|
485 |
+
|
486 |
+
/***/ }),
|
487 |
+
/* 14 */
|
488 |
+
/***/ (function(module, exports, __webpack_require__) {
|
489 |
+
|
490 |
+
var isObject = __webpack_require__(15);
|
491 |
+
module.exports = function (it) {
|
492 |
+
if (!isObject(it)) throw TypeError(it + ' is not an object!');
|
493 |
+
return it;
|
494 |
+
};
|
495 |
+
|
496 |
+
|
497 |
+
/***/ }),
|
498 |
+
/* 15 */
|
499 |
+
/***/ (function(module, exports) {
|
500 |
+
|
501 |
+
module.exports = function (it) {
|
502 |
+
return typeof it === 'object' ? it !== null : typeof it === 'function';
|
503 |
+
};
|
504 |
+
|
505 |
+
|
506 |
+
/***/ }),
|
507 |
+
/* 16 */
|
508 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
509 |
+
|
510 |
+
"use strict";
|
511 |
+
/* unused harmony export SelectBase */
|
512 |
+
/* unused harmony export Async */
|
513 |
+
/* unused harmony export makeAsyncSelect */
|
514 |
+
/* unused harmony export AsyncCreatable */
|
515 |
+
/* unused harmony export Creatable */
|
516 |
+
/* unused harmony export makeCreatableSelect */
|
517 |
+
/* unused harmony export createFilter */
|
518 |
+
/* unused harmony export makeAnimated */
|
519 |
+
/* unused harmony export components */
|
520 |
+
/* unused harmony export mergeStyles */
|
521 |
+
/* unused harmony export defaultTheme */
|
522 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(2);
|
523 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
524 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_memoize_one__ = __webpack_require__(32);
|
525 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_emotion__ = __webpack_require__(33);
|
526 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom__ = __webpack_require__(6);
|
527 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_dom__);
|
528 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types__ = __webpack_require__(3);
|
529 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_prop_types__);
|
530 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_raf__ = __webpack_require__(46);
|
531 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_raf___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_raf__);
|
532 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize__ = __webpack_require__(48);
|
533 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize__);
|
534 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_transition_group__ = __webpack_require__(49);
|
535 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_transition_group___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__);
|
536 |
+
|
537 |
+
|
538 |
+
|
539 |
+
|
540 |
+
|
541 |
+
|
542 |
+
|
543 |
+
|
544 |
+
|
545 |
+
function _typeof(obj) {
|
546 |
+
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
547 |
+
_typeof = function (obj) {
|
548 |
+
return typeof obj;
|
549 |
+
};
|
550 |
+
} else {
|
551 |
+
_typeof = function (obj) {
|
552 |
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
553 |
+
};
|
554 |
+
}
|
555 |
+
|
556 |
+
return _typeof(obj);
|
557 |
+
}
|
558 |
+
|
559 |
+
function _classCallCheck(instance, Constructor) {
|
560 |
+
if (!(instance instanceof Constructor)) {
|
561 |
+
throw new TypeError("Cannot call a class as a function");
|
562 |
+
}
|
563 |
+
}
|
564 |
+
|
565 |
+
function _defineProperties(target, props) {
|
566 |
+
for (var i = 0; i < props.length; i++) {
|
567 |
+
var descriptor = props[i];
|
568 |
+
descriptor.enumerable = descriptor.enumerable || false;
|
569 |
+
descriptor.configurable = true;
|
570 |
+
if ("value" in descriptor) descriptor.writable = true;
|
571 |
+
Object.defineProperty(target, descriptor.key, descriptor);
|
572 |
+
}
|
573 |
+
}
|
574 |
+
|
575 |
+
function _createClass(Constructor, protoProps, staticProps) {
|
576 |
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
577 |
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
578 |
+
return Constructor;
|
579 |
+
}
|
580 |
+
|
581 |
+
function _defineProperty(obj, key, value) {
|
582 |
+
if (key in obj) {
|
583 |
+
Object.defineProperty(obj, key, {
|
584 |
+
value: value,
|
585 |
+
enumerable: true,
|
586 |
+
configurable: true,
|
587 |
+
writable: true
|
588 |
+
});
|
589 |
+
} else {
|
590 |
+
obj[key] = value;
|
591 |
+
}
|
592 |
+
|
593 |
+
return obj;
|
594 |
+
}
|
595 |
+
|
596 |
+
function _extends() {
|
597 |
+
_extends = Object.assign || function (target) {
|
598 |
+
for (var i = 1; i < arguments.length; i++) {
|
599 |
+
var source = arguments[i];
|
600 |
+
|
601 |
+
for (var key in source) {
|
602 |
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
603 |
+
target[key] = source[key];
|
604 |
+
}
|
605 |
+
}
|
606 |
+
}
|
607 |
+
|
608 |
+
return target;
|
609 |
+
};
|
610 |
+
|
611 |
+
return _extends.apply(this, arguments);
|
612 |
+
}
|
613 |
+
|
614 |
+
function _objectSpread(target) {
|
615 |
+
for (var i = 1; i < arguments.length; i++) {
|
616 |
+
var source = arguments[i] != null ? arguments[i] : {};
|
617 |
+
var ownKeys = Object.keys(source);
|
618 |
+
|
619 |
+
if (typeof Object.getOwnPropertySymbols === 'function') {
|
620 |
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
621 |
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
622 |
+
}));
|
623 |
+
}
|
624 |
+
|
625 |
+
ownKeys.forEach(function (key) {
|
626 |
+
_defineProperty(target, key, source[key]);
|
627 |
+
});
|
628 |
+
}
|
629 |
+
|
630 |
+
return target;
|
631 |
+
}
|
632 |
+
|
633 |
+
function _inherits(subClass, superClass) {
|
634 |
+
if (typeof superClass !== "function" && superClass !== null) {
|
635 |
+
throw new TypeError("Super expression must either be null or a function");
|
636 |
+
}
|
637 |
+
|
638 |
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
639 |
+
constructor: {
|
640 |
+
value: subClass,
|
641 |
+
writable: true,
|
642 |
+
configurable: true
|
643 |
+
}
|
644 |
+
});
|
645 |
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
646 |
+
}
|
647 |
+
|
648 |
+
function _getPrototypeOf(o) {
|
649 |
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
650 |
+
return o.__proto__ || Object.getPrototypeOf(o);
|
651 |
+
};
|
652 |
+
return _getPrototypeOf(o);
|
653 |
+
}
|
654 |
+
|
655 |
+
function _setPrototypeOf(o, p) {
|
656 |
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
657 |
+
o.__proto__ = p;
|
658 |
+
return o;
|
659 |
+
};
|
660 |
+
|
661 |
+
return _setPrototypeOf(o, p);
|
662 |
+
}
|
663 |
+
|
664 |
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
665 |
+
if (source == null) return {};
|
666 |
+
var target = {};
|
667 |
+
var sourceKeys = Object.keys(source);
|
668 |
+
var key, i;
|
669 |
+
|
670 |
+
for (i = 0; i < sourceKeys.length; i++) {
|
671 |
+
key = sourceKeys[i];
|
672 |
+
if (excluded.indexOf(key) >= 0) continue;
|
673 |
+
target[key] = source[key];
|
674 |
+
}
|
675 |
+
|
676 |
+
return target;
|
677 |
+
}
|
678 |
+
|
679 |
+
function _objectWithoutProperties(source, excluded) {
|
680 |
+
if (source == null) return {};
|
681 |
+
|
682 |
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
683 |
+
|
684 |
+
var key, i;
|
685 |
+
|
686 |
+
if (Object.getOwnPropertySymbols) {
|
687 |
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
688 |
+
|
689 |
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
690 |
+
key = sourceSymbolKeys[i];
|
691 |
+
if (excluded.indexOf(key) >= 0) continue;
|
692 |
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
693 |
+
target[key] = source[key];
|
694 |
+
}
|
695 |
+
}
|
696 |
+
|
697 |
+
return target;
|
698 |
+
}
|
699 |
+
|
700 |
+
function _assertThisInitialized(self) {
|
701 |
+
if (self === void 0) {
|
702 |
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
703 |
+
}
|
704 |
+
|
705 |
+
return self;
|
706 |
+
}
|
707 |
+
|
708 |
+
function _possibleConstructorReturn(self, call) {
|
709 |
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
710 |
+
return call;
|
711 |
+
}
|
712 |
+
|
713 |
+
return _assertThisInitialized(self);
|
714 |
+
}
|
715 |
+
|
716 |
+
function _toConsumableArray(arr) {
|
717 |
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
|
718 |
+
}
|
719 |
+
|
720 |
+
function _arrayWithoutHoles(arr) {
|
721 |
+
if (Array.isArray(arr)) {
|
722 |
+
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
723 |
+
|
724 |
+
return arr2;
|
725 |
+
}
|
726 |
+
}
|
727 |
+
|
728 |
+
function _iterableToArray(iter) {
|
729 |
+
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
730 |
+
}
|
731 |
+
|
732 |
+
function _nonIterableSpread() {
|
733 |
+
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
734 |
+
}
|
735 |
+
|
736 |
+
// ==============================
|
737 |
+
// NO OP
|
738 |
+
// ==============================
|
739 |
+
var noop = function noop() {};
|
740 |
+
// Class Name Prefixer
|
741 |
+
// ==============================
|
742 |
+
|
743 |
+
/**
|
744 |
+
String representation of component state for styling with class names.
|
745 |
+
|
746 |
+
Expects an array of strings OR a string/object pair:
|
747 |
+
- className(['comp', 'comp-arg', 'comp-arg-2'])
|
748 |
+
@returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'
|
749 |
+
- className('comp', { some: true, state: false })
|
750 |
+
@returns 'react-select__comp react-select__comp--some'
|
751 |
+
*/
|
752 |
+
|
753 |
+
function applyPrefixToName(prefix, name) {
|
754 |
+
if (!name) {
|
755 |
+
return prefix;
|
756 |
+
} else if (name[0] === '-') {
|
757 |
+
return prefix + name;
|
758 |
+
} else {
|
759 |
+
return prefix + '__' + name;
|
760 |
+
}
|
761 |
+
}
|
762 |
+
|
763 |
+
function classNames(prefix, cssKey, state, className) {
|
764 |
+
var arr = [cssKey, className];
|
765 |
+
|
766 |
+
if (state && prefix) {
|
767 |
+
for (var key in state) {
|
768 |
+
if (state.hasOwnProperty(key) && state[key]) {
|
769 |
+
arr.push("".concat(applyPrefixToName(prefix, key)));
|
770 |
+
}
|
771 |
+
}
|
772 |
+
}
|
773 |
+
|
774 |
+
return arr.filter(function (i) {
|
775 |
+
return i;
|
776 |
+
}).map(function (i) {
|
777 |
+
return String(i).trim();
|
778 |
+
}).join(' ');
|
779 |
+
} // ==============================
|
780 |
+
// Clean Value
|
781 |
+
// ==============================
|
782 |
+
|
783 |
+
var cleanValue = function cleanValue(value) {
|
784 |
+
if (Array.isArray(value)) return value.filter(Boolean);
|
785 |
+
if (_typeof(value) === 'object' && value !== null) return [value];
|
786 |
+
return [];
|
787 |
+
}; // ==============================
|
788 |
+
// Handle Input Change
|
789 |
+
// ==============================
|
790 |
+
|
791 |
+
function handleInputChange(inputValue, actionMeta, onInputChange) {
|
792 |
+
if (onInputChange) {
|
793 |
+
var newValue = onInputChange(inputValue, actionMeta);
|
794 |
+
if (typeof newValue === 'string') return newValue;
|
795 |
+
}
|
796 |
+
|
797 |
+
return inputValue;
|
798 |
+
} // ==============================
|
799 |
+
// Scroll Helpers
|
800 |
+
// ==============================
|
801 |
+
|
802 |
+
function isDocumentElement(el) {
|
803 |
+
return [document.documentElement, document.body, window].indexOf(el) > -1;
|
804 |
+
} // Normalized Scroll Top
|
805 |
+
// ------------------------------
|
806 |
+
|
807 |
+
function getScrollTop(el) {
|
808 |
+
if (isDocumentElement(el)) {
|
809 |
+
return window.pageYOffset;
|
810 |
+
}
|
811 |
+
|
812 |
+
return el.scrollTop;
|
813 |
+
}
|
814 |
+
function scrollTo(el, top) {
|
815 |
+
// with a scroll distance, we perform scroll on the element
|
816 |
+
if (isDocumentElement(el)) {
|
817 |
+
window.scrollTo(0, top);
|
818 |
+
return;
|
819 |
+
}
|
820 |
+
|
821 |
+
el.scrollTop = top;
|
822 |
+
} // Get Scroll Parent
|
823 |
+
// ------------------------------
|
824 |
+
|
825 |
+
function getScrollParent(element) {
|
826 |
+
var style = getComputedStyle(element);
|
827 |
+
var excludeStaticParent = style.position === 'absolute';
|
828 |
+
var overflowRx = /(auto|scroll)/;
|
829 |
+
var docEl = document.documentElement; // suck it, flow...
|
830 |
+
|
831 |
+
if (style.position === 'fixed') return docEl;
|
832 |
+
|
833 |
+
for (var parent = element; parent = parent.parentElement;) {
|
834 |
+
style = getComputedStyle(parent);
|
835 |
+
|
836 |
+
if (excludeStaticParent && style.position === 'static') {
|
837 |
+
continue;
|
838 |
+
}
|
839 |
+
|
840 |
+
if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {
|
841 |
+
return parent;
|
842 |
+
}
|
843 |
+
}
|
844 |
+
|
845 |
+
return docEl;
|
846 |
+
} // Animated Scroll To
|
847 |
+
// ------------------------------
|
848 |
+
|
849 |
+
/**
|
850 |
+
@param t: time (elapsed)
|
851 |
+
@param b: initial value
|
852 |
+
@param c: amount of change
|
853 |
+
@param d: duration
|
854 |
+
*/
|
855 |
+
|
856 |
+
function easeOutCubic(t, b, c, d) {
|
857 |
+
return c * ((t = t / d - 1) * t * t + 1) + b;
|
858 |
+
}
|
859 |
+
|
860 |
+
function animatedScrollTo(element, to) {
|
861 |
+
var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;
|
862 |
+
var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;
|
863 |
+
var start = getScrollTop(element);
|
864 |
+
var change = to - start;
|
865 |
+
var increment = 10;
|
866 |
+
var currentTime = 0;
|
867 |
+
|
868 |
+
function animateScroll() {
|
869 |
+
currentTime += increment;
|
870 |
+
var val = easeOutCubic(currentTime, start, change, duration);
|
871 |
+
scrollTo(element, val);
|
872 |
+
|
873 |
+
if (currentTime < duration) {
|
874 |
+
__WEBPACK_IMPORTED_MODULE_5_raf___default()(animateScroll);
|
875 |
+
} else {
|
876 |
+
callback(element);
|
877 |
+
}
|
878 |
+
}
|
879 |
+
|
880 |
+
animateScroll();
|
881 |
+
} // Scroll Into View
|
882 |
+
// ------------------------------
|
883 |
+
|
884 |
+
function scrollIntoView(menuEl, focusedEl) {
|
885 |
+
var menuRect = menuEl.getBoundingClientRect();
|
886 |
+
var focusedRect = focusedEl.getBoundingClientRect();
|
887 |
+
var overScroll = focusedEl.offsetHeight / 3;
|
888 |
+
|
889 |
+
if (focusedRect.bottom + overScroll > menuRect.bottom) {
|
890 |
+
scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));
|
891 |
+
} else if (focusedRect.top - overScroll < menuRect.top) {
|
892 |
+
scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));
|
893 |
+
}
|
894 |
+
} // ==============================
|
895 |
+
// Get bounding client object
|
896 |
+
// ==============================
|
897 |
+
// cannot get keys using array notation with DOMRect
|
898 |
+
|
899 |
+
function getBoundingClientObj(element) {
|
900 |
+
var rect = element.getBoundingClientRect();
|
901 |
+
return {
|
902 |
+
bottom: rect.bottom,
|
903 |
+
height: rect.height,
|
904 |
+
left: rect.left,
|
905 |
+
right: rect.right,
|
906 |
+
top: rect.top,
|
907 |
+
width: rect.width
|
908 |
+
};
|
909 |
+
}
|
910 |
+
// Touch Capability Detector
|
911 |
+
// ==============================
|
912 |
+
|
913 |
+
function isTouchCapable() {
|
914 |
+
try {
|
915 |
+
document.createEvent('TouchEvent');
|
916 |
+
return true;
|
917 |
+
} catch (e) {
|
918 |
+
return false;
|
919 |
+
}
|
920 |
+
} // ==============================
|
921 |
+
// Mobile Device Detector
|
922 |
+
// ==============================
|
923 |
+
|
924 |
+
function isMobileDevice() {
|
925 |
+
try {
|
926 |
+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
927 |
+
} catch (e) {
|
928 |
+
return false;
|
929 |
+
}
|
930 |
+
}
|
931 |
+
|
932 |
+
function getMenuPlacement(_ref) {
|
933 |
+
var maxHeight = _ref.maxHeight,
|
934 |
+
menuEl = _ref.menuEl,
|
935 |
+
minHeight = _ref.minHeight,
|
936 |
+
placement = _ref.placement,
|
937 |
+
shouldScroll = _ref.shouldScroll,
|
938 |
+
isFixedPosition = _ref.isFixedPosition,
|
939 |
+
theme = _ref.theme;
|
940 |
+
var spacing = theme.spacing;
|
941 |
+
var scrollParent = getScrollParent(menuEl);
|
942 |
+
var defaultState = {
|
943 |
+
placement: 'bottom',
|
944 |
+
maxHeight: maxHeight
|
945 |
+
}; // something went wrong, return default state
|
946 |
+
|
947 |
+
if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when
|
948 |
+
// the menu is rendered
|
949 |
+
|
950 |
+
var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),
|
951 |
+
scrollHeight = _scrollParent$getBoun.height;
|
952 |
+
|
953 |
+
var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),
|
954 |
+
menuBottom = _menuEl$getBoundingCl.bottom,
|
955 |
+
menuHeight = _menuEl$getBoundingCl.height,
|
956 |
+
menuTop = _menuEl$getBoundingCl.top;
|
957 |
+
|
958 |
+
var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),
|
959 |
+
containerTop = _menuEl$offsetParent$.top;
|
960 |
+
|
961 |
+
var viewHeight = window.innerHeight;
|
962 |
+
var scrollTop = getScrollTop(scrollParent);
|
963 |
+
var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);
|
964 |
+
var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);
|
965 |
+
var viewSpaceAbove = containerTop - marginTop;
|
966 |
+
var viewSpaceBelow = viewHeight - menuTop;
|
967 |
+
var scrollSpaceAbove = viewSpaceAbove + scrollTop;
|
968 |
+
var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;
|
969 |
+
var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;
|
970 |
+
var scrollUp = scrollTop + menuTop - marginTop;
|
971 |
+
var scrollDuration = 160;
|
972 |
+
|
973 |
+
switch (placement) {
|
974 |
+
case 'auto':
|
975 |
+
case 'bottom':
|
976 |
+
// 1: the menu will fit, do nothing
|
977 |
+
if (viewSpaceBelow >= menuHeight) {
|
978 |
+
return {
|
979 |
+
placement: 'bottom',
|
980 |
+
maxHeight: maxHeight
|
981 |
+
};
|
982 |
+
} // 2: the menu will fit, if scrolled
|
983 |
+
|
984 |
+
|
985 |
+
if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {
|
986 |
+
if (shouldScroll) {
|
987 |
+
animatedScrollTo(scrollParent, scrollDown, scrollDuration);
|
988 |
+
}
|
989 |
+
|
990 |
+
return {
|
991 |
+
placement: 'bottom',
|
992 |
+
maxHeight: maxHeight
|
993 |
+
};
|
994 |
+
} // 3: the menu will fit, if constrained
|
995 |
+
|
996 |
+
|
997 |
+
if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {
|
998 |
+
if (shouldScroll) {
|
999 |
+
animatedScrollTo(scrollParent, scrollDown, scrollDuration);
|
1000 |
+
} // we want to provide as much of the menu as possible to the user,
|
1001 |
+
// so give them whatever is available below rather than the minHeight.
|
1002 |
+
|
1003 |
+
|
1004 |
+
var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;
|
1005 |
+
return {
|
1006 |
+
placement: 'bottom',
|
1007 |
+
maxHeight: constrainedHeight
|
1008 |
+
};
|
1009 |
+
} // 4. Forked beviour when there isn't enough space below
|
1010 |
+
// AUTO: flip the menu, render above
|
1011 |
+
|
1012 |
+
|
1013 |
+
if (placement === 'auto' || isFixedPosition) {
|
1014 |
+
// may need to be constrained after flipping
|
1015 |
+
var _constrainedHeight = maxHeight;
|
1016 |
+
var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;
|
1017 |
+
|
1018 |
+
if (spaceAbove >= minHeight) {
|
1019 |
+
_constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);
|
1020 |
+
}
|
1021 |
+
|
1022 |
+
return {
|
1023 |
+
placement: 'top',
|
1024 |
+
maxHeight: _constrainedHeight
|
1025 |
+
};
|
1026 |
+
} // BOTTOM: allow browser to increase scrollable area and immediately set scroll
|
1027 |
+
|
1028 |
+
|
1029 |
+
if (placement === 'bottom') {
|
1030 |
+
scrollTo(scrollParent, scrollDown);
|
1031 |
+
return {
|
1032 |
+
placement: 'bottom',
|
1033 |
+
maxHeight: maxHeight
|
1034 |
+
};
|
1035 |
+
}
|
1036 |
+
|
1037 |
+
break;
|
1038 |
+
|
1039 |
+
case 'top':
|
1040 |
+
// 1: the menu will fit, do nothing
|
1041 |
+
if (viewSpaceAbove >= menuHeight) {
|
1042 |
+
return {
|
1043 |
+
placement: 'top',
|
1044 |
+
maxHeight: maxHeight
|
1045 |
+
};
|
1046 |
+
} // 2: the menu will fit, if scrolled
|
1047 |
+
|
1048 |
+
|
1049 |
+
if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {
|
1050 |
+
if (shouldScroll) {
|
1051 |
+
animatedScrollTo(scrollParent, scrollUp, scrollDuration);
|
1052 |
+
}
|
1053 |
+
|
1054 |
+
return {
|
1055 |
+
placement: 'top',
|
1056 |
+
maxHeight: maxHeight
|
1057 |
+
};
|
1058 |
+
} // 3: the menu will fit, if constrained
|
1059 |
+
|
1060 |
+
|
1061 |
+
if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
|
1062 |
+
var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,
|
1063 |
+
// so give them whatever is available below rather than the minHeight.
|
1064 |
+
|
1065 |
+
if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {
|
1066 |
+
_constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;
|
1067 |
+
}
|
1068 |
+
|
1069 |
+
if (shouldScroll) {
|
1070 |
+
animatedScrollTo(scrollParent, scrollUp, scrollDuration);
|
1071 |
+
}
|
1072 |
+
|
1073 |
+
return {
|
1074 |
+
placement: 'top',
|
1075 |
+
maxHeight: _constrainedHeight2
|
1076 |
+
};
|
1077 |
+
} // 4. not enough space, the browser WILL NOT increase scrollable area when
|
1078 |
+
// absolutely positioned element rendered above the viewport (only below).
|
1079 |
+
// Flip the menu, render below
|
1080 |
+
|
1081 |
+
|
1082 |
+
return {
|
1083 |
+
placement: 'bottom',
|
1084 |
+
maxHeight: maxHeight
|
1085 |
+
};
|
1086 |
+
|
1087 |
+
default:
|
1088 |
+
throw new Error("Invalid placement provided \"".concat(placement, "\"."));
|
1089 |
+
} // fulfil contract with flow: implicit return value of undefined
|
1090 |
+
|
1091 |
+
|
1092 |
+
return defaultState;
|
1093 |
+
} // Menu Component
|
1094 |
+
// ------------------------------
|
1095 |
+
|
1096 |
+
function alignToControl(placement) {
|
1097 |
+
var placementToCSSProp = {
|
1098 |
+
bottom: 'top',
|
1099 |
+
top: 'bottom'
|
1100 |
+
};
|
1101 |
+
return placement ? placementToCSSProp[placement] : 'bottom';
|
1102 |
+
}
|
1103 |
+
|
1104 |
+
var coercePlacement = function coercePlacement(p) {
|
1105 |
+
return p === 'auto' ? 'bottom' : p;
|
1106 |
+
};
|
1107 |
+
|
1108 |
+
var menuCSS = function menuCSS(_ref2) {
|
1109 |
+
var _ref3;
|
1110 |
+
|
1111 |
+
var placement = _ref2.placement,
|
1112 |
+
_ref2$theme = _ref2.theme,
|
1113 |
+
borderRadius = _ref2$theme.borderRadius,
|
1114 |
+
spacing = _ref2$theme.spacing,
|
1115 |
+
colors = _ref2$theme.colors;
|
1116 |
+
return _ref3 = {
|
1117 |
+
label: 'menu'
|
1118 |
+
}, _defineProperty(_ref3, alignToControl(placement), '100%'), _defineProperty(_ref3, "backgroundColor", colors.neutral0), _defineProperty(_ref3, "borderRadius", borderRadius), _defineProperty(_ref3, "boxShadow", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty(_ref3, "marginBottom", spacing.menuGutter), _defineProperty(_ref3, "marginTop", spacing.menuGutter), _defineProperty(_ref3, "position", 'absolute'), _defineProperty(_ref3, "width", '100%'), _defineProperty(_ref3, "zIndex", 1), _ref3;
|
1119 |
+
}; // NOTE: internal only
|
1120 |
+
|
1121 |
+
var MenuPlacer =
|
1122 |
+
/*#__PURE__*/
|
1123 |
+
function (_Component) {
|
1124 |
+
_inherits(MenuPlacer, _Component);
|
1125 |
+
|
1126 |
+
function MenuPlacer() {
|
1127 |
+
var _getPrototypeOf2;
|
1128 |
+
|
1129 |
+
var _this;
|
1130 |
+
|
1131 |
+
_classCallCheck(this, MenuPlacer);
|
1132 |
+
|
1133 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1134 |
+
args[_key] = arguments[_key];
|
1135 |
+
}
|
1136 |
+
|
1137 |
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuPlacer)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
1138 |
+
|
1139 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
|
1140 |
+
maxHeight: _this.props.maxMenuHeight,
|
1141 |
+
placement: null
|
1142 |
+
});
|
1143 |
+
|
1144 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getPlacement", function (ref) {
|
1145 |
+
var _this$props = _this.props,
|
1146 |
+
minMenuHeight = _this$props.minMenuHeight,
|
1147 |
+
maxMenuHeight = _this$props.maxMenuHeight,
|
1148 |
+
menuPlacement = _this$props.menuPlacement,
|
1149 |
+
menuPosition = _this$props.menuPosition,
|
1150 |
+
menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,
|
1151 |
+
theme = _this$props.theme;
|
1152 |
+
var getPortalPlacement = _this.context.getPortalPlacement;
|
1153 |
+
if (!ref) return; // DO NOT scroll if position is fixed
|
1154 |
+
|
1155 |
+
var isFixedPosition = menuPosition === 'fixed';
|
1156 |
+
var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;
|
1157 |
+
var state = getMenuPlacement({
|
1158 |
+
maxHeight: maxMenuHeight,
|
1159 |
+
menuEl: ref,
|
1160 |
+
minHeight: minMenuHeight,
|
1161 |
+
placement: menuPlacement,
|
1162 |
+
shouldScroll: shouldScroll,
|
1163 |
+
isFixedPosition: isFixedPosition,
|
1164 |
+
theme: theme
|
1165 |
+
});
|
1166 |
+
if (getPortalPlacement) getPortalPlacement(state);
|
1167 |
+
|
1168 |
+
_this.setState(state);
|
1169 |
+
});
|
1170 |
+
|
1171 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getUpdatedProps", function () {
|
1172 |
+
var menuPlacement = _this.props.menuPlacement;
|
1173 |
+
var placement = _this.state.placement || coercePlacement(menuPlacement);
|
1174 |
+
return _objectSpread({}, _this.props, {
|
1175 |
+
placement: placement,
|
1176 |
+
maxHeight: _this.state.maxHeight
|
1177 |
+
});
|
1178 |
+
});
|
1179 |
+
|
1180 |
+
return _this;
|
1181 |
+
}
|
1182 |
+
|
1183 |
+
_createClass(MenuPlacer, [{
|
1184 |
+
key: "render",
|
1185 |
+
value: function render() {
|
1186 |
+
var children = this.props.children;
|
1187 |
+
return children({
|
1188 |
+
ref: this.getPlacement,
|
1189 |
+
placerProps: this.getUpdatedProps()
|
1190 |
+
});
|
1191 |
+
}
|
1192 |
+
}]);
|
1193 |
+
|
1194 |
+
return MenuPlacer;
|
1195 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
1196 |
+
|
1197 |
+
_defineProperty(MenuPlacer, "contextTypes", {
|
1198 |
+
getPortalPlacement: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
|
1199 |
+
});
|
1200 |
+
|
1201 |
+
var Menu = function Menu(props) {
|
1202 |
+
var children = props.children,
|
1203 |
+
className = props.className,
|
1204 |
+
cx = props.cx,
|
1205 |
+
getStyles = props.getStyles,
|
1206 |
+
innerRef = props.innerRef,
|
1207 |
+
innerProps = props.innerProps;
|
1208 |
+
var cn = cx(
|
1209 |
+
/*#__PURE__*/
|
1210 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('menu', props)), {
|
1211 |
+
menu: true
|
1212 |
+
}, className);
|
1213 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
1214 |
+
className: cn
|
1215 |
+
}, innerProps, {
|
1216 |
+
ref: innerRef
|
1217 |
+
}), children);
|
1218 |
+
};
|
1219 |
+
// Menu List
|
1220 |
+
// ==============================
|
1221 |
+
|
1222 |
+
var menuListCSS = function menuListCSS(_ref4) {
|
1223 |
+
var maxHeight = _ref4.maxHeight,
|
1224 |
+
baseUnit = _ref4.theme.spacing.baseUnit;
|
1225 |
+
return {
|
1226 |
+
maxHeight: maxHeight,
|
1227 |
+
overflowY: 'auto',
|
1228 |
+
paddingBottom: baseUnit,
|
1229 |
+
paddingTop: baseUnit,
|
1230 |
+
position: 'relative',
|
1231 |
+
// required for offset[Height, Top] > keyboard scroll
|
1232 |
+
WebkitOverflowScrolling: 'touch'
|
1233 |
+
};
|
1234 |
+
};
|
1235 |
+
var MenuList = function MenuList(props) {
|
1236 |
+
var children = props.children,
|
1237 |
+
className = props.className,
|
1238 |
+
cx = props.cx,
|
1239 |
+
getStyles = props.getStyles,
|
1240 |
+
isMulti = props.isMulti,
|
1241 |
+
innerRef = props.innerRef;
|
1242 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
1243 |
+
className: cx(
|
1244 |
+
/*#__PURE__*/
|
1245 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('menuList', props)), {
|
1246 |
+
'menu-list': true,
|
1247 |
+
'menu-list--is-multi': isMulti
|
1248 |
+
}, className),
|
1249 |
+
ref: innerRef
|
1250 |
+
}, children);
|
1251 |
+
}; // ==============================
|
1252 |
+
// Menu Notices
|
1253 |
+
// ==============================
|
1254 |
+
|
1255 |
+
var noticeCSS = function noticeCSS(_ref5) {
|
1256 |
+
var _ref5$theme = _ref5.theme,
|
1257 |
+
baseUnit = _ref5$theme.spacing.baseUnit,
|
1258 |
+
colors = _ref5$theme.colors;
|
1259 |
+
return {
|
1260 |
+
color: colors.neutral40,
|
1261 |
+
padding: "".concat(baseUnit * 2, "px ").concat(baseUnit * 3, "px"),
|
1262 |
+
textAlign: 'center'
|
1263 |
+
};
|
1264 |
+
};
|
1265 |
+
|
1266 |
+
var noOptionsMessageCSS = noticeCSS;
|
1267 |
+
var loadingMessageCSS = noticeCSS;
|
1268 |
+
var NoOptionsMessage = function NoOptionsMessage(props) {
|
1269 |
+
var children = props.children,
|
1270 |
+
className = props.className,
|
1271 |
+
cx = props.cx,
|
1272 |
+
getStyles = props.getStyles,
|
1273 |
+
innerProps = props.innerProps;
|
1274 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
1275 |
+
className: cx(
|
1276 |
+
/*#__PURE__*/
|
1277 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('noOptionsMessage', props)), {
|
1278 |
+
'menu-notice': true,
|
1279 |
+
'menu-notice--no-options': true
|
1280 |
+
}, className)
|
1281 |
+
}, innerProps), children);
|
1282 |
+
};
|
1283 |
+
NoOptionsMessage.defaultProps = {
|
1284 |
+
children: 'No options'
|
1285 |
+
};
|
1286 |
+
var LoadingMessage = function LoadingMessage(props) {
|
1287 |
+
var children = props.children,
|
1288 |
+
className = props.className,
|
1289 |
+
cx = props.cx,
|
1290 |
+
getStyles = props.getStyles,
|
1291 |
+
innerProps = props.innerProps;
|
1292 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
1293 |
+
className: cx(
|
1294 |
+
/*#__PURE__*/
|
1295 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('loadingMessage', props)), {
|
1296 |
+
'menu-notice': true,
|
1297 |
+
'menu-notice--loading': true
|
1298 |
+
}, className)
|
1299 |
+
}, innerProps), children);
|
1300 |
+
};
|
1301 |
+
LoadingMessage.defaultProps = {
|
1302 |
+
children: 'Loading...'
|
1303 |
+
}; // ==============================
|
1304 |
+
// Menu Portal
|
1305 |
+
// ==============================
|
1306 |
+
|
1307 |
+
var menuPortalCSS = function menuPortalCSS(_ref6) {
|
1308 |
+
var rect = _ref6.rect,
|
1309 |
+
offset = _ref6.offset,
|
1310 |
+
position = _ref6.position;
|
1311 |
+
return {
|
1312 |
+
left: rect.left,
|
1313 |
+
position: position,
|
1314 |
+
top: offset,
|
1315 |
+
width: rect.width,
|
1316 |
+
zIndex: 1
|
1317 |
+
};
|
1318 |
+
};
|
1319 |
+
var MenuPortal =
|
1320 |
+
/*#__PURE__*/
|
1321 |
+
function (_Component2) {
|
1322 |
+
_inherits(MenuPortal, _Component2);
|
1323 |
+
|
1324 |
+
function MenuPortal() {
|
1325 |
+
var _getPrototypeOf3;
|
1326 |
+
|
1327 |
+
var _this2;
|
1328 |
+
|
1329 |
+
_classCallCheck(this, MenuPortal);
|
1330 |
+
|
1331 |
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
1332 |
+
args[_key2] = arguments[_key2];
|
1333 |
+
}
|
1334 |
+
|
1335 |
+
_this2 = _possibleConstructorReturn(this, (_getPrototypeOf3 = _getPrototypeOf(MenuPortal)).call.apply(_getPrototypeOf3, [this].concat(args)));
|
1336 |
+
|
1337 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), "state", {
|
1338 |
+
placement: null
|
1339 |
+
});
|
1340 |
+
|
1341 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), "getPortalPlacement", function (_ref7) {
|
1342 |
+
var placement = _ref7.placement;
|
1343 |
+
var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed
|
1344 |
+
|
1345 |
+
if (placement !== initialPlacement) {
|
1346 |
+
_this2.setState({
|
1347 |
+
placement: placement
|
1348 |
+
});
|
1349 |
+
}
|
1350 |
+
});
|
1351 |
+
|
1352 |
+
return _this2;
|
1353 |
+
}
|
1354 |
+
|
1355 |
+
_createClass(MenuPortal, [{
|
1356 |
+
key: "getChildContext",
|
1357 |
+
value: function getChildContext() {
|
1358 |
+
return {
|
1359 |
+
getPortalPlacement: this.getPortalPlacement
|
1360 |
+
};
|
1361 |
+
} // callback for occassions where the menu must "flip"
|
1362 |
+
|
1363 |
+
}, {
|
1364 |
+
key: "render",
|
1365 |
+
value: function render() {
|
1366 |
+
var _this$props2 = this.props,
|
1367 |
+
appendTo = _this$props2.appendTo,
|
1368 |
+
children = _this$props2.children,
|
1369 |
+
controlElement = _this$props2.controlElement,
|
1370 |
+
menuPlacement = _this$props2.menuPlacement,
|
1371 |
+
position = _this$props2.menuPosition,
|
1372 |
+
getStyles = _this$props2.getStyles;
|
1373 |
+
var isFixed = position === 'fixed'; // bail early if required elements aren't present
|
1374 |
+
|
1375 |
+
if (!appendTo && !isFixed || !controlElement) {
|
1376 |
+
return null;
|
1377 |
+
}
|
1378 |
+
|
1379 |
+
var placement = this.state.placement || coercePlacement(menuPlacement);
|
1380 |
+
var rect = getBoundingClientObj(controlElement);
|
1381 |
+
var scrollDistance = isFixed ? 0 : window.pageYOffset;
|
1382 |
+
var offset = rect[placement] + scrollDistance;
|
1383 |
+
var state = {
|
1384 |
+
offset: offset,
|
1385 |
+
position: position,
|
1386 |
+
rect: rect
|
1387 |
+
}; // same wrapper element whether fixed or portalled
|
1388 |
+
|
1389 |
+
var menuWrapper = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
1390 |
+
className:
|
1391 |
+
/*#__PURE__*/
|
1392 |
+
|
1393 |
+
/*#__PURE__*/
|
1394 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('menuPortal', state))
|
1395 |
+
}, children);
|
1396 |
+
return appendTo ? Object(__WEBPACK_IMPORTED_MODULE_3_react_dom__["createPortal"])(menuWrapper, appendTo) : menuWrapper;
|
1397 |
+
}
|
1398 |
+
}]);
|
1399 |
+
|
1400 |
+
return MenuPortal;
|
1401 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
1402 |
+
|
1403 |
+
_defineProperty(MenuPortal, "childContextTypes", {
|
1404 |
+
getPortalPlacement: __WEBPACK_IMPORTED_MODULE_4_prop_types___default.a.func
|
1405 |
+
});
|
1406 |
+
|
1407 |
+
var isArray = Array.isArray;
|
1408 |
+
var keyList = Object.keys;
|
1409 |
+
var hasProp = Object.prototype.hasOwnProperty;
|
1410 |
+
|
1411 |
+
function equal(a, b) {
|
1412 |
+
// fast-deep-equal index.js 2.0.1
|
1413 |
+
if (a === b) return true;
|
1414 |
+
|
1415 |
+
if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {
|
1416 |
+
var arrA = isArray(a),
|
1417 |
+
arrB = isArray(b),
|
1418 |
+
i,
|
1419 |
+
length,
|
1420 |
+
key;
|
1421 |
+
|
1422 |
+
if (arrA && arrB) {
|
1423 |
+
length = a.length;
|
1424 |
+
if (length != b.length) return false;
|
1425 |
+
|
1426 |
+
for (i = length; i-- !== 0;) {
|
1427 |
+
if (!equal(a[i], b[i])) return false;
|
1428 |
+
}
|
1429 |
+
|
1430 |
+
return true;
|
1431 |
+
}
|
1432 |
+
|
1433 |
+
if (arrA != arrB) return false;
|
1434 |
+
var dateA = a instanceof Date,
|
1435 |
+
dateB = b instanceof Date;
|
1436 |
+
if (dateA != dateB) return false;
|
1437 |
+
if (dateA && dateB) return a.getTime() == b.getTime();
|
1438 |
+
var regexpA = a instanceof RegExp,
|
1439 |
+
regexpB = b instanceof RegExp;
|
1440 |
+
if (regexpA != regexpB) return false;
|
1441 |
+
if (regexpA && regexpB) return a.toString() == b.toString();
|
1442 |
+
var keys = keyList(a);
|
1443 |
+
length = keys.length;
|
1444 |
+
|
1445 |
+
if (length !== keyList(b).length) {
|
1446 |
+
return false;
|
1447 |
+
}
|
1448 |
+
|
1449 |
+
for (i = length; i-- !== 0;) {
|
1450 |
+
if (!hasProp.call(b, keys[i])) return false;
|
1451 |
+
} // end fast-deep-equal
|
1452 |
+
// Custom handling for React
|
1453 |
+
|
1454 |
+
|
1455 |
+
for (i = length; i-- !== 0;) {
|
1456 |
+
key = keys[i];
|
1457 |
+
|
1458 |
+
if (key === '_owner' && a.$$typeof) {
|
1459 |
+
// React-specific: avoid traversing React elements' _owner.
|
1460 |
+
// _owner contains circular references
|
1461 |
+
// and is not needed when comparing the actual elements (and not their owners)
|
1462 |
+
// .$$typeof and ._store on just reasonable markers of a react element
|
1463 |
+
continue;
|
1464 |
+
} else {
|
1465 |
+
// all other properties should be traversed as usual
|
1466 |
+
if (!equal(a[key], b[key])) return false;
|
1467 |
+
}
|
1468 |
+
} // fast-deep-equal index.js 2.0.1
|
1469 |
+
|
1470 |
+
|
1471 |
+
return true;
|
1472 |
+
}
|
1473 |
+
|
1474 |
+
return a !== a && b !== b;
|
1475 |
+
} // end fast-deep-equal
|
1476 |
+
|
1477 |
+
|
1478 |
+
function exportedEqual(a, b) {
|
1479 |
+
try {
|
1480 |
+
return equal(a, b);
|
1481 |
+
} catch (error) {
|
1482 |
+
if (error.message && error.message.match(/stack|recursion/i)) {
|
1483 |
+
// warn on circular references, don't crash
|
1484 |
+
// browsers give this different errors name and messages:
|
1485 |
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
1486 |
+
// firefox: "InternalError", too much recursion"
|
1487 |
+
// edge: "Error", "Out of stack space"
|
1488 |
+
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
1489 |
+
return false;
|
1490 |
+
} // some other error. we should definitely know about these
|
1491 |
+
|
1492 |
+
|
1493 |
+
throw error;
|
1494 |
+
}
|
1495 |
+
}
|
1496 |
+
|
1497 |
+
var diacritics = [{
|
1498 |
+
base: 'A',
|
1499 |
+
letters: /[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g
|
1500 |
+
}, {
|
1501 |
+
base: 'AA',
|
1502 |
+
letters: /[\uA732]/g
|
1503 |
+
}, {
|
1504 |
+
base: 'AE',
|
1505 |
+
letters: /[\u00C6\u01FC\u01E2]/g
|
1506 |
+
}, {
|
1507 |
+
base: 'AO',
|
1508 |
+
letters: /[\uA734]/g
|
1509 |
+
}, {
|
1510 |
+
base: 'AU',
|
1511 |
+
letters: /[\uA736]/g
|
1512 |
+
}, {
|
1513 |
+
base: 'AV',
|
1514 |
+
letters: /[\uA738\uA73A]/g
|
1515 |
+
}, {
|
1516 |
+
base: 'AY',
|
1517 |
+
letters: /[\uA73C]/g
|
1518 |
+
}, {
|
1519 |
+
base: 'B',
|
1520 |
+
letters: /[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g
|
1521 |
+
}, {
|
1522 |
+
base: 'C',
|
1523 |
+
letters: /[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g
|
1524 |
+
}, {
|
1525 |
+
base: 'D',
|
1526 |
+
letters: /[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g
|
1527 |
+
}, {
|
1528 |
+
base: 'DZ',
|
1529 |
+
letters: /[\u01F1\u01C4]/g
|
1530 |
+
}, {
|
1531 |
+
base: 'Dz',
|
1532 |
+
letters: /[\u01F2\u01C5]/g
|
1533 |
+
}, {
|
1534 |
+
base: 'E',
|
1535 |
+
letters: /[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g
|
1536 |
+
}, {
|
1537 |
+
base: 'F',
|
1538 |
+
letters: /[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g
|
1539 |
+
}, {
|
1540 |
+
base: 'G',
|
1541 |
+
letters: /[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g
|
1542 |
+
}, {
|
1543 |
+
base: 'H',
|
1544 |
+
letters: /[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g
|
1545 |
+
}, {
|
1546 |
+
base: 'I',
|
1547 |
+
letters: /[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g
|
1548 |
+
}, {
|
1549 |
+
base: 'J',
|
1550 |
+
letters: /[\u004A\u24BF\uFF2A\u0134\u0248]/g
|
1551 |
+
}, {
|
1552 |
+
base: 'K',
|
1553 |
+
letters: /[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g
|
1554 |
+
}, {
|
1555 |
+
base: 'L',
|
1556 |
+
letters: /[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g
|
1557 |
+
}, {
|
1558 |
+
base: 'LJ',
|
1559 |
+
letters: /[\u01C7]/g
|
1560 |
+
}, {
|
1561 |
+
base: 'Lj',
|
1562 |
+
letters: /[\u01C8]/g
|
1563 |
+
}, {
|
1564 |
+
base: 'M',
|
1565 |
+
letters: /[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g
|
1566 |
+
}, {
|
1567 |
+
base: 'N',
|
1568 |
+
letters: /[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g
|
1569 |
+
}, {
|
1570 |
+
base: 'NJ',
|
1571 |
+
letters: /[\u01CA]/g
|
1572 |
+
}, {
|
1573 |
+
base: 'Nj',
|
1574 |
+
letters: /[\u01CB]/g
|
1575 |
+
}, {
|
1576 |
+
base: 'O',
|
1577 |
+
letters: /[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g
|
1578 |
+
}, {
|
1579 |
+
base: 'OI',
|
1580 |
+
letters: /[\u01A2]/g
|
1581 |
+
}, {
|
1582 |
+
base: 'OO',
|
1583 |
+
letters: /[\uA74E]/g
|
1584 |
+
}, {
|
1585 |
+
base: 'OU',
|
1586 |
+
letters: /[\u0222]/g
|
1587 |
+
}, {
|
1588 |
+
base: 'P',
|
1589 |
+
letters: /[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g
|
1590 |
+
}, {
|
1591 |
+
base: 'Q',
|
1592 |
+
letters: /[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g
|
1593 |
+
}, {
|
1594 |
+
base: 'R',
|
1595 |
+
letters: /[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g
|
1596 |
+
}, {
|
1597 |
+
base: 'S',
|
1598 |
+
letters: /[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g
|
1599 |
+
}, {
|
1600 |
+
base: 'T',
|
1601 |
+
letters: /[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g
|
1602 |
+
}, {
|
1603 |
+
base: 'TZ',
|
1604 |
+
letters: /[\uA728]/g
|
1605 |
+
}, {
|
1606 |
+
base: 'U',
|
1607 |
+
letters: /[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g
|
1608 |
+
}, {
|
1609 |
+
base: 'V',
|
1610 |
+
letters: /[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g
|
1611 |
+
}, {
|
1612 |
+
base: 'VY',
|
1613 |
+
letters: /[\uA760]/g
|
1614 |
+
}, {
|
1615 |
+
base: 'W',
|
1616 |
+
letters: /[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g
|
1617 |
+
}, {
|
1618 |
+
base: 'X',
|
1619 |
+
letters: /[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g
|
1620 |
+
}, {
|
1621 |
+
base: 'Y',
|
1622 |
+
letters: /[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g
|
1623 |
+
}, {
|
1624 |
+
base: 'Z',
|
1625 |
+
letters: /[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g
|
1626 |
+
}, {
|
1627 |
+
base: 'a',
|
1628 |
+
letters: /[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g
|
1629 |
+
}, {
|
1630 |
+
base: 'aa',
|
1631 |
+
letters: /[\uA733]/g
|
1632 |
+
}, {
|
1633 |
+
base: 'ae',
|
1634 |
+
letters: /[\u00E6\u01FD\u01E3]/g
|
1635 |
+
}, {
|
1636 |
+
base: 'ao',
|
1637 |
+
letters: /[\uA735]/g
|
1638 |
+
}, {
|
1639 |
+
base: 'au',
|
1640 |
+
letters: /[\uA737]/g
|
1641 |
+
}, {
|
1642 |
+
base: 'av',
|
1643 |
+
letters: /[\uA739\uA73B]/g
|
1644 |
+
}, {
|
1645 |
+
base: 'ay',
|
1646 |
+
letters: /[\uA73D]/g
|
1647 |
+
}, {
|
1648 |
+
base: 'b',
|
1649 |
+
letters: /[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g
|
1650 |
+
}, {
|
1651 |
+
base: 'c',
|
1652 |
+
letters: /[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g
|
1653 |
+
}, {
|
1654 |
+
base: 'd',
|
1655 |
+
letters: /[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g
|
1656 |
+
}, {
|
1657 |
+
base: 'dz',
|
1658 |
+
letters: /[\u01F3\u01C6]/g
|
1659 |
+
}, {
|
1660 |
+
base: 'e',
|
1661 |
+
letters: /[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g
|
1662 |
+
}, {
|
1663 |
+
base: 'f',
|
1664 |
+
letters: /[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g
|
1665 |
+
}, {
|
1666 |
+
base: 'g',
|
1667 |
+
letters: /[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g
|
1668 |
+
}, {
|
1669 |
+
base: 'h',
|
1670 |
+
letters: /[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g
|
1671 |
+
}, {
|
1672 |
+
base: 'hv',
|
1673 |
+
letters: /[\u0195]/g
|
1674 |
+
}, {
|
1675 |
+
base: 'i',
|
1676 |
+
letters: /[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g
|
1677 |
+
}, {
|
1678 |
+
base: 'j',
|
1679 |
+
letters: /[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g
|
1680 |
+
}, {
|
1681 |
+
base: 'k',
|
1682 |
+
letters: /[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g
|
1683 |
+
}, {
|
1684 |
+
base: 'l',
|
1685 |
+
letters: /[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g
|
1686 |
+
}, {
|
1687 |
+
base: 'lj',
|
1688 |
+
letters: /[\u01C9]/g
|
1689 |
+
}, {
|
1690 |
+
base: 'm',
|
1691 |
+
letters: /[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g
|
1692 |
+
}, {
|
1693 |
+
base: 'n',
|
1694 |
+
letters: /[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g
|
1695 |
+
}, {
|
1696 |
+
base: 'nj',
|
1697 |
+
letters: /[\u01CC]/g
|
1698 |
+
}, {
|
1699 |
+
base: 'o',
|
1700 |
+
letters: /[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g
|
1701 |
+
}, {
|
1702 |
+
base: 'oi',
|
1703 |
+
letters: /[\u01A3]/g
|
1704 |
+
}, {
|
1705 |
+
base: 'ou',
|
1706 |
+
letters: /[\u0223]/g
|
1707 |
+
}, {
|
1708 |
+
base: 'oo',
|
1709 |
+
letters: /[\uA74F]/g
|
1710 |
+
}, {
|
1711 |
+
base: 'p',
|
1712 |
+
letters: /[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g
|
1713 |
+
}, {
|
1714 |
+
base: 'q',
|
1715 |
+
letters: /[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g
|
1716 |
+
}, {
|
1717 |
+
base: 'r',
|
1718 |
+
letters: /[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g
|
1719 |
+
}, {
|
1720 |
+
base: 's',
|
1721 |
+
letters: /[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g
|
1722 |
+
}, {
|
1723 |
+
base: 't',
|
1724 |
+
letters: /[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g
|
1725 |
+
}, {
|
1726 |
+
base: 'tz',
|
1727 |
+
letters: /[\uA729]/g
|
1728 |
+
}, {
|
1729 |
+
base: 'u',
|
1730 |
+
letters: /[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g
|
1731 |
+
}, {
|
1732 |
+
base: 'v',
|
1733 |
+
letters: /[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g
|
1734 |
+
}, {
|
1735 |
+
base: 'vy',
|
1736 |
+
letters: /[\uA761]/g
|
1737 |
+
}, {
|
1738 |
+
base: 'w',
|
1739 |
+
letters: /[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g
|
1740 |
+
}, {
|
1741 |
+
base: 'x',
|
1742 |
+
letters: /[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g
|
1743 |
+
}, {
|
1744 |
+
base: 'y',
|
1745 |
+
letters: /[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g
|
1746 |
+
}, {
|
1747 |
+
base: 'z',
|
1748 |
+
letters: /[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g
|
1749 |
+
}];
|
1750 |
+
var stripDiacritics = function stripDiacritics(str) {
|
1751 |
+
for (var i = 0; i < diacritics.length; i++) {
|
1752 |
+
str = str.replace(diacritics[i].letters, diacritics[i].base);
|
1753 |
+
}
|
1754 |
+
|
1755 |
+
return str;
|
1756 |
+
};
|
1757 |
+
|
1758 |
+
var trimString = function trimString(str) {
|
1759 |
+
return str.replace(/^\s+|\s+$/g, '');
|
1760 |
+
};
|
1761 |
+
|
1762 |
+
var defaultStringify = function defaultStringify(option) {
|
1763 |
+
return "".concat(option.label, " ").concat(option.value);
|
1764 |
+
};
|
1765 |
+
|
1766 |
+
var createFilter = function createFilter(config) {
|
1767 |
+
return function (option, rawInput) {
|
1768 |
+
var _ignoreCase$ignoreAcc = _objectSpread({
|
1769 |
+
ignoreCase: true,
|
1770 |
+
ignoreAccents: true,
|
1771 |
+
stringify: defaultStringify,
|
1772 |
+
trim: true,
|
1773 |
+
matchFrom: 'any'
|
1774 |
+
}, config),
|
1775 |
+
ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,
|
1776 |
+
ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,
|
1777 |
+
stringify = _ignoreCase$ignoreAcc.stringify,
|
1778 |
+
trim = _ignoreCase$ignoreAcc.trim,
|
1779 |
+
matchFrom = _ignoreCase$ignoreAcc.matchFrom;
|
1780 |
+
|
1781 |
+
var input = trim ? trimString(rawInput) : rawInput;
|
1782 |
+
var candidate = trim ? trimString(stringify(option)) : stringify(option);
|
1783 |
+
|
1784 |
+
if (ignoreCase) {
|
1785 |
+
input = input.toLowerCase();
|
1786 |
+
candidate = candidate.toLowerCase();
|
1787 |
+
}
|
1788 |
+
|
1789 |
+
if (ignoreAccents) {
|
1790 |
+
input = stripDiacritics(input);
|
1791 |
+
candidate = stripDiacritics(candidate);
|
1792 |
+
}
|
1793 |
+
|
1794 |
+
return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;
|
1795 |
+
};
|
1796 |
+
};
|
1797 |
+
|
1798 |
+
var A11yText = function A11yText(props) {
|
1799 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", _extends({
|
1800 |
+
className:
|
1801 |
+
/*#__PURE__*/
|
1802 |
+
|
1803 |
+
/*#__PURE__*/
|
1804 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
|
1805 |
+
label: 'a11yText',
|
1806 |
+
zIndex: 9999,
|
1807 |
+
border: 0,
|
1808 |
+
clip: 'rect(1px, 1px, 1px, 1px)',
|
1809 |
+
height: 1,
|
1810 |
+
width: 1,
|
1811 |
+
position: 'absolute',
|
1812 |
+
overflow: 'hidden',
|
1813 |
+
padding: 0,
|
1814 |
+
whiteSpace: 'nowrap',
|
1815 |
+
backgroundColor: 'red',
|
1816 |
+
color: 'blue'
|
1817 |
+
})
|
1818 |
+
}, props));
|
1819 |
+
};
|
1820 |
+
|
1821 |
+
var DummyInput =
|
1822 |
+
/*#__PURE__*/
|
1823 |
+
function (_Component) {
|
1824 |
+
_inherits(DummyInput, _Component);
|
1825 |
+
|
1826 |
+
function DummyInput() {
|
1827 |
+
_classCallCheck(this, DummyInput);
|
1828 |
+
|
1829 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(DummyInput).apply(this, arguments));
|
1830 |
+
}
|
1831 |
+
|
1832 |
+
_createClass(DummyInput, [{
|
1833 |
+
key: "render",
|
1834 |
+
value: function render() {
|
1835 |
+
var _this$props = this.props,
|
1836 |
+
inProp = _this$props.in,
|
1837 |
+
out = _this$props.out,
|
1838 |
+
onExited = _this$props.onExited,
|
1839 |
+
appear = _this$props.appear,
|
1840 |
+
enter = _this$props.enter,
|
1841 |
+
exit = _this$props.exit,
|
1842 |
+
innerRef = _this$props.innerRef,
|
1843 |
+
emotion = _this$props.emotion,
|
1844 |
+
props = _objectWithoutProperties(_this$props, ["in", "out", "onExited", "appear", "enter", "exit", "innerRef", "emotion"]);
|
1845 |
+
|
1846 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", _extends({
|
1847 |
+
ref: innerRef
|
1848 |
+
}, props, {
|
1849 |
+
className:
|
1850 |
+
/*#__PURE__*/
|
1851 |
+
|
1852 |
+
/*#__PURE__*/
|
1853 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
|
1854 |
+
label: 'dummyInput',
|
1855 |
+
// get rid of any default styles
|
1856 |
+
background: 0,
|
1857 |
+
border: 0,
|
1858 |
+
fontSize: 'inherit',
|
1859 |
+
outline: 0,
|
1860 |
+
padding: 0,
|
1861 |
+
// important! without `width` browsers won't allow focus
|
1862 |
+
width: 1,
|
1863 |
+
// remove cursor on desktop
|
1864 |
+
color: 'transparent',
|
1865 |
+
// remove cursor on mobile whilst maintaining "scroll into view" behaviour
|
1866 |
+
left: -100,
|
1867 |
+
opacity: 0,
|
1868 |
+
position: 'relative',
|
1869 |
+
transform: 'scale(0)'
|
1870 |
+
})
|
1871 |
+
}));
|
1872 |
+
}
|
1873 |
+
}]);
|
1874 |
+
|
1875 |
+
return DummyInput;
|
1876 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
1877 |
+
|
1878 |
+
var NodeResolver =
|
1879 |
+
/*#__PURE__*/
|
1880 |
+
function (_Component) {
|
1881 |
+
_inherits(NodeResolver, _Component);
|
1882 |
+
|
1883 |
+
function NodeResolver() {
|
1884 |
+
_classCallCheck(this, NodeResolver);
|
1885 |
+
|
1886 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(NodeResolver).apply(this, arguments));
|
1887 |
+
}
|
1888 |
+
|
1889 |
+
_createClass(NodeResolver, [{
|
1890 |
+
key: "componentDidMount",
|
1891 |
+
value: function componentDidMount() {
|
1892 |
+
this.props.innerRef(Object(__WEBPACK_IMPORTED_MODULE_3_react_dom__["findDOMNode"])(this));
|
1893 |
+
}
|
1894 |
+
}, {
|
1895 |
+
key: "componentWillUnmount",
|
1896 |
+
value: function componentWillUnmount() {
|
1897 |
+
this.props.innerRef(null);
|
1898 |
+
}
|
1899 |
+
}, {
|
1900 |
+
key: "render",
|
1901 |
+
value: function render() {
|
1902 |
+
return this.props.children;
|
1903 |
+
}
|
1904 |
+
}]);
|
1905 |
+
|
1906 |
+
return NodeResolver;
|
1907 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
1908 |
+
|
1909 |
+
var STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];
|
1910 |
+
var LOCK_STYLES = {
|
1911 |
+
boxSizing: 'border-box',
|
1912 |
+
// account for possible declaration `width: 100%;` on body
|
1913 |
+
overflow: 'hidden',
|
1914 |
+
position: 'relative',
|
1915 |
+
height: '100%'
|
1916 |
+
};
|
1917 |
+
|
1918 |
+
function preventTouchMove(e) {
|
1919 |
+
e.preventDefault();
|
1920 |
+
}
|
1921 |
+
function allowTouchMove(e) {
|
1922 |
+
e.stopPropagation();
|
1923 |
+
}
|
1924 |
+
function preventInertiaScroll() {
|
1925 |
+
var top = this.scrollTop;
|
1926 |
+
var totalScroll = this.scrollHeight;
|
1927 |
+
var currentScroll = top + this.offsetHeight;
|
1928 |
+
|
1929 |
+
if (top === 0) {
|
1930 |
+
this.scrollTop = 1;
|
1931 |
+
} else if (currentScroll === totalScroll) {
|
1932 |
+
this.scrollTop = top - 1;
|
1933 |
+
}
|
1934 |
+
} // `ontouchstart` check works on most browsers
|
1935 |
+
// `maxTouchPoints` works on IE10/11 and Surface
|
1936 |
+
|
1937 |
+
function isTouchDevice() {
|
1938 |
+
return 'ontouchstart' in window || navigator.maxTouchPoints;
|
1939 |
+
}
|
1940 |
+
|
1941 |
+
var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
1942 |
+
var activeScrollLocks = 0;
|
1943 |
+
|
1944 |
+
var ScrollLock =
|
1945 |
+
/*#__PURE__*/
|
1946 |
+
function (_Component) {
|
1947 |
+
_inherits(ScrollLock, _Component);
|
1948 |
+
|
1949 |
+
function ScrollLock() {
|
1950 |
+
var _getPrototypeOf2;
|
1951 |
+
|
1952 |
+
var _this;
|
1953 |
+
|
1954 |
+
_classCallCheck(this, ScrollLock);
|
1955 |
+
|
1956 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1957 |
+
args[_key] = arguments[_key];
|
1958 |
+
}
|
1959 |
+
|
1960 |
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollLock)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
1961 |
+
|
1962 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "originalStyles", {});
|
1963 |
+
|
1964 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "listenerOptions", {
|
1965 |
+
capture: false,
|
1966 |
+
passive: false
|
1967 |
+
});
|
1968 |
+
|
1969 |
+
return _this;
|
1970 |
+
}
|
1971 |
+
|
1972 |
+
_createClass(ScrollLock, [{
|
1973 |
+
key: "componentDidMount",
|
1974 |
+
value: function componentDidMount() {
|
1975 |
+
var _this2 = this;
|
1976 |
+
|
1977 |
+
if (!canUseDOM) return;
|
1978 |
+
var _this$props = this.props,
|
1979 |
+
accountForScrollbars = _this$props.accountForScrollbars,
|
1980 |
+
touchScrollTarget = _this$props.touchScrollTarget;
|
1981 |
+
var target = document.body;
|
1982 |
+
var targetStyle = target && target.style;
|
1983 |
+
|
1984 |
+
if (accountForScrollbars) {
|
1985 |
+
// store any styles already applied to the body
|
1986 |
+
STYLE_KEYS.forEach(function (key) {
|
1987 |
+
var val = targetStyle && targetStyle[key];
|
1988 |
+
_this2.originalStyles[key] = val;
|
1989 |
+
});
|
1990 |
+
} // apply the lock styles and padding if this is the first scroll lock
|
1991 |
+
|
1992 |
+
|
1993 |
+
if (accountForScrollbars && activeScrollLocks < 1) {
|
1994 |
+
var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;
|
1995 |
+
var clientWidth = document.body ? document.body.clientWidth : 0;
|
1996 |
+
var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;
|
1997 |
+
Object.keys(LOCK_STYLES).forEach(function (key) {
|
1998 |
+
var val = LOCK_STYLES[key];
|
1999 |
+
|
2000 |
+
if (targetStyle) {
|
2001 |
+
targetStyle[key] = val;
|
2002 |
+
}
|
2003 |
+
});
|
2004 |
+
|
2005 |
+
if (targetStyle) {
|
2006 |
+
targetStyle.paddingRight = "".concat(adjustedPadding, "px");
|
2007 |
+
}
|
2008 |
+
} // account for touch devices
|
2009 |
+
|
2010 |
+
|
2011 |
+
if (target && isTouchDevice()) {
|
2012 |
+
// Mobile Safari ignores { overflow: hidden } declaration on the body.
|
2013 |
+
target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target
|
2014 |
+
|
2015 |
+
if (touchScrollTarget) {
|
2016 |
+
touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
|
2017 |
+
touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);
|
2018 |
+
}
|
2019 |
+
} // increment active scroll locks
|
2020 |
+
|
2021 |
+
|
2022 |
+
activeScrollLocks += 1;
|
2023 |
+
}
|
2024 |
+
}, {
|
2025 |
+
key: "componentWillUnmount",
|
2026 |
+
value: function componentWillUnmount() {
|
2027 |
+
var _this3 = this;
|
2028 |
+
|
2029 |
+
if (!canUseDOM) return;
|
2030 |
+
var _this$props2 = this.props,
|
2031 |
+
accountForScrollbars = _this$props2.accountForScrollbars,
|
2032 |
+
touchScrollTarget = _this$props2.touchScrollTarget;
|
2033 |
+
var target = document.body;
|
2034 |
+
var targetStyle = target && target.style; // safely decrement active scroll locks
|
2035 |
+
|
2036 |
+
activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any
|
2037 |
+
|
2038 |
+
if (accountForScrollbars && activeScrollLocks < 1) {
|
2039 |
+
STYLE_KEYS.forEach(function (key) {
|
2040 |
+
var val = _this3.originalStyles[key];
|
2041 |
+
|
2042 |
+
if (targetStyle) {
|
2043 |
+
targetStyle[key] = val;
|
2044 |
+
}
|
2045 |
+
});
|
2046 |
+
} // remove touch listeners
|
2047 |
+
|
2048 |
+
|
2049 |
+
if (target && isTouchDevice()) {
|
2050 |
+
target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);
|
2051 |
+
|
2052 |
+
if (touchScrollTarget) {
|
2053 |
+
touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);
|
2054 |
+
touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);
|
2055 |
+
}
|
2056 |
+
}
|
2057 |
+
}
|
2058 |
+
}, {
|
2059 |
+
key: "render",
|
2060 |
+
value: function render() {
|
2061 |
+
return null;
|
2062 |
+
}
|
2063 |
+
}]);
|
2064 |
+
|
2065 |
+
return ScrollLock;
|
2066 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
2067 |
+
|
2068 |
+
_defineProperty(ScrollLock, "defaultProps", {
|
2069 |
+
accountForScrollbars: true
|
2070 |
+
});
|
2071 |
+
|
2072 |
+
// NOTE:
|
2073 |
+
// We shouldn't need this after updating to React v16.3.0, which introduces:
|
2074 |
+
// - createRef() https://reactjs.org/docs/react-api.html#reactcreateref
|
2075 |
+
// - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref
|
2076 |
+
var ScrollBlock =
|
2077 |
+
/*#__PURE__*/
|
2078 |
+
function (_PureComponent) {
|
2079 |
+
_inherits(ScrollBlock, _PureComponent);
|
2080 |
+
|
2081 |
+
function ScrollBlock() {
|
2082 |
+
var _getPrototypeOf2;
|
2083 |
+
|
2084 |
+
var _this;
|
2085 |
+
|
2086 |
+
_classCallCheck(this, ScrollBlock);
|
2087 |
+
|
2088 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2089 |
+
args[_key] = arguments[_key];
|
2090 |
+
}
|
2091 |
+
|
2092 |
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollBlock)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
2093 |
+
|
2094 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
|
2095 |
+
touchScrollTarget: null
|
2096 |
+
});
|
2097 |
+
|
2098 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getScrollTarget", function (ref) {
|
2099 |
+
if (ref === _this.state.touchScrollTarget) return;
|
2100 |
+
|
2101 |
+
_this.setState({
|
2102 |
+
touchScrollTarget: ref
|
2103 |
+
});
|
2104 |
+
});
|
2105 |
+
|
2106 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blurSelectInput", function () {
|
2107 |
+
if (document.activeElement) {
|
2108 |
+
document.activeElement.blur();
|
2109 |
+
}
|
2110 |
+
});
|
2111 |
+
|
2112 |
+
return _this;
|
2113 |
+
}
|
2114 |
+
|
2115 |
+
_createClass(ScrollBlock, [{
|
2116 |
+
key: "render",
|
2117 |
+
value: function render() {
|
2118 |
+
var _this$props = this.props,
|
2119 |
+
children = _this$props.children,
|
2120 |
+
isEnabled = _this$props.isEnabled;
|
2121 |
+
var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled
|
2122 |
+
|
2123 |
+
if (!isEnabled) return children;
|
2124 |
+
/*
|
2125 |
+
* Div
|
2126 |
+
* ------------------------------
|
2127 |
+
* blocks scrolling on non-body elements behind the menu
|
2128 |
+
* NodeResolver
|
2129 |
+
* ------------------------------
|
2130 |
+
* we need a reference to the scrollable element to "unlock" scroll on
|
2131 |
+
* mobile devices
|
2132 |
+
* ScrollLock
|
2133 |
+
* ------------------------------
|
2134 |
+
* actually does the scroll locking
|
2135 |
+
*/
|
2136 |
+
|
2137 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
2138 |
+
onClick: this.blurSelectInput,
|
2139 |
+
className:
|
2140 |
+
/*#__PURE__*/
|
2141 |
+
|
2142 |
+
/*#__PURE__*/
|
2143 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
|
2144 |
+
position: 'fixed',
|
2145 |
+
left: 0,
|
2146 |
+
bottom: 0,
|
2147 |
+
right: 0,
|
2148 |
+
top: 0
|
2149 |
+
})
|
2150 |
+
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, {
|
2151 |
+
innerRef: this.getScrollTarget
|
2152 |
+
}, children), touchScrollTarget ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollLock, {
|
2153 |
+
touchScrollTarget: touchScrollTarget
|
2154 |
+
}) : null);
|
2155 |
+
}
|
2156 |
+
}]);
|
2157 |
+
|
2158 |
+
return ScrollBlock;
|
2159 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["PureComponent"]);
|
2160 |
+
|
2161 |
+
var ScrollCaptor =
|
2162 |
+
/*#__PURE__*/
|
2163 |
+
function (_Component) {
|
2164 |
+
_inherits(ScrollCaptor, _Component);
|
2165 |
+
|
2166 |
+
function ScrollCaptor() {
|
2167 |
+
var _getPrototypeOf2;
|
2168 |
+
|
2169 |
+
var _this;
|
2170 |
+
|
2171 |
+
_classCallCheck(this, ScrollCaptor);
|
2172 |
+
|
2173 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2174 |
+
args[_key] = arguments[_key];
|
2175 |
+
}
|
2176 |
+
|
2177 |
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollCaptor)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
2178 |
+
|
2179 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isBottom", false);
|
2180 |
+
|
2181 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isTop", false);
|
2182 |
+
|
2183 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scrollTarget", void 0);
|
2184 |
+
|
2185 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "touchStart", void 0);
|
2186 |
+
|
2187 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cancelScroll", function (event) {
|
2188 |
+
event.preventDefault();
|
2189 |
+
event.stopPropagation();
|
2190 |
+
});
|
2191 |
+
|
2192 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleEventDelta", function (event, delta) {
|
2193 |
+
var _this$props = _this.props,
|
2194 |
+
onBottomArrive = _this$props.onBottomArrive,
|
2195 |
+
onBottomLeave = _this$props.onBottomLeave,
|
2196 |
+
onTopArrive = _this$props.onTopArrive,
|
2197 |
+
onTopLeave = _this$props.onTopLeave;
|
2198 |
+
var _this$scrollTarget = _this.scrollTarget,
|
2199 |
+
scrollTop = _this$scrollTarget.scrollTop,
|
2200 |
+
scrollHeight = _this$scrollTarget.scrollHeight,
|
2201 |
+
clientHeight = _this$scrollTarget.clientHeight;
|
2202 |
+
var target = _this.scrollTarget;
|
2203 |
+
var isDeltaPositive = delta > 0;
|
2204 |
+
var availableScroll = scrollHeight - clientHeight - scrollTop;
|
2205 |
+
var shouldCancelScroll = false; // reset bottom/top flags
|
2206 |
+
|
2207 |
+
if (availableScroll > delta && _this.isBottom) {
|
2208 |
+
if (onBottomLeave) onBottomLeave(event);
|
2209 |
+
_this.isBottom = false;
|
2210 |
+
}
|
2211 |
+
|
2212 |
+
if (isDeltaPositive && _this.isTop) {
|
2213 |
+
if (onTopLeave) onTopLeave(event);
|
2214 |
+
_this.isTop = false;
|
2215 |
+
} // bottom limit
|
2216 |
+
|
2217 |
+
|
2218 |
+
if (isDeltaPositive && delta > availableScroll) {
|
2219 |
+
if (onBottomArrive && !_this.isBottom) {
|
2220 |
+
onBottomArrive(event);
|
2221 |
+
}
|
2222 |
+
|
2223 |
+
target.scrollTop = scrollHeight;
|
2224 |
+
shouldCancelScroll = true;
|
2225 |
+
_this.isBottom = true; // top limit
|
2226 |
+
} else if (!isDeltaPositive && -delta > scrollTop) {
|
2227 |
+
if (onTopArrive && !_this.isTop) {
|
2228 |
+
onTopArrive(event);
|
2229 |
+
}
|
2230 |
+
|
2231 |
+
target.scrollTop = 0;
|
2232 |
+
shouldCancelScroll = true;
|
2233 |
+
_this.isTop = true;
|
2234 |
+
} // cancel scroll
|
2235 |
+
|
2236 |
+
|
2237 |
+
if (shouldCancelScroll) {
|
2238 |
+
_this.cancelScroll(event);
|
2239 |
+
}
|
2240 |
+
});
|
2241 |
+
|
2242 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onWheel", function (event) {
|
2243 |
+
_this.handleEventDelta(event, event.deltaY);
|
2244 |
+
});
|
2245 |
+
|
2246 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchStart", function (event) {
|
2247 |
+
// set touch start so we can calculate touchmove delta
|
2248 |
+
_this.touchStart = event.changedTouches[0].clientY;
|
2249 |
+
});
|
2250 |
+
|
2251 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchMove", function (event) {
|
2252 |
+
var deltaY = _this.touchStart - event.changedTouches[0].clientY;
|
2253 |
+
|
2254 |
+
_this.handleEventDelta(event, deltaY);
|
2255 |
+
});
|
2256 |
+
|
2257 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getScrollTarget", function (ref) {
|
2258 |
+
_this.scrollTarget = ref;
|
2259 |
+
});
|
2260 |
+
|
2261 |
+
return _this;
|
2262 |
+
}
|
2263 |
+
|
2264 |
+
_createClass(ScrollCaptor, [{
|
2265 |
+
key: "componentDidMount",
|
2266 |
+
value: function componentDidMount() {
|
2267 |
+
this.startListening(this.scrollTarget);
|
2268 |
+
}
|
2269 |
+
}, {
|
2270 |
+
key: "componentWillUnmount",
|
2271 |
+
value: function componentWillUnmount() {
|
2272 |
+
this.stopListening(this.scrollTarget);
|
2273 |
+
}
|
2274 |
+
}, {
|
2275 |
+
key: "startListening",
|
2276 |
+
value: function startListening(el) {
|
2277 |
+
// bail early if no scroll available
|
2278 |
+
if (!el) return;
|
2279 |
+
if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢
|
2280 |
+
|
2281 |
+
if (typeof el.addEventListener === 'function') {
|
2282 |
+
el.addEventListener('wheel', this.onWheel, false);
|
2283 |
+
}
|
2284 |
+
|
2285 |
+
if (typeof el.addEventListener === 'function') {
|
2286 |
+
el.addEventListener('touchstart', this.onTouchStart, false);
|
2287 |
+
}
|
2288 |
+
|
2289 |
+
if (typeof el.addEventListener === 'function') {
|
2290 |
+
el.addEventListener('touchmove', this.onTouchMove, false);
|
2291 |
+
}
|
2292 |
+
}
|
2293 |
+
}, {
|
2294 |
+
key: "stopListening",
|
2295 |
+
value: function stopListening(el) {
|
2296 |
+
// bail early if no scroll available
|
2297 |
+
if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢
|
2298 |
+
|
2299 |
+
if (typeof el.removeEventListener === 'function') {
|
2300 |
+
el.removeEventListener('wheel', this.onWheel, false);
|
2301 |
+
}
|
2302 |
+
|
2303 |
+
if (typeof el.removeEventListener === 'function') {
|
2304 |
+
el.removeEventListener('touchstart', this.onTouchStart, false);
|
2305 |
+
}
|
2306 |
+
|
2307 |
+
if (typeof el.removeEventListener === 'function') {
|
2308 |
+
el.removeEventListener('touchmove', this.onTouchMove, false);
|
2309 |
+
}
|
2310 |
+
}
|
2311 |
+
}, {
|
2312 |
+
key: "render",
|
2313 |
+
value: function render() {
|
2314 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NodeResolver, {
|
2315 |
+
innerRef: this.getScrollTarget
|
2316 |
+
}, this.props.children);
|
2317 |
+
}
|
2318 |
+
}]);
|
2319 |
+
|
2320 |
+
return ScrollCaptor;
|
2321 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
2322 |
+
|
2323 |
+
var ScrollCaptorSwitch =
|
2324 |
+
/*#__PURE__*/
|
2325 |
+
function (_Component2) {
|
2326 |
+
_inherits(ScrollCaptorSwitch, _Component2);
|
2327 |
+
|
2328 |
+
function ScrollCaptorSwitch() {
|
2329 |
+
_classCallCheck(this, ScrollCaptorSwitch);
|
2330 |
+
|
2331 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(ScrollCaptorSwitch).apply(this, arguments));
|
2332 |
+
}
|
2333 |
+
|
2334 |
+
_createClass(ScrollCaptorSwitch, [{
|
2335 |
+
key: "render",
|
2336 |
+
value: function render() {
|
2337 |
+
var _this$props2 = this.props,
|
2338 |
+
isEnabled = _this$props2.isEnabled,
|
2339 |
+
props = _objectWithoutProperties(_this$props2, ["isEnabled"]);
|
2340 |
+
|
2341 |
+
return isEnabled ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptor, props) : this.props.children;
|
2342 |
+
}
|
2343 |
+
}]);
|
2344 |
+
|
2345 |
+
return ScrollCaptorSwitch;
|
2346 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
2347 |
+
|
2348 |
+
_defineProperty(ScrollCaptorSwitch, "defaultProps", {
|
2349 |
+
isEnabled: true
|
2350 |
+
});
|
2351 |
+
|
2352 |
+
var instructionsAriaMessage = function instructionsAriaMessage(event) {
|
2353 |
+
var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
2354 |
+
var isSearchable = context.isSearchable,
|
2355 |
+
isMulti = context.isMulti,
|
2356 |
+
label = context.label,
|
2357 |
+
isDisabled = context.isDisabled;
|
2358 |
+
|
2359 |
+
switch (event) {
|
2360 |
+
case 'menu':
|
2361 |
+
return "Use Up and Down to choose options".concat(isDisabled ? '' : ', press Enter to select the currently focused option', ", press Escape to exit the menu, press Tab to select the option and exit the menu.");
|
2362 |
+
|
2363 |
+
case 'input':
|
2364 |
+
return "".concat(label ? label : 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
|
2365 |
+
|
2366 |
+
case 'value':
|
2367 |
+
return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
|
2368 |
+
}
|
2369 |
+
};
|
2370 |
+
var valueEventAriaMessage = function valueEventAriaMessage(event, context) {
|
2371 |
+
var value = context.value,
|
2372 |
+
isDisabled = context.isDisabled;
|
2373 |
+
if (!value) return;
|
2374 |
+
|
2375 |
+
switch (event) {
|
2376 |
+
case 'deselect-option':
|
2377 |
+
case 'pop-value':
|
2378 |
+
case 'remove-value':
|
2379 |
+
return "option ".concat(value, ", deselected.");
|
2380 |
+
|
2381 |
+
case 'select-option':
|
2382 |
+
return isDisabled ? "option ".concat(value, " is disabled. Select another option.") : "option ".concat(value, ", selected.");
|
2383 |
+
}
|
2384 |
+
};
|
2385 |
+
var valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {
|
2386 |
+
var focusedValue = _ref.focusedValue,
|
2387 |
+
getOptionLabel = _ref.getOptionLabel,
|
2388 |
+
selectValue = _ref.selectValue;
|
2389 |
+
return "value ".concat(getOptionLabel(focusedValue), " focused, ").concat(selectValue.indexOf(focusedValue) + 1, " of ").concat(selectValue.length, ".");
|
2390 |
+
};
|
2391 |
+
var optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {
|
2392 |
+
var focusedOption = _ref2.focusedOption,
|
2393 |
+
getOptionLabel = _ref2.getOptionLabel,
|
2394 |
+
options = _ref2.options;
|
2395 |
+
return "option ".concat(getOptionLabel(focusedOption), " focused").concat(focusedOption.isDisabled ? ' disabled' : '', ", ").concat(options.indexOf(focusedOption) + 1, " of ").concat(options.length, ".");
|
2396 |
+
};
|
2397 |
+
var resultsAriaMessage = function resultsAriaMessage(_ref3) {
|
2398 |
+
var inputValue = _ref3.inputValue,
|
2399 |
+
screenReaderMessage = _ref3.screenReaderMessage;
|
2400 |
+
return "".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', ".");
|
2401 |
+
};
|
2402 |
+
|
2403 |
+
var formatGroupLabel = function formatGroupLabel(group) {
|
2404 |
+
return group.label;
|
2405 |
+
};
|
2406 |
+
var getOptionLabel = function getOptionLabel(option) {
|
2407 |
+
return option.label;
|
2408 |
+
};
|
2409 |
+
var getOptionValue = function getOptionValue(option) {
|
2410 |
+
return option.value;
|
2411 |
+
};
|
2412 |
+
var isOptionDisabled = function isOptionDisabled(option) {
|
2413 |
+
return !!option.isDisabled;
|
2414 |
+
};
|
2415 |
+
|
2416 |
+
var containerCSS = function containerCSS(_ref) {
|
2417 |
+
var isDisabled = _ref.isDisabled,
|
2418 |
+
isRtl = _ref.isRtl;
|
2419 |
+
return {
|
2420 |
+
label: 'container',
|
2421 |
+
direction: isRtl ? 'rtl' : null,
|
2422 |
+
pointerEvents: isDisabled ? 'none' : null,
|
2423 |
+
// cancel mouse events when disabled
|
2424 |
+
position: 'relative'
|
2425 |
+
};
|
2426 |
+
};
|
2427 |
+
var SelectContainer = function SelectContainer(props) {
|
2428 |
+
var children = props.children,
|
2429 |
+
className = props.className,
|
2430 |
+
cx = props.cx,
|
2431 |
+
getStyles = props.getStyles,
|
2432 |
+
innerProps = props.innerProps,
|
2433 |
+
isDisabled = props.isDisabled,
|
2434 |
+
isRtl = props.isRtl;
|
2435 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
2436 |
+
className: cx(
|
2437 |
+
/*#__PURE__*/
|
2438 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('container', props)), {
|
2439 |
+
'--is-disabled': isDisabled,
|
2440 |
+
'--is-rtl': isRtl
|
2441 |
+
}, className)
|
2442 |
+
}, innerProps), children);
|
2443 |
+
}; // ==============================
|
2444 |
+
// Value Container
|
2445 |
+
// ==============================
|
2446 |
+
|
2447 |
+
var valueContainerCSS = function valueContainerCSS(_ref2) {
|
2448 |
+
var spacing = _ref2.theme.spacing;
|
2449 |
+
return {
|
2450 |
+
alignItems: 'center',
|
2451 |
+
display: 'flex',
|
2452 |
+
flex: 1,
|
2453 |
+
flexWrap: 'wrap',
|
2454 |
+
padding: "".concat(spacing.baseUnit / 2, "px ").concat(spacing.baseUnit * 2, "px"),
|
2455 |
+
WebkitOverflowScrolling: 'touch',
|
2456 |
+
position: 'relative',
|
2457 |
+
overflow: 'hidden'
|
2458 |
+
};
|
2459 |
+
};
|
2460 |
+
var ValueContainer =
|
2461 |
+
/*#__PURE__*/
|
2462 |
+
function (_Component) {
|
2463 |
+
_inherits(ValueContainer, _Component);
|
2464 |
+
|
2465 |
+
function ValueContainer() {
|
2466 |
+
_classCallCheck(this, ValueContainer);
|
2467 |
+
|
2468 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(ValueContainer).apply(this, arguments));
|
2469 |
+
}
|
2470 |
+
|
2471 |
+
_createClass(ValueContainer, [{
|
2472 |
+
key: "render",
|
2473 |
+
value: function render() {
|
2474 |
+
var _this$props = this.props,
|
2475 |
+
children = _this$props.children,
|
2476 |
+
className = _this$props.className,
|
2477 |
+
cx = _this$props.cx,
|
2478 |
+
isMulti = _this$props.isMulti,
|
2479 |
+
getStyles = _this$props.getStyles,
|
2480 |
+
hasValue = _this$props.hasValue;
|
2481 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
2482 |
+
className: cx(
|
2483 |
+
/*#__PURE__*/
|
2484 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('valueContainer', this.props)), {
|
2485 |
+
'value-container': true,
|
2486 |
+
'value-container--is-multi': isMulti,
|
2487 |
+
'value-container--has-value': hasValue
|
2488 |
+
}, className)
|
2489 |
+
}, children);
|
2490 |
+
}
|
2491 |
+
}]);
|
2492 |
+
|
2493 |
+
return ValueContainer;
|
2494 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]); // ==============================
|
2495 |
+
// Indicator Container
|
2496 |
+
// ==============================
|
2497 |
+
|
2498 |
+
var indicatorsContainerCSS = function indicatorsContainerCSS() {
|
2499 |
+
return {
|
2500 |
+
alignItems: 'center',
|
2501 |
+
alignSelf: 'stretch',
|
2502 |
+
display: 'flex',
|
2503 |
+
flexShrink: 0
|
2504 |
+
};
|
2505 |
+
};
|
2506 |
+
var IndicatorsContainer = function IndicatorsContainer(props) {
|
2507 |
+
var children = props.children,
|
2508 |
+
className = props.className,
|
2509 |
+
cx = props.cx,
|
2510 |
+
getStyles = props.getStyles;
|
2511 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
2512 |
+
className: cx(
|
2513 |
+
/*#__PURE__*/
|
2514 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('indicatorsContainer', props)), {
|
2515 |
+
'indicators': true
|
2516 |
+
}, className)
|
2517 |
+
}, children);
|
2518 |
+
};
|
2519 |
+
|
2520 |
+
// ==============================
|
2521 |
+
// Dropdown & Clear Icons
|
2522 |
+
// ==============================
|
2523 |
+
var Svg = function Svg(_ref) {
|
2524 |
+
var size = _ref.size,
|
2525 |
+
props = _objectWithoutProperties(_ref, ["size"]);
|
2526 |
+
|
2527 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("svg", _extends({
|
2528 |
+
height: size,
|
2529 |
+
width: size,
|
2530 |
+
viewBox: "0 0 20 20",
|
2531 |
+
"aria-hidden": "true",
|
2532 |
+
focusable: "false",
|
2533 |
+
className:
|
2534 |
+
/*#__PURE__*/
|
2535 |
+
|
2536 |
+
/*#__PURE__*/
|
2537 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
|
2538 |
+
display: 'inline-block',
|
2539 |
+
fill: 'currentColor',
|
2540 |
+
lineHeight: 1,
|
2541 |
+
stroke: 'currentColor',
|
2542 |
+
strokeWidth: 0
|
2543 |
+
})
|
2544 |
+
}, props));
|
2545 |
+
};
|
2546 |
+
|
2547 |
+
var CrossIcon = function CrossIcon(props) {
|
2548 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Svg, _extends({
|
2549 |
+
size: 20
|
2550 |
+
}, props), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", {
|
2551 |
+
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
2552 |
+
}));
|
2553 |
+
};
|
2554 |
+
var DownChevron = function DownChevron(props) {
|
2555 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Svg, _extends({
|
2556 |
+
size: 20
|
2557 |
+
}, props), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("path", {
|
2558 |
+
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
2559 |
+
}));
|
2560 |
+
}; // ==============================
|
2561 |
+
// Dropdown & Clear Buttons
|
2562 |
+
// ==============================
|
2563 |
+
|
2564 |
+
var baseCSS = function baseCSS(_ref2) {
|
2565 |
+
var isFocused = _ref2.isFocused,
|
2566 |
+
_ref2$theme = _ref2.theme,
|
2567 |
+
baseUnit = _ref2$theme.spacing.baseUnit,
|
2568 |
+
colors = _ref2$theme.colors;
|
2569 |
+
return {
|
2570 |
+
label: 'indicatorContainer',
|
2571 |
+
color: isFocused ? colors.neutral60 : colors.neutral20,
|
2572 |
+
display: 'flex',
|
2573 |
+
padding: baseUnit * 2,
|
2574 |
+
transition: 'color 150ms',
|
2575 |
+
':hover': {
|
2576 |
+
color: isFocused ? colors.neutral80 : colors.neutral40
|
2577 |
+
}
|
2578 |
+
};
|
2579 |
+
};
|
2580 |
+
|
2581 |
+
var dropdownIndicatorCSS = baseCSS;
|
2582 |
+
var DropdownIndicator = function DropdownIndicator(props) {
|
2583 |
+
var children = props.children,
|
2584 |
+
className = props.className,
|
2585 |
+
cx = props.cx,
|
2586 |
+
getStyles = props.getStyles,
|
2587 |
+
innerProps = props.innerProps;
|
2588 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({}, innerProps, {
|
2589 |
+
className: cx(
|
2590 |
+
/*#__PURE__*/
|
2591 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('dropdownIndicator', props)), {
|
2592 |
+
'indicator': true,
|
2593 |
+
'dropdown-indicator': true
|
2594 |
+
}, className)
|
2595 |
+
}), children || __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DownChevron, null));
|
2596 |
+
};
|
2597 |
+
var clearIndicatorCSS = baseCSS;
|
2598 |
+
var ClearIndicator = function ClearIndicator(props) {
|
2599 |
+
var children = props.children,
|
2600 |
+
className = props.className,
|
2601 |
+
cx = props.cx,
|
2602 |
+
getStyles = props.getStyles,
|
2603 |
+
innerProps = props.innerProps;
|
2604 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({}, innerProps, {
|
2605 |
+
className: cx(
|
2606 |
+
/*#__PURE__*/
|
2607 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('clearIndicator', props)), {
|
2608 |
+
'indicator': true,
|
2609 |
+
'clear-indicator': true
|
2610 |
+
}, className)
|
2611 |
+
}), children || __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CrossIcon, null));
|
2612 |
+
}; // ==============================
|
2613 |
+
// Separator
|
2614 |
+
// ==============================
|
2615 |
+
|
2616 |
+
var indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref3) {
|
2617 |
+
var isDisabled = _ref3.isDisabled,
|
2618 |
+
_ref3$theme = _ref3.theme,
|
2619 |
+
baseUnit = _ref3$theme.spacing.baseUnit,
|
2620 |
+
colors = _ref3$theme.colors;
|
2621 |
+
return {
|
2622 |
+
label: 'indicatorSeparator',
|
2623 |
+
alignSelf: 'stretch',
|
2624 |
+
backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,
|
2625 |
+
marginBottom: baseUnit * 2,
|
2626 |
+
marginTop: baseUnit * 2,
|
2627 |
+
width: 1
|
2628 |
+
};
|
2629 |
+
};
|
2630 |
+
var IndicatorSeparator = function IndicatorSeparator(props) {
|
2631 |
+
var className = props.className,
|
2632 |
+
cx = props.cx,
|
2633 |
+
getStyles = props.getStyles,
|
2634 |
+
innerProps = props.innerProps;
|
2635 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", _extends({}, innerProps, {
|
2636 |
+
className: cx(
|
2637 |
+
/*#__PURE__*/
|
2638 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('indicatorSeparator', props)), {
|
2639 |
+
'indicator-separator': true
|
2640 |
+
}, className)
|
2641 |
+
}));
|
2642 |
+
}; // ==============================
|
2643 |
+
// Loading
|
2644 |
+
// ==============================
|
2645 |
+
|
2646 |
+
var keyframesName = 'react-select-loading-indicator';
|
2647 |
+
var keyframesInjected = false;
|
2648 |
+
var loadingIndicatorCSS = function loadingIndicatorCSS(_ref4) {
|
2649 |
+
var isFocused = _ref4.isFocused,
|
2650 |
+
size = _ref4.size,
|
2651 |
+
_ref4$theme = _ref4.theme,
|
2652 |
+
colors = _ref4$theme.colors,
|
2653 |
+
baseUnit = _ref4$theme.spacing.baseUnit;
|
2654 |
+
return {
|
2655 |
+
label: 'loadingIndicator',
|
2656 |
+
color: isFocused ? colors.neutral60 : colors.neutral20,
|
2657 |
+
display: 'flex',
|
2658 |
+
padding: baseUnit * 2,
|
2659 |
+
transition: 'color 150ms',
|
2660 |
+
alignSelf: 'center',
|
2661 |
+
fontSize: size,
|
2662 |
+
lineHeight: 1,
|
2663 |
+
marginRight: size,
|
2664 |
+
textAlign: 'center',
|
2665 |
+
verticalAlign: 'middle'
|
2666 |
+
};
|
2667 |
+
};
|
2668 |
+
|
2669 |
+
var LoadingDot = function LoadingDot(_ref5) {
|
2670 |
+
var color = _ref5.color,
|
2671 |
+
delay = _ref5.delay,
|
2672 |
+
offset = _ref5.offset;
|
2673 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("span", {
|
2674 |
+
className:
|
2675 |
+
/*#__PURE__*/
|
2676 |
+
|
2677 |
+
/*#__PURE__*/
|
2678 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])({
|
2679 |
+
animationDuration: '1s',
|
2680 |
+
animationDelay: "".concat(delay, "ms"),
|
2681 |
+
animationIterationCount: 'infinite',
|
2682 |
+
animationName: keyframesName,
|
2683 |
+
animationTimingFunction: 'ease-in-out',
|
2684 |
+
backgroundColor: color,
|
2685 |
+
borderRadius: '1em',
|
2686 |
+
display: 'inline-block',
|
2687 |
+
marginLeft: offset ? '1em' : null,
|
2688 |
+
height: '1em',
|
2689 |
+
verticalAlign: 'top',
|
2690 |
+
width: '1em'
|
2691 |
+
})
|
2692 |
+
});
|
2693 |
+
};
|
2694 |
+
|
2695 |
+
var LoadingIndicator = function LoadingIndicator(props) {
|
2696 |
+
var className = props.className,
|
2697 |
+
cx = props.cx,
|
2698 |
+
getStyles = props.getStyles,
|
2699 |
+
innerProps = props.innerProps,
|
2700 |
+
isFocused = props.isFocused,
|
2701 |
+
isRtl = props.isRtl,
|
2702 |
+
colors = props.theme.colors;
|
2703 |
+
var color = isFocused ? colors.neutral80 : colors.neutral20;
|
2704 |
+
|
2705 |
+
if (!keyframesInjected) {
|
2706 |
+
// eslint-disable-next-line no-unused-expressions
|
2707 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["b" /* injectGlobal */])("@keyframes ", keyframesName, "{0%,80%,100%{opacity:0;}40%{opacity:1;}};");
|
2708 |
+
keyframesInjected = true;
|
2709 |
+
}
|
2710 |
+
|
2711 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({}, innerProps, {
|
2712 |
+
className: cx(
|
2713 |
+
/*#__PURE__*/
|
2714 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('loadingIndicator', props)), {
|
2715 |
+
'indicator': true,
|
2716 |
+
'loading-indicator': true
|
2717 |
+
}, className)
|
2718 |
+
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingDot, {
|
2719 |
+
color: color,
|
2720 |
+
delay: 0,
|
2721 |
+
offset: isRtl
|
2722 |
+
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingDot, {
|
2723 |
+
color: color,
|
2724 |
+
delay: 160,
|
2725 |
+
offset: true
|
2726 |
+
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingDot, {
|
2727 |
+
color: color,
|
2728 |
+
delay: 320,
|
2729 |
+
offset: !isRtl
|
2730 |
+
}));
|
2731 |
+
};
|
2732 |
+
LoadingIndicator.defaultProps = {
|
2733 |
+
size: 4
|
2734 |
+
};
|
2735 |
+
|
2736 |
+
var css$1 = function css$$1(_ref) {
|
2737 |
+
var isDisabled = _ref.isDisabled,
|
2738 |
+
isFocused = _ref.isFocused,
|
2739 |
+
_ref$theme = _ref.theme,
|
2740 |
+
colors = _ref$theme.colors,
|
2741 |
+
borderRadius = _ref$theme.borderRadius,
|
2742 |
+
spacing = _ref$theme.spacing;
|
2743 |
+
return {
|
2744 |
+
label: 'control',
|
2745 |
+
alignItems: 'center',
|
2746 |
+
backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,
|
2747 |
+
borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,
|
2748 |
+
borderRadius: borderRadius,
|
2749 |
+
borderStyle: 'solid',
|
2750 |
+
borderWidth: 1,
|
2751 |
+
boxShadow: isFocused ? "0 0 0 1px ".concat(colors.primary) : null,
|
2752 |
+
cursor: 'default',
|
2753 |
+
display: 'flex',
|
2754 |
+
flexWrap: 'wrap',
|
2755 |
+
justifyContent: 'space-between',
|
2756 |
+
minHeight: spacing.controlHeight,
|
2757 |
+
outline: '0 !important',
|
2758 |
+
position: 'relative',
|
2759 |
+
transition: 'all 100ms',
|
2760 |
+
'&:hover': {
|
2761 |
+
borderColor: isFocused ? colors.primary : colors.neutral30
|
2762 |
+
}
|
2763 |
+
};
|
2764 |
+
};
|
2765 |
+
|
2766 |
+
var Control = function Control(props) {
|
2767 |
+
var children = props.children,
|
2768 |
+
cx = props.cx,
|
2769 |
+
getStyles = props.getStyles,
|
2770 |
+
className = props.className,
|
2771 |
+
isDisabled = props.isDisabled,
|
2772 |
+
isFocused = props.isFocused,
|
2773 |
+
innerRef = props.innerRef,
|
2774 |
+
innerProps = props.innerProps,
|
2775 |
+
menuIsOpen = props.menuIsOpen;
|
2776 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
2777 |
+
ref: innerRef,
|
2778 |
+
className: cx(
|
2779 |
+
/*#__PURE__*/
|
2780 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('control', props)), {
|
2781 |
+
'control': true,
|
2782 |
+
'control--is-disabled': isDisabled,
|
2783 |
+
'control--is-focused': isFocused,
|
2784 |
+
'control--menu-is-open': menuIsOpen
|
2785 |
+
}, className)
|
2786 |
+
}, innerProps), children);
|
2787 |
+
};
|
2788 |
+
|
2789 |
+
var groupCSS = function groupCSS(_ref) {
|
2790 |
+
var spacing = _ref.theme.spacing;
|
2791 |
+
return {
|
2792 |
+
paddingBottom: spacing.baseUnit * 2,
|
2793 |
+
paddingTop: spacing.baseUnit * 2
|
2794 |
+
};
|
2795 |
+
};
|
2796 |
+
|
2797 |
+
var Group = function Group(props) {
|
2798 |
+
var children = props.children,
|
2799 |
+
className = props.className,
|
2800 |
+
cx = props.cx,
|
2801 |
+
getStyles = props.getStyles,
|
2802 |
+
Heading = props.Heading,
|
2803 |
+
headingProps = props.headingProps,
|
2804 |
+
label = props.label,
|
2805 |
+
theme = props.theme,
|
2806 |
+
selectProps = props.selectProps;
|
2807 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
2808 |
+
className: cx(
|
2809 |
+
/*#__PURE__*/
|
2810 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('group', props)), {
|
2811 |
+
'group': true
|
2812 |
+
}, className)
|
2813 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Heading, _extends({}, headingProps, {
|
2814 |
+
selectProps: selectProps,
|
2815 |
+
theme: theme,
|
2816 |
+
getStyles: getStyles,
|
2817 |
+
cx: cx
|
2818 |
+
}), label), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, children));
|
2819 |
+
};
|
2820 |
+
|
2821 |
+
var groupHeadingCSS = function groupHeadingCSS(_ref2) {
|
2822 |
+
var spacing = _ref2.theme.spacing;
|
2823 |
+
return {
|
2824 |
+
label: 'group',
|
2825 |
+
color: '#999',
|
2826 |
+
cursor: 'default',
|
2827 |
+
display: 'block',
|
2828 |
+
fontSize: '75%',
|
2829 |
+
fontWeight: '500',
|
2830 |
+
marginBottom: '0.25em',
|
2831 |
+
paddingLeft: spacing.baseUnit * 3,
|
2832 |
+
paddingRight: spacing.baseUnit * 3,
|
2833 |
+
textTransform: 'uppercase'
|
2834 |
+
};
|
2835 |
+
};
|
2836 |
+
var GroupHeading = function GroupHeading(props) {
|
2837 |
+
var className = props.className,
|
2838 |
+
cx = props.cx,
|
2839 |
+
getStyles = props.getStyles,
|
2840 |
+
theme = props.theme,
|
2841 |
+
selectProps = props.selectProps,
|
2842 |
+
cleanProps = _objectWithoutProperties(props, ["className", "cx", "getStyles", "theme", "selectProps"]);
|
2843 |
+
|
2844 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
2845 |
+
className: cx(
|
2846 |
+
/*#__PURE__*/
|
2847 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('groupHeading', _objectSpread({
|
2848 |
+
theme: theme
|
2849 |
+
}, cleanProps))), {
|
2850 |
+
'group-heading': true
|
2851 |
+
}, className)
|
2852 |
+
}, cleanProps));
|
2853 |
+
};
|
2854 |
+
|
2855 |
+
var inputCSS = function inputCSS(_ref) {
|
2856 |
+
var isDisabled = _ref.isDisabled,
|
2857 |
+
_ref$theme = _ref.theme,
|
2858 |
+
spacing = _ref$theme.spacing,
|
2859 |
+
colors = _ref$theme.colors;
|
2860 |
+
return {
|
2861 |
+
margin: spacing.baseUnit / 2,
|
2862 |
+
paddingBottom: spacing.baseUnit / 2,
|
2863 |
+
paddingTop: spacing.baseUnit / 2,
|
2864 |
+
visibility: isDisabled ? 'hidden' : 'visible',
|
2865 |
+
color: colors.neutral80
|
2866 |
+
};
|
2867 |
+
};
|
2868 |
+
|
2869 |
+
var inputStyle = function inputStyle(isHidden) {
|
2870 |
+
return {
|
2871 |
+
label: 'input',
|
2872 |
+
background: 0,
|
2873 |
+
border: 0,
|
2874 |
+
fontSize: 'inherit',
|
2875 |
+
opacity: isHidden ? 0 : 1,
|
2876 |
+
outline: 0,
|
2877 |
+
padding: 0,
|
2878 |
+
color: 'inherit'
|
2879 |
+
};
|
2880 |
+
};
|
2881 |
+
|
2882 |
+
var Input = function Input(_ref2) {
|
2883 |
+
var className = _ref2.className,
|
2884 |
+
cx = _ref2.cx,
|
2885 |
+
getStyles = _ref2.getStyles,
|
2886 |
+
innerRef = _ref2.innerRef,
|
2887 |
+
isHidden = _ref2.isHidden,
|
2888 |
+
isDisabled = _ref2.isDisabled,
|
2889 |
+
theme = _ref2.theme,
|
2890 |
+
selectProps = _ref2.selectProps,
|
2891 |
+
props = _objectWithoutProperties(_ref2, ["className", "cx", "getStyles", "innerRef", "isHidden", "isDisabled", "theme", "selectProps"]);
|
2892 |
+
|
2893 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
2894 |
+
className:
|
2895 |
+
/*#__PURE__*/
|
2896 |
+
|
2897 |
+
/*#__PURE__*/
|
2898 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('input', _objectSpread({
|
2899 |
+
theme: theme
|
2900 |
+
}, props)))
|
2901 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_6_react_input_autosize___default.a, _extends({
|
2902 |
+
className: cx(null, {
|
2903 |
+
'input': true
|
2904 |
+
}, className),
|
2905 |
+
inputRef: innerRef,
|
2906 |
+
inputStyle: inputStyle(isHidden),
|
2907 |
+
disabled: isDisabled
|
2908 |
+
}, props)));
|
2909 |
+
};
|
2910 |
+
|
2911 |
+
var multiValueCSS = function multiValueCSS(_ref) {
|
2912 |
+
var _ref$theme = _ref.theme,
|
2913 |
+
spacing = _ref$theme.spacing,
|
2914 |
+
borderRadius = _ref$theme.borderRadius,
|
2915 |
+
colors = _ref$theme.colors;
|
2916 |
+
return {
|
2917 |
+
label: 'multiValue',
|
2918 |
+
backgroundColor: colors.neutral10,
|
2919 |
+
borderRadius: borderRadius / 2,
|
2920 |
+
display: 'flex',
|
2921 |
+
margin: spacing.baseUnit / 2,
|
2922 |
+
minWidth: 0 // resolves flex/text-overflow bug
|
2923 |
+
|
2924 |
+
};
|
2925 |
+
};
|
2926 |
+
var multiValueLabelCSS = function multiValueLabelCSS(_ref2) {
|
2927 |
+
var _ref2$theme = _ref2.theme,
|
2928 |
+
borderRadius = _ref2$theme.borderRadius,
|
2929 |
+
colors = _ref2$theme.colors,
|
2930 |
+
cropWithEllipsis = _ref2.cropWithEllipsis;
|
2931 |
+
return {
|
2932 |
+
borderRadius: borderRadius / 2,
|
2933 |
+
color: colors.neutral80,
|
2934 |
+
fontSize: '85%',
|
2935 |
+
overflow: 'hidden',
|
2936 |
+
padding: 3,
|
2937 |
+
paddingLeft: 6,
|
2938 |
+
textOverflow: cropWithEllipsis ? 'ellipsis' : null,
|
2939 |
+
whiteSpace: 'nowrap'
|
2940 |
+
};
|
2941 |
+
};
|
2942 |
+
var multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {
|
2943 |
+
var _ref3$theme = _ref3.theme,
|
2944 |
+
spacing = _ref3$theme.spacing,
|
2945 |
+
borderRadius = _ref3$theme.borderRadius,
|
2946 |
+
colors = _ref3$theme.colors,
|
2947 |
+
isFocused = _ref3.isFocused;
|
2948 |
+
return {
|
2949 |
+
alignItems: 'center',
|
2950 |
+
borderRadius: borderRadius / 2,
|
2951 |
+
backgroundColor: isFocused && colors.dangerLight,
|
2952 |
+
display: 'flex',
|
2953 |
+
paddingLeft: spacing.baseUnit,
|
2954 |
+
paddingRight: spacing.baseUnit,
|
2955 |
+
':hover': {
|
2956 |
+
backgroundColor: colors.dangerLight,
|
2957 |
+
color: colors.danger
|
2958 |
+
}
|
2959 |
+
};
|
2960 |
+
};
|
2961 |
+
var MultiValueGeneric = function MultiValueGeneric(_ref4) {
|
2962 |
+
var children = _ref4.children,
|
2963 |
+
innerProps = _ref4.innerProps;
|
2964 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", innerProps, children);
|
2965 |
+
};
|
2966 |
+
var MultiValueContainer = MultiValueGeneric;
|
2967 |
+
var MultiValueLabel = MultiValueGeneric;
|
2968 |
+
var MultiValueRemove =
|
2969 |
+
/*#__PURE__*/
|
2970 |
+
function (_Component) {
|
2971 |
+
_inherits(MultiValueRemove, _Component);
|
2972 |
+
|
2973 |
+
function MultiValueRemove() {
|
2974 |
+
_classCallCheck(this, MultiValueRemove);
|
2975 |
+
|
2976 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(MultiValueRemove).apply(this, arguments));
|
2977 |
+
}
|
2978 |
+
|
2979 |
+
_createClass(MultiValueRemove, [{
|
2980 |
+
key: "render",
|
2981 |
+
value: function render() {
|
2982 |
+
var _this$props = this.props,
|
2983 |
+
children = _this$props.children,
|
2984 |
+
innerProps = _this$props.innerProps;
|
2985 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", innerProps, children || __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(CrossIcon, {
|
2986 |
+
size: 14
|
2987 |
+
}));
|
2988 |
+
}
|
2989 |
+
}]);
|
2990 |
+
|
2991 |
+
return MultiValueRemove;
|
2992 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
2993 |
+
|
2994 |
+
var MultiValue =
|
2995 |
+
/*#__PURE__*/
|
2996 |
+
function (_Component2) {
|
2997 |
+
_inherits(MultiValue, _Component2);
|
2998 |
+
|
2999 |
+
function MultiValue() {
|
3000 |
+
_classCallCheck(this, MultiValue);
|
3001 |
+
|
3002 |
+
return _possibleConstructorReturn(this, _getPrototypeOf(MultiValue).apply(this, arguments));
|
3003 |
+
}
|
3004 |
+
|
3005 |
+
_createClass(MultiValue, [{
|
3006 |
+
key: "render",
|
3007 |
+
value: function render() {
|
3008 |
+
var _this$props2 = this.props,
|
3009 |
+
children = _this$props2.children,
|
3010 |
+
className = _this$props2.className,
|
3011 |
+
components = _this$props2.components,
|
3012 |
+
cx = _this$props2.cx,
|
3013 |
+
data = _this$props2.data,
|
3014 |
+
getStyles = _this$props2.getStyles,
|
3015 |
+
innerProps = _this$props2.innerProps,
|
3016 |
+
isDisabled = _this$props2.isDisabled,
|
3017 |
+
removeProps = _this$props2.removeProps,
|
3018 |
+
selectProps = _this$props2.selectProps;
|
3019 |
+
var Container = components.Container,
|
3020 |
+
Label = components.Label,
|
3021 |
+
Remove = components.Remove;
|
3022 |
+
|
3023 |
+
var containerInnerProps = _objectSpread({
|
3024 |
+
className: cx(
|
3025 |
+
/*#__PURE__*/
|
3026 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('multiValue', this.props)), {
|
3027 |
+
'multi-value': true,
|
3028 |
+
'multi-value--is-disabled': isDisabled
|
3029 |
+
}, className)
|
3030 |
+
}, innerProps);
|
3031 |
+
|
3032 |
+
var labelInnerProps = {
|
3033 |
+
className: cx(
|
3034 |
+
/*#__PURE__*/
|
3035 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('multiValueLabel', this.props)), {
|
3036 |
+
'multi-value__label': true
|
3037 |
+
}, className)
|
3038 |
+
};
|
3039 |
+
|
3040 |
+
var removeInnerProps = _objectSpread({
|
3041 |
+
className: cx(
|
3042 |
+
/*#__PURE__*/
|
3043 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('multiValueRemove', this.props)), {
|
3044 |
+
'multi-value__remove': true
|
3045 |
+
}, className)
|
3046 |
+
}, removeProps);
|
3047 |
+
|
3048 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Container, {
|
3049 |
+
data: data,
|
3050 |
+
innerProps: containerInnerProps,
|
3051 |
+
selectProps: selectProps
|
3052 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Label, {
|
3053 |
+
data: data,
|
3054 |
+
innerProps: labelInnerProps,
|
3055 |
+
selectProps: selectProps
|
3056 |
+
}, children), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Remove, {
|
3057 |
+
data: data,
|
3058 |
+
innerProps: removeInnerProps,
|
3059 |
+
selectProps: selectProps
|
3060 |
+
}));
|
3061 |
+
}
|
3062 |
+
}]);
|
3063 |
+
|
3064 |
+
return MultiValue;
|
3065 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
3066 |
+
|
3067 |
+
_defineProperty(MultiValue, "defaultProps", {
|
3068 |
+
cropWithEllipsis: true
|
3069 |
+
});
|
3070 |
+
|
3071 |
+
var optionCSS = function optionCSS(_ref) {
|
3072 |
+
var isDisabled = _ref.isDisabled,
|
3073 |
+
isFocused = _ref.isFocused,
|
3074 |
+
isSelected = _ref.isSelected,
|
3075 |
+
_ref$theme = _ref.theme,
|
3076 |
+
spacing = _ref$theme.spacing,
|
3077 |
+
colors = _ref$theme.colors;
|
3078 |
+
return {
|
3079 |
+
label: 'option',
|
3080 |
+
backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',
|
3081 |
+
color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',
|
3082 |
+
cursor: 'default',
|
3083 |
+
display: 'block',
|
3084 |
+
fontSize: 'inherit',
|
3085 |
+
padding: "".concat(spacing.baseUnit * 2, "px ").concat(spacing.baseUnit * 3, "px"),
|
3086 |
+
width: '100%',
|
3087 |
+
userSelect: 'none',
|
3088 |
+
WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',
|
3089 |
+
// provide some affordance on touch devices
|
3090 |
+
':active': {
|
3091 |
+
backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)
|
3092 |
+
}
|
3093 |
+
};
|
3094 |
+
};
|
3095 |
+
|
3096 |
+
var Option = function Option(props) {
|
3097 |
+
var children = props.children,
|
3098 |
+
className = props.className,
|
3099 |
+
cx = props.cx,
|
3100 |
+
getStyles = props.getStyles,
|
3101 |
+
isDisabled = props.isDisabled,
|
3102 |
+
isFocused = props.isFocused,
|
3103 |
+
isSelected = props.isSelected,
|
3104 |
+
innerRef = props.innerRef,
|
3105 |
+
innerProps = props.innerProps;
|
3106 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
3107 |
+
ref: innerRef,
|
3108 |
+
className: cx(
|
3109 |
+
/*#__PURE__*/
|
3110 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('option', props)), {
|
3111 |
+
'option': true,
|
3112 |
+
'option--is-disabled': isDisabled,
|
3113 |
+
'option--is-focused': isFocused,
|
3114 |
+
'option--is-selected': isSelected
|
3115 |
+
}, className)
|
3116 |
+
}, innerProps), children);
|
3117 |
+
};
|
3118 |
+
|
3119 |
+
var placeholderCSS = function placeholderCSS(_ref) {
|
3120 |
+
var _ref$theme = _ref.theme,
|
3121 |
+
spacing = _ref$theme.spacing,
|
3122 |
+
colors = _ref$theme.colors;
|
3123 |
+
return {
|
3124 |
+
label: 'placeholder',
|
3125 |
+
color: colors.neutral50,
|
3126 |
+
marginLeft: spacing.baseUnit / 2,
|
3127 |
+
marginRight: spacing.baseUnit / 2,
|
3128 |
+
position: 'absolute',
|
3129 |
+
top: '50%',
|
3130 |
+
transform: 'translateY(-50%)'
|
3131 |
+
};
|
3132 |
+
};
|
3133 |
+
|
3134 |
+
var Placeholder = function Placeholder(props) {
|
3135 |
+
var children = props.children,
|
3136 |
+
className = props.className,
|
3137 |
+
cx = props.cx,
|
3138 |
+
getStyles = props.getStyles,
|
3139 |
+
innerProps = props.innerProps;
|
3140 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
3141 |
+
className: cx(
|
3142 |
+
/*#__PURE__*/
|
3143 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('placeholder', props)), {
|
3144 |
+
'placeholder': true
|
3145 |
+
}, className)
|
3146 |
+
}, innerProps), children);
|
3147 |
+
};
|
3148 |
+
|
3149 |
+
var css$2 = function css$$1(_ref) {
|
3150 |
+
var isDisabled = _ref.isDisabled,
|
3151 |
+
_ref$theme = _ref.theme,
|
3152 |
+
spacing = _ref$theme.spacing,
|
3153 |
+
colors = _ref$theme.colors;
|
3154 |
+
return {
|
3155 |
+
label: 'singleValue',
|
3156 |
+
color: isDisabled ? colors.neutral40 : colors.neutral80,
|
3157 |
+
marginLeft: spacing.baseUnit / 2,
|
3158 |
+
marginRight: spacing.baseUnit / 2,
|
3159 |
+
maxWidth: "calc(100% - ".concat(spacing.baseUnit * 2, "px)"),
|
3160 |
+
overflow: 'hidden',
|
3161 |
+
position: 'absolute',
|
3162 |
+
textOverflow: 'ellipsis',
|
3163 |
+
whiteSpace: 'nowrap',
|
3164 |
+
top: '50%',
|
3165 |
+
transform: 'translateY(-50%)'
|
3166 |
+
};
|
3167 |
+
};
|
3168 |
+
|
3169 |
+
var SingleValue = function SingleValue(props) {
|
3170 |
+
var children = props.children,
|
3171 |
+
className = props.className,
|
3172 |
+
cx = props.cx,
|
3173 |
+
getStyles = props.getStyles,
|
3174 |
+
isDisabled = props.isDisabled,
|
3175 |
+
innerProps = props.innerProps;
|
3176 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", _extends({
|
3177 |
+
className: cx(
|
3178 |
+
/*#__PURE__*/
|
3179 |
+
Object(__WEBPACK_IMPORTED_MODULE_2_emotion__["a" /* css */])(getStyles('singleValue', props)), {
|
3180 |
+
'single-value': true,
|
3181 |
+
'single-value--is-disabled': isDisabled
|
3182 |
+
}, className)
|
3183 |
+
}, innerProps), children);
|
3184 |
+
};
|
3185 |
+
|
3186 |
+
var components = {
|
3187 |
+
ClearIndicator: ClearIndicator,
|
3188 |
+
Control: Control,
|
3189 |
+
DropdownIndicator: DropdownIndicator,
|
3190 |
+
DownChevron: DownChevron,
|
3191 |
+
CrossIcon: CrossIcon,
|
3192 |
+
Group: Group,
|
3193 |
+
GroupHeading: GroupHeading,
|
3194 |
+
IndicatorsContainer: IndicatorsContainer,
|
3195 |
+
IndicatorSeparator: IndicatorSeparator,
|
3196 |
+
Input: Input,
|
3197 |
+
LoadingIndicator: LoadingIndicator,
|
3198 |
+
Menu: Menu,
|
3199 |
+
MenuList: MenuList,
|
3200 |
+
MenuPortal: MenuPortal,
|
3201 |
+
LoadingMessage: LoadingMessage,
|
3202 |
+
NoOptionsMessage: NoOptionsMessage,
|
3203 |
+
MultiValue: MultiValue,
|
3204 |
+
MultiValueContainer: MultiValueContainer,
|
3205 |
+
MultiValueLabel: MultiValueLabel,
|
3206 |
+
MultiValueRemove: MultiValueRemove,
|
3207 |
+
Option: Option,
|
3208 |
+
Placeholder: Placeholder,
|
3209 |
+
SelectContainer: SelectContainer,
|
3210 |
+
SingleValue: SingleValue,
|
3211 |
+
ValueContainer: ValueContainer
|
3212 |
+
};
|
3213 |
+
var defaultComponents = function defaultComponents(props) {
|
3214 |
+
return _objectSpread({}, components, props.components);
|
3215 |
+
};
|
3216 |
+
|
3217 |
+
var defaultStyles = {
|
3218 |
+
clearIndicator: clearIndicatorCSS,
|
3219 |
+
container: containerCSS,
|
3220 |
+
control: css$1,
|
3221 |
+
dropdownIndicator: dropdownIndicatorCSS,
|
3222 |
+
group: groupCSS,
|
3223 |
+
groupHeading: groupHeadingCSS,
|
3224 |
+
indicatorsContainer: indicatorsContainerCSS,
|
3225 |
+
indicatorSeparator: indicatorSeparatorCSS,
|
3226 |
+
input: inputCSS,
|
3227 |
+
loadingIndicator: loadingIndicatorCSS,
|
3228 |
+
loadingMessage: loadingMessageCSS,
|
3229 |
+
menu: menuCSS,
|
3230 |
+
menuList: menuListCSS,
|
3231 |
+
menuPortal: menuPortalCSS,
|
3232 |
+
multiValue: multiValueCSS,
|
3233 |
+
multiValueLabel: multiValueLabelCSS,
|
3234 |
+
multiValueRemove: multiValueRemoveCSS,
|
3235 |
+
noOptionsMessage: noOptionsMessageCSS,
|
3236 |
+
option: optionCSS,
|
3237 |
+
placeholder: placeholderCSS,
|
3238 |
+
singleValue: css$2,
|
3239 |
+
valueContainer: valueContainerCSS
|
3240 |
+
}; // Merge Utility
|
3241 |
+
// Allows consumers to extend a base Select with additional styles
|
3242 |
+
|
3243 |
+
function mergeStyles(source) {
|
3244 |
+
var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
3245 |
+
|
3246 |
+
// initialize with source styles
|
3247 |
+
var styles = _objectSpread({}, source); // massage in target styles
|
3248 |
+
|
3249 |
+
|
3250 |
+
Object.keys(target).forEach(function (key) {
|
3251 |
+
if (source[key]) {
|
3252 |
+
styles[key] = function (rsCss, props) {
|
3253 |
+
return target[key](source[key](rsCss, props), props);
|
3254 |
+
};
|
3255 |
+
} else {
|
3256 |
+
styles[key] = target[key];
|
3257 |
+
}
|
3258 |
+
});
|
3259 |
+
return styles;
|
3260 |
+
}
|
3261 |
+
|
3262 |
+
var colors = {
|
3263 |
+
primary: '#2684FF',
|
3264 |
+
primary75: '#4C9AFF',
|
3265 |
+
primary50: '#B2D4FF',
|
3266 |
+
primary25: '#DEEBFF',
|
3267 |
+
danger: '#DE350B',
|
3268 |
+
dangerLight: '#FFBDAD',
|
3269 |
+
neutral0: 'hsl(0, 0%, 100%)',
|
3270 |
+
neutral5: 'hsl(0, 0%, 95%)',
|
3271 |
+
neutral10: 'hsl(0, 0%, 90%)',
|
3272 |
+
neutral20: 'hsl(0, 0%, 80%)',
|
3273 |
+
neutral30: 'hsl(0, 0%, 70%)',
|
3274 |
+
neutral40: 'hsl(0, 0%, 60%)',
|
3275 |
+
neutral50: 'hsl(0, 0%, 50%)',
|
3276 |
+
neutral60: 'hsl(0, 0%, 40%)',
|
3277 |
+
neutral70: 'hsl(0, 0%, 30%)',
|
3278 |
+
neutral80: 'hsl(0, 0%, 20%)',
|
3279 |
+
neutral90: 'hsl(0, 0%, 10%)'
|
3280 |
+
};
|
3281 |
+
var borderRadius = 4;
|
3282 |
+
var baseUnit = 4;
|
3283 |
+
/* Used to calculate consistent margin/padding on elements */
|
3284 |
+
|
3285 |
+
var controlHeight = 38;
|
3286 |
+
/* The minimum height of the control */
|
3287 |
+
|
3288 |
+
var menuGutter = baseUnit * 2;
|
3289 |
+
/* The amount of space between the control and menu */
|
3290 |
+
|
3291 |
+
var spacing = {
|
3292 |
+
baseUnit: baseUnit,
|
3293 |
+
controlHeight: controlHeight,
|
3294 |
+
menuGutter: menuGutter
|
3295 |
+
};
|
3296 |
+
var defaultTheme = {
|
3297 |
+
borderRadius: borderRadius,
|
3298 |
+
colors: colors,
|
3299 |
+
spacing: spacing
|
3300 |
+
};
|
3301 |
+
|
3302 |
+
var defaultProps = {
|
3303 |
+
backspaceRemovesValue: true,
|
3304 |
+
blurInputOnSelect: isTouchCapable(),
|
3305 |
+
captureMenuScroll: !isTouchCapable(),
|
3306 |
+
closeMenuOnSelect: true,
|
3307 |
+
closeMenuOnScroll: false,
|
3308 |
+
components: {},
|
3309 |
+
controlShouldRenderValue: true,
|
3310 |
+
escapeClearsValue: false,
|
3311 |
+
filterOption: createFilter(),
|
3312 |
+
formatGroupLabel: formatGroupLabel,
|
3313 |
+
getOptionLabel: getOptionLabel,
|
3314 |
+
getOptionValue: getOptionValue,
|
3315 |
+
isDisabled: false,
|
3316 |
+
isLoading: false,
|
3317 |
+
isMulti: false,
|
3318 |
+
isRtl: false,
|
3319 |
+
isSearchable: true,
|
3320 |
+
isOptionDisabled: isOptionDisabled,
|
3321 |
+
loadingMessage: function loadingMessage() {
|
3322 |
+
return 'Loading...';
|
3323 |
+
},
|
3324 |
+
maxMenuHeight: 300,
|
3325 |
+
minMenuHeight: 140,
|
3326 |
+
menuIsOpen: false,
|
3327 |
+
menuPlacement: 'bottom',
|
3328 |
+
menuPosition: 'absolute',
|
3329 |
+
menuShouldBlockScroll: false,
|
3330 |
+
menuShouldScrollIntoView: !isMobileDevice(),
|
3331 |
+
noOptionsMessage: function noOptionsMessage() {
|
3332 |
+
return 'No options';
|
3333 |
+
},
|
3334 |
+
openMenuOnFocus: false,
|
3335 |
+
openMenuOnClick: true,
|
3336 |
+
options: [],
|
3337 |
+
pageSize: 5,
|
3338 |
+
placeholder: 'Select...',
|
3339 |
+
screenReaderStatus: function screenReaderStatus(_ref) {
|
3340 |
+
var count = _ref.count;
|
3341 |
+
return "".concat(count, " result").concat(count !== 1 ? 's' : '', " available");
|
3342 |
+
},
|
3343 |
+
styles: {},
|
3344 |
+
tabIndex: '0',
|
3345 |
+
tabSelectsValue: true
|
3346 |
+
};
|
3347 |
+
var instanceId = 1;
|
3348 |
+
|
3349 |
+
var Select =
|
3350 |
+
/*#__PURE__*/
|
3351 |
+
function (_Component) {
|
3352 |
+
_inherits(Select, _Component);
|
3353 |
+
|
3354 |
+
// Misc. Instance Properties
|
3355 |
+
// ------------------------------
|
3356 |
+
// TODO
|
3357 |
+
// Refs
|
3358 |
+
// ------------------------------
|
3359 |
+
// Lifecycle
|
3360 |
+
// ------------------------------
|
3361 |
+
function Select(_props) {
|
3362 |
+
var _this;
|
3363 |
+
|
3364 |
+
_classCallCheck(this, Select);
|
3365 |
+
|
3366 |
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, _props));
|
3367 |
+
|
3368 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
|
3369 |
+
ariaLiveSelection: '',
|
3370 |
+
ariaLiveContext: '',
|
3371 |
+
focusedOption: null,
|
3372 |
+
focusedValue: null,
|
3373 |
+
inputIsHidden: false,
|
3374 |
+
isFocused: false,
|
3375 |
+
menuOptions: {
|
3376 |
+
render: [],
|
3377 |
+
focusable: []
|
3378 |
+
},
|
3379 |
+
selectValue: []
|
3380 |
+
});
|
3381 |
+
|
3382 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blockOptionHover", false);
|
3383 |
+
|
3384 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "isComposing", false);
|
3385 |
+
|
3386 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clearFocusValueOnUpdate", false);
|
3387 |
+
|
3388 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "commonProps", void 0);
|
3389 |
+
|
3390 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "components", void 0);
|
3391 |
+
|
3392 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "hasGroups", false);
|
3393 |
+
|
3394 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "initialTouchX", 0);
|
3395 |
+
|
3396 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "initialTouchY", 0);
|
3397 |
+
|
3398 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputIsHiddenAfterUpdate", void 0);
|
3399 |
+
|
3400 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "instancePrefix", '');
|
3401 |
+
|
3402 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "openAfterFocus", false);
|
3403 |
+
|
3404 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "scrollToFocusedOptionOnUpdate", false);
|
3405 |
+
|
3406 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "userIsDragging", void 0);
|
3407 |
+
|
3408 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "controlRef", null);
|
3409 |
+
|
3410 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getControlRef", function (ref) {
|
3411 |
+
_this.controlRef = ref;
|
3412 |
+
});
|
3413 |
+
|
3414 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focusedOptionRef", null);
|
3415 |
+
|
3416 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getFocusedOptionRef", function (ref) {
|
3417 |
+
_this.focusedOptionRef = ref;
|
3418 |
+
});
|
3419 |
+
|
3420 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "menuListRef", null);
|
3421 |
+
|
3422 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getMenuListRef", function (ref) {
|
3423 |
+
_this.menuListRef = ref;
|
3424 |
+
});
|
3425 |
+
|
3426 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "inputRef", null);
|
3427 |
+
|
3428 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getInputRef", function (ref) {
|
3429 |
+
_this.inputRef = ref;
|
3430 |
+
});
|
3431 |
+
|
3432 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cacheComponents", function (components$$1) {
|
3433 |
+
_this.components = defaultComponents({
|
3434 |
+
components: components$$1
|
3435 |
+
});
|
3436 |
+
});
|
3437 |
+
|
3438 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "focus", _this.focusInput);
|
3439 |
+
|
3440 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "blur", _this.blurInput);
|
3441 |
+
|
3442 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (newValue, actionMeta) {
|
3443 |
+
var _this$props = _this.props,
|
3444 |
+
onChange = _this$props.onChange,
|
3445 |
+
name = _this$props.name;
|
3446 |
+
onChange(newValue, _objectSpread({}, actionMeta, {
|
3447 |
+
name: name
|
3448 |
+
}));
|
3449 |
+
});
|
3450 |
+
|
3451 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "setValue", function (newValue) {
|
3452 |
+
var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';
|
3453 |
+
var option = arguments.length > 2 ? arguments[2] : undefined;
|
3454 |
+
var _this$props2 = _this.props,
|
3455 |
+
closeMenuOnSelect = _this$props2.closeMenuOnSelect,
|
3456 |
+
isMulti = _this$props2.isMulti;
|
3457 |
+
|
3458 |
+
_this.onInputChange('', {
|
3459 |
+
action: 'set-value'
|
3460 |
+
});
|
3461 |
+
|
3462 |
+
if (closeMenuOnSelect) {
|
3463 |
+
_this.inputIsHiddenAfterUpdate = !isMulti;
|
3464 |
+
|
3465 |
+
_this.onMenuClose();
|
3466 |
+
} // when the select value should change, we should reset focusedValue
|
3467 |
+
|
3468 |
+
|
3469 |
+
_this.clearFocusValueOnUpdate = true;
|
3470 |
+
|
3471 |
+
_this.onChange(newValue, {
|
3472 |
+
action: action,
|
3473 |
+
option: option
|
3474 |
+
});
|
3475 |
+
});
|
3476 |
+
|
3477 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "selectOption", function (newValue) {
|
3478 |
+
var _this$props3 = _this.props,
|
3479 |
+
blurInputOnSelect = _this$props3.blurInputOnSelect,
|
3480 |
+
isMulti = _this$props3.isMulti;
|
3481 |
+
var selectValue = _this.state.selectValue;
|
3482 |
+
|
3483 |
+
if (isMulti) {
|
3484 |
+
if (_this.isOptionSelected(newValue, selectValue)) {
|
3485 |
+
var candidate = _this.getOptionValue(newValue);
|
3486 |
+
|
3487 |
+
_this.setValue(selectValue.filter(function (i) {
|
3488 |
+
return _this.getOptionValue(i) !== candidate;
|
3489 |
+
}), 'deselect-option', newValue);
|
3490 |
+
|
3491 |
+
_this.announceAriaLiveSelection({
|
3492 |
+
event: 'deselect-option',
|
3493 |
+
context: {
|
3494 |
+
value: _this.getOptionLabel(newValue)
|
3495 |
+
}
|
3496 |
+
});
|
3497 |
+
} else {
|
3498 |
+
if (!_this.isOptionDisabled(newValue, selectValue)) {
|
3499 |
+
_this.setValue([].concat(_toConsumableArray(selectValue), [newValue]), 'select-option', newValue);
|
3500 |
+
|
3501 |
+
_this.announceAriaLiveSelection({
|
3502 |
+
event: 'select-option',
|
3503 |
+
context: {
|
3504 |
+
value: _this.getOptionLabel(newValue)
|
3505 |
+
}
|
3506 |
+
});
|
3507 |
+
} else {
|
3508 |
+
// announce that option is disabled
|
3509 |
+
_this.announceAriaLiveSelection({
|
3510 |
+
event: 'select-option',
|
3511 |
+
context: {
|
3512 |
+
value: _this.getOptionLabel(newValue),
|
3513 |
+
isDisabled: true
|
3514 |
+
}
|
3515 |
+
});
|
3516 |
+
}
|
3517 |
+
}
|
3518 |
+
} else {
|
3519 |
+
if (!_this.isOptionDisabled(newValue, selectValue)) {
|
3520 |
+
_this.setValue(newValue, 'select-option');
|
3521 |
+
|
3522 |
+
_this.announceAriaLiveSelection({
|
3523 |
+
event: 'select-option',
|
3524 |
+
context: {
|
3525 |
+
value: _this.getOptionLabel(newValue)
|
3526 |
+
}
|
3527 |
+
});
|
3528 |
+
} else {
|
3529 |
+
// announce that option is disabled
|
3530 |
+
_this.announceAriaLiveSelection({
|
3531 |
+
event: 'select-option',
|
3532 |
+
context: {
|
3533 |
+
value: _this.getOptionLabel(newValue),
|
3534 |
+
isDisabled: true
|
3535 |
+
}
|
3536 |
+
});
|
3537 |
+
}
|
3538 |
+
}
|
3539 |
+
|
3540 |
+
if (blurInputOnSelect) {
|
3541 |
+
_this.blurInput();
|
3542 |
+
}
|
3543 |
+
});
|
3544 |
+
|
3545 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "removeValue", function (removedValue) {
|
3546 |
+
var selectValue = _this.state.selectValue;
|
3547 |
+
|
3548 |
+
var candidate = _this.getOptionValue(removedValue);
|
3549 |
+
|
3550 |
+
_this.onChange(selectValue.filter(function (i) {
|
3551 |
+
return _this.getOptionValue(i) !== candidate;
|
3552 |
+
}), {
|
3553 |
+
action: 'remove-value',
|
3554 |
+
removedValue: removedValue
|
3555 |
+
});
|
3556 |
+
|
3557 |
+
_this.announceAriaLiveSelection({
|
3558 |
+
event: 'remove-value',
|
3559 |
+
context: {
|
3560 |
+
value: removedValue ? _this.getOptionLabel(removedValue) : ''
|
3561 |
+
}
|
3562 |
+
});
|
3563 |
+
|
3564 |
+
_this.focusInput();
|
3565 |
+
});
|
3566 |
+
|
3567 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "clearValue", function () {
|
3568 |
+
var isMulti = _this.props.isMulti;
|
3569 |
+
|
3570 |
+
_this.onChange(isMulti ? [] : null, {
|
3571 |
+
action: 'clear'
|
3572 |
+
});
|
3573 |
+
});
|
3574 |
+
|
3575 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "popValue", function () {
|
3576 |
+
var selectValue = _this.state.selectValue;
|
3577 |
+
var lastSelectedValue = selectValue[selectValue.length - 1];
|
3578 |
+
|
3579 |
+
_this.announceAriaLiveSelection({
|
3580 |
+
event: 'pop-value',
|
3581 |
+
context: {
|
3582 |
+
value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''
|
3583 |
+
}
|
3584 |
+
});
|
3585 |
+
|
3586 |
+
_this.onChange(selectValue.slice(0, selectValue.length - 1), {
|
3587 |
+
action: 'pop-value',
|
3588 |
+
removedValue: lastSelectedValue
|
3589 |
+
});
|
3590 |
+
});
|
3591 |
+
|
3592 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOptionLabel", function (data) {
|
3593 |
+
return _this.props.getOptionLabel(data);
|
3594 |
+
});
|
3595 |
+
|
3596 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getOptionValue", function (data) {
|
3597 |
+
return _this.props.getOptionValue(data);
|
3598 |
+
});
|
3599 |
+
|
3600 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getStyles", function (key, props) {
|
3601 |
+
var base = defaultStyles[key](props);
|
3602 |
+
base.boxSizing = 'border-box';
|
3603 |
+
var custom = _this.props.styles[key];
|
3604 |
+
return custom ? custom(base, props) : base;
|
3605 |
+
});
|
3606 |
+
|
3607 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getElementId", function (element) {
|
3608 |
+
return "".concat(_this.instancePrefix, "-").concat(element);
|
3609 |
+
});
|
3610 |
+
|
3611 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getActiveDescendentId", function () {
|
3612 |
+
var menuIsOpen = _this.props.menuIsOpen;
|
3613 |
+
var _this$state = _this.state,
|
3614 |
+
menuOptions = _this$state.menuOptions,
|
3615 |
+
focusedOption = _this$state.focusedOption;
|
3616 |
+
if (!focusedOption || !menuIsOpen) return undefined;
|
3617 |
+
var index = menuOptions.focusable.indexOf(focusedOption);
|
3618 |
+
var option = menuOptions.render[index];
|
3619 |
+
return option && option.key;
|
3620 |
+
});
|
3621 |
+
|
3622 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "announceAriaLiveSelection", function (_ref2) {
|
3623 |
+
var event = _ref2.event,
|
3624 |
+
context = _ref2.context;
|
3625 |
+
|
3626 |
+
_this.setState({
|
3627 |
+
ariaLiveSelection: valueEventAriaMessage(event, context)
|
3628 |
+
});
|
3629 |
+
});
|
3630 |
+
|
3631 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "announceAriaLiveContext", function (_ref3) {
|
3632 |
+
var event = _ref3.event,
|
3633 |
+
context = _ref3.context;
|
3634 |
+
|
3635 |
+
_this.setState({
|
3636 |
+
ariaLiveContext: instructionsAriaMessage(event, _objectSpread({}, context, {
|
3637 |
+
label: _this.props['aria-label']
|
3638 |
+
}))
|
3639 |
+
});
|
3640 |
+
});
|
3641 |
+
|
3642 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuMouseDown", function (event) {
|
3643 |
+
if (event.button !== 0) {
|
3644 |
+
return;
|
3645 |
+
}
|
3646 |
+
|
3647 |
+
event.stopPropagation();
|
3648 |
+
event.preventDefault();
|
3649 |
+
|
3650 |
+
_this.focusInput();
|
3651 |
+
});
|
3652 |
+
|
3653 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuMouseMove", function (event) {
|
3654 |
+
_this.blockOptionHover = false;
|
3655 |
+
});
|
3656 |
+
|
3657 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onControlMouseDown", function (event) {
|
3658 |
+
var openMenuOnClick = _this.props.openMenuOnClick;
|
3659 |
+
|
3660 |
+
if (!_this.state.isFocused) {
|
3661 |
+
if (openMenuOnClick) {
|
3662 |
+
_this.openAfterFocus = true;
|
3663 |
+
}
|
3664 |
+
|
3665 |
+
_this.focusInput();
|
3666 |
+
} else if (!_this.props.menuIsOpen) {
|
3667 |
+
if (openMenuOnClick) {
|
3668 |
+
_this.openMenu('first');
|
3669 |
+
}
|
3670 |
+
} else {
|
3671 |
+
//$FlowFixMe
|
3672 |
+
if (event.target.tagName !== 'INPUT') {
|
3673 |
+
_this.onMenuClose();
|
3674 |
+
}
|
3675 |
+
} //$FlowFixMe
|
3676 |
+
|
3677 |
+
|
3678 |
+
if (event.target.tagName !== 'INPUT') {
|
3679 |
+
event.preventDefault();
|
3680 |
+
}
|
3681 |
+
});
|
3682 |
+
|
3683 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onDropdownIndicatorMouseDown", function (event) {
|
3684 |
+
// ignore mouse events that weren't triggered by the primary button
|
3685 |
+
if (event && event.type === 'mousedown' && event.button !== 0) {
|
3686 |
+
return;
|
3687 |
+
}
|
3688 |
+
|
3689 |
+
if (_this.props.isDisabled) return;
|
3690 |
+
var _this$props4 = _this.props,
|
3691 |
+
isMulti = _this$props4.isMulti,
|
3692 |
+
menuIsOpen = _this$props4.menuIsOpen;
|
3693 |
+
|
3694 |
+
_this.focusInput();
|
3695 |
+
|
3696 |
+
if (menuIsOpen) {
|
3697 |
+
_this.inputIsHiddenAfterUpdate = !isMulti;
|
3698 |
+
|
3699 |
+
_this.onMenuClose();
|
3700 |
+
} else {
|
3701 |
+
_this.openMenu('first');
|
3702 |
+
}
|
3703 |
+
|
3704 |
+
event.preventDefault();
|
3705 |
+
event.stopPropagation();
|
3706 |
+
});
|
3707 |
+
|
3708 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClearIndicatorMouseDown", function (event) {
|
3709 |
+
// ignore mouse events that weren't triggered by the primary button
|
3710 |
+
if (event && event.type === 'mousedown' && event.button !== 0) {
|
3711 |
+
return;
|
3712 |
+
}
|
3713 |
+
|
3714 |
+
_this.clearValue();
|
3715 |
+
|
3716 |
+
event.stopPropagation();
|
3717 |
+
_this.openAfterFocus = false;
|
3718 |
+
setTimeout(function () {
|
3719 |
+
return _this.focusInput();
|
3720 |
+
});
|
3721 |
+
});
|
3722 |
+
|
3723 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onScroll", function (event) {
|
3724 |
+
if (typeof _this.props.closeMenuOnScroll === 'boolean') {
|
3725 |
+
if (event.target instanceof HTMLElement && isDocumentElement(event.target)) {
|
3726 |
+
_this.props.onMenuClose();
|
3727 |
+
}
|
3728 |
+
} else if (typeof _this.props.closeMenuOnScroll === 'function') {
|
3729 |
+
if (_this.props.closeMenuOnScroll(event)) {
|
3730 |
+
_this.props.onMenuClose();
|
3731 |
+
}
|
3732 |
+
}
|
3733 |
+
});
|
3734 |
+
|
3735 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onCompositionStart", function () {
|
3736 |
+
_this.isComposing = true;
|
3737 |
+
});
|
3738 |
+
|
3739 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onCompositionEnd", function () {
|
3740 |
+
_this.isComposing = false;
|
3741 |
+
});
|
3742 |
+
|
3743 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchStart", function (_ref4) {
|
3744 |
+
var touches = _ref4.touches;
|
3745 |
+
var touch = touches.item(0);
|
3746 |
+
|
3747 |
+
if (!touch) {
|
3748 |
+
return;
|
3749 |
+
}
|
3750 |
+
|
3751 |
+
_this.initialTouchX = touch.clientX;
|
3752 |
+
_this.initialTouchY = touch.clientY;
|
3753 |
+
_this.userIsDragging = false;
|
3754 |
+
});
|
3755 |
+
|
3756 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchMove", function (_ref5) {
|
3757 |
+
var touches = _ref5.touches;
|
3758 |
+
var touch = touches.item(0);
|
3759 |
+
|
3760 |
+
if (!touch) {
|
3761 |
+
return;
|
3762 |
+
}
|
3763 |
+
|
3764 |
+
var deltaX = Math.abs(touch.clientX - _this.initialTouchX);
|
3765 |
+
var deltaY = Math.abs(touch.clientY - _this.initialTouchY);
|
3766 |
+
var moveThreshold = 5;
|
3767 |
+
_this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;
|
3768 |
+
});
|
3769 |
+
|
3770 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onTouchEnd", function (event) {
|
3771 |
+
if (_this.userIsDragging) return; // close the menu if the user taps outside
|
3772 |
+
// we're checking on event.target here instead of event.currentTarget, because we want to assert information
|
3773 |
+
// on events on child elements, not the document (which we've attached this handler to).
|
3774 |
+
|
3775 |
+
if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {
|
3776 |
+
_this.blurInput();
|
3777 |
+
} // reset move vars
|
3778 |
+
|
3779 |
+
|
3780 |
+
_this.initialTouchX = 0;
|
3781 |
+
_this.initialTouchY = 0;
|
3782 |
+
});
|
3783 |
+
|
3784 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onControlTouchEnd", function (event) {
|
3785 |
+
if (_this.userIsDragging) return;
|
3786 |
+
|
3787 |
+
_this.onControlMouseDown(event);
|
3788 |
+
});
|
3789 |
+
|
3790 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onClearIndicatorTouchEnd", function (event) {
|
3791 |
+
if (_this.userIsDragging) return;
|
3792 |
+
|
3793 |
+
_this.onClearIndicatorMouseDown(event);
|
3794 |
+
});
|
3795 |
+
|
3796 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onDropdownIndicatorTouchEnd", function (event) {
|
3797 |
+
if (_this.userIsDragging) return;
|
3798 |
+
|
3799 |
+
_this.onDropdownIndicatorMouseDown(event);
|
3800 |
+
});
|
3801 |
+
|
3802 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleInputChange", function (event) {
|
3803 |
+
var inputValue = event.currentTarget.value;
|
3804 |
+
_this.inputIsHiddenAfterUpdate = false;
|
3805 |
+
|
3806 |
+
_this.onInputChange(inputValue, {
|
3807 |
+
action: 'input-change'
|
3808 |
+
});
|
3809 |
+
|
3810 |
+
_this.onMenuOpen();
|
3811 |
+
});
|
3812 |
+
|
3813 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onInputFocus", function (event) {
|
3814 |
+
var _this$props5 = _this.props,
|
3815 |
+
isSearchable = _this$props5.isSearchable,
|
3816 |
+
isMulti = _this$props5.isMulti;
|
3817 |
+
|
3818 |
+
if (_this.props.onFocus) {
|
3819 |
+
_this.props.onFocus(event);
|
3820 |
+
}
|
3821 |
+
|
3822 |
+
_this.inputIsHiddenAfterUpdate = false;
|
3823 |
+
|
3824 |
+
_this.announceAriaLiveContext({
|
3825 |
+
event: 'input',
|
3826 |
+
context: {
|
3827 |
+
isSearchable: isSearchable,
|
3828 |
+
isMulti: isMulti
|
3829 |
+
}
|
3830 |
+
});
|
3831 |
+
|
3832 |
+
_this.setState({
|
3833 |
+
isFocused: true
|
3834 |
+
});
|
3835 |
+
|
3836 |
+
if (_this.openAfterFocus || _this.props.openMenuOnFocus) {
|
3837 |
+
_this.openMenu('first');
|
3838 |
+
}
|
3839 |
+
|
3840 |
+
_this.openAfterFocus = false;
|
3841 |
+
});
|
3842 |
+
|
3843 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onInputBlur", function (event) {
|
3844 |
+
if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {
|
3845 |
+
_this.inputRef.focus();
|
3846 |
+
|
3847 |
+
return;
|
3848 |
+
}
|
3849 |
+
|
3850 |
+
if (_this.props.onBlur) {
|
3851 |
+
_this.props.onBlur(event);
|
3852 |
+
}
|
3853 |
+
|
3854 |
+
_this.onInputChange('', {
|
3855 |
+
action: 'input-blur'
|
3856 |
+
});
|
3857 |
+
|
3858 |
+
_this.onMenuClose();
|
3859 |
+
|
3860 |
+
_this.setState({
|
3861 |
+
focusedValue: null,
|
3862 |
+
isFocused: false
|
3863 |
+
});
|
3864 |
+
});
|
3865 |
+
|
3866 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onOptionHover", function (focusedOption) {
|
3867 |
+
if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
|
3868 |
+
return;
|
3869 |
+
}
|
3870 |
+
|
3871 |
+
_this.setState({
|
3872 |
+
focusedOption: focusedOption
|
3873 |
+
});
|
3874 |
+
});
|
3875 |
+
|
3876 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "shouldHideSelectedOptions", function () {
|
3877 |
+
var _this$props6 = _this.props,
|
3878 |
+
hideSelectedOptions = _this$props6.hideSelectedOptions,
|
3879 |
+
isMulti = _this$props6.isMulti;
|
3880 |
+
if (hideSelectedOptions === undefined) return isMulti;
|
3881 |
+
return hideSelectedOptions;
|
3882 |
+
});
|
3883 |
+
|
3884 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onKeyDown", function (event) {
|
3885 |
+
var _this$props7 = _this.props,
|
3886 |
+
isMulti = _this$props7.isMulti,
|
3887 |
+
backspaceRemovesValue = _this$props7.backspaceRemovesValue,
|
3888 |
+
escapeClearsValue = _this$props7.escapeClearsValue,
|
3889 |
+
inputValue = _this$props7.inputValue,
|
3890 |
+
isClearable = _this$props7.isClearable,
|
3891 |
+
isDisabled = _this$props7.isDisabled,
|
3892 |
+
menuIsOpen = _this$props7.menuIsOpen,
|
3893 |
+
onKeyDown = _this$props7.onKeyDown,
|
3894 |
+
tabSelectsValue = _this$props7.tabSelectsValue,
|
3895 |
+
openMenuOnFocus = _this$props7.openMenuOnFocus;
|
3896 |
+
var _this$state2 = _this.state,
|
3897 |
+
focusedOption = _this$state2.focusedOption,
|
3898 |
+
focusedValue = _this$state2.focusedValue,
|
3899 |
+
selectValue = _this$state2.selectValue;
|
3900 |
+
if (isDisabled) return;
|
3901 |
+
|
3902 |
+
if (typeof onKeyDown === 'function') {
|
3903 |
+
onKeyDown(event);
|
3904 |
+
|
3905 |
+
if (event.defaultPrevented) {
|
3906 |
+
return;
|
3907 |
+
}
|
3908 |
+
} // Block option hover events when the user has just pressed a key
|
3909 |
+
|
3910 |
+
|
3911 |
+
_this.blockOptionHover = true;
|
3912 |
+
|
3913 |
+
switch (event.key) {
|
3914 |
+
case 'ArrowLeft':
|
3915 |
+
if (!isMulti || inputValue) return;
|
3916 |
+
|
3917 |
+
_this.focusValue('previous');
|
3918 |
+
|
3919 |
+
break;
|
3920 |
+
|
3921 |
+
case 'ArrowRight':
|
3922 |
+
if (!isMulti || inputValue) return;
|
3923 |
+
|
3924 |
+
_this.focusValue('next');
|
3925 |
+
|
3926 |
+
break;
|
3927 |
+
|
3928 |
+
case 'Delete':
|
3929 |
+
case 'Backspace':
|
3930 |
+
if (inputValue) return;
|
3931 |
+
|
3932 |
+
if (focusedValue) {
|
3933 |
+
_this.removeValue(focusedValue);
|
3934 |
+
} else {
|
3935 |
+
if (!backspaceRemovesValue) return;
|
3936 |
+
|
3937 |
+
if (isMulti) {
|
3938 |
+
_this.popValue();
|
3939 |
+
} else if (isClearable) {
|
3940 |
+
_this.clearValue();
|
3941 |
+
}
|
3942 |
+
}
|
3943 |
+
|
3944 |
+
break;
|
3945 |
+
|
3946 |
+
case 'Tab':
|
3947 |
+
if (_this.isComposing) return;
|
3948 |
+
|
3949 |
+
if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused
|
3950 |
+
// option is already selected; it breaks the flow of navigation
|
3951 |
+
openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {
|
3952 |
+
return;
|
3953 |
+
}
|
3954 |
+
|
3955 |
+
_this.selectOption(focusedOption);
|
3956 |
+
|
3957 |
+
break;
|
3958 |
+
|
3959 |
+
case 'Enter':
|
3960 |
+
if (event.keyCode === 229) {
|
3961 |
+
// ignore the keydown event from an Input Method Editor(IME)
|
3962 |
+
// ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode
|
3963 |
+
break;
|
3964 |
+
}
|
3965 |
+
|
3966 |
+
if (menuIsOpen) {
|
3967 |
+
if (!focusedOption) return;
|
3968 |
+
if (_this.isComposing) return;
|
3969 |
+
|
3970 |
+
_this.selectOption(focusedOption);
|
3971 |
+
|
3972 |
+
break;
|
3973 |
+
}
|
3974 |
+
|
3975 |
+
return;
|
3976 |
+
|
3977 |
+
case 'Escape':
|
3978 |
+
if (menuIsOpen) {
|
3979 |
+
_this.inputIsHiddenAfterUpdate = false;
|
3980 |
+
|
3981 |
+
_this.onInputChange('', {
|
3982 |
+
action: 'menu-close'
|
3983 |
+
});
|
3984 |
+
|
3985 |
+
_this.onMenuClose();
|
3986 |
+
} else if (isClearable && escapeClearsValue) {
|
3987 |
+
_this.clearValue();
|
3988 |
+
}
|
3989 |
+
|
3990 |
+
break;
|
3991 |
+
|
3992 |
+
case ' ':
|
3993 |
+
// space
|
3994 |
+
if (inputValue) {
|
3995 |
+
return;
|
3996 |
+
}
|
3997 |
+
|
3998 |
+
if (!menuIsOpen) {
|
3999 |
+
_this.openMenu('first');
|
4000 |
+
|
4001 |
+
break;
|
4002 |
+
}
|
4003 |
+
|
4004 |
+
if (!focusedOption) return;
|
4005 |
+
|
4006 |
+
_this.selectOption(focusedOption);
|
4007 |
+
|
4008 |
+
break;
|
4009 |
+
|
4010 |
+
case 'ArrowUp':
|
4011 |
+
if (menuIsOpen) {
|
4012 |
+
_this.focusOption('up');
|
4013 |
+
} else {
|
4014 |
+
_this.openMenu('last');
|
4015 |
+
}
|
4016 |
+
|
4017 |
+
break;
|
4018 |
+
|
4019 |
+
case 'ArrowDown':
|
4020 |
+
if (menuIsOpen) {
|
4021 |
+
_this.focusOption('down');
|
4022 |
+
} else {
|
4023 |
+
_this.openMenu('first');
|
4024 |
+
}
|
4025 |
+
|
4026 |
+
break;
|
4027 |
+
|
4028 |
+
case 'PageUp':
|
4029 |
+
if (!menuIsOpen) return;
|
4030 |
+
|
4031 |
+
_this.focusOption('pageup');
|
4032 |
+
|
4033 |
+
break;
|
4034 |
+
|
4035 |
+
case 'PageDown':
|
4036 |
+
if (!menuIsOpen) return;
|
4037 |
+
|
4038 |
+
_this.focusOption('pagedown');
|
4039 |
+
|
4040 |
+
break;
|
4041 |
+
|
4042 |
+
case 'Home':
|
4043 |
+
if (!menuIsOpen) return;
|
4044 |
+
|
4045 |
+
_this.focusOption('first');
|
4046 |
+
|
4047 |
+
break;
|
4048 |
+
|
4049 |
+
case 'End':
|
4050 |
+
if (!menuIsOpen) return;
|
4051 |
+
|
4052 |
+
_this.focusOption('last');
|
4053 |
+
|
4054 |
+
break;
|
4055 |
+
|
4056 |
+
default:
|
4057 |
+
return;
|
4058 |
+
}
|
4059 |
+
|
4060 |
+
event.preventDefault();
|
4061 |
+
});
|
4062 |
+
|
4063 |
+
var value = _props.value;
|
4064 |
+
_this.cacheComponents = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
4065 |
+
|
4066 |
+
_this.cacheComponents(_props.components);
|
4067 |
+
|
4068 |
+
_this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
|
4069 |
+
|
4070 |
+
var _selectValue = cleanValue(value);
|
4071 |
+
|
4072 |
+
var _menuOptions = _this.buildMenuOptions(_props, _selectValue);
|
4073 |
+
|
4074 |
+
_this.state.menuOptions = _menuOptions;
|
4075 |
+
_this.state.selectValue = _selectValue;
|
4076 |
+
return _this;
|
4077 |
+
}
|
4078 |
+
|
4079 |
+
_createClass(Select, [{
|
4080 |
+
key: "componentDidMount",
|
4081 |
+
value: function componentDidMount() {
|
4082 |
+
this.startListeningComposition();
|
4083 |
+
this.startListeningToTouch();
|
4084 |
+
|
4085 |
+
if (this.props.closeMenuOnScroll && document && document.addEventListener) {
|
4086 |
+
// Listen to all scroll events, and filter them out inside of 'onScroll'
|
4087 |
+
document.addEventListener('scroll', this.onScroll, true);
|
4088 |
+
}
|
4089 |
+
|
4090 |
+
if (this.props.autoFocus) {
|
4091 |
+
this.focusInput();
|
4092 |
+
}
|
4093 |
+
}
|
4094 |
+
}, {
|
4095 |
+
key: "componentWillReceiveProps",
|
4096 |
+
value: function componentWillReceiveProps(nextProps) {
|
4097 |
+
var _this$props8 = this.props,
|
4098 |
+
options = _this$props8.options,
|
4099 |
+
value = _this$props8.value,
|
4100 |
+
inputValue = _this$props8.inputValue; // re-cache custom components
|
4101 |
+
|
4102 |
+
this.cacheComponents(nextProps.components); // rebuild the menu options
|
4103 |
+
|
4104 |
+
if (nextProps.value !== value || nextProps.options !== options || nextProps.inputValue !== inputValue) {
|
4105 |
+
var selectValue = cleanValue(nextProps.value);
|
4106 |
+
var menuOptions = this.buildMenuOptions(nextProps, selectValue);
|
4107 |
+
var focusedValue = this.getNextFocusedValue(selectValue);
|
4108 |
+
var focusedOption = this.getNextFocusedOption(menuOptions.focusable);
|
4109 |
+
this.setState({
|
4110 |
+
menuOptions: menuOptions,
|
4111 |
+
selectValue: selectValue,
|
4112 |
+
focusedOption: focusedOption,
|
4113 |
+
focusedValue: focusedValue
|
4114 |
+
});
|
4115 |
+
} // some updates should toggle the state of the input visibility
|
4116 |
+
|
4117 |
+
|
4118 |
+
if (this.inputIsHiddenAfterUpdate != null) {
|
4119 |
+
this.setState({
|
4120 |
+
inputIsHidden: this.inputIsHiddenAfterUpdate
|
4121 |
+
});
|
4122 |
+
delete this.inputIsHiddenAfterUpdate;
|
4123 |
+
}
|
4124 |
+
}
|
4125 |
+
}, {
|
4126 |
+
key: "componentDidUpdate",
|
4127 |
+
value: function componentDidUpdate(prevProps) {
|
4128 |
+
var _this$props9 = this.props,
|
4129 |
+
isDisabled = _this$props9.isDisabled,
|
4130 |
+
menuIsOpen = _this$props9.menuIsOpen;
|
4131 |
+
var isFocused = this.state.isFocused;
|
4132 |
+
|
4133 |
+
if ( // ensure focus is restored correctly when the control becomes enabled
|
4134 |
+
isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens
|
4135 |
+
isFocused && menuIsOpen && !prevProps.menuIsOpen) {
|
4136 |
+
this.focusInput();
|
4137 |
+
} // scroll the focused option into view if necessary
|
4138 |
+
|
4139 |
+
|
4140 |
+
if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {
|
4141 |
+
scrollIntoView(this.menuListRef, this.focusedOptionRef);
|
4142 |
+
}
|
4143 |
+
|
4144 |
+
this.scrollToFocusedOptionOnUpdate = false;
|
4145 |
+
}
|
4146 |
+
}, {
|
4147 |
+
key: "componentWillUnmount",
|
4148 |
+
value: function componentWillUnmount() {
|
4149 |
+
this.stopListeningComposition();
|
4150 |
+
this.stopListeningToTouch();
|
4151 |
+
document.removeEventListener('scroll', this.onScroll, true);
|
4152 |
+
}
|
4153 |
+
}, {
|
4154 |
+
key: "onMenuOpen",
|
4155 |
+
// ==============================
|
4156 |
+
// Consumer Handlers
|
4157 |
+
// ==============================
|
4158 |
+
value: function onMenuOpen() {
|
4159 |
+
this.props.onMenuOpen();
|
4160 |
+
}
|
4161 |
+
}, {
|
4162 |
+
key: "onMenuClose",
|
4163 |
+
value: function onMenuClose() {
|
4164 |
+
var _this$props10 = this.props,
|
4165 |
+
isSearchable = _this$props10.isSearchable,
|
4166 |
+
isMulti = _this$props10.isMulti;
|
4167 |
+
this.announceAriaLiveContext({
|
4168 |
+
event: 'input',
|
4169 |
+
context: {
|
4170 |
+
isSearchable: isSearchable,
|
4171 |
+
isMulti: isMulti
|
4172 |
+
}
|
4173 |
+
});
|
4174 |
+
this.onInputChange('', {
|
4175 |
+
action: 'menu-close'
|
4176 |
+
});
|
4177 |
+
this.props.onMenuClose();
|
4178 |
+
}
|
4179 |
+
}, {
|
4180 |
+
key: "onInputChange",
|
4181 |
+
value: function onInputChange(newValue, actionMeta) {
|
4182 |
+
this.props.onInputChange(newValue, actionMeta);
|
4183 |
+
} // ==============================
|
4184 |
+
// Methods
|
4185 |
+
// ==============================
|
4186 |
+
|
4187 |
+
}, {
|
4188 |
+
key: "focusInput",
|
4189 |
+
value: function focusInput() {
|
4190 |
+
if (!this.inputRef) return;
|
4191 |
+
this.inputRef.focus();
|
4192 |
+
}
|
4193 |
+
}, {
|
4194 |
+
key: "blurInput",
|
4195 |
+
value: function blurInput() {
|
4196 |
+
if (!this.inputRef) return;
|
4197 |
+
this.inputRef.blur();
|
4198 |
+
} // aliased for consumers
|
4199 |
+
|
4200 |
+
}, {
|
4201 |
+
key: "openMenu",
|
4202 |
+
value: function openMenu(focusOption) {
|
4203 |
+
var _this$state3 = this.state,
|
4204 |
+
menuOptions = _this$state3.menuOptions,
|
4205 |
+
selectValue = _this$state3.selectValue,
|
4206 |
+
isFocused = _this$state3.isFocused;
|
4207 |
+
var isMulti = this.props.isMulti;
|
4208 |
+
var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;
|
4209 |
+
|
4210 |
+
if (!isMulti) {
|
4211 |
+
var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);
|
4212 |
+
|
4213 |
+
if (selectedIndex > -1) {
|
4214 |
+
openAtIndex = selectedIndex;
|
4215 |
+
}
|
4216 |
+
} // only scroll if the menu isn't already open
|
4217 |
+
|
4218 |
+
|
4219 |
+
this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);
|
4220 |
+
this.inputIsHiddenAfterUpdate = false;
|
4221 |
+
this.onMenuOpen();
|
4222 |
+
this.setState({
|
4223 |
+
focusedValue: null,
|
4224 |
+
focusedOption: menuOptions.focusable[openAtIndex]
|
4225 |
+
});
|
4226 |
+
this.announceAriaLiveContext({
|
4227 |
+
event: 'menu'
|
4228 |
+
});
|
4229 |
+
}
|
4230 |
+
}, {
|
4231 |
+
key: "focusValue",
|
4232 |
+
value: function focusValue(direction) {
|
4233 |
+
var _this$props11 = this.props,
|
4234 |
+
isMulti = _this$props11.isMulti,
|
4235 |
+
isSearchable = _this$props11.isSearchable;
|
4236 |
+
var _this$state4 = this.state,
|
4237 |
+
selectValue = _this$state4.selectValue,
|
4238 |
+
focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing
|
4239 |
+
|
4240 |
+
if (!isMulti) return;
|
4241 |
+
this.setState({
|
4242 |
+
focusedOption: null
|
4243 |
+
});
|
4244 |
+
var focusedIndex = selectValue.indexOf(focusedValue);
|
4245 |
+
|
4246 |
+
if (!focusedValue) {
|
4247 |
+
focusedIndex = -1;
|
4248 |
+
this.announceAriaLiveContext({
|
4249 |
+
event: 'value'
|
4250 |
+
});
|
4251 |
+
}
|
4252 |
+
|
4253 |
+
var lastIndex = selectValue.length - 1;
|
4254 |
+
var nextFocus = -1;
|
4255 |
+
if (!selectValue.length) return;
|
4256 |
+
|
4257 |
+
switch (direction) {
|
4258 |
+
case 'previous':
|
4259 |
+
if (focusedIndex === 0) {
|
4260 |
+
// don't cycle from the start to the end
|
4261 |
+
nextFocus = 0;
|
4262 |
+
} else if (focusedIndex === -1) {
|
4263 |
+
// if nothing is focused, focus the last value first
|
4264 |
+
nextFocus = lastIndex;
|
4265 |
+
} else {
|
4266 |
+
nextFocus = focusedIndex - 1;
|
4267 |
+
}
|
4268 |
+
|
4269 |
+
break;
|
4270 |
+
|
4271 |
+
case 'next':
|
4272 |
+
if (focusedIndex > -1 && focusedIndex < lastIndex) {
|
4273 |
+
nextFocus = focusedIndex + 1;
|
4274 |
+
}
|
4275 |
+
|
4276 |
+
break;
|
4277 |
+
}
|
4278 |
+
|
4279 |
+
if (nextFocus === -1) {
|
4280 |
+
this.announceAriaLiveContext({
|
4281 |
+
event: 'input',
|
4282 |
+
context: {
|
4283 |
+
isSearchable: isSearchable,
|
4284 |
+
isMulti: isMulti
|
4285 |
+
}
|
4286 |
+
});
|
4287 |
+
}
|
4288 |
+
|
4289 |
+
this.setState({
|
4290 |
+
inputIsHidden: nextFocus === -1 ? false : true,
|
4291 |
+
focusedValue: selectValue[nextFocus]
|
4292 |
+
});
|
4293 |
+
}
|
4294 |
+
}, {
|
4295 |
+
key: "focusOption",
|
4296 |
+
value: function focusOption() {
|
4297 |
+
var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';
|
4298 |
+
var pageSize = this.props.pageSize;
|
4299 |
+
var _this$state5 = this.state,
|
4300 |
+
focusedOption = _this$state5.focusedOption,
|
4301 |
+
menuOptions = _this$state5.menuOptions;
|
4302 |
+
var options = menuOptions.focusable;
|
4303 |
+
if (!options.length) return;
|
4304 |
+
var nextFocus = 0; // handles 'first'
|
4305 |
+
|
4306 |
+
var focusedIndex = options.indexOf(focusedOption);
|
4307 |
+
|
4308 |
+
if (!focusedOption) {
|
4309 |
+
focusedIndex = -1;
|
4310 |
+
this.announceAriaLiveContext({
|
4311 |
+
event: 'menu'
|
4312 |
+
});
|
4313 |
+
}
|
4314 |
+
|
4315 |
+
if (direction === 'up') {
|
4316 |
+
nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;
|
4317 |
+
} else if (direction === 'down') {
|
4318 |
+
nextFocus = (focusedIndex + 1) % options.length;
|
4319 |
+
} else if (direction === 'pageup') {
|
4320 |
+
nextFocus = focusedIndex - pageSize;
|
4321 |
+
if (nextFocus < 0) nextFocus = 0;
|
4322 |
+
} else if (direction === 'pagedown') {
|
4323 |
+
nextFocus = focusedIndex + pageSize;
|
4324 |
+
if (nextFocus > options.length - 1) nextFocus = options.length - 1;
|
4325 |
+
} else if (direction === 'last') {
|
4326 |
+
nextFocus = options.length - 1;
|
4327 |
+
}
|
4328 |
+
|
4329 |
+
this.scrollToFocusedOptionOnUpdate = true;
|
4330 |
+
this.setState({
|
4331 |
+
focusedOption: options[nextFocus],
|
4332 |
+
focusedValue: null
|
4333 |
+
});
|
4334 |
+
this.announceAriaLiveContext({
|
4335 |
+
event: 'menu',
|
4336 |
+
context: {
|
4337 |
+
isDisabled: isOptionDisabled(options[nextFocus])
|
4338 |
+
}
|
4339 |
+
});
|
4340 |
+
}
|
4341 |
+
}, {
|
4342 |
+
key: "getTheme",
|
4343 |
+
// ==============================
|
4344 |
+
// Getters
|
4345 |
+
// ==============================
|
4346 |
+
value: function getTheme() {
|
4347 |
+
// Use the default theme if there are no customizations.
|
4348 |
+
if (!this.props.theme) {
|
4349 |
+
return defaultTheme;
|
4350 |
+
} // If the theme prop is a function, assume the function
|
4351 |
+
// knows how to merge the passed-in default theme with
|
4352 |
+
// its own modifications.
|
4353 |
+
|
4354 |
+
|
4355 |
+
if (typeof this.props.theme === 'function') {
|
4356 |
+
return this.props.theme(defaultTheme);
|
4357 |
+
} // Otherwise, if a plain theme object was passed in,
|
4358 |
+
// overlay it with the default theme.
|
4359 |
+
|
4360 |
+
|
4361 |
+
return _objectSpread({}, defaultTheme, this.props.theme);
|
4362 |
+
}
|
4363 |
+
}, {
|
4364 |
+
key: "getCommonProps",
|
4365 |
+
value: function getCommonProps() {
|
4366 |
+
var clearValue = this.clearValue,
|
4367 |
+
getStyles = this.getStyles,
|
4368 |
+
setValue = this.setValue,
|
4369 |
+
selectOption = this.selectOption,
|
4370 |
+
props = this.props;
|
4371 |
+
var classNamePrefix = props.classNamePrefix,
|
4372 |
+
isMulti = props.isMulti,
|
4373 |
+
isRtl = props.isRtl,
|
4374 |
+
options = props.options;
|
4375 |
+
var selectValue = this.state.selectValue;
|
4376 |
+
var hasValue = this.hasValue();
|
4377 |
+
|
4378 |
+
var getValue = function getValue() {
|
4379 |
+
return selectValue;
|
4380 |
+
};
|
4381 |
+
|
4382 |
+
var cx = classNames.bind(null, classNamePrefix);
|
4383 |
+
return {
|
4384 |
+
cx: cx,
|
4385 |
+
clearValue: clearValue,
|
4386 |
+
getStyles: getStyles,
|
4387 |
+
getValue: getValue,
|
4388 |
+
hasValue: hasValue,
|
4389 |
+
isMulti: isMulti,
|
4390 |
+
isRtl: isRtl,
|
4391 |
+
options: options,
|
4392 |
+
selectOption: selectOption,
|
4393 |
+
setValue: setValue,
|
4394 |
+
selectProps: props,
|
4395 |
+
theme: this.getTheme()
|
4396 |
+
};
|
4397 |
+
}
|
4398 |
+
}, {
|
4399 |
+
key: "getNextFocusedValue",
|
4400 |
+
value: function getNextFocusedValue(nextSelectValue) {
|
4401 |
+
if (this.clearFocusValueOnUpdate) {
|
4402 |
+
this.clearFocusValueOnUpdate = false;
|
4403 |
+
return null;
|
4404 |
+
}
|
4405 |
+
|
4406 |
+
var _this$state6 = this.state,
|
4407 |
+
focusedValue = _this$state6.focusedValue,
|
4408 |
+
lastSelectValue = _this$state6.selectValue;
|
4409 |
+
var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);
|
4410 |
+
|
4411 |
+
if (lastFocusedIndex > -1) {
|
4412 |
+
var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);
|
4413 |
+
|
4414 |
+
if (nextFocusedIndex > -1) {
|
4415 |
+
// the focused value is still in the selectValue, return it
|
4416 |
+
return focusedValue;
|
4417 |
+
} else if (lastFocusedIndex < nextSelectValue.length) {
|
4418 |
+
// the focusedValue is not present in the next selectValue array by
|
4419 |
+
// reference, so return the new value at the same index
|
4420 |
+
return nextSelectValue[lastFocusedIndex];
|
4421 |
+
}
|
4422 |
+
}
|
4423 |
+
|
4424 |
+
return null;
|
4425 |
+
}
|
4426 |
+
}, {
|
4427 |
+
key: "getNextFocusedOption",
|
4428 |
+
value: function getNextFocusedOption(options) {
|
4429 |
+
var lastFocusedOption = this.state.focusedOption;
|
4430 |
+
return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
|
4431 |
+
}
|
4432 |
+
}, {
|
4433 |
+
key: "hasValue",
|
4434 |
+
value: function hasValue() {
|
4435 |
+
var selectValue = this.state.selectValue;
|
4436 |
+
return selectValue.length > 0;
|
4437 |
+
}
|
4438 |
+
}, {
|
4439 |
+
key: "hasOptions",
|
4440 |
+
value: function hasOptions() {
|
4441 |
+
return !!this.state.menuOptions.render.length;
|
4442 |
+
}
|
4443 |
+
}, {
|
4444 |
+
key: "countOptions",
|
4445 |
+
value: function countOptions() {
|
4446 |
+
return this.state.menuOptions.focusable.length;
|
4447 |
+
}
|
4448 |
+
}, {
|
4449 |
+
key: "isClearable",
|
4450 |
+
value: function isClearable() {
|
4451 |
+
var _this$props12 = this.props,
|
4452 |
+
isClearable = _this$props12.isClearable,
|
4453 |
+
isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable
|
4454 |
+
// multi select, by default, IS clearable
|
4455 |
+
|
4456 |
+
if (isClearable === undefined) return isMulti;
|
4457 |
+
return isClearable;
|
4458 |
+
}
|
4459 |
+
}, {
|
4460 |
+
key: "isOptionDisabled",
|
4461 |
+
value: function isOptionDisabled$$1(option, selectValue) {
|
4462 |
+
return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;
|
4463 |
+
}
|
4464 |
+
}, {
|
4465 |
+
key: "isOptionSelected",
|
4466 |
+
value: function isOptionSelected(option, selectValue) {
|
4467 |
+
var _this2 = this;
|
4468 |
+
|
4469 |
+
if (selectValue.indexOf(option) > -1) return true;
|
4470 |
+
|
4471 |
+
if (typeof this.props.isOptionSelected === 'function') {
|
4472 |
+
return this.props.isOptionSelected(option, selectValue);
|
4473 |
+
}
|
4474 |
+
|
4475 |
+
var candidate = this.getOptionValue(option);
|
4476 |
+
return selectValue.some(function (i) {
|
4477 |
+
return _this2.getOptionValue(i) === candidate;
|
4478 |
+
});
|
4479 |
+
}
|
4480 |
+
}, {
|
4481 |
+
key: "filterOption",
|
4482 |
+
value: function filterOption(option, inputValue) {
|
4483 |
+
return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;
|
4484 |
+
}
|
4485 |
+
}, {
|
4486 |
+
key: "formatOptionLabel",
|
4487 |
+
value: function formatOptionLabel(data, context) {
|
4488 |
+
if (typeof this.props.formatOptionLabel === 'function') {
|
4489 |
+
var inputValue = this.props.inputValue;
|
4490 |
+
var selectValue = this.state.selectValue;
|
4491 |
+
return this.props.formatOptionLabel(data, {
|
4492 |
+
context: context,
|
4493 |
+
inputValue: inputValue,
|
4494 |
+
selectValue: selectValue
|
4495 |
+
});
|
4496 |
+
} else {
|
4497 |
+
return this.getOptionLabel(data);
|
4498 |
+
}
|
4499 |
+
}
|
4500 |
+
}, {
|
4501 |
+
key: "formatGroupLabel",
|
4502 |
+
value: function formatGroupLabel$$1(data) {
|
4503 |
+
return this.props.formatGroupLabel(data);
|
4504 |
+
} // ==============================
|
4505 |
+
// Mouse Handlers
|
4506 |
+
// ==============================
|
4507 |
+
|
4508 |
+
}, {
|
4509 |
+
key: "startListeningComposition",
|
4510 |
+
// ==============================
|
4511 |
+
// Composition Handlers
|
4512 |
+
// ==============================
|
4513 |
+
value: function startListeningComposition() {
|
4514 |
+
if (document && document.addEventListener) {
|
4515 |
+
document.addEventListener('compositionstart', this.onCompositionStart, false);
|
4516 |
+
document.addEventListener('compositionend', this.onCompositionEnd, false);
|
4517 |
+
}
|
4518 |
+
}
|
4519 |
+
}, {
|
4520 |
+
key: "stopListeningComposition",
|
4521 |
+
value: function stopListeningComposition() {
|
4522 |
+
if (document && document.removeEventListener) {
|
4523 |
+
document.removeEventListener('compositionstart', this.onCompositionStart);
|
4524 |
+
document.removeEventListener('compositionend', this.onCompositionEnd);
|
4525 |
+
}
|
4526 |
+
}
|
4527 |
+
}, {
|
4528 |
+
key: "startListeningToTouch",
|
4529 |
+
// ==============================
|
4530 |
+
// Touch Handlers
|
4531 |
+
// ==============================
|
4532 |
+
value: function startListeningToTouch() {
|
4533 |
+
if (document && document.addEventListener) {
|
4534 |
+
document.addEventListener('touchstart', this.onTouchStart, false);
|
4535 |
+
document.addEventListener('touchmove', this.onTouchMove, false);
|
4536 |
+
document.addEventListener('touchend', this.onTouchEnd, false);
|
4537 |
+
}
|
4538 |
+
}
|
4539 |
+
}, {
|
4540 |
+
key: "stopListeningToTouch",
|
4541 |
+
value: function stopListeningToTouch() {
|
4542 |
+
if (document && document.removeEventListener) {
|
4543 |
+
document.removeEventListener('touchstart', this.onTouchStart);
|
4544 |
+
document.removeEventListener('touchmove', this.onTouchMove);
|
4545 |
+
document.removeEventListener('touchend', this.onTouchEnd);
|
4546 |
+
}
|
4547 |
+
}
|
4548 |
+
}, {
|
4549 |
+
key: "buildMenuOptions",
|
4550 |
+
// ==============================
|
4551 |
+
// Menu Options
|
4552 |
+
// ==============================
|
4553 |
+
value: function buildMenuOptions(props, selectValue) {
|
4554 |
+
var _this3 = this;
|
4555 |
+
|
4556 |
+
var _props$inputValue = props.inputValue,
|
4557 |
+
inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,
|
4558 |
+
options = props.options;
|
4559 |
+
|
4560 |
+
var toOption = function toOption(option, id) {
|
4561 |
+
var isDisabled = _this3.isOptionDisabled(option, selectValue);
|
4562 |
+
|
4563 |
+
var isSelected = _this3.isOptionSelected(option, selectValue);
|
4564 |
+
|
4565 |
+
var label = _this3.getOptionLabel(option);
|
4566 |
+
|
4567 |
+
var value = _this3.getOptionValue(option);
|
4568 |
+
|
4569 |
+
if (_this3.shouldHideSelectedOptions() && isSelected || !_this3.filterOption({
|
4570 |
+
label: label,
|
4571 |
+
value: value,
|
4572 |
+
data: option
|
4573 |
+
}, inputValue)) {
|
4574 |
+
return;
|
4575 |
+
}
|
4576 |
+
|
4577 |
+
var onHover = isDisabled ? undefined : function () {
|
4578 |
+
return _this3.onOptionHover(option);
|
4579 |
+
};
|
4580 |
+
var onSelect = isDisabled ? undefined : function () {
|
4581 |
+
return _this3.selectOption(option);
|
4582 |
+
};
|
4583 |
+
var optionId = "".concat(_this3.getElementId('option'), "-").concat(id);
|
4584 |
+
return {
|
4585 |
+
innerProps: {
|
4586 |
+
id: optionId,
|
4587 |
+
onClick: onSelect,
|
4588 |
+
onMouseMove: onHover,
|
4589 |
+
onMouseOver: onHover,
|
4590 |
+
tabIndex: -1
|
4591 |
+
},
|
4592 |
+
data: option,
|
4593 |
+
isDisabled: isDisabled,
|
4594 |
+
isSelected: isSelected,
|
4595 |
+
key: optionId,
|
4596 |
+
label: label,
|
4597 |
+
type: 'option',
|
4598 |
+
value: value
|
4599 |
+
};
|
4600 |
+
};
|
4601 |
+
|
4602 |
+
return options.reduce(function (acc, item, itemIndex) {
|
4603 |
+
if (item.options) {
|
4604 |
+
// TODO needs a tidier implementation
|
4605 |
+
if (!_this3.hasGroups) _this3.hasGroups = true;
|
4606 |
+
var items = item.options;
|
4607 |
+
var children = items.map(function (child, i) {
|
4608 |
+
var option = toOption(child, "".concat(itemIndex, "-").concat(i));
|
4609 |
+
if (option) acc.focusable.push(child);
|
4610 |
+
return option;
|
4611 |
+
}).filter(Boolean);
|
4612 |
+
|
4613 |
+
if (children.length) {
|
4614 |
+
var groupId = "".concat(_this3.getElementId('group'), "-").concat(itemIndex);
|
4615 |
+
acc.render.push({
|
4616 |
+
type: 'group',
|
4617 |
+
key: groupId,
|
4618 |
+
data: item,
|
4619 |
+
options: children
|
4620 |
+
});
|
4621 |
+
}
|
4622 |
+
} else {
|
4623 |
+
var option = toOption(item, "".concat(itemIndex));
|
4624 |
+
|
4625 |
+
if (option) {
|
4626 |
+
acc.render.push(option);
|
4627 |
+
acc.focusable.push(item);
|
4628 |
+
}
|
4629 |
+
}
|
4630 |
+
|
4631 |
+
return acc;
|
4632 |
+
}, {
|
4633 |
+
render: [],
|
4634 |
+
focusable: []
|
4635 |
+
});
|
4636 |
+
} // ==============================
|
4637 |
+
// Renderers
|
4638 |
+
// ==============================
|
4639 |
+
|
4640 |
+
}, {
|
4641 |
+
key: "constructAriaLiveMessage",
|
4642 |
+
value: function constructAriaLiveMessage() {
|
4643 |
+
var _this$state7 = this.state,
|
4644 |
+
ariaLiveContext = _this$state7.ariaLiveContext,
|
4645 |
+
selectValue = _this$state7.selectValue,
|
4646 |
+
focusedValue = _this$state7.focusedValue,
|
4647 |
+
focusedOption = _this$state7.focusedOption;
|
4648 |
+
var _this$props13 = this.props,
|
4649 |
+
options = _this$props13.options,
|
4650 |
+
menuIsOpen = _this$props13.menuIsOpen,
|
4651 |
+
inputValue = _this$props13.inputValue,
|
4652 |
+
screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.
|
4653 |
+
|
4654 |
+
var focusedValueMsg = focusedValue ? valueFocusAriaMessage({
|
4655 |
+
focusedValue: focusedValue,
|
4656 |
+
getOptionLabel: this.getOptionLabel,
|
4657 |
+
selectValue: selectValue
|
4658 |
+
}) : ''; // An aria live message representing the currently focused option in the select.
|
4659 |
+
|
4660 |
+
var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({
|
4661 |
+
focusedOption: focusedOption,
|
4662 |
+
getOptionLabel: this.getOptionLabel,
|
4663 |
+
options: options
|
4664 |
+
}) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.
|
4665 |
+
|
4666 |
+
var resultsMsg = resultsAriaMessage({
|
4667 |
+
inputValue: inputValue,
|
4668 |
+
screenReaderMessage: screenReaderStatus({
|
4669 |
+
count: this.countOptions()
|
4670 |
+
})
|
4671 |
+
});
|
4672 |
+
return "".concat(focusedValueMsg, " ").concat(focusedOptionMsg, " ").concat(resultsMsg, " ").concat(ariaLiveContext);
|
4673 |
+
}
|
4674 |
+
}, {
|
4675 |
+
key: "renderInput",
|
4676 |
+
value: function renderInput() {
|
4677 |
+
var _this$props14 = this.props,
|
4678 |
+
isDisabled = _this$props14.isDisabled,
|
4679 |
+
isSearchable = _this$props14.isSearchable,
|
4680 |
+
inputId = _this$props14.inputId,
|
4681 |
+
inputValue = _this$props14.inputValue,
|
4682 |
+
tabIndex = _this$props14.tabIndex;
|
4683 |
+
var Input = this.components.Input;
|
4684 |
+
var inputIsHidden = this.state.inputIsHidden;
|
4685 |
+
var id = inputId || this.getElementId('input');
|
4686 |
+
|
4687 |
+
if (!isSearchable) {
|
4688 |
+
// use a dummy input to maintain focus/blur functionality
|
4689 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DummyInput, {
|
4690 |
+
id: id,
|
4691 |
+
innerRef: this.getInputRef,
|
4692 |
+
onBlur: this.onInputBlur,
|
4693 |
+
onChange: noop,
|
4694 |
+
onFocus: this.onInputFocus,
|
4695 |
+
readOnly: true,
|
4696 |
+
disabled: isDisabled,
|
4697 |
+
tabIndex: tabIndex,
|
4698 |
+
value: ""
|
4699 |
+
});
|
4700 |
+
} // aria attributes makes the JSX "noisy", separated for clarity
|
4701 |
+
|
4702 |
+
|
4703 |
+
var ariaAttributes = {
|
4704 |
+
'aria-autocomplete': 'list',
|
4705 |
+
'aria-label': this.props['aria-label'],
|
4706 |
+
'aria-labelledby': this.props['aria-labelledby']
|
4707 |
+
};
|
4708 |
+
var _this$commonProps = this.commonProps,
|
4709 |
+
cx = _this$commonProps.cx,
|
4710 |
+
theme = _this$commonProps.theme,
|
4711 |
+
selectProps = _this$commonProps.selectProps;
|
4712 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Input, _extends({
|
4713 |
+
autoCapitalize: "none",
|
4714 |
+
autoComplete: "off",
|
4715 |
+
autoCorrect: "off",
|
4716 |
+
cx: cx,
|
4717 |
+
getStyles: this.getStyles,
|
4718 |
+
id: id,
|
4719 |
+
innerRef: this.getInputRef,
|
4720 |
+
isDisabled: isDisabled,
|
4721 |
+
isHidden: inputIsHidden,
|
4722 |
+
onBlur: this.onInputBlur,
|
4723 |
+
onChange: this.handleInputChange,
|
4724 |
+
onFocus: this.onInputFocus,
|
4725 |
+
selectProps: selectProps,
|
4726 |
+
spellCheck: "false",
|
4727 |
+
tabIndex: tabIndex,
|
4728 |
+
theme: theme,
|
4729 |
+
type: "text",
|
4730 |
+
value: inputValue
|
4731 |
+
}, ariaAttributes));
|
4732 |
+
}
|
4733 |
+
}, {
|
4734 |
+
key: "renderPlaceholderOrValue",
|
4735 |
+
value: function renderPlaceholderOrValue() {
|
4736 |
+
var _this4 = this;
|
4737 |
+
|
4738 |
+
var _this$components = this.components,
|
4739 |
+
MultiValue = _this$components.MultiValue,
|
4740 |
+
MultiValueContainer = _this$components.MultiValueContainer,
|
4741 |
+
MultiValueLabel = _this$components.MultiValueLabel,
|
4742 |
+
MultiValueRemove = _this$components.MultiValueRemove,
|
4743 |
+
SingleValue = _this$components.SingleValue,
|
4744 |
+
Placeholder = _this$components.Placeholder;
|
4745 |
+
var commonProps = this.commonProps;
|
4746 |
+
var _this$props15 = this.props,
|
4747 |
+
controlShouldRenderValue = _this$props15.controlShouldRenderValue,
|
4748 |
+
isDisabled = _this$props15.isDisabled,
|
4749 |
+
isMulti = _this$props15.isMulti,
|
4750 |
+
inputValue = _this$props15.inputValue,
|
4751 |
+
placeholder = _this$props15.placeholder;
|
4752 |
+
var _this$state8 = this.state,
|
4753 |
+
selectValue = _this$state8.selectValue,
|
4754 |
+
focusedValue = _this$state8.focusedValue,
|
4755 |
+
isFocused = _this$state8.isFocused;
|
4756 |
+
|
4757 |
+
if (!this.hasValue() || !controlShouldRenderValue) {
|
4758 |
+
return inputValue ? null : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Placeholder, _extends({}, commonProps, {
|
4759 |
+
key: "placeholder",
|
4760 |
+
isDisabled: isDisabled,
|
4761 |
+
isFocused: isFocused
|
4762 |
+
}), placeholder);
|
4763 |
+
}
|
4764 |
+
|
4765 |
+
if (isMulti) {
|
4766 |
+
var selectValues = selectValue.map(function (opt) {
|
4767 |
+
var isOptionFocused = opt === focusedValue;
|
4768 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MultiValue, _extends({}, commonProps, {
|
4769 |
+
components: {
|
4770 |
+
Container: MultiValueContainer,
|
4771 |
+
Label: MultiValueLabel,
|
4772 |
+
Remove: MultiValueRemove
|
4773 |
+
},
|
4774 |
+
isFocused: isOptionFocused,
|
4775 |
+
isDisabled: isDisabled,
|
4776 |
+
key: _this4.getOptionValue(opt),
|
4777 |
+
removeProps: {
|
4778 |
+
onClick: function onClick() {
|
4779 |
+
return _this4.removeValue(opt);
|
4780 |
+
},
|
4781 |
+
onTouchEnd: function onTouchEnd() {
|
4782 |
+
return _this4.removeValue(opt);
|
4783 |
+
},
|
4784 |
+
onMouseDown: function onMouseDown(e) {
|
4785 |
+
e.preventDefault();
|
4786 |
+
e.stopPropagation();
|
4787 |
+
}
|
4788 |
+
},
|
4789 |
+
data: opt
|
4790 |
+
}), _this4.formatOptionLabel(opt, 'value'));
|
4791 |
+
});
|
4792 |
+
return selectValues;
|
4793 |
+
}
|
4794 |
+
|
4795 |
+
if (inputValue) {
|
4796 |
+
return null;
|
4797 |
+
}
|
4798 |
+
|
4799 |
+
var singleValue = selectValue[0];
|
4800 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SingleValue, _extends({}, commonProps, {
|
4801 |
+
data: singleValue,
|
4802 |
+
isDisabled: isDisabled
|
4803 |
+
}), this.formatOptionLabel(singleValue, 'value'));
|
4804 |
+
}
|
4805 |
+
}, {
|
4806 |
+
key: "renderClearIndicator",
|
4807 |
+
value: function renderClearIndicator() {
|
4808 |
+
var ClearIndicator = this.components.ClearIndicator;
|
4809 |
+
var commonProps = this.commonProps;
|
4810 |
+
var _this$props16 = this.props,
|
4811 |
+
isDisabled = _this$props16.isDisabled,
|
4812 |
+
isLoading = _this$props16.isLoading;
|
4813 |
+
var isFocused = this.state.isFocused;
|
4814 |
+
|
4815 |
+
if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {
|
4816 |
+
return null;
|
4817 |
+
}
|
4818 |
+
|
4819 |
+
var innerProps = {
|
4820 |
+
onMouseDown: this.onClearIndicatorMouseDown,
|
4821 |
+
onTouchEnd: this.onClearIndicatorTouchEnd,
|
4822 |
+
'aria-hidden': 'true'
|
4823 |
+
};
|
4824 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ClearIndicator, _extends({}, commonProps, {
|
4825 |
+
innerProps: innerProps,
|
4826 |
+
isFocused: isFocused
|
4827 |
+
}));
|
4828 |
+
}
|
4829 |
+
}, {
|
4830 |
+
key: "renderLoadingIndicator",
|
4831 |
+
value: function renderLoadingIndicator() {
|
4832 |
+
var LoadingIndicator = this.components.LoadingIndicator;
|
4833 |
+
var commonProps = this.commonProps;
|
4834 |
+
var _this$props17 = this.props,
|
4835 |
+
isDisabled = _this$props17.isDisabled,
|
4836 |
+
isLoading = _this$props17.isLoading;
|
4837 |
+
var isFocused = this.state.isFocused;
|
4838 |
+
if (!LoadingIndicator || !isLoading) return null;
|
4839 |
+
var innerProps = {
|
4840 |
+
'aria-hidden': 'true'
|
4841 |
+
};
|
4842 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingIndicator, _extends({}, commonProps, {
|
4843 |
+
innerProps: innerProps,
|
4844 |
+
isDisabled: isDisabled,
|
4845 |
+
isFocused: isFocused
|
4846 |
+
}));
|
4847 |
+
}
|
4848 |
+
}, {
|
4849 |
+
key: "renderIndicatorSeparator",
|
4850 |
+
value: function renderIndicatorSeparator() {
|
4851 |
+
var _this$components2 = this.components,
|
4852 |
+
DropdownIndicator = _this$components2.DropdownIndicator,
|
4853 |
+
IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator
|
4854 |
+
|
4855 |
+
if (!DropdownIndicator || !IndicatorSeparator) return null;
|
4856 |
+
var commonProps = this.commonProps;
|
4857 |
+
var isDisabled = this.props.isDisabled;
|
4858 |
+
var isFocused = this.state.isFocused;
|
4859 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorSeparator, _extends({}, commonProps, {
|
4860 |
+
isDisabled: isDisabled,
|
4861 |
+
isFocused: isFocused
|
4862 |
+
}));
|
4863 |
+
}
|
4864 |
+
}, {
|
4865 |
+
key: "renderDropdownIndicator",
|
4866 |
+
value: function renderDropdownIndicator() {
|
4867 |
+
var DropdownIndicator = this.components.DropdownIndicator;
|
4868 |
+
if (!DropdownIndicator) return null;
|
4869 |
+
var commonProps = this.commonProps;
|
4870 |
+
var isDisabled = this.props.isDisabled;
|
4871 |
+
var isFocused = this.state.isFocused;
|
4872 |
+
var innerProps = {
|
4873 |
+
onMouseDown: this.onDropdownIndicatorMouseDown,
|
4874 |
+
onTouchEnd: this.onDropdownIndicatorTouchEnd,
|
4875 |
+
'aria-hidden': 'true'
|
4876 |
+
};
|
4877 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(DropdownIndicator, _extends({}, commonProps, {
|
4878 |
+
innerProps: innerProps,
|
4879 |
+
isDisabled: isDisabled,
|
4880 |
+
isFocused: isFocused
|
4881 |
+
}));
|
4882 |
+
}
|
4883 |
+
}, {
|
4884 |
+
key: "renderMenu",
|
4885 |
+
value: function renderMenu() {
|
4886 |
+
var _this5 = this;
|
4887 |
+
|
4888 |
+
var _this$components3 = this.components,
|
4889 |
+
Group = _this$components3.Group,
|
4890 |
+
GroupHeading = _this$components3.GroupHeading,
|
4891 |
+
Menu$$1 = _this$components3.Menu,
|
4892 |
+
MenuList$$1 = _this$components3.MenuList,
|
4893 |
+
MenuPortal$$1 = _this$components3.MenuPortal,
|
4894 |
+
LoadingMessage$$1 = _this$components3.LoadingMessage,
|
4895 |
+
NoOptionsMessage$$1 = _this$components3.NoOptionsMessage,
|
4896 |
+
Option = _this$components3.Option;
|
4897 |
+
var commonProps = this.commonProps;
|
4898 |
+
var _this$state9 = this.state,
|
4899 |
+
focusedOption = _this$state9.focusedOption,
|
4900 |
+
menuOptions = _this$state9.menuOptions;
|
4901 |
+
var _this$props18 = this.props,
|
4902 |
+
captureMenuScroll = _this$props18.captureMenuScroll,
|
4903 |
+
inputValue = _this$props18.inputValue,
|
4904 |
+
isLoading = _this$props18.isLoading,
|
4905 |
+
loadingMessage = _this$props18.loadingMessage,
|
4906 |
+
minMenuHeight = _this$props18.minMenuHeight,
|
4907 |
+
maxMenuHeight = _this$props18.maxMenuHeight,
|
4908 |
+
menuIsOpen = _this$props18.menuIsOpen,
|
4909 |
+
menuPlacement = _this$props18.menuPlacement,
|
4910 |
+
menuPosition = _this$props18.menuPosition,
|
4911 |
+
menuPortalTarget = _this$props18.menuPortalTarget,
|
4912 |
+
menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,
|
4913 |
+
menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,
|
4914 |
+
noOptionsMessage = _this$props18.noOptionsMessage,
|
4915 |
+
onMenuScrollToTop = _this$props18.onMenuScrollToTop,
|
4916 |
+
onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;
|
4917 |
+
if (!menuIsOpen) return null; // TODO: Internal Option Type here
|
4918 |
+
|
4919 |
+
var render = function render(props) {
|
4920 |
+
// for performance, the menu options in state aren't changed when the
|
4921 |
+
// focused option changes so we calculate additional props based on that
|
4922 |
+
var isFocused = focusedOption === props.data;
|
4923 |
+
props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;
|
4924 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Option, _extends({}, commonProps, props, {
|
4925 |
+
isFocused: isFocused
|
4926 |
+
}), _this5.formatOptionLabel(props.data, 'menu'));
|
4927 |
+
};
|
4928 |
+
|
4929 |
+
var menuUI;
|
4930 |
+
|
4931 |
+
if (this.hasOptions()) {
|
4932 |
+
menuUI = menuOptions.render.map(function (item) {
|
4933 |
+
if (item.type === 'group') {
|
4934 |
+
var type = item.type,
|
4935 |
+
group = _objectWithoutProperties(item, ["type"]);
|
4936 |
+
|
4937 |
+
var headingId = "".concat(item.key, "-heading");
|
4938 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Group, _extends({}, commonProps, group, {
|
4939 |
+
Heading: GroupHeading,
|
4940 |
+
headingProps: {
|
4941 |
+
id: headingId
|
4942 |
+
},
|
4943 |
+
label: _this5.formatGroupLabel(item.data)
|
4944 |
+
}), item.options.map(function (option) {
|
4945 |
+
return render(option);
|
4946 |
+
}));
|
4947 |
+
} else if (item.type === 'option') {
|
4948 |
+
return render(item);
|
4949 |
+
}
|
4950 |
+
});
|
4951 |
+
} else if (isLoading) {
|
4952 |
+
var message = loadingMessage({
|
4953 |
+
inputValue: inputValue
|
4954 |
+
});
|
4955 |
+
if (message === null) return null;
|
4956 |
+
menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(LoadingMessage$$1, commonProps, message);
|
4957 |
+
} else {
|
4958 |
+
var _message = noOptionsMessage({
|
4959 |
+
inputValue: inputValue
|
4960 |
+
});
|
4961 |
+
|
4962 |
+
if (_message === null) return null;
|
4963 |
+
menuUI = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(NoOptionsMessage$$1, commonProps, _message);
|
4964 |
+
}
|
4965 |
+
|
4966 |
+
var menuPlacementProps = {
|
4967 |
+
minMenuHeight: minMenuHeight,
|
4968 |
+
maxMenuHeight: maxMenuHeight,
|
4969 |
+
menuPlacement: menuPlacement,
|
4970 |
+
menuPosition: menuPosition,
|
4971 |
+
menuShouldScrollIntoView: menuShouldScrollIntoView
|
4972 |
+
};
|
4973 |
+
var menuElement = __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref6) {
|
4974 |
+
var ref = _ref6.ref,
|
4975 |
+
_ref6$placerProps = _ref6.placerProps,
|
4976 |
+
placement = _ref6$placerProps.placement,
|
4977 |
+
maxHeight = _ref6$placerProps.maxHeight;
|
4978 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Menu$$1, _extends({}, commonProps, menuPlacementProps, {
|
4979 |
+
innerRef: ref,
|
4980 |
+
innerProps: {
|
4981 |
+
onMouseDown: _this5.onMenuMouseDown,
|
4982 |
+
onMouseMove: _this5.onMenuMouseMove
|
4983 |
+
},
|
4984 |
+
isLoading: isLoading,
|
4985 |
+
placement: placement
|
4986 |
+
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollCaptorSwitch, {
|
4987 |
+
isEnabled: captureMenuScroll,
|
4988 |
+
onTopArrive: onMenuScrollToTop,
|
4989 |
+
onBottomArrive: onMenuScrollToBottom
|
4990 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ScrollBlock, {
|
4991 |
+
isEnabled: menuShouldBlockScroll
|
4992 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuList$$1, _extends({}, commonProps, {
|
4993 |
+
innerRef: _this5.getMenuListRef,
|
4994 |
+
isLoading: isLoading,
|
4995 |
+
maxHeight: maxHeight
|
4996 |
+
}), menuUI))));
|
4997 |
+
}); // positioning behaviour is almost identical for portalled and fixed,
|
4998 |
+
// so we use the same component. the actual portalling logic is forked
|
4999 |
+
// within the component based on `menuPosition`
|
5000 |
+
|
5001 |
+
return menuPortalTarget || menuPosition === 'fixed' ? __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(MenuPortal$$1, _extends({}, commonProps, {
|
5002 |
+
appendTo: menuPortalTarget,
|
5003 |
+
controlElement: this.controlRef,
|
5004 |
+
menuPlacement: menuPlacement,
|
5005 |
+
menuPosition: menuPosition
|
5006 |
+
}), menuElement) : menuElement;
|
5007 |
+
}
|
5008 |
+
}, {
|
5009 |
+
key: "renderFormField",
|
5010 |
+
value: function renderFormField() {
|
5011 |
+
var _this6 = this;
|
5012 |
+
|
5013 |
+
var _this$props19 = this.props,
|
5014 |
+
delimiter = _this$props19.delimiter,
|
5015 |
+
isDisabled = _this$props19.isDisabled,
|
5016 |
+
isMulti = _this$props19.isMulti,
|
5017 |
+
name = _this$props19.name;
|
5018 |
+
var selectValue = this.state.selectValue;
|
5019 |
+
if (!name || isDisabled) return;
|
5020 |
+
|
5021 |
+
if (isMulti) {
|
5022 |
+
if (delimiter) {
|
5023 |
+
var value = selectValue.map(function (opt) {
|
5024 |
+
return _this6.getOptionValue(opt);
|
5025 |
+
}).join(delimiter);
|
5026 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
|
5027 |
+
name: name,
|
5028 |
+
type: "hidden",
|
5029 |
+
value: value
|
5030 |
+
});
|
5031 |
+
} else {
|
5032 |
+
var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {
|
5033 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
|
5034 |
+
key: "i-".concat(i),
|
5035 |
+
name: name,
|
5036 |
+
type: "hidden",
|
5037 |
+
value: _this6.getOptionValue(opt)
|
5038 |
+
});
|
5039 |
+
}) : __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
|
5040 |
+
name: name,
|
5041 |
+
type: "hidden"
|
5042 |
+
});
|
5043 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", null, input);
|
5044 |
+
}
|
5045 |
+
} else {
|
5046 |
+
var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';
|
5047 |
+
|
5048 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("input", {
|
5049 |
+
name: name,
|
5050 |
+
type: "hidden",
|
5051 |
+
value: _value
|
5052 |
+
});
|
5053 |
+
}
|
5054 |
+
}
|
5055 |
+
}, {
|
5056 |
+
key: "renderLiveRegion",
|
5057 |
+
value: function renderLiveRegion() {
|
5058 |
+
if (!this.state.isFocused) return null;
|
5059 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(A11yText, {
|
5060 |
+
"aria-live": "assertive"
|
5061 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
|
5062 |
+
id: "aria-selection-event"
|
5063 |
+
}, "\xA0", this.state.ariaLiveSelection), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("p", {
|
5064 |
+
id: "aria-context"
|
5065 |
+
}, "\xA0", this.constructAriaLiveMessage()));
|
5066 |
+
}
|
5067 |
+
}, {
|
5068 |
+
key: "render",
|
5069 |
+
value: function render() {
|
5070 |
+
var _this$components4 = this.components,
|
5071 |
+
Control = _this$components4.Control,
|
5072 |
+
IndicatorsContainer = _this$components4.IndicatorsContainer,
|
5073 |
+
SelectContainer = _this$components4.SelectContainer,
|
5074 |
+
ValueContainer = _this$components4.ValueContainer;
|
5075 |
+
var _this$props20 = this.props,
|
5076 |
+
className = _this$props20.className,
|
5077 |
+
id = _this$props20.id,
|
5078 |
+
isDisabled = _this$props20.isDisabled,
|
5079 |
+
menuIsOpen = _this$props20.menuIsOpen;
|
5080 |
+
var isFocused = this.state.isFocused;
|
5081 |
+
var commonProps = this.commonProps = this.getCommonProps();
|
5082 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectContainer, _extends({}, commonProps, {
|
5083 |
+
className: className,
|
5084 |
+
innerProps: {
|
5085 |
+
id: id,
|
5086 |
+
onKeyDown: this.onKeyDown
|
5087 |
+
},
|
5088 |
+
isDisabled: isDisabled,
|
5089 |
+
isFocused: isFocused
|
5090 |
+
}), this.renderLiveRegion(), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Control, _extends({}, commonProps, {
|
5091 |
+
innerRef: this.getControlRef,
|
5092 |
+
innerProps: {
|
5093 |
+
onMouseDown: this.onControlMouseDown,
|
5094 |
+
onTouchEnd: this.onControlTouchEnd
|
5095 |
+
},
|
5096 |
+
isDisabled: isDisabled,
|
5097 |
+
isFocused: isFocused,
|
5098 |
+
menuIsOpen: menuIsOpen
|
5099 |
+
}), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(ValueContainer, _extends({}, commonProps, {
|
5100 |
+
isDisabled: isDisabled
|
5101 |
+
}), this.renderPlaceholderOrValue(), this.renderInput()), __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(IndicatorsContainer, _extends({}, commonProps, {
|
5102 |
+
isDisabled: isDisabled
|
5103 |
+
}), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
|
5104 |
+
}
|
5105 |
+
}]);
|
5106 |
+
|
5107 |
+
return Select;
|
5108 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
5109 |
+
|
5110 |
+
_defineProperty(Select, "defaultProps", defaultProps);
|
5111 |
+
|
5112 |
+
var defaultProps$1 = {
|
5113 |
+
defaultInputValue: '',
|
5114 |
+
defaultMenuIsOpen: false,
|
5115 |
+
defaultValue: null
|
5116 |
+
};
|
5117 |
+
|
5118 |
+
var manageState = function manageState(SelectComponent) {
|
5119 |
+
var _class, _temp;
|
5120 |
+
|
5121 |
+
return _temp = _class =
|
5122 |
+
/*#__PURE__*/
|
5123 |
+
function (_Component) {
|
5124 |
+
_inherits(StateManager, _Component);
|
5125 |
+
|
5126 |
+
function StateManager() {
|
5127 |
+
var _getPrototypeOf2;
|
5128 |
+
|
5129 |
+
var _this;
|
5130 |
+
|
5131 |
+
_classCallCheck(this, StateManager);
|
5132 |
+
|
5133 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
5134 |
+
args[_key] = arguments[_key];
|
5135 |
+
}
|
5136 |
+
|
5137 |
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StateManager)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
5138 |
+
|
5139 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "select", void 0);
|
5140 |
+
|
5141 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
|
5142 |
+
inputValue: _this.props.inputValue !== undefined ? _this.props.inputValue : _this.props.defaultInputValue,
|
5143 |
+
menuIsOpen: _this.props.menuIsOpen !== undefined ? _this.props.menuIsOpen : _this.props.defaultMenuIsOpen,
|
5144 |
+
value: _this.props.value !== undefined ? _this.props.value : _this.props.defaultValue
|
5145 |
+
});
|
5146 |
+
|
5147 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (value, actionMeta) {
|
5148 |
+
_this.callProp('onChange', value, actionMeta);
|
5149 |
+
|
5150 |
+
_this.setState({
|
5151 |
+
value: value
|
5152 |
+
});
|
5153 |
+
});
|
5154 |
+
|
5155 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onInputChange", function (value, actionMeta) {
|
5156 |
+
// TODO: for backwards compatibility, we allow the prop to return a new
|
5157 |
+
// value, but now inputValue is a controllable prop we probably shouldn't
|
5158 |
+
var newValue = _this.callProp('onInputChange', value, actionMeta);
|
5159 |
+
|
5160 |
+
_this.setState({
|
5161 |
+
inputValue: newValue !== undefined ? newValue : value
|
5162 |
+
});
|
5163 |
+
});
|
5164 |
+
|
5165 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuOpen", function () {
|
5166 |
+
_this.callProp('onMenuOpen');
|
5167 |
+
|
5168 |
+
_this.setState({
|
5169 |
+
menuIsOpen: true
|
5170 |
+
});
|
5171 |
+
});
|
5172 |
+
|
5173 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onMenuClose", function () {
|
5174 |
+
_this.callProp('onMenuClose');
|
5175 |
+
|
5176 |
+
_this.setState({
|
5177 |
+
menuIsOpen: false
|
5178 |
+
});
|
5179 |
+
});
|
5180 |
+
|
5181 |
+
return _this;
|
5182 |
+
}
|
5183 |
+
|
5184 |
+
_createClass(StateManager, [{
|
5185 |
+
key: "focus",
|
5186 |
+
value: function focus() {
|
5187 |
+
this.select.focus();
|
5188 |
+
}
|
5189 |
+
}, {
|
5190 |
+
key: "blur",
|
5191 |
+
value: function blur() {
|
5192 |
+
this.select.blur();
|
5193 |
+
} // FIXME: untyped flow code, return any
|
5194 |
+
|
5195 |
+
}, {
|
5196 |
+
key: "getProp",
|
5197 |
+
value: function getProp(key) {
|
5198 |
+
return this.props[key] !== undefined ? this.props[key] : this.state[key];
|
5199 |
+
} // FIXME: untyped flow code, return any
|
5200 |
+
|
5201 |
+
}, {
|
5202 |
+
key: "callProp",
|
5203 |
+
value: function callProp(name) {
|
5204 |
+
if (typeof this.props[name] === 'function') {
|
5205 |
+
var _this$props;
|
5206 |
+
|
5207 |
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
5208 |
+
args[_key2 - 1] = arguments[_key2];
|
5209 |
+
}
|
5210 |
+
|
5211 |
+
return (_this$props = this.props)[name].apply(_this$props, args);
|
5212 |
+
}
|
5213 |
+
}
|
5214 |
+
}, {
|
5215 |
+
key: "render",
|
5216 |
+
value: function render() {
|
5217 |
+
var _this2 = this;
|
5218 |
+
|
5219 |
+
var _this$props2 = this.props,
|
5220 |
+
defaultInputValue = _this$props2.defaultInputValue,
|
5221 |
+
defaultMenuIsOpen = _this$props2.defaultMenuIsOpen,
|
5222 |
+
defaultValue = _this$props2.defaultValue,
|
5223 |
+
props = _objectWithoutProperties(_this$props2, ["defaultInputValue", "defaultMenuIsOpen", "defaultValue"]);
|
5224 |
+
|
5225 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectComponent, _extends({}, props, {
|
5226 |
+
ref: function ref(_ref) {
|
5227 |
+
_this2.select = _ref;
|
5228 |
+
},
|
5229 |
+
inputValue: this.getProp('inputValue'),
|
5230 |
+
menuIsOpen: this.getProp('menuIsOpen'),
|
5231 |
+
onChange: this.onChange,
|
5232 |
+
onInputChange: this.onInputChange,
|
5233 |
+
onMenuClose: this.onMenuClose,
|
5234 |
+
onMenuOpen: this.onMenuOpen,
|
5235 |
+
value: this.getProp('value')
|
5236 |
+
}));
|
5237 |
+
}
|
5238 |
+
}]);
|
5239 |
+
|
5240 |
+
return StateManager;
|
5241 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]), _defineProperty(_class, "defaultProps", defaultProps$1), _temp;
|
5242 |
+
};
|
5243 |
+
|
5244 |
+
var defaultProps$2 = {
|
5245 |
+
cacheOptions: false,
|
5246 |
+
defaultOptions: false,
|
5247 |
+
filterOption: null
|
5248 |
+
};
|
5249 |
+
var makeAsyncSelect = function makeAsyncSelect(SelectComponent) {
|
5250 |
+
var _class, _temp;
|
5251 |
+
|
5252 |
+
return _temp = _class =
|
5253 |
+
/*#__PURE__*/
|
5254 |
+
function (_Component) {
|
5255 |
+
_inherits(Async, _Component);
|
5256 |
+
|
5257 |
+
function Async(props) {
|
5258 |
+
var _this;
|
5259 |
+
|
5260 |
+
_classCallCheck(this, Async);
|
5261 |
+
|
5262 |
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Async).call(this));
|
5263 |
+
|
5264 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "select", void 0);
|
5265 |
+
|
5266 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastRequest", void 0);
|
5267 |
+
|
5268 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "mounted", false);
|
5269 |
+
|
5270 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "optionsCache", {});
|
5271 |
+
|
5272 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleInputChange", function (newValue, actionMeta) {
|
5273 |
+
var _this$props = _this.props,
|
5274 |
+
cacheOptions = _this$props.cacheOptions,
|
5275 |
+
onInputChange = _this$props.onInputChange; // TODO
|
5276 |
+
|
5277 |
+
var inputValue = handleInputChange(newValue, actionMeta, onInputChange);
|
5278 |
+
|
5279 |
+
if (!inputValue) {
|
5280 |
+
delete _this.lastRequest;
|
5281 |
+
|
5282 |
+
_this.setState({
|
5283 |
+
inputValue: '',
|
5284 |
+
loadedInputValue: '',
|
5285 |
+
loadedOptions: [],
|
5286 |
+
isLoading: false,
|
5287 |
+
passEmptyOptions: false
|
5288 |
+
});
|
5289 |
+
|
5290 |
+
return;
|
5291 |
+
}
|
5292 |
+
|
5293 |
+
if (cacheOptions && _this.optionsCache[inputValue]) {
|
5294 |
+
_this.setState({
|
5295 |
+
inputValue: inputValue,
|
5296 |
+
loadedInputValue: inputValue,
|
5297 |
+
loadedOptions: _this.optionsCache[inputValue],
|
5298 |
+
isLoading: false,
|
5299 |
+
passEmptyOptions: false
|
5300 |
+
});
|
5301 |
+
} else {
|
5302 |
+
var request = _this.lastRequest = {};
|
5303 |
+
|
5304 |
+
_this.setState({
|
5305 |
+
inputValue: inputValue,
|
5306 |
+
isLoading: true,
|
5307 |
+
passEmptyOptions: !_this.state.loadedInputValue
|
5308 |
+
}, function () {
|
5309 |
+
_this.loadOptions(inputValue, function (options) {
|
5310 |
+
if (!_this.mounted) return;
|
5311 |
+
|
5312 |
+
if (options) {
|
5313 |
+
_this.optionsCache[inputValue] = options;
|
5314 |
+
}
|
5315 |
+
|
5316 |
+
if (request !== _this.lastRequest) return;
|
5317 |
+
delete _this.lastRequest;
|
5318 |
+
|
5319 |
+
_this.setState({
|
5320 |
+
isLoading: false,
|
5321 |
+
loadedInputValue: inputValue,
|
5322 |
+
loadedOptions: options || [],
|
5323 |
+
passEmptyOptions: false
|
5324 |
+
});
|
5325 |
+
});
|
5326 |
+
});
|
5327 |
+
}
|
5328 |
+
|
5329 |
+
return inputValue;
|
5330 |
+
});
|
5331 |
+
|
5332 |
+
_this.state = {
|
5333 |
+
defaultOptions: Array.isArray(props.defaultOptions) ? props.defaultOptions : undefined,
|
5334 |
+
inputValue: typeof props.inputValue !== 'undefined' ? props.inputValue : '',
|
5335 |
+
isLoading: props.defaultOptions === true ? true : false,
|
5336 |
+
loadedOptions: [],
|
5337 |
+
passEmptyOptions: false
|
5338 |
+
};
|
5339 |
+
return _this;
|
5340 |
+
}
|
5341 |
+
|
5342 |
+
_createClass(Async, [{
|
5343 |
+
key: "componentDidMount",
|
5344 |
+
value: function componentDidMount() {
|
5345 |
+
var _this2 = this;
|
5346 |
+
|
5347 |
+
this.mounted = true;
|
5348 |
+
var defaultOptions = this.props.defaultOptions;
|
5349 |
+
var inputValue = this.state.inputValue;
|
5350 |
+
|
5351 |
+
if (defaultOptions === true) {
|
5352 |
+
this.loadOptions(inputValue, function (options) {
|
5353 |
+
if (!_this2.mounted) return;
|
5354 |
+
var isLoading = !!_this2.lastRequest;
|
5355 |
+
|
5356 |
+
_this2.setState({
|
5357 |
+
defaultOptions: options || [],
|
5358 |
+
isLoading: isLoading
|
5359 |
+
});
|
5360 |
+
});
|
5361 |
+
}
|
5362 |
+
}
|
5363 |
+
}, {
|
5364 |
+
key: "componentWillReceiveProps",
|
5365 |
+
value: function componentWillReceiveProps(nextProps) {
|
5366 |
+
// if the cacheOptions prop changes, clear the cache
|
5367 |
+
if (nextProps.cacheOptions !== this.props.cacheOptions) {
|
5368 |
+
this.optionsCache = {};
|
5369 |
+
}
|
5370 |
+
|
5371 |
+
if (nextProps.defaultOptions !== this.props.defaultOptions) {
|
5372 |
+
this.setState({
|
5373 |
+
defaultOptions: Array.isArray(nextProps.defaultOptions) ? nextProps.defaultOptions : undefined
|
5374 |
+
});
|
5375 |
+
}
|
5376 |
+
}
|
5377 |
+
}, {
|
5378 |
+
key: "componentWillUnmount",
|
5379 |
+
value: function componentWillUnmount() {
|
5380 |
+
this.mounted = false;
|
5381 |
+
}
|
5382 |
+
}, {
|
5383 |
+
key: "focus",
|
5384 |
+
value: function focus() {
|
5385 |
+
this.select.focus();
|
5386 |
+
}
|
5387 |
+
}, {
|
5388 |
+
key: "blur",
|
5389 |
+
value: function blur() {
|
5390 |
+
this.select.blur();
|
5391 |
+
}
|
5392 |
+
}, {
|
5393 |
+
key: "loadOptions",
|
5394 |
+
value: function loadOptions(inputValue, callback) {
|
5395 |
+
var loadOptions = this.props.loadOptions;
|
5396 |
+
if (!loadOptions) return callback();
|
5397 |
+
var loader = loadOptions(inputValue, callback);
|
5398 |
+
|
5399 |
+
if (loader && typeof loader.then === 'function') {
|
5400 |
+
loader.then(callback, function () {
|
5401 |
+
return callback();
|
5402 |
+
});
|
5403 |
+
}
|
5404 |
+
}
|
5405 |
+
}, {
|
5406 |
+
key: "render",
|
5407 |
+
value: function render() {
|
5408 |
+
var _this3 = this;
|
5409 |
+
|
5410 |
+
var _this$props2 = this.props,
|
5411 |
+
loadOptions = _this$props2.loadOptions,
|
5412 |
+
props = _objectWithoutProperties(_this$props2, ["loadOptions"]);
|
5413 |
+
|
5414 |
+
var _this$state = this.state,
|
5415 |
+
defaultOptions = _this$state.defaultOptions,
|
5416 |
+
inputValue = _this$state.inputValue,
|
5417 |
+
isLoading = _this$state.isLoading,
|
5418 |
+
loadedInputValue = _this$state.loadedInputValue,
|
5419 |
+
loadedOptions = _this$state.loadedOptions,
|
5420 |
+
passEmptyOptions = _this$state.passEmptyOptions;
|
5421 |
+
var options = passEmptyOptions ? [] : inputValue && loadedInputValue ? loadedOptions : defaultOptions || [];
|
5422 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectComponent, _extends({}, props, {
|
5423 |
+
ref: function ref(_ref) {
|
5424 |
+
_this3.select = _ref;
|
5425 |
+
},
|
5426 |
+
options: options,
|
5427 |
+
isLoading: isLoading,
|
5428 |
+
onInputChange: this.handleInputChange
|
5429 |
+
}));
|
5430 |
+
}
|
5431 |
+
}]);
|
5432 |
+
|
5433 |
+
return Async;
|
5434 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]), _defineProperty(_class, "defaultProps", defaultProps$2), _temp;
|
5435 |
+
};
|
5436 |
+
var SelectState = manageState(Select);
|
5437 |
+
var Async = makeAsyncSelect(SelectState);
|
5438 |
+
|
5439 |
+
var compareOption = function compareOption() {
|
5440 |
+
var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
5441 |
+
var option = arguments.length > 1 ? arguments[1] : undefined;
|
5442 |
+
var candidate = String(inputValue).toLowerCase();
|
5443 |
+
var optionValue = String(option.value).toLowerCase();
|
5444 |
+
var optionLabel = String(option.label).toLowerCase();
|
5445 |
+
return optionValue === candidate || optionLabel === candidate;
|
5446 |
+
};
|
5447 |
+
|
5448 |
+
var builtins = {
|
5449 |
+
formatCreateLabel: function formatCreateLabel(inputValue) {
|
5450 |
+
return "Create \"".concat(inputValue, "\"");
|
5451 |
+
},
|
5452 |
+
isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions) {
|
5453 |
+
return !(!inputValue || selectValue.some(function (option) {
|
5454 |
+
return compareOption(inputValue, option);
|
5455 |
+
}) || selectOptions.some(function (option) {
|
5456 |
+
return compareOption(inputValue, option);
|
5457 |
+
}));
|
5458 |
+
},
|
5459 |
+
getNewOptionData: function getNewOptionData(inputValue, optionLabel) {
|
5460 |
+
return {
|
5461 |
+
label: optionLabel,
|
5462 |
+
value: inputValue,
|
5463 |
+
__isNew__: true
|
5464 |
+
};
|
5465 |
+
}
|
5466 |
+
};
|
5467 |
+
var defaultProps$3 = _objectSpread({
|
5468 |
+
allowCreateWhileLoading: false,
|
5469 |
+
createOptionPosition: 'last'
|
5470 |
+
}, builtins);
|
5471 |
+
var makeCreatableSelect = function makeCreatableSelect(SelectComponent) {
|
5472 |
+
var _class, _temp;
|
5473 |
+
|
5474 |
+
return _temp = _class =
|
5475 |
+
/*#__PURE__*/
|
5476 |
+
function (_Component) {
|
5477 |
+
_inherits(Creatable, _Component);
|
5478 |
+
|
5479 |
+
function Creatable(props) {
|
5480 |
+
var _this;
|
5481 |
+
|
5482 |
+
_classCallCheck(this, Creatable);
|
5483 |
+
|
5484 |
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(Creatable).call(this, props));
|
5485 |
+
|
5486 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "select", void 0);
|
5487 |
+
|
5488 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "onChange", function (newValue, actionMeta) {
|
5489 |
+
var _this$props = _this.props,
|
5490 |
+
getNewOptionData = _this$props.getNewOptionData,
|
5491 |
+
inputValue = _this$props.inputValue,
|
5492 |
+
isMulti = _this$props.isMulti,
|
5493 |
+
onChange = _this$props.onChange,
|
5494 |
+
onCreateOption = _this$props.onCreateOption,
|
5495 |
+
value = _this$props.value;
|
5496 |
+
|
5497 |
+
if (actionMeta.action !== 'select-option') {
|
5498 |
+
return onChange(newValue, actionMeta);
|
5499 |
+
}
|
5500 |
+
|
5501 |
+
var newOption = _this.state.newOption;
|
5502 |
+
var valueArray = Array.isArray(newValue) ? newValue : [newValue];
|
5503 |
+
|
5504 |
+
if (valueArray[valueArray.length - 1] === newOption) {
|
5505 |
+
if (onCreateOption) onCreateOption(inputValue);else {
|
5506 |
+
var newOptionData = getNewOptionData(inputValue, inputValue);
|
5507 |
+
var newActionMeta = {
|
5508 |
+
action: 'create-option'
|
5509 |
+
};
|
5510 |
+
|
5511 |
+
if (isMulti) {
|
5512 |
+
onChange([].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newActionMeta);
|
5513 |
+
} else {
|
5514 |
+
onChange(newOptionData, newActionMeta);
|
5515 |
+
}
|
5516 |
+
}
|
5517 |
+
return;
|
5518 |
+
}
|
5519 |
+
|
5520 |
+
onChange(newValue, actionMeta);
|
5521 |
+
});
|
5522 |
+
|
5523 |
+
var options = props.options || [];
|
5524 |
+
_this.state = {
|
5525 |
+
newOption: undefined,
|
5526 |
+
options: options
|
5527 |
+
};
|
5528 |
+
return _this;
|
5529 |
+
}
|
5530 |
+
|
5531 |
+
_createClass(Creatable, [{
|
5532 |
+
key: "componentWillReceiveProps",
|
5533 |
+
value: function componentWillReceiveProps(nextProps) {
|
5534 |
+
var allowCreateWhileLoading = nextProps.allowCreateWhileLoading,
|
5535 |
+
createOptionPosition = nextProps.createOptionPosition,
|
5536 |
+
formatCreateLabel = nextProps.formatCreateLabel,
|
5537 |
+
getNewOptionData = nextProps.getNewOptionData,
|
5538 |
+
inputValue = nextProps.inputValue,
|
5539 |
+
isLoading = nextProps.isLoading,
|
5540 |
+
isValidNewOption = nextProps.isValidNewOption,
|
5541 |
+
value = nextProps.value;
|
5542 |
+
var options = nextProps.options || [];
|
5543 |
+
var newOption = this.state.newOption;
|
5544 |
+
|
5545 |
+
if (isValidNewOption(inputValue, cleanValue(value), options)) {
|
5546 |
+
newOption = getNewOptionData(inputValue, formatCreateLabel(inputValue));
|
5547 |
+
} else {
|
5548 |
+
newOption = undefined;
|
5549 |
+
}
|
5550 |
+
|
5551 |
+
this.setState({
|
5552 |
+
newOption: newOption,
|
5553 |
+
options: (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(options)) : [].concat(_toConsumableArray(options), [newOption]) : options
|
5554 |
+
});
|
5555 |
+
}
|
5556 |
+
}, {
|
5557 |
+
key: "focus",
|
5558 |
+
value: function focus() {
|
5559 |
+
this.select.focus();
|
5560 |
+
}
|
5561 |
+
}, {
|
5562 |
+
key: "blur",
|
5563 |
+
value: function blur() {
|
5564 |
+
this.select.blur();
|
5565 |
+
}
|
5566 |
+
}, {
|
5567 |
+
key: "render",
|
5568 |
+
value: function render() {
|
5569 |
+
var _this2 = this;
|
5570 |
+
|
5571 |
+
var props = _extends({}, this.props);
|
5572 |
+
|
5573 |
+
var options = this.state.options;
|
5574 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(SelectComponent, _extends({}, props, {
|
5575 |
+
ref: function ref(_ref) {
|
5576 |
+
_this2.select = _ref;
|
5577 |
+
},
|
5578 |
+
options: options,
|
5579 |
+
onChange: this.onChange
|
5580 |
+
}));
|
5581 |
+
}
|
5582 |
+
}]);
|
5583 |
+
|
5584 |
+
return Creatable;
|
5585 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]), _defineProperty(_class, "defaultProps", defaultProps$3), _temp;
|
5586 |
+
}; // TODO: do this in package entrypoint
|
5587 |
+
|
5588 |
+
var SelectCreatable = makeCreatableSelect(Select);
|
5589 |
+
var Creatable = manageState(SelectCreatable);
|
5590 |
+
|
5591 |
+
var SelectCreatable$1 = makeCreatableSelect(Select);
|
5592 |
+
var SelectCreatableState = manageState(SelectCreatable$1);
|
5593 |
+
var AsyncCreatable = makeAsyncSelect(SelectCreatableState);
|
5594 |
+
|
5595 |
+
// strip transition props off before spreading onto select component
|
5596 |
+
// note we need to be explicit about innerRef for flow
|
5597 |
+
var AnimatedInput = function AnimatedInput(WrappedComponent) {
|
5598 |
+
return function (_ref) {
|
5599 |
+
var inProp = _ref.in,
|
5600 |
+
onExited = _ref.onExited,
|
5601 |
+
appear = _ref.appear,
|
5602 |
+
enter = _ref.enter,
|
5603 |
+
exit = _ref.exit,
|
5604 |
+
props = _objectWithoutProperties(_ref, ["in", "onExited", "appear", "enter", "exit"]);
|
5605 |
+
|
5606 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedComponent, props);
|
5607 |
+
};
|
5608 |
+
};
|
5609 |
+
|
5610 |
+
var Fade = function Fade(_ref) {
|
5611 |
+
var Tag = _ref.component,
|
5612 |
+
_ref$duration = _ref.duration,
|
5613 |
+
duration = _ref$duration === void 0 ? 1 : _ref$duration,
|
5614 |
+
inProp = _ref.in,
|
5615 |
+
onExited = _ref.onExited,
|
5616 |
+
props = _objectWithoutProperties(_ref, ["component", "duration", "in", "onExited"]);
|
5617 |
+
|
5618 |
+
var transition = {
|
5619 |
+
entering: {
|
5620 |
+
opacity: 0
|
5621 |
+
},
|
5622 |
+
entered: {
|
5623 |
+
opacity: 1,
|
5624 |
+
transition: "opacity ".concat(duration, "ms")
|
5625 |
+
},
|
5626 |
+
exiting: {
|
5627 |
+
opacity: 0
|
5628 |
+
},
|
5629 |
+
exited: {
|
5630 |
+
opacity: 0
|
5631 |
+
}
|
5632 |
+
};
|
5633 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__["Transition"], {
|
5634 |
+
mountOnEnter: true,
|
5635 |
+
unmountOnExit: true,
|
5636 |
+
in: inProp,
|
5637 |
+
timeout: duration
|
5638 |
+
}, function (state) {
|
5639 |
+
var innerProps = {
|
5640 |
+
style: _objectSpread({}, transition[state])
|
5641 |
+
};
|
5642 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Tag, _extends({
|
5643 |
+
innerProps: innerProps
|
5644 |
+
}, props));
|
5645 |
+
});
|
5646 |
+
}; // ==============================
|
5647 |
+
// Collapse Transition
|
5648 |
+
// ==============================
|
5649 |
+
|
5650 |
+
var collapseDuration = 260;
|
5651 |
+
// wrap each MultiValue with a collapse transition; decreases width until
|
5652 |
+
// finally removing from DOM
|
5653 |
+
var Collapse =
|
5654 |
+
/*#__PURE__*/
|
5655 |
+
function (_Component) {
|
5656 |
+
_inherits(Collapse, _Component);
|
5657 |
+
|
5658 |
+
function Collapse() {
|
5659 |
+
var _getPrototypeOf2;
|
5660 |
+
|
5661 |
+
var _this;
|
5662 |
+
|
5663 |
+
_classCallCheck(this, Collapse);
|
5664 |
+
|
5665 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
5666 |
+
args[_key] = arguments[_key];
|
5667 |
+
}
|
5668 |
+
|
5669 |
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Collapse)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
5670 |
+
|
5671 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "duration", collapseDuration);
|
5672 |
+
|
5673 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "rafID", void 0);
|
5674 |
+
|
5675 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "state", {
|
5676 |
+
width: 'auto'
|
5677 |
+
});
|
5678 |
+
|
5679 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "transition", {
|
5680 |
+
exiting: {
|
5681 |
+
width: 0,
|
5682 |
+
transition: "width ".concat(_this.duration, "ms ease-out")
|
5683 |
+
},
|
5684 |
+
exited: {
|
5685 |
+
width: 0
|
5686 |
+
}
|
5687 |
+
});
|
5688 |
+
|
5689 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getWidth", function (ref) {
|
5690 |
+
if (ref && isNaN(_this.state.width)) {
|
5691 |
+
/*
|
5692 |
+
Here we're invoking requestAnimationFrame with a callback invoking our
|
5693 |
+
call to getBoundingClientRect and setState in order to resolve an edge case
|
5694 |
+
around portalling. Certain portalling solutions briefly remove children from the DOM
|
5695 |
+
before appending them to the target node. This is to avoid us trying to call getBoundingClientrect
|
5696 |
+
while the Select component is in this state.
|
5697 |
+
*/
|
5698 |
+
// cannot use `offsetWidth` because it is rounded
|
5699 |
+
_this.rafID = window.requestAnimationFrame(function () {
|
5700 |
+
var _ref$getBoundingClien = ref.getBoundingClientRect(),
|
5701 |
+
width = _ref$getBoundingClien.width;
|
5702 |
+
|
5703 |
+
_this.setState({
|
5704 |
+
width: width
|
5705 |
+
});
|
5706 |
+
});
|
5707 |
+
}
|
5708 |
+
});
|
5709 |
+
|
5710 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getStyle", function (width) {
|
5711 |
+
return {
|
5712 |
+
overflow: 'hidden',
|
5713 |
+
whiteSpace: 'nowrap',
|
5714 |
+
width: width
|
5715 |
+
};
|
5716 |
+
});
|
5717 |
+
|
5718 |
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "getTransition", function (state) {
|
5719 |
+
return _this.transition[state];
|
5720 |
+
});
|
5721 |
+
|
5722 |
+
return _this;
|
5723 |
+
}
|
5724 |
+
|
5725 |
+
_createClass(Collapse, [{
|
5726 |
+
key: "componentWillUnmount",
|
5727 |
+
value: function componentWillUnmount() {
|
5728 |
+
if (this.rafID) {
|
5729 |
+
window.cancelAnimationFrame(this.rafID);
|
5730 |
+
}
|
5731 |
+
} // width must be calculated; cannot transition from `undefined` to `number`
|
5732 |
+
|
5733 |
+
}, {
|
5734 |
+
key: "render",
|
5735 |
+
value: function render() {
|
5736 |
+
var _this2 = this;
|
5737 |
+
|
5738 |
+
var _this$props = this.props,
|
5739 |
+
children = _this$props.children,
|
5740 |
+
inProp = _this$props.in;
|
5741 |
+
var width = this.state.width;
|
5742 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__["Transition"], {
|
5743 |
+
enter: false,
|
5744 |
+
mountOnEnter: true,
|
5745 |
+
unmountOnExit: true,
|
5746 |
+
in: inProp,
|
5747 |
+
timeout: this.duration
|
5748 |
+
}, function (state) {
|
5749 |
+
var style = _objectSpread({}, _this2.getStyle(width), _this2.getTransition(state));
|
5750 |
+
|
5751 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement("div", {
|
5752 |
+
ref: _this2.getWidth,
|
5753 |
+
style: style
|
5754 |
+
}, children);
|
5755 |
+
});
|
5756 |
+
}
|
5757 |
+
}]);
|
5758 |
+
|
5759 |
+
return Collapse;
|
5760 |
+
}(__WEBPACK_IMPORTED_MODULE_0_react__["Component"]);
|
5761 |
+
|
5762 |
+
var AnimatedMultiValue = function AnimatedMultiValue(WrappedComponent) {
|
5763 |
+
return function (_ref) {
|
5764 |
+
var inProp = _ref.in,
|
5765 |
+
onExited = _ref.onExited,
|
5766 |
+
props = _objectWithoutProperties(_ref, ["in", "onExited"]);
|
5767 |
+
|
5768 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Collapse, {
|
5769 |
+
in: inProp,
|
5770 |
+
onExited: onExited
|
5771 |
+
}, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(WrappedComponent, _extends({
|
5772 |
+
cropWithEllipsis: inProp
|
5773 |
+
}, props)));
|
5774 |
+
};
|
5775 |
+
};
|
5776 |
+
|
5777 |
+
var AnimatedPlaceholder = function AnimatedPlaceholder(WrappedComponent) {
|
5778 |
+
return function (props) {
|
5779 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Fade, _extends({
|
5780 |
+
component: WrappedComponent,
|
5781 |
+
duration: props.isMulti ? collapseDuration : 1
|
5782 |
+
}, props));
|
5783 |
+
};
|
5784 |
+
};
|
5785 |
+
|
5786 |
+
var AnimatedSingleValue = function AnimatedSingleValue(WrappedComponent) {
|
5787 |
+
return function (props) {
|
5788 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(Fade, _extends({
|
5789 |
+
component: WrappedComponent
|
5790 |
+
}, props));
|
5791 |
+
};
|
5792 |
+
};
|
5793 |
+
|
5794 |
+
// make ValueContainer a transition group
|
5795 |
+
var AnimatedValueContainer = function AnimatedValueContainer(WrappedComponent) {
|
5796 |
+
return function (props) {
|
5797 |
+
return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_7_react_transition_group__["TransitionGroup"], _extends({
|
5798 |
+
component: WrappedComponent
|
5799 |
+
}, props));
|
5800 |
+
};
|
5801 |
+
};
|
5802 |
+
|
5803 |
+
var makeAnimated = function makeAnimated() {
|
5804 |
+
var externalComponents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
5805 |
+
var components$$1 = defaultComponents({
|
5806 |
+
components: externalComponents
|
5807 |
+
});
|
5808 |
+
|
5809 |
+
var Input = components$$1.Input,
|
5810 |
+
MultiValue = components$$1.MultiValue,
|
5811 |
+
Placeholder = components$$1.Placeholder,
|
5812 |
+
SingleValue = components$$1.SingleValue,
|
5813 |
+
ValueContainer = components$$1.ValueContainer,
|
5814 |
+
rest = _objectWithoutProperties(components$$1, ["Input", "MultiValue", "Placeholder", "SingleValue", "ValueContainer"]);
|
5815 |
+
|
5816 |
+
return _objectSpread({
|
5817 |
+
Input: AnimatedInput(Input),
|
5818 |
+
MultiValue: AnimatedMultiValue(MultiValue),
|
5819 |
+
Placeholder: AnimatedPlaceholder(Placeholder),
|
5820 |
+
SingleValue: AnimatedSingleValue(SingleValue),
|
5821 |
+
ValueContainer: AnimatedValueContainer(ValueContainer)
|
5822 |
+
}, rest);
|
5823 |
+
};
|
5824 |
+
|
5825 |
+
var AnimatedComponents = makeAnimated();
|
5826 |
+
var Input$1 = AnimatedComponents.Input;
|
5827 |
+
var MultiValue$1 = AnimatedComponents.MultiValue;
|
5828 |
+
var Placeholder$1 = AnimatedComponents.Placeholder;
|
5829 |
+
var SingleValue$1 = AnimatedComponents.SingleValue;
|
5830 |
+
var ValueContainer$1 = AnimatedComponents.ValueContainer;
|
5831 |
+
var index = Object(__WEBPACK_IMPORTED_MODULE_1_memoize_one__["a" /* default */])(makeAnimated, exportedEqual);
|
5832 |
+
|
5833 |
+
var index$1 = manageState(Select);
|
5834 |
+
|
5835 |
+
/* harmony default export */ __webpack_exports__["a"] = (index$1);
|
5836 |
+
|
5837 |
+
|
5838 |
+
|
5839 |
+
/***/ }),
|
5840 |
+
/* 17 */
|
5841 |
+
/***/ (function(module, exports) {
|
5842 |
+
|
5843 |
+
var g;
|
5844 |
+
|
5845 |
+
// This works in non-strict mode
|
5846 |
+
g = (function() {
|
5847 |
+
return this;
|
5848 |
+
})();
|
5849 |
+
|
5850 |
+
try {
|
5851 |
+
// This works if eval is allowed (see CSP)
|
5852 |
+
g = g || Function("return this")() || (1,eval)("this");
|
5853 |
+
} catch(e) {
|
5854 |
+
// This works if the window reference is available
|
5855 |
+
if(typeof window === "object")
|
5856 |
+
g = window;
|
5857 |
+
}
|
5858 |
+
|
5859 |
+
// g can still be undefined, but nothing to do about it...
|
5860 |
+
// We return undefined, instead of nothing here, so it's
|
5861 |
+
// easier to handle this case. if(!global) { ...}
|
5862 |
+
|
5863 |
+
module.exports = g;
|
5864 |
+
|
5865 |
+
|
5866 |
+
/***/ }),
|
5867 |
+
/* 18 */
|
5868 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5869 |
+
|
5870 |
+
"use strict";
|
5871 |
+
/* WEBPACK VAR INJECTION */(function(process) {
|
5872 |
+
|
5873 |
+
if (process.env.NODE_ENV === 'production') {
|
5874 |
+
module.exports = __webpack_require__(40);
|
5875 |
+
} else {
|
5876 |
+
module.exports = __webpack_require__(41);
|
5877 |
+
}
|
5878 |
+
|
5879 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
5880 |
+
|
5881 |
+
/***/ }),
|
5882 |
+
/* 19 */
|
5883 |
+
/***/ (function(module, exports, __webpack_require__) {
|
5884 |
+
|
5885 |
+
"use strict";
|
5886 |
+
/* WEBPACK VAR INJECTION */(function(process) {
|
5887 |
+
|
5888 |
+
exports.__esModule = true;
|
5889 |
+
exports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;
|
5890 |
+
|
5891 |
+
var PropTypes = _interopRequireWildcard(__webpack_require__(3));
|
5892 |
+
|
5893 |
+
var _react = _interopRequireDefault(__webpack_require__(2));
|
5894 |
+
|
5895 |
+
var _reactDom = _interopRequireDefault(__webpack_require__(6));
|
5896 |
+
|
5897 |
+
var _reactLifecyclesCompat = __webpack_require__(20);
|
5898 |
+
|
5899 |
+
var _PropTypes = __webpack_require__(21);
|
5900 |
+
|
5901 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
5902 |
+
|
5903 |
+
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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
5904 |
+
|
5905 |
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
5906 |
+
|
5907 |
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
5908 |
+
|
5909 |
+
var UNMOUNTED = 'unmounted';
|
5910 |
+
exports.UNMOUNTED = UNMOUNTED;
|
5911 |
+
var EXITED = 'exited';
|
5912 |
+
exports.EXITED = EXITED;
|
5913 |
+
var ENTERING = 'entering';
|
5914 |
+
exports.ENTERING = ENTERING;
|
5915 |
+
var ENTERED = 'entered';
|
5916 |
+
exports.ENTERED = ENTERED;
|
5917 |
+
var EXITING = 'exiting';
|
5918 |
+
/**
|
5919 |
+
* The Transition component lets you describe a transition from one component
|
5920 |
+
* state to another _over time_ with a simple declarative API. Most commonly
|
5921 |
+
* it's used to animate the mounting and unmounting of a component, but can also
|
5922 |
+
* be used to describe in-place transition states as well.
|
5923 |
+
*
|
5924 |
+
* ---
|
5925 |
+
*
|
5926 |
+
* **Note**: `Transition` is a platform-agnostic base component. If you're using
|
5927 |
+
* transitions in CSS, you'll probably want to use
|
5928 |
+
* [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)
|
5929 |
+
* instead. It inherits all the features of `Transition`, but contains
|
5930 |
+
* additional features necessary to play nice with CSS transitions (hence the
|
5931 |
+
* name of the component).
|
5932 |
+
*
|
5933 |
+
* ---
|
5934 |
+
*
|
5935 |
+
* By default the `Transition` component does not alter the behavior of the
|
5936 |
+
* component it renders, it only tracks "enter" and "exit" states for the
|
5937 |
+
* components. It's up to you to give meaning and effect to those states. For
|
5938 |
+
* example we can add styles to a component when it enters or exits:
|
5939 |
+
*
|
5940 |
+
* ```jsx
|
5941 |
+
* import { Transition } from 'react-transition-group';
|
5942 |
+
*
|
5943 |
+
* const duration = 300;
|
5944 |
+
*
|
5945 |
+
* const defaultStyle = {
|
5946 |
+
* transition: `opacity ${duration}ms ease-in-out`,
|
5947 |
+
* opacity: 0,
|
5948 |
+
* }
|
5949 |
+
*
|
5950 |
+
* const transitionStyles = {
|
5951 |
+
* entering: { opacity: 0 },
|
5952 |
+
* entered: { opacity: 1 },
|
5953 |
+
* };
|
5954 |
+
*
|
5955 |
+
* const Fade = ({ in: inProp }) => (
|
5956 |
+
* <Transition in={inProp} timeout={duration}>
|
5957 |
+
* {state => (
|
5958 |
+
* <div style={{
|
5959 |
+
* ...defaultStyle,
|
5960 |
+
* ...transitionStyles[state]
|
5961 |
+
* }}>
|
5962 |
+
* I'm a fade Transition!
|
5963 |
+
* </div>
|
5964 |
+
* )}
|
5965 |
+
* </Transition>
|
5966 |
+
* );
|
5967 |
+
* ```
|
5968 |
+
*
|
5969 |
+
* There are 4 main states a Transition can be in:
|
5970 |
+
* - `'entering'`
|
5971 |
+
* - `'entered'`
|
5972 |
+
* - `'exiting'`
|
5973 |
+
* - `'exited'`
|
5974 |
+
*
|
5975 |
+
* Transition state is toggled via the `in` prop. When `true` the component
|
5976 |
+
* begins the "Enter" stage. During this stage, the component will shift from
|
5977 |
+
* its current transition state, to `'entering'` for the duration of the
|
5978 |
+
* transition and then to the `'entered'` stage once it's complete. Let's take
|
5979 |
+
* the following example (we'll use the
|
5980 |
+
* [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):
|
5981 |
+
*
|
5982 |
+
* ```jsx
|
5983 |
+
* function App() {
|
5984 |
+
* const [inProp, setInProp] = useState(false);
|
5985 |
+
* return (
|
5986 |
+
* <div>
|
5987 |
+
* <Transition in={inProp} timeout={500}>
|
5988 |
+
* {state => (
|
5989 |
+
* // ...
|
5990 |
+
* )}
|
5991 |
+
* </Transition>
|
5992 |
+
* <button onClick={() => setInProp(true)}>
|
5993 |
+
* Click to Enter
|
5994 |
+
* </button>
|
5995 |
+
* </div>
|
5996 |
+
* );
|
5997 |
+
* }
|
5998 |
+
* ```
|
5999 |
+
*
|
6000 |
+
* When the button is clicked the component will shift to the `'entering'` state
|
6001 |
+
* and stay there for 500ms (the value of `timeout`) before it finally switches
|
6002 |
+
* to `'entered'`.
|
6003 |
+
*
|
6004 |
+
* When `in` is `false` the same thing happens except the state moves from
|
6005 |
+
* `'exiting'` to `'exited'`.
|
6006 |
+
*/
|
6007 |
+
|
6008 |
+
exports.EXITING = EXITING;
|
6009 |
+
|
6010 |
+
var Transition =
|
6011 |
+
/*#__PURE__*/
|
6012 |
+
function (_React$Component) {
|
6013 |
+
_inheritsLoose(Transition, _React$Component);
|
6014 |
+
|
6015 |
+
function Transition(props, context) {
|
6016 |
+
var _this;
|
6017 |
+
|
6018 |
+
_this = _React$Component.call(this, props, context) || this;
|
6019 |
+
var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears
|
6020 |
+
|
6021 |
+
var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
6022 |
+
var initialStatus;
|
6023 |
+
_this.appearStatus = null;
|
6024 |
+
|
6025 |
+
if (props.in) {
|
6026 |
+
if (appear) {
|
6027 |
+
initialStatus = EXITED;
|
6028 |
+
_this.appearStatus = ENTERING;
|
6029 |
+
} else {
|
6030 |
+
initialStatus = ENTERED;
|
6031 |
+
}
|
6032 |
+
} else {
|
6033 |
+
if (props.unmountOnExit || props.mountOnEnter) {
|
6034 |
+
initialStatus = UNMOUNTED;
|
6035 |
+
} else {
|
6036 |
+
initialStatus = EXITED;
|
6037 |
+
}
|
6038 |
+
}
|
6039 |
+
|
6040 |
+
_this.state = {
|
6041 |
+
status: initialStatus
|
6042 |
+
};
|
6043 |
+
_this.nextCallback = null;
|
6044 |
+
return _this;
|
6045 |
+
}
|
6046 |
+
|
6047 |
+
var _proto = Transition.prototype;
|
6048 |
+
|
6049 |
+
_proto.getChildContext = function getChildContext() {
|
6050 |
+
return {
|
6051 |
+
transitionGroup: null // allows for nested Transitions
|
6052 |
+
|
6053 |
+
};
|
6054 |
+
};
|
6055 |
+
|
6056 |
+
Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
6057 |
+
var nextIn = _ref.in;
|
6058 |
+
|
6059 |
+
if (nextIn && prevState.status === UNMOUNTED) {
|
6060 |
+
return {
|
6061 |
+
status: EXITED
|
6062 |
+
};
|
6063 |
+
}
|
6064 |
+
|
6065 |
+
return null;
|
6066 |
+
}; // getSnapshotBeforeUpdate(prevProps) {
|
6067 |
+
// let nextStatus = null
|
6068 |
+
// if (prevProps !== this.props) {
|
6069 |
+
// const { status } = this.state
|
6070 |
+
// if (this.props.in) {
|
6071 |
+
// if (status !== ENTERING && status !== ENTERED) {
|
6072 |
+
// nextStatus = ENTERING
|
6073 |
+
// }
|
6074 |
+
// } else {
|
6075 |
+
// if (status === ENTERING || status === ENTERED) {
|
6076 |
+
// nextStatus = EXITING
|
6077 |
+
// }
|
6078 |
+
// }
|
6079 |
+
// }
|
6080 |
+
// return { nextStatus }
|
6081 |
+
// }
|
6082 |
+
|
6083 |
+
|
6084 |
+
_proto.componentDidMount = function componentDidMount() {
|
6085 |
+
this.updateStatus(true, this.appearStatus);
|
6086 |
+
};
|
6087 |
+
|
6088 |
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
6089 |
+
var nextStatus = null;
|
6090 |
+
|
6091 |
+
if (prevProps !== this.props) {
|
6092 |
+
var status = this.state.status;
|
6093 |
+
|
6094 |
+
if (this.props.in) {
|
6095 |
+
if (status !== ENTERING && status !== ENTERED) {
|
6096 |
+
nextStatus = ENTERING;
|
6097 |
+
}
|
6098 |
+
} else {
|
6099 |
+
if (status === ENTERING || status === ENTERED) {
|
6100 |
+
nextStatus = EXITING;
|
6101 |
+
}
|
6102 |
+
}
|
6103 |
+
}
|
6104 |
+
|
6105 |
+
this.updateStatus(false, nextStatus);
|
6106 |
+
};
|
6107 |
+
|
6108 |
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
6109 |
+
this.cancelNextCallback();
|
6110 |
+
};
|
6111 |
+
|
6112 |
+
_proto.getTimeouts = function getTimeouts() {
|
6113 |
+
var timeout = this.props.timeout;
|
6114 |
+
var exit, enter, appear;
|
6115 |
+
exit = enter = appear = timeout;
|
6116 |
+
|
6117 |
+
if (timeout != null && typeof timeout !== 'number') {
|
6118 |
+
exit = timeout.exit;
|
6119 |
+
enter = timeout.enter; // TODO: remove fallback for next major
|
6120 |
+
|
6121 |
+
appear = timeout.appear !== undefined ? timeout.appear : enter;
|
6122 |
+
}
|
6123 |
+
|
6124 |
+
return {
|
6125 |
+
exit: exit,
|
6126 |
+
enter: enter,
|
6127 |
+
appear: appear
|
6128 |
+
};
|
6129 |
+
};
|
6130 |
+
|
6131 |
+
_proto.updateStatus = function updateStatus(mounting, nextStatus) {
|
6132 |
+
if (mounting === void 0) {
|
6133 |
+
mounting = false;
|
6134 |
+
}
|
6135 |
+
|
6136 |
+
if (nextStatus !== null) {
|
6137 |
+
// nextStatus will always be ENTERING or EXITING.
|
6138 |
+
this.cancelNextCallback();
|
6139 |
+
|
6140 |
+
var node = _reactDom.default.findDOMNode(this);
|
6141 |
+
|
6142 |
+
if (nextStatus === ENTERING) {
|
6143 |
+
this.performEnter(node, mounting);
|
6144 |
+
} else {
|
6145 |
+
this.performExit(node);
|
6146 |
+
}
|
6147 |
+
} else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
6148 |
+
this.setState({
|
6149 |
+
status: UNMOUNTED
|
6150 |
+
});
|
6151 |
+
}
|
6152 |
+
};
|
6153 |
+
|
6154 |
+
_proto.performEnter = function performEnter(node, mounting) {
|
6155 |
+
var _this2 = this;
|
6156 |
+
|
6157 |
+
var enter = this.props.enter;
|
6158 |
+
var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;
|
6159 |
+
var timeouts = this.getTimeouts();
|
6160 |
+
var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED
|
6161 |
+
// if we are mounting and running this it means appear _must_ be set
|
6162 |
+
|
6163 |
+
if (!mounting && !enter) {
|
6164 |
+
this.safeSetState({
|
6165 |
+
status: ENTERED
|
6166 |
+
}, function () {
|
6167 |
+
_this2.props.onEntered(node);
|
6168 |
+
});
|
6169 |
+
return;
|
6170 |
+
}
|
6171 |
+
|
6172 |
+
this.props.onEnter(node, appearing);
|
6173 |
+
this.safeSetState({
|
6174 |
+
status: ENTERING
|
6175 |
+
}, function () {
|
6176 |
+
_this2.props.onEntering(node, appearing);
|
6177 |
+
|
6178 |
+
_this2.onTransitionEnd(node, enterTimeout, function () {
|
6179 |
+
_this2.safeSetState({
|
6180 |
+
status: ENTERED
|
6181 |
+
}, function () {
|
6182 |
+
_this2.props.onEntered(node, appearing);
|
6183 |
+
});
|
6184 |
+
});
|
6185 |
+
});
|
6186 |
+
};
|
6187 |
+
|
6188 |
+
_proto.performExit = function performExit(node) {
|
6189 |
+
var _this3 = this;
|
6190 |
+
|
6191 |
+
var exit = this.props.exit;
|
6192 |
+
var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED
|
6193 |
+
|
6194 |
+
if (!exit) {
|
6195 |
+
this.safeSetState({
|
6196 |
+
status: EXITED
|
6197 |
+
}, function () {
|
6198 |
+
_this3.props.onExited(node);
|
6199 |
+
});
|
6200 |
+
return;
|
6201 |
+
}
|
6202 |
+
|
6203 |
+
this.props.onExit(node);
|
6204 |
+
this.safeSetState({
|
6205 |
+
status: EXITING
|
6206 |
+
}, function () {
|
6207 |
+
_this3.props.onExiting(node);
|
6208 |
+
|
6209 |
+
_this3.onTransitionEnd(node, timeouts.exit, function () {
|
6210 |
+
_this3.safeSetState({
|
6211 |
+
status: EXITED
|
6212 |
+
}, function () {
|
6213 |
+
_this3.props.onExited(node);
|
6214 |
+
});
|
6215 |
+
});
|
6216 |
+
});
|
6217 |
+
};
|
6218 |
+
|
6219 |
+
_proto.cancelNextCallback = function cancelNextCallback() {
|
6220 |
+
if (this.nextCallback !== null) {
|
6221 |
+
this.nextCallback.cancel();
|
6222 |
+
this.nextCallback = null;
|
6223 |
+
}
|
6224 |
+
};
|
6225 |
+
|
6226 |
+
_proto.safeSetState = function safeSetState(nextState, callback) {
|
6227 |
+
// This shouldn't be necessary, but there are weird race conditions with
|
6228 |
+
// setState callbacks and unmounting in testing, so always make sure that
|
6229 |
+
// we can cancel any pending setState callbacks after we unmount.
|
6230 |
+
callback = this.setNextCallback(callback);
|
6231 |
+
this.setState(nextState, callback);
|
6232 |
+
};
|
6233 |
+
|
6234 |
+
_proto.setNextCallback = function setNextCallback(callback) {
|
6235 |
+
var _this4 = this;
|
6236 |
+
|
6237 |
+
var active = true;
|
6238 |
+
|
6239 |
+
this.nextCallback = function (event) {
|
6240 |
+
if (active) {
|
6241 |
+
active = false;
|
6242 |
+
_this4.nextCallback = null;
|
6243 |
+
callback(event);
|
6244 |
+
}
|
6245 |
+
};
|
6246 |
+
|
6247 |
+
this.nextCallback.cancel = function () {
|
6248 |
+
active = false;
|
6249 |
+
};
|
6250 |
+
|
6251 |
+
return this.nextCallback;
|
6252 |
+
};
|
6253 |
+
|
6254 |
+
_proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
|
6255 |
+
this.setNextCallback(handler);
|
6256 |
+
var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
6257 |
+
|
6258 |
+
if (!node || doesNotHaveTimeoutOrListener) {
|
6259 |
+
setTimeout(this.nextCallback, 0);
|
6260 |
+
return;
|
6261 |
+
}
|
6262 |
+
|
6263 |
+
if (this.props.addEndListener) {
|
6264 |
+
this.props.addEndListener(node, this.nextCallback);
|
6265 |
+
}
|
6266 |
+
|
6267 |
+
if (timeout != null) {
|
6268 |
+
setTimeout(this.nextCallback, timeout);
|
6269 |
+
}
|
6270 |
+
};
|
6271 |
+
|
6272 |
+
_proto.render = function render() {
|
6273 |
+
var status = this.state.status;
|
6274 |
+
|
6275 |
+
if (status === UNMOUNTED) {
|
6276 |
+
return null;
|
6277 |
+
}
|
6278 |
+
|
6279 |
+
var _this$props = this.props,
|
6280 |
+
children = _this$props.children,
|
6281 |
+
childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]); // filter props for Transtition
|
6282 |
+
|
6283 |
+
|
6284 |
+
delete childProps.in;
|
6285 |
+
delete childProps.mountOnEnter;
|
6286 |
+
delete childProps.unmountOnExit;
|
6287 |
+
delete childProps.appear;
|
6288 |
+
delete childProps.enter;
|
6289 |
+
delete childProps.exit;
|
6290 |
+
delete childProps.timeout;
|
6291 |
+
delete childProps.addEndListener;
|
6292 |
+
delete childProps.onEnter;
|
6293 |
+
delete childProps.onEntering;
|
6294 |
+
delete childProps.onEntered;
|
6295 |
+
delete childProps.onExit;
|
6296 |
+
delete childProps.onExiting;
|
6297 |
+
delete childProps.onExited;
|
6298 |
+
|
6299 |
+
if (typeof children === 'function') {
|
6300 |
+
return children(status, childProps);
|
6301 |
+
}
|
6302 |
+
|
6303 |
+
var child = _react.default.Children.only(children);
|
6304 |
+
|
6305 |
+
return _react.default.cloneElement(child, childProps);
|
6306 |
+
};
|
6307 |
+
|
6308 |
+
return Transition;
|
6309 |
+
}(_react.default.Component);
|
6310 |
+
|
6311 |
+
Transition.contextTypes = {
|
6312 |
+
transitionGroup: PropTypes.object
|
6313 |
+
};
|
6314 |
+
Transition.childContextTypes = {
|
6315 |
+
transitionGroup: function transitionGroup() {}
|
6316 |
+
};
|
6317 |
+
Transition.propTypes = process.env.NODE_ENV !== "production" ? {
|
6318 |
+
/**
|
6319 |
+
* A `function` child can be used instead of a React element. This function is
|
6320 |
+
* called with the current transition status (`'entering'`, `'entered'`,
|
6321 |
+
* `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context
|
6322 |
+
* specific props to a component.
|
6323 |
+
*
|
6324 |
+
* ```jsx
|
6325 |
+
* <Transition in={this.state.in} timeout={150}>
|
6326 |
+
* {state => (
|
6327 |
+
* <MyComponent className={`fade fade-${state}`} />
|
6328 |
+
* )}
|
6329 |
+
* </Transition>
|
6330 |
+
* ```
|
6331 |
+
*/
|
6332 |
+
children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,
|
6333 |
+
|
6334 |
+
/**
|
6335 |
+
* Show the component; triggers the enter or exit states
|
6336 |
+
*/
|
6337 |
+
in: PropTypes.bool,
|
6338 |
+
|
6339 |
+
/**
|
6340 |
+
* By default the child component is mounted immediately along with
|
6341 |
+
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
6342 |
+
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
6343 |
+
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
6344 |
+
*/
|
6345 |
+
mountOnEnter: PropTypes.bool,
|
6346 |
+
|
6347 |
+
/**
|
6348 |
+
* By default the child component stays mounted after it reaches the `'exited'` state.
|
6349 |
+
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
6350 |
+
*/
|
6351 |
+
unmountOnExit: PropTypes.bool,
|
6352 |
+
|
6353 |
+
/**
|
6354 |
+
* Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.
|
6355 |
+
* If you want to transition on the first mount set `appear` to `true`, and the
|
6356 |
+
* component will transition in as soon as the `<Transition>` mounts.
|
6357 |
+
*
|
6358 |
+
* > Note: there are no specific "appear" states. `appear` only adds an additional `enter` transition.
|
6359 |
+
*/
|
6360 |
+
appear: PropTypes.bool,
|
6361 |
+
|
6362 |
+
/**
|
6363 |
+
* Enable or disable enter transitions.
|
6364 |
+
*/
|
6365 |
+
enter: PropTypes.bool,
|
6366 |
+
|
6367 |
+
/**
|
6368 |
+
* Enable or disable exit transitions.
|
6369 |
+
*/
|
6370 |
+
exit: PropTypes.bool,
|
6371 |
+
|
6372 |
+
/**
|
6373 |
+
* The duration of the transition, in milliseconds.
|
6374 |
+
* Required unless `addEndListener` is provided.
|
6375 |
+
*
|
6376 |
+
* You may specify a single timeout for all transitions:
|
6377 |
+
*
|
6378 |
+
* ```jsx
|
6379 |
+
* timeout={500}
|
6380 |
+
* ```
|
6381 |
+
*
|
6382 |
+
* or individually:
|
6383 |
+
*
|
6384 |
+
* ```jsx
|
6385 |
+
* timeout={{
|
6386 |
+
* appear: 500,
|
6387 |
+
* enter: 300,
|
6388 |
+
* exit: 500,
|
6389 |
+
* }}
|
6390 |
+
* ```
|
6391 |
+
*
|
6392 |
+
* - `appear` defaults to the value of `enter`
|
6393 |
+
* - `enter` defaults to `0`
|
6394 |
+
* - `exit` defaults to `0`
|
6395 |
+
*
|
6396 |
+
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
6397 |
+
*/
|
6398 |
+
timeout: function timeout(props) {
|
6399 |
+
var pt = _PropTypes.timeoutsShape;
|
6400 |
+
if (!props.addEndListener) pt = pt.isRequired;
|
6401 |
+
|
6402 |
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
6403 |
+
args[_key - 1] = arguments[_key];
|
6404 |
+
}
|
6405 |
+
|
6406 |
+
return pt.apply(void 0, [props].concat(args));
|
6407 |
+
},
|
6408 |
+
|
6409 |
+
/**
|
6410 |
+
* Add a custom transition end trigger. Called with the transitioning
|
6411 |
+
* DOM node and a `done` callback. Allows for more fine grained transition end
|
6412 |
+
* logic. **Note:** Timeouts are still used as a fallback if provided.
|
6413 |
+
*
|
6414 |
+
* ```jsx
|
6415 |
+
* addEndListener={(node, done) => {
|
6416 |
+
* // use the css transitionend event to mark the finish of a transition
|
6417 |
+
* node.addEventListener('transitionend', done, false);
|
6418 |
+
* }}
|
6419 |
+
* ```
|
6420 |
+
*/
|
6421 |
+
addEndListener: PropTypes.func,
|
6422 |
+
|
6423 |
+
/**
|
6424 |
+
* Callback fired before the "entering" status is applied. An extra parameter
|
6425 |
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
6426 |
+
*
|
6427 |
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
6428 |
+
*/
|
6429 |
+
onEnter: PropTypes.func,
|
6430 |
+
|
6431 |
+
/**
|
6432 |
+
* Callback fired after the "entering" status is applied. An extra parameter
|
6433 |
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
6434 |
+
*
|
6435 |
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
6436 |
+
*/
|
6437 |
+
onEntering: PropTypes.func,
|
6438 |
+
|
6439 |
+
/**
|
6440 |
+
* Callback fired after the "entered" status is applied. An extra parameter
|
6441 |
+
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
6442 |
+
*
|
6443 |
+
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
6444 |
+
*/
|
6445 |
+
onEntered: PropTypes.func,
|
6446 |
+
|
6447 |
+
/**
|
6448 |
+
* Callback fired before the "exiting" status is applied.
|
6449 |
+
*
|
6450 |
+
* @type Function(node: HtmlElement) -> void
|
6451 |
+
*/
|
6452 |
+
onExit: PropTypes.func,
|
6453 |
+
|
6454 |
+
/**
|
6455 |
+
* Callback fired after the "exiting" status is applied.
|
6456 |
+
*
|
6457 |
+
* @type Function(node: HtmlElement) -> void
|
6458 |
+
*/
|
6459 |
+
onExiting: PropTypes.func,
|
6460 |
+
|
6461 |
+
/**
|
6462 |
+
* Callback fired after the "exited" status is applied.
|
6463 |
+
*
|
6464 |
+
* @type Function(node: HtmlElement) -> void
|
6465 |
+
*/
|
6466 |
+
onExited: PropTypes.func // Name the function so it is clearer in the documentation
|
6467 |
+
|
6468 |
+
} : {};
|
6469 |
+
|
6470 |
+
function noop() {}
|
6471 |
+
|
6472 |
+
Transition.defaultProps = {
|
6473 |
+
in: false,
|
6474 |
+
mountOnEnter: false,
|
6475 |
+
unmountOnExit: false,
|
6476 |
+
appear: false,
|
6477 |
+
enter: true,
|
6478 |
+
exit: true,
|
6479 |
+
onEnter: noop,
|
6480 |
+
onEntering: noop,
|
6481 |
+
onEntered: noop,
|
6482 |
+
onExit: noop,
|
6483 |
+
onExiting: noop,
|
6484 |
+
onExited: noop
|
6485 |
+
};
|
6486 |
+
Transition.UNMOUNTED = 0;
|
6487 |
+
Transition.EXITED = 1;
|
6488 |
+
Transition.ENTERING = 2;
|
6489 |
+
Transition.ENTERED = 3;
|
6490 |
+
Transition.EXITING = 4;
|
6491 |
+
|
6492 |
+
var _default = (0, _reactLifecyclesCompat.polyfill)(Transition);
|
6493 |
+
|
6494 |
+
exports.default = _default;
|
6495 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
6496 |
+
|
6497 |
+
/***/ }),
|
6498 |
+
/* 20 */
|
6499 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6500 |
+
|
6501 |
+
"use strict";
|
6502 |
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
6503 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "polyfill", function() { return polyfill; });
|
6504 |
+
/**
|
6505 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
6506 |
+
*
|
6507 |
+
* This source code is licensed under the MIT license found in the
|
6508 |
+
* LICENSE file in the root directory of this source tree.
|
6509 |
+
*/
|
6510 |
+
|
6511 |
+
function componentWillMount() {
|
6512 |
+
// Call this.constructor.gDSFP to support sub-classes.
|
6513 |
+
var state = this.constructor.getDerivedStateFromProps(this.props, this.state);
|
6514 |
+
if (state !== null && state !== undefined) {
|
6515 |
+
this.setState(state);
|
6516 |
+
}
|
6517 |
+
}
|
6518 |
+
|
6519 |
+
function componentWillReceiveProps(nextProps) {
|
6520 |
+
// Call this.constructor.gDSFP to support sub-classes.
|
6521 |
+
// Use the setState() updater to ensure state isn't stale in certain edge cases.
|
6522 |
+
function updater(prevState) {
|
6523 |
+
var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);
|
6524 |
+
return state !== null && state !== undefined ? state : null;
|
6525 |
+
}
|
6526 |
+
// Binding "this" is important for shallow renderer support.
|
6527 |
+
this.setState(updater.bind(this));
|
6528 |
+
}
|
6529 |
+
|
6530 |
+
function componentWillUpdate(nextProps, nextState) {
|
6531 |
+
try {
|
6532 |
+
var prevProps = this.props;
|
6533 |
+
var prevState = this.state;
|
6534 |
+
this.props = nextProps;
|
6535 |
+
this.state = nextState;
|
6536 |
+
this.__reactInternalSnapshotFlag = true;
|
6537 |
+
this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(
|
6538 |
+
prevProps,
|
6539 |
+
prevState
|
6540 |
+
);
|
6541 |
+
} finally {
|
6542 |
+
this.props = prevProps;
|
6543 |
+
this.state = prevState;
|
6544 |
+
}
|
6545 |
+
}
|
6546 |
+
|
6547 |
+
// React may warn about cWM/cWRP/cWU methods being deprecated.
|
6548 |
+
// Add a flag to suppress these warnings for this special case.
|
6549 |
+
componentWillMount.__suppressDeprecationWarning = true;
|
6550 |
+
componentWillReceiveProps.__suppressDeprecationWarning = true;
|
6551 |
+
componentWillUpdate.__suppressDeprecationWarning = true;
|
6552 |
+
|
6553 |
+
function polyfill(Component) {
|
6554 |
+
var prototype = Component.prototype;
|
6555 |
+
|
6556 |
+
if (!prototype || !prototype.isReactComponent) {
|
6557 |
+
throw new Error('Can only polyfill class components');
|
6558 |
+
}
|
6559 |
+
|
6560 |
+
if (
|
6561 |
+
typeof Component.getDerivedStateFromProps !== 'function' &&
|
6562 |
+
typeof prototype.getSnapshotBeforeUpdate !== 'function'
|
6563 |
+
) {
|
6564 |
+
return Component;
|
6565 |
+
}
|
6566 |
+
|
6567 |
+
// If new component APIs are defined, "unsafe" lifecycles won't be called.
|
6568 |
+
// Error if any of these lifecycles are present,
|
6569 |
+
// Because they would work differently between older and newer (16.3+) versions of React.
|
6570 |
+
var foundWillMountName = null;
|
6571 |
+
var foundWillReceivePropsName = null;
|
6572 |
+
var foundWillUpdateName = null;
|
6573 |
+
if (typeof prototype.componentWillMount === 'function') {
|
6574 |
+
foundWillMountName = 'componentWillMount';
|
6575 |
+
} else if (typeof prototype.UNSAFE_componentWillMount === 'function') {
|
6576 |
+
foundWillMountName = 'UNSAFE_componentWillMount';
|
6577 |
+
}
|
6578 |
+
if (typeof prototype.componentWillReceiveProps === 'function') {
|
6579 |
+
foundWillReceivePropsName = 'componentWillReceiveProps';
|
6580 |
+
} else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {
|
6581 |
+
foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';
|
6582 |
+
}
|
6583 |
+
if (typeof prototype.componentWillUpdate === 'function') {
|
6584 |
+
foundWillUpdateName = 'componentWillUpdate';
|
6585 |
+
} else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {
|
6586 |
+
foundWillUpdateName = 'UNSAFE_componentWillUpdate';
|
6587 |
+
}
|
6588 |
+
if (
|
6589 |
+
foundWillMountName !== null ||
|
6590 |
+
foundWillReceivePropsName !== null ||
|
6591 |
+
foundWillUpdateName !== null
|
6592 |
+
) {
|
6593 |
+
var componentName = Component.displayName || Component.name;
|
6594 |
+
var newApiName =
|
6595 |
+
typeof Component.getDerivedStateFromProps === 'function'
|
6596 |
+
? 'getDerivedStateFromProps()'
|
6597 |
+
: 'getSnapshotBeforeUpdate()';
|
6598 |
+
|
6599 |
+
throw Error(
|
6600 |
+
'Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n' +
|
6601 |
+
componentName +
|
6602 |
+
' uses ' +
|
6603 |
+
newApiName +
|
6604 |
+
' but also contains the following legacy lifecycles:' +
|
6605 |
+
(foundWillMountName !== null ? '\n ' + foundWillMountName : '') +
|
6606 |
+
(foundWillReceivePropsName !== null
|
6607 |
+
? '\n ' + foundWillReceivePropsName
|
6608 |
+
: '') +
|
6609 |
+
(foundWillUpdateName !== null ? '\n ' + foundWillUpdateName : '') +
|
6610 |
+
'\n\nThe above lifecycles should be removed. Learn more about this warning here:\n' +
|
6611 |
+
'https://fb.me/react-async-component-lifecycle-hooks'
|
6612 |
+
);
|
6613 |
+
}
|
6614 |
+
|
6615 |
+
// React <= 16.2 does not support static getDerivedStateFromProps.
|
6616 |
+
// As a workaround, use cWM and cWRP to invoke the new static lifecycle.
|
6617 |
+
// Newer versions of React will ignore these lifecycles if gDSFP exists.
|
6618 |
+
if (typeof Component.getDerivedStateFromProps === 'function') {
|
6619 |
+
prototype.componentWillMount = componentWillMount;
|
6620 |
+
prototype.componentWillReceiveProps = componentWillReceiveProps;
|
6621 |
+
}
|
6622 |
+
|
6623 |
+
// React <= 16.2 does not support getSnapshotBeforeUpdate.
|
6624 |
+
// As a workaround, use cWU to invoke the new lifecycle.
|
6625 |
+
// Newer versions of React will ignore that lifecycle if gSBU exists.
|
6626 |
+
if (typeof prototype.getSnapshotBeforeUpdate === 'function') {
|
6627 |
+
if (typeof prototype.componentDidUpdate !== 'function') {
|
6628 |
+
throw new Error(
|
6629 |
+
'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'
|
6630 |
+
);
|
6631 |
+
}
|
6632 |
+
|
6633 |
+
prototype.componentWillUpdate = componentWillUpdate;
|
6634 |
+
|
6635 |
+
var componentDidUpdate = prototype.componentDidUpdate;
|
6636 |
+
|
6637 |
+
prototype.componentDidUpdate = function componentDidUpdatePolyfill(
|
6638 |
+
prevProps,
|
6639 |
+
prevState,
|
6640 |
+
maybeSnapshot
|
6641 |
+
) {
|
6642 |
+
// 16.3+ will not execute our will-update method;
|
6643 |
+
// It will pass a snapshot value to did-update though.
|
6644 |
+
// Older versions will require our polyfilled will-update value.
|
6645 |
+
// We need to handle both cases, but can't just check for the presence of "maybeSnapshot",
|
6646 |
+
// Because for <= 15.x versions this might be a "prevContext" object.
|
6647 |
+
// We also can't just check "__reactInternalSnapshot",
|
6648 |
+
// Because get-snapshot might return a falsy value.
|
6649 |
+
// So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.
|
6650 |
+
var snapshot = this.__reactInternalSnapshotFlag
|
6651 |
+
? this.__reactInternalSnapshot
|
6652 |
+
: maybeSnapshot;
|
6653 |
+
|
6654 |
+
componentDidUpdate.call(this, prevProps, prevState, snapshot);
|
6655 |
+
};
|
6656 |
+
}
|
6657 |
+
|
6658 |
+
return Component;
|
6659 |
+
}
|
6660 |
+
|
6661 |
+
|
6662 |
+
|
6663 |
+
|
6664 |
+
/***/ }),
|
6665 |
+
/* 21 */
|
6666 |
+
/***/ (function(module, exports, __webpack_require__) {
|
6667 |
+
|
6668 |
+
"use strict";
|
6669 |
+
/* WEBPACK VAR INJECTION */(function(process) {
|
6670 |
+
|
6671 |
+
exports.__esModule = true;
|
6672 |
+
exports.classNamesShape = exports.timeoutsShape = void 0;
|
6673 |
+
|
6674 |
+
var _propTypes = _interopRequireDefault(__webpack_require__(3));
|
6675 |
+
|
6676 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
6677 |
+
|
6678 |
+
var timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
6679 |
+
enter: _propTypes.default.number,
|
6680 |
+
exit: _propTypes.default.number,
|
6681 |
+
appear: _propTypes.default.number
|
6682 |
+
}).isRequired]) : null;
|
6683 |
+
exports.timeoutsShape = timeoutsShape;
|
6684 |
+
var classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
|
6685 |
+
enter: _propTypes.default.string,
|
6686 |
+
exit: _propTypes.default.string,
|
6687 |
+
active: _propTypes.default.string
|
6688 |
+
}), _propTypes.default.shape({
|
6689 |
+
enter: _propTypes.default.string,
|
6690 |
+
enterDone: _propTypes.default.string,
|
6691 |
+
enterActive: _propTypes.default.string,
|
6692 |
+
exit: _propTypes.default.string,
|
6693 |
+
exitDone: _propTypes.default.string,
|
6694 |
+
exitActive: _propTypes.default.string
|
6695 |
+
})]) : null;
|
6696 |
+
exports.classNamesShape = classNamesShape;
|
6697 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
6698 |
+
|
6699 |
+
/***/ }),
|
6700 |
+
/* 22 */
|
6701 |
+
/***/ (function(module, exports, __webpack_require__) {
|
6702 |
+
|
6703 |
+
"use strict";
|
6704 |
+
/* WEBPACK VAR INJECTION */(function(process) {
|
6705 |
+
|
6706 |
+
exports.__esModule = true;
|
6707 |
+
exports.default = void 0;
|
6708 |
+
|
6709 |
+
var _propTypes = _interopRequireDefault(__webpack_require__(3));
|
6710 |
+
|
6711 |
+
var _react = _interopRequireDefault(__webpack_require__(2));
|
6712 |
+
|
6713 |
+
var _reactLifecyclesCompat = __webpack_require__(20);
|
6714 |
+
|
6715 |
+
var _ChildMapping = __webpack_require__(56);
|
6716 |
+
|
6717 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
6718 |
+
|
6719 |
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
6720 |
+
|
6721 |
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
6722 |
+
|
6723 |
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
6724 |
+
|
6725 |
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
6726 |
+
|
6727 |
+
var values = Object.values || function (obj) {
|
6728 |
+
return Object.keys(obj).map(function (k) {
|
6729 |
+
return obj[k];
|
6730 |
+
});
|
6731 |
+
};
|
6732 |
+
|
6733 |
+
var defaultProps = {
|
6734 |
+
component: 'div',
|
6735 |
+
childFactory: function childFactory(child) {
|
6736 |
+
return child;
|
6737 |
+
}
|
6738 |
+
/**
|
6739 |
+
* The `<TransitionGroup>` component manages a set of transition components
|
6740 |
+
* (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition
|
6741 |
+
* components, `<TransitionGroup>` is a state machine for managing the mounting
|
6742 |
+
* and unmounting of components over time.
|
6743 |
+
*
|
6744 |
+
* Consider the example below. As items are removed or added to the TodoList the
|
6745 |
+
* `in` prop is toggled automatically by the `<TransitionGroup>`.
|
6746 |
+
*
|
6747 |
+
* Note that `<TransitionGroup>` does not define any animation behavior!
|
6748 |
+
* Exactly _how_ a list item animates is up to the individual transition
|
6749 |
+
* component. This means you can mix and match animations across different list
|
6750 |
+
* items.
|
6751 |
+
*/
|
6752 |
+
|
6753 |
+
};
|
6754 |
+
|
6755 |
+
var TransitionGroup =
|
6756 |
+
/*#__PURE__*/
|
6757 |
+
function (_React$Component) {
|
6758 |
+
_inheritsLoose(TransitionGroup, _React$Component);
|
6759 |
+
|
6760 |
+
function TransitionGroup(props, context) {
|
6761 |
+
var _this;
|
6762 |
+
|
6763 |
+
_this = _React$Component.call(this, props, context) || this;
|
6764 |
+
|
6765 |
+
var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear
|
6766 |
+
|
6767 |
+
|
6768 |
+
_this.state = {
|
6769 |
+
handleExited: handleExited,
|
6770 |
+
firstRender: true
|
6771 |
+
};
|
6772 |
+
return _this;
|
6773 |
+
}
|
6774 |
+
|
6775 |
+
var _proto = TransitionGroup.prototype;
|
6776 |
+
|
6777 |
+
_proto.getChildContext = function getChildContext() {
|
6778 |
+
return {
|
6779 |
+
transitionGroup: {
|
6780 |
+
isMounting: !this.appeared
|
6781 |
+
}
|
6782 |
+
};
|
6783 |
+
};
|
6784 |
+
|
6785 |
+
_proto.componentDidMount = function componentDidMount() {
|
6786 |
+
this.appeared = true;
|
6787 |
+
this.mounted = true;
|
6788 |
+
};
|
6789 |
+
|
6790 |
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
6791 |
+
this.mounted = false;
|
6792 |
+
};
|
6793 |
+
|
6794 |
+
TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
|
6795 |
+
var prevChildMapping = _ref.children,
|
6796 |
+
handleExited = _ref.handleExited,
|
6797 |
+
firstRender = _ref.firstRender;
|
6798 |
+
return {
|
6799 |
+
children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),
|
6800 |
+
firstRender: false
|
6801 |
+
};
|
6802 |
+
};
|
6803 |
+
|
6804 |
+
_proto.handleExited = function handleExited(child, node) {
|
6805 |
+
var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);
|
6806 |
+
if (child.key in currentChildMapping) return;
|
6807 |
+
|
6808 |
+
if (child.props.onExited) {
|
6809 |
+
child.props.onExited(node);
|
6810 |
+
}
|
6811 |
+
|
6812 |
+
if (this.mounted) {
|
6813 |
+
this.setState(function (state) {
|
6814 |
+
var children = _extends({}, state.children);
|
6815 |
+
|
6816 |
+
delete children[child.key];
|
6817 |
+
return {
|
6818 |
+
children: children
|
6819 |
+
};
|
6820 |
+
});
|
6821 |
+
}
|
6822 |
+
};
|
6823 |
+
|
6824 |
+
_proto.render = function render() {
|
6825 |
+
var _this$props = this.props,
|
6826 |
+
Component = _this$props.component,
|
6827 |
+
childFactory = _this$props.childFactory,
|
6828 |
+
props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
6829 |
+
|
6830 |
+
var children = values(this.state.children).map(childFactory);
|
6831 |
+
delete props.appear;
|
6832 |
+
delete props.enter;
|
6833 |
+
delete props.exit;
|
6834 |
+
|
6835 |
+
if (Component === null) {
|
6836 |
+
return children;
|
6837 |
+
}
|
6838 |
+
|
6839 |
+
return _react.default.createElement(Component, props, children);
|
6840 |
+
};
|
6841 |
+
|
6842 |
+
return TransitionGroup;
|
6843 |
+
}(_react.default.Component);
|
6844 |
+
|
6845 |
+
TransitionGroup.childContextTypes = {
|
6846 |
+
transitionGroup: _propTypes.default.object.isRequired
|
6847 |
+
};
|
6848 |
+
TransitionGroup.propTypes = process.env.NODE_ENV !== "production" ? {
|
6849 |
+
/**
|
6850 |
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
6851 |
+
* behavior by providing a `component` prop.
|
6852 |
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
6853 |
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
6854 |
+
* borks your css styles.
|
6855 |
+
*/
|
6856 |
+
component: _propTypes.default.any,
|
6857 |
+
|
6858 |
+
/**
|
6859 |
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
6860 |
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
6861 |
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
6862 |
+
* with our `<Fade>` example.
|
6863 |
+
*
|
6864 |
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
6865 |
+
* children, sometimes you may want to have a single transition child with
|
6866 |
+
* content that you want to be transitioned out and in when you change it
|
6867 |
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
6868 |
+
* the transition child as you change its content, this will cause
|
6869 |
+
* `TransitionGroup` to transition the child out and back in.
|
6870 |
+
*/
|
6871 |
+
children: _propTypes.default.node,
|
6872 |
+
|
6873 |
+
/**
|
6874 |
+
* A convenience prop that enables or disables appear animations
|
6875 |
+
* for all children. Note that specifying this will override any defaults set
|
6876 |
+
* on individual children Transitions.
|
6877 |
+
*/
|
6878 |
+
appear: _propTypes.default.bool,
|
6879 |
+
|
6880 |
+
/**
|
6881 |
+
* A convenience prop that enables or disables enter animations
|
6882 |
+
* for all children. Note that specifying this will override any defaults set
|
6883 |
+
* on individual children Transitions.
|
6884 |
+
*/
|
6885 |
+
enter: _propTypes.default.bool,
|
6886 |
+
|
6887 |
+
/**
|
6888 |
+
* A convenience prop that enables or disables exit animations
|
6889 |
+
* for all children. Note that specifying this will override any defaults set
|
6890 |
+
* on individual children Transitions.
|
6891 |
+
*/
|
6892 |
+
exit: _propTypes.default.bool,
|
6893 |
+
|
6894 |
+
/**
|
6895 |
+
* You may need to apply reactive updates to a child as it is exiting.
|
6896 |
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
6897 |
+
* child the element has already been removed and not accessible to the consumer.
|
6898 |
+
*
|
6899 |
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
6900 |
+
* to wrap every child, even the ones that are leaving.
|
6901 |
+
*
|
6902 |
+
* @type Function(child: ReactElement) -> ReactElement
|
6903 |
+
*/
|
6904 |
+
childFactory: _propTypes.default.func
|
6905 |
+
} : {};
|
6906 |
+
TransitionGroup.defaultProps = defaultProps;
|
6907 |
+
|
6908 |
+
var _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);
|
6909 |
+
|
6910 |
+
exports.default = _default;
|
6911 |
+
module.exports = exports["default"];
|
6912 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
6913 |
+
|
6914 |
+
/***/ }),
|
6915 |
+
/* 23 */
|
6916 |
+
/***/ (function(module, exports) {
|
6917 |
+
|
6918 |
+
module.exports = {};
|
6919 |
+
|
6920 |
+
|
6921 |
+
/***/ }),
|
6922 |
+
/* 24 */
|
6923 |
+
/***/ (function(module, exports) {
|
6924 |
+
|
6925 |
+
module.exports = function (exec) {
|
6926 |
+
try {
|
6927 |
+
return !!exec();
|
6928 |
+
} catch (e) {
|
6929 |
+
return true;
|
6930 |
+
}
|
6931 |
+
};
|
6932 |
+
|
6933 |
+
|
6934 |
+
/***/ }),
|
6935 |
+
/* 25 */
|
6936 |
+
/***/ (function(module, exports) {
|
6937 |
+
|
6938 |
+
module.exports = true;
|
6939 |
+
|
6940 |
+
|
6941 |
+
/***/ }),
|
6942 |
+
/* 26 */
|
6943 |
+
/***/ (function(module, exports) {
|
6944 |
+
|
6945 |
+
module.exports = function (bitmap, value) {
|
6946 |
+
return {
|
6947 |
+
enumerable: !(bitmap & 1),
|
6948 |
+
configurable: !(bitmap & 2),
|
6949 |
+
writable: !(bitmap & 4),
|
6950 |
+
value: value
|
6951 |
+
};
|
6952 |
+
};
|
6953 |
+
|
6954 |
+
|
6955 |
+
/***/ }),
|
6956 |
+
/* 27 */
|
6957 |
+
/***/ (function(module, exports, __webpack_require__) {
|
6958 |
+
|
6959 |
+
// 19.1.2.14 / 15.2.3.14 Object.keys(O)
|
6960 |
+
var $keys = __webpack_require__(76);
|
6961 |
+
var enumBugKeys = __webpack_require__(66);
|
6962 |
+
|
6963 |
+
module.exports = Object.keys || function keys(O) {
|
6964 |
+
return $keys(O, enumBugKeys);
|
6965 |
+
};
|
6966 |
+
|
6967 |
+
|
6968 |
+
/***/ }),
|
6969 |
+
/* 28 */
|
6970 |
+
/***/ (function(module, exports) {
|
6971 |
+
|
6972 |
+
var id = 0;
|
6973 |
+
var px = Math.random();
|
6974 |
+
module.exports = function (key) {
|
6975 |
+
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
|
6976 |
+
};
|
6977 |
+
|
6978 |
+
|
6979 |
+
/***/ }),
|
6980 |
+
/* 29 */
|
6981 |
+
/***/ (function(module, exports) {
|
6982 |
+
|
6983 |
+
exports.f = {}.propertyIsEnumerable;
|
6984 |
+
|
6985 |
+
|
6986 |
+
/***/ }),
|
6987 |
+
/* 30 */
|
6988 |
+
/***/ (function(module, exports, __webpack_require__) {
|
6989 |
+
|
6990 |
+
module.exports = { "default": __webpack_require__(31), __esModule: true };
|
6991 |
+
|
6992 |
+
/***/ }),
|
6993 |
+
/* 31 */
|
6994 |
+
/***/ (function(module, exports, __webpack_require__) {
|
6995 |
+
|
6996 |
+
var core = __webpack_require__(1);
|
6997 |
+
var $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });
|
6998 |
+
module.exports = function stringify(it) { // eslint-disable-line no-unused-vars
|
6999 |
+
return $JSON.stringify.apply($JSON, arguments);
|
7000 |
+
};
|
7001 |
+
|
7002 |
+
|
7003 |
+
/***/ }),
|
7004 |
+
/* 32 */
|
7005 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7006 |
+
|
7007 |
+
"use strict";
|
7008 |
+
function areInputsEqual(newInputs, lastInputs) {
|
7009 |
+
if (newInputs.length !== lastInputs.length) {
|
7010 |
+
return false;
|
7011 |
+
}
|
7012 |
+
|
7013 |
+
for (var i = 0; i < newInputs.length; i++) {
|
7014 |
+
if (newInputs[i] !== lastInputs[i]) {
|
7015 |
+
return false;
|
7016 |
+
}
|
7017 |
+
}
|
7018 |
+
|
7019 |
+
return true;
|
7020 |
+
}
|
7021 |
+
|
7022 |
+
function index (resultFn, isEqual) {
|
7023 |
+
if (isEqual === void 0) {
|
7024 |
+
isEqual = areInputsEqual;
|
7025 |
+
}
|
7026 |
+
|
7027 |
+
var lastThis;
|
7028 |
+
var lastArgs = [];
|
7029 |
+
var lastResult;
|
7030 |
+
var calledOnce = false;
|
7031 |
+
|
7032 |
+
var result = function result() {
|
7033 |
+
for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {
|
7034 |
+
newArgs[_key] = arguments[_key];
|
7035 |
+
}
|
7036 |
+
|
7037 |
+
if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
|
7038 |
+
return lastResult;
|
7039 |
+
}
|
7040 |
+
|
7041 |
+
lastResult = resultFn.apply(this, newArgs);
|
7042 |
+
calledOnce = true;
|
7043 |
+
lastThis = this;
|
7044 |
+
lastArgs = newArgs;
|
7045 |
+
return lastResult;
|
7046 |
+
};
|
7047 |
+
|
7048 |
+
return result;
|
7049 |
+
}
|
7050 |
+
|
7051 |
+
/* harmony default export */ __webpack_exports__["a"] = (index);
|
7052 |
+
|
7053 |
+
|
7054 |
+
/***/ }),
|
7055 |
+
/* 33 */
|
7056 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7057 |
+
|
7058 |
+
"use strict";
|
7059 |
+
/* WEBPACK VAR INJECTION */(function(global) {/* unused harmony export flush */
|
7060 |
+
/* unused harmony export hydrate */
|
7061 |
+
/* unused harmony export cx */
|
7062 |
+
/* unused harmony export merge */
|
7063 |
+
/* unused harmony export getRegisteredStyles */
|
7064 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return injectGlobal; });
|
7065 |
+
/* unused harmony export keyframes */
|
7066 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return css; });
|
7067 |
+
/* unused harmony export sheet */
|
7068 |
+
/* unused harmony export caches */
|
7069 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_create_emotion__ = __webpack_require__(34);
|
7070 |
+
|
7071 |
+
|
7072 |
+
var context = typeof global !== 'undefined' ? global : {};
|
7073 |
+
|
7074 |
+
var _createEmotion = Object(__WEBPACK_IMPORTED_MODULE_0_create_emotion__["a" /* default */])(context),
|
7075 |
+
flush = _createEmotion.flush,
|
7076 |
+
hydrate = _createEmotion.hydrate,
|
7077 |
+
cx = _createEmotion.cx,
|
7078 |
+
merge = _createEmotion.merge,
|
7079 |
+
getRegisteredStyles = _createEmotion.getRegisteredStyles,
|
7080 |
+
injectGlobal = _createEmotion.injectGlobal,
|
7081 |
+
keyframes = _createEmotion.keyframes,
|
7082 |
+
css = _createEmotion.css,
|
7083 |
+
sheet = _createEmotion.sheet,
|
7084 |
+
caches = _createEmotion.caches;
|
7085 |
+
|
7086 |
+
|
7087 |
+
|
7088 |
+
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(17)))
|
7089 |
+
|
7090 |
+
/***/ }),
|
7091 |
+
/* 34 */
|
7092 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7093 |
+
|
7094 |
+
"use strict";
|
7095 |
+
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__emotion_memoize__ = __webpack_require__(35);
|
7096 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__emotion_unitless__ = __webpack_require__(36);
|
7097 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__emotion_hash__ = __webpack_require__(37);
|
7098 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__emotion_stylis__ = __webpack_require__(38);
|
7099 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet__ = __webpack_require__(39);
|
7100 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet__);
|
7101 |
+
|
7102 |
+
|
7103 |
+
|
7104 |
+
|
7105 |
+
|
7106 |
+
|
7107 |
+
var hyphenateRegex = /[A-Z]|^ms/g;
|
7108 |
+
var processStyleName = Object(__WEBPACK_IMPORTED_MODULE_0__emotion_memoize__["a" /* default */])(function (styleName) {
|
7109 |
+
return styleName.replace(hyphenateRegex, '-$&').toLowerCase();
|
7110 |
+
});
|
7111 |
+
var processStyleValue = function processStyleValue(key, value) {
|
7112 |
+
if (value == null || typeof value === 'boolean') {
|
7113 |
+
return '';
|
7114 |
+
}
|
7115 |
+
|
7116 |
+
if (__WEBPACK_IMPORTED_MODULE_1__emotion_unitless__["a" /* default */][key] !== 1 && key.charCodeAt(1) !== 45 && // custom properties
|
7117 |
+
!isNaN(value) && value !== 0) {
|
7118 |
+
return value + 'px';
|
7119 |
+
}
|
7120 |
+
|
7121 |
+
return value;
|
7122 |
+
};
|
7123 |
+
|
7124 |
+
if (process.env.NODE_ENV !== 'production') {
|
7125 |
+
var contentValuePattern = /(attr|calc|counters?|url)\(/;
|
7126 |
+
var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];
|
7127 |
+
var oldProcessStyleValue = processStyleValue;
|
7128 |
+
|
7129 |
+
processStyleValue = function processStyleValue(key, value) {
|
7130 |
+
if (key === 'content') {
|
7131 |
+
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
7132 |
+
console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
7133 |
+
}
|
7134 |
+
}
|
7135 |
+
|
7136 |
+
return oldProcessStyleValue(key, value);
|
7137 |
+
};
|
7138 |
+
}
|
7139 |
+
|
7140 |
+
var classnames = function classnames(args) {
|
7141 |
+
var len = args.length;
|
7142 |
+
var i = 0;
|
7143 |
+
var cls = '';
|
7144 |
+
|
7145 |
+
for (; i < len; i++) {
|
7146 |
+
var arg = args[i];
|
7147 |
+
if (arg == null) continue;
|
7148 |
+
var toAdd = void 0;
|
7149 |
+
|
7150 |
+
switch (typeof arg) {
|
7151 |
+
case 'boolean':
|
7152 |
+
break;
|
7153 |
+
|
7154 |
+
case 'function':
|
7155 |
+
if (process.env.NODE_ENV !== 'production') {
|
7156 |
+
console.error('Passing functions to cx is deprecated and will be removed in the next major version of Emotion.\n' + 'Please call the function before passing it to cx.');
|
7157 |
+
}
|
7158 |
+
|
7159 |
+
toAdd = classnames([arg()]);
|
7160 |
+
break;
|
7161 |
+
|
7162 |
+
case 'object':
|
7163 |
+
{
|
7164 |
+
if (Array.isArray(arg)) {
|
7165 |
+
toAdd = classnames(arg);
|
7166 |
+
} else {
|
7167 |
+
toAdd = '';
|
7168 |
+
|
7169 |
+
for (var k in arg) {
|
7170 |
+
if (arg[k] && k) {
|
7171 |
+
toAdd && (toAdd += ' ');
|
7172 |
+
toAdd += k;
|
7173 |
+
}
|
7174 |
+
}
|
7175 |
+
}
|
7176 |
+
|
7177 |
+
break;
|
7178 |
+
}
|
7179 |
+
|
7180 |
+
default:
|
7181 |
+
{
|
7182 |
+
toAdd = arg;
|
7183 |
+
}
|
7184 |
+
}
|
7185 |
+
|
7186 |
+
if (toAdd) {
|
7187 |
+
cls && (cls += ' ');
|
7188 |
+
cls += toAdd;
|
7189 |
+
}
|
7190 |
+
}
|
7191 |
+
|
7192 |
+
return cls;
|
7193 |
+
};
|
7194 |
+
var isBrowser = typeof document !== 'undefined';
|
7195 |
+
|
7196 |
+
/*
|
7197 |
+
|
7198 |
+
high performance StyleSheet for css-in-js systems
|
7199 |
+
|
7200 |
+
- uses multiple style tags behind the scenes for millions of rules
|
7201 |
+
- uses `insertRule` for appending in production for *much* faster performance
|
7202 |
+
- 'polyfills' on server side
|
7203 |
+
|
7204 |
+
// usage
|
7205 |
+
|
7206 |
+
import StyleSheet from 'glamor/lib/sheet'
|
7207 |
+
let styleSheet = new StyleSheet()
|
7208 |
+
|
7209 |
+
styleSheet.inject()
|
7210 |
+
- 'injects' the stylesheet into the page (or into memory if on server)
|
7211 |
+
|
7212 |
+
styleSheet.insert('#box { border: 1px solid red; }')
|
7213 |
+
- appends a css rule into the stylesheet
|
7214 |
+
|
7215 |
+
styleSheet.flush()
|
7216 |
+
- empties the stylesheet of all its contents
|
7217 |
+
|
7218 |
+
*/
|
7219 |
+
// $FlowFixMe
|
7220 |
+
function sheetForTag(tag) {
|
7221 |
+
if (tag.sheet) {
|
7222 |
+
// $FlowFixMe
|
7223 |
+
return tag.sheet;
|
7224 |
+
} // this weirdness brought to you by firefox
|
7225 |
+
|
7226 |
+
|
7227 |
+
for (var i = 0; i < document.styleSheets.length; i++) {
|
7228 |
+
if (document.styleSheets[i].ownerNode === tag) {
|
7229 |
+
// $FlowFixMe
|
7230 |
+
return document.styleSheets[i];
|
7231 |
+
}
|
7232 |
+
}
|
7233 |
+
}
|
7234 |
+
|
7235 |
+
function makeStyleTag(opts) {
|
7236 |
+
var tag = document.createElement('style');
|
7237 |
+
tag.setAttribute('data-emotion', opts.key || '');
|
7238 |
+
|
7239 |
+
if (opts.nonce !== undefined) {
|
7240 |
+
tag.setAttribute('nonce', opts.nonce);
|
7241 |
+
}
|
7242 |
+
|
7243 |
+
tag.appendChild(document.createTextNode('')) // $FlowFixMe
|
7244 |
+
;
|
7245 |
+
(opts.container !== undefined ? opts.container : document.head).appendChild(tag);
|
7246 |
+
return tag;
|
7247 |
+
}
|
7248 |
+
|
7249 |
+
var StyleSheet =
|
7250 |
+
/*#__PURE__*/
|
7251 |
+
function () {
|
7252 |
+
function StyleSheet(options) {
|
7253 |
+
this.isSpeedy = process.env.NODE_ENV === 'production'; // the big drawback here is that the css won't be editable in devtools
|
7254 |
+
|
7255 |
+
this.tags = [];
|
7256 |
+
this.ctr = 0;
|
7257 |
+
this.opts = options;
|
7258 |
+
}
|
7259 |
+
|
7260 |
+
var _proto = StyleSheet.prototype;
|
7261 |
+
|
7262 |
+
_proto.inject = function inject() {
|
7263 |
+
if (this.injected) {
|
7264 |
+
throw new Error('already injected!');
|
7265 |
+
}
|
7266 |
+
|
7267 |
+
this.tags[0] = makeStyleTag(this.opts);
|
7268 |
+
this.injected = true;
|
7269 |
+
};
|
7270 |
+
|
7271 |
+
_proto.speedy = function speedy(bool) {
|
7272 |
+
if (this.ctr !== 0) {
|
7273 |
+
// cannot change speedy mode after inserting any rule to sheet. Either call speedy(${bool}) earlier in your app, or call flush() before speedy(${bool})
|
7274 |
+
throw new Error("cannot change speedy now");
|
7275 |
+
}
|
7276 |
+
|
7277 |
+
this.isSpeedy = !!bool;
|
7278 |
+
};
|
7279 |
+
|
7280 |
+
_proto.insert = function insert(rule, sourceMap) {
|
7281 |
+
// this is the ultrafast version, works across browsers
|
7282 |
+
if (this.isSpeedy) {
|
7283 |
+
var tag = this.tags[this.tags.length - 1];
|
7284 |
+
var sheet = sheetForTag(tag);
|
7285 |
+
|
7286 |
+
try {
|
7287 |
+
sheet.insertRule(rule, sheet.cssRules.length);
|
7288 |
+
} catch (e) {
|
7289 |
+
if (process.env.NODE_ENV !== 'production') {
|
7290 |
+
console.warn('illegal rule', rule); // eslint-disable-line no-console
|
7291 |
+
}
|
7292 |
+
}
|
7293 |
+
} else {
|
7294 |
+
var _tag = makeStyleTag(this.opts);
|
7295 |
+
|
7296 |
+
this.tags.push(_tag);
|
7297 |
+
|
7298 |
+
_tag.appendChild(document.createTextNode(rule + (sourceMap || '')));
|
7299 |
+
}
|
7300 |
+
|
7301 |
+
this.ctr++;
|
7302 |
+
|
7303 |
+
if (this.ctr % 65000 === 0) {
|
7304 |
+
this.tags.push(makeStyleTag(this.opts));
|
7305 |
+
}
|
7306 |
+
};
|
7307 |
+
|
7308 |
+
_proto.flush = function flush() {
|
7309 |
+
// $FlowFixMe
|
7310 |
+
this.tags.forEach(function (tag) {
|
7311 |
+
return tag.parentNode.removeChild(tag);
|
7312 |
+
});
|
7313 |
+
this.tags = [];
|
7314 |
+
this.ctr = 0; // todo - look for remnants in document.styleSheets
|
7315 |
+
|
7316 |
+
this.injected = false;
|
7317 |
+
};
|
7318 |
+
|
7319 |
+
return StyleSheet;
|
7320 |
+
}();
|
7321 |
+
|
7322 |
+
function createEmotion(context, options) {
|
7323 |
+
if (context.__SECRET_EMOTION__ !== undefined) {
|
7324 |
+
return context.__SECRET_EMOTION__;
|
7325 |
+
}
|
7326 |
+
|
7327 |
+
if (options === undefined) options = {};
|
7328 |
+
var key = options.key || 'css';
|
7329 |
+
|
7330 |
+
if (process.env.NODE_ENV !== 'production') {
|
7331 |
+
if (/[^a-z-]/.test(key)) {
|
7332 |
+
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
7333 |
+
}
|
7334 |
+
}
|
7335 |
+
|
7336 |
+
var current;
|
7337 |
+
|
7338 |
+
function insertRule(rule) {
|
7339 |
+
current += rule;
|
7340 |
+
|
7341 |
+
if (isBrowser) {
|
7342 |
+
sheet.insert(rule, currentSourceMap);
|
7343 |
+
}
|
7344 |
+
}
|
7345 |
+
|
7346 |
+
var insertionPlugin = __WEBPACK_IMPORTED_MODULE_4_stylis_rule_sheet___default()(insertRule);
|
7347 |
+
var stylisOptions;
|
7348 |
+
|
7349 |
+
if (options.prefix !== undefined) {
|
7350 |
+
stylisOptions = {
|
7351 |
+
prefix: options.prefix
|
7352 |
+
};
|
7353 |
+
}
|
7354 |
+
|
7355 |
+
var caches = {
|
7356 |
+
registered: {},
|
7357 |
+
inserted: {},
|
7358 |
+
nonce: options.nonce,
|
7359 |
+
key: key
|
7360 |
+
};
|
7361 |
+
var sheet = new StyleSheet(options);
|
7362 |
+
|
7363 |
+
if (isBrowser) {
|
7364 |
+
// 🚀
|
7365 |
+
sheet.inject();
|
7366 |
+
}
|
7367 |
+
|
7368 |
+
var stylis = new __WEBPACK_IMPORTED_MODULE_3__emotion_stylis__["a" /* default */](stylisOptions);
|
7369 |
+
stylis.use(options.stylisPlugins)(insertionPlugin);
|
7370 |
+
var currentSourceMap = '';
|
7371 |
+
|
7372 |
+
function handleInterpolation(interpolation, couldBeSelectorInterpolation) {
|
7373 |
+
if (interpolation == null) {
|
7374 |
+
return '';
|
7375 |
+
}
|
7376 |
+
|
7377 |
+
switch (typeof interpolation) {
|
7378 |
+
case 'boolean':
|
7379 |
+
return '';
|
7380 |
+
|
7381 |
+
case 'function':
|
7382 |
+
if (interpolation.__emotion_styles !== undefined) {
|
7383 |
+
var selector = interpolation.toString();
|
7384 |
+
|
7385 |
+
if (selector === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
|
7386 |
+
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
|
7387 |
+
}
|
7388 |
+
|
7389 |
+
return selector;
|
7390 |
+
}
|
7391 |
+
|
7392 |
+
if (this === undefined && process.env.NODE_ENV !== 'production') {
|
7393 |
+
console.error('Interpolating functions in css calls is deprecated and will be removed in the next major version of Emotion.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
7394 |
+
}
|
7395 |
+
|
7396 |
+
return handleInterpolation.call(this, this === undefined ? interpolation() : // $FlowFixMe
|
7397 |
+
interpolation(this.mergedProps, this.context), couldBeSelectorInterpolation);
|
7398 |
+
|
7399 |
+
case 'object':
|
7400 |
+
return createStringFromObject.call(this, interpolation);
|
7401 |
+
|
7402 |
+
default:
|
7403 |
+
var cached = caches.registered[interpolation];
|
7404 |
+
return couldBeSelectorInterpolation === false && cached !== undefined ? cached : interpolation;
|
7405 |
+
}
|
7406 |
+
}
|
7407 |
+
|
7408 |
+
var objectToStringCache = new WeakMap();
|
7409 |
+
|
7410 |
+
function createStringFromObject(obj) {
|
7411 |
+
if (objectToStringCache.has(obj)) {
|
7412 |
+
// $FlowFixMe
|
7413 |
+
return objectToStringCache.get(obj);
|
7414 |
+
}
|
7415 |
+
|
7416 |
+
var string = '';
|
7417 |
+
|
7418 |
+
if (Array.isArray(obj)) {
|
7419 |
+
obj.forEach(function (interpolation) {
|
7420 |
+
string += handleInterpolation.call(this, interpolation, false);
|
7421 |
+
}, this);
|
7422 |
+
} else {
|
7423 |
+
Object.keys(obj).forEach(function (key) {
|
7424 |
+
if (typeof obj[key] !== 'object') {
|
7425 |
+
if (caches.registered[obj[key]] !== undefined) {
|
7426 |
+
string += key + "{" + caches.registered[obj[key]] + "}";
|
7427 |
+
} else {
|
7428 |
+
string += processStyleName(key) + ":" + processStyleValue(key, obj[key]) + ";";
|
7429 |
+
}
|
7430 |
+
} else {
|
7431 |
+
if (key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {
|
7432 |
+
throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');
|
7433 |
+
}
|
7434 |
+
|
7435 |
+
if (Array.isArray(obj[key]) && typeof obj[key][0] === 'string' && caches.registered[obj[key][0]] === undefined) {
|
7436 |
+
obj[key].forEach(function (value) {
|
7437 |
+
string += processStyleName(key) + ":" + processStyleValue(key, value) + ";";
|
7438 |
+
});
|
7439 |
+
} else {
|
7440 |
+
string += key + "{" + handleInterpolation.call(this, obj[key], false) + "}";
|
7441 |
+
}
|
7442 |
+
}
|
7443 |
+
}, this);
|
7444 |
+
}
|
7445 |
+
|
7446 |
+
objectToStringCache.set(obj, string);
|
7447 |
+
return string;
|
7448 |
+
}
|
7449 |
+
|
7450 |
+
var name;
|
7451 |
+
var stylesWithLabel;
|
7452 |
+
var labelPattern = /label:\s*([^\s;\n{]+)\s*;/g;
|
7453 |
+
|
7454 |
+
var createClassName = function createClassName(styles, identifierName) {
|
7455 |
+
return Object(__WEBPACK_IMPORTED_MODULE_2__emotion_hash__["a" /* default */])(styles + identifierName) + identifierName;
|
7456 |
+
};
|
7457 |
+
|
7458 |
+
if (process.env.NODE_ENV !== 'production') {
|
7459 |
+
var oldCreateClassName = createClassName;
|
7460 |
+
var sourceMappingUrlPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
7461 |
+
|
7462 |
+
createClassName = function createClassName(styles, identifierName) {
|
7463 |
+
return oldCreateClassName(styles.replace(sourceMappingUrlPattern, function (sourceMap) {
|
7464 |
+
currentSourceMap = sourceMap;
|
7465 |
+
return '';
|
7466 |
+
}), identifierName);
|
7467 |
+
};
|
7468 |
+
}
|
7469 |
+
|
7470 |
+
var createStyles = function createStyles(strings) {
|
7471 |
+
var stringMode = true;
|
7472 |
+
var styles = '';
|
7473 |
+
var identifierName = '';
|
7474 |
+
|
7475 |
+
if (strings == null || strings.raw === undefined) {
|
7476 |
+
stringMode = false;
|
7477 |
+
styles += handleInterpolation.call(this, strings, false);
|
7478 |
+
} else {
|
7479 |
+
styles += strings[0];
|
7480 |
+
}
|
7481 |
+
|
7482 |
+
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
7483 |
+
interpolations[_key - 1] = arguments[_key];
|
7484 |
+
}
|
7485 |
+
|
7486 |
+
interpolations.forEach(function (interpolation, i) {
|
7487 |
+
styles += handleInterpolation.call(this, interpolation, styles.charCodeAt(styles.length - 1) === 46 // .
|
7488 |
+
);
|
7489 |
+
|
7490 |
+
if (stringMode === true && strings[i + 1] !== undefined) {
|
7491 |
+
styles += strings[i + 1];
|
7492 |
+
}
|
7493 |
+
}, this);
|
7494 |
+
stylesWithLabel = styles;
|
7495 |
+
styles = styles.replace(labelPattern, function (match, p1) {
|
7496 |
+
identifierName += "-" + p1;
|
7497 |
+
return '';
|
7498 |
+
});
|
7499 |
+
name = createClassName(styles, identifierName);
|
7500 |
+
return styles;
|
7501 |
+
};
|
7502 |
+
|
7503 |
+
if (process.env.NODE_ENV !== 'production') {
|
7504 |
+
var oldStylis = stylis;
|
7505 |
+
|
7506 |
+
stylis = function stylis(selector, styles) {
|
7507 |
+
oldStylis(selector, styles);
|
7508 |
+
currentSourceMap = '';
|
7509 |
+
};
|
7510 |
+
}
|
7511 |
+
|
7512 |
+
function insert(scope, styles) {
|
7513 |
+
if (caches.inserted[name] === undefined) {
|
7514 |
+
current = '';
|
7515 |
+
stylis(scope, styles);
|
7516 |
+
caches.inserted[name] = current;
|
7517 |
+
}
|
7518 |
+
}
|
7519 |
+
|
7520 |
+
var css = function css() {
|
7521 |
+
var styles = createStyles.apply(this, arguments);
|
7522 |
+
var selector = key + "-" + name;
|
7523 |
+
|
7524 |
+
if (caches.registered[selector] === undefined) {
|
7525 |
+
caches.registered[selector] = stylesWithLabel;
|
7526 |
+
}
|
7527 |
+
|
7528 |
+
insert("." + selector, styles);
|
7529 |
+
return selector;
|
7530 |
+
};
|
7531 |
+
|
7532 |
+
var keyframes = function keyframes() {
|
7533 |
+
var styles = createStyles.apply(this, arguments);
|
7534 |
+
var animation = "animation-" + name;
|
7535 |
+
insert('', "@keyframes " + animation + "{" + styles + "}");
|
7536 |
+
return animation;
|
7537 |
+
};
|
7538 |
+
|
7539 |
+
var injectGlobal = function injectGlobal() {
|
7540 |
+
var styles = createStyles.apply(this, arguments);
|
7541 |
+
insert('', styles);
|
7542 |
+
};
|
7543 |
+
|
7544 |
+
function getRegisteredStyles(registeredStyles, classNames) {
|
7545 |
+
var rawClassName = '';
|
7546 |
+
classNames.split(' ').forEach(function (className) {
|
7547 |
+
if (caches.registered[className] !== undefined) {
|
7548 |
+
registeredStyles.push(className);
|
7549 |
+
} else {
|
7550 |
+
rawClassName += className + " ";
|
7551 |
+
}
|
7552 |
+
});
|
7553 |
+
return rawClassName;
|
7554 |
+
}
|
7555 |
+
|
7556 |
+
function merge(className, sourceMap) {
|
7557 |
+
var registeredStyles = [];
|
7558 |
+
var rawClassName = getRegisteredStyles(registeredStyles, className);
|
7559 |
+
|
7560 |
+
if (registeredStyles.length < 2) {
|
7561 |
+
return className;
|
7562 |
+
}
|
7563 |
+
|
7564 |
+
return rawClassName + css(registeredStyles, sourceMap);
|
7565 |
+
}
|
7566 |
+
|
7567 |
+
function cx() {
|
7568 |
+
for (var _len2 = arguments.length, classNames = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
7569 |
+
classNames[_key2] = arguments[_key2];
|
7570 |
+
}
|
7571 |
+
|
7572 |
+
return merge(classnames(classNames));
|
7573 |
+
}
|
7574 |
+
|
7575 |
+
function hydrateSingleId(id) {
|
7576 |
+
caches.inserted[id] = true;
|
7577 |
+
}
|
7578 |
+
|
7579 |
+
function hydrate(ids) {
|
7580 |
+
ids.forEach(hydrateSingleId);
|
7581 |
+
}
|
7582 |
+
|
7583 |
+
function flush() {
|
7584 |
+
if (isBrowser) {
|
7585 |
+
sheet.flush();
|
7586 |
+
sheet.inject();
|
7587 |
+
}
|
7588 |
+
|
7589 |
+
caches.inserted = {};
|
7590 |
+
caches.registered = {};
|
7591 |
+
}
|
7592 |
+
|
7593 |
+
if (isBrowser) {
|
7594 |
+
var chunks = document.querySelectorAll("[data-emotion-" + key + "]");
|
7595 |
+
Array.prototype.forEach.call(chunks, function (node) {
|
7596 |
+
// $FlowFixMe
|
7597 |
+
sheet.tags[0].parentNode.insertBefore(node, sheet.tags[0]); // $FlowFixMe
|
7598 |
+
|
7599 |
+
node.getAttribute("data-emotion-" + key).split(' ').forEach(hydrateSingleId);
|
7600 |
+
});
|
7601 |
+
}
|
7602 |
+
|
7603 |
+
var emotion = {
|
7604 |
+
flush: flush,
|
7605 |
+
hydrate: hydrate,
|
7606 |
+
cx: cx,
|
7607 |
+
merge: merge,
|
7608 |
+
getRegisteredStyles: getRegisteredStyles,
|
7609 |
+
injectGlobal: injectGlobal,
|
7610 |
+
keyframes: keyframes,
|
7611 |
+
css: css,
|
7612 |
+
sheet: sheet,
|
7613 |
+
caches: caches
|
7614 |
+
};
|
7615 |
+
context.__SECRET_EMOTION__ = emotion;
|
7616 |
+
return emotion;
|
7617 |
+
}
|
7618 |
+
|
7619 |
+
/* harmony default export */ __webpack_exports__["a"] = (createEmotion);
|
7620 |
+
|
7621 |
+
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(0)))
|
7622 |
+
|
7623 |
+
/***/ }),
|
7624 |
+
/* 35 */
|
7625 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7626 |
+
|
7627 |
+
"use strict";
|
7628 |
+
function memoize(fn) {
|
7629 |
+
var cache = {};
|
7630 |
+
return function (arg) {
|
7631 |
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
7632 |
+
return cache[arg];
|
7633 |
+
};
|
7634 |
+
}
|
7635 |
+
|
7636 |
+
/* harmony default export */ __webpack_exports__["a"] = (memoize);
|
7637 |
+
|
7638 |
+
|
7639 |
+
/***/ }),
|
7640 |
+
/* 36 */
|
7641 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7642 |
+
|
7643 |
+
"use strict";
|
7644 |
+
var unitlessKeys = {
|
7645 |
+
animationIterationCount: 1,
|
7646 |
+
borderImageOutset: 1,
|
7647 |
+
borderImageSlice: 1,
|
7648 |
+
borderImageWidth: 1,
|
7649 |
+
boxFlex: 1,
|
7650 |
+
boxFlexGroup: 1,
|
7651 |
+
boxOrdinalGroup: 1,
|
7652 |
+
columnCount: 1,
|
7653 |
+
columns: 1,
|
7654 |
+
flex: 1,
|
7655 |
+
flexGrow: 1,
|
7656 |
+
flexPositive: 1,
|
7657 |
+
flexShrink: 1,
|
7658 |
+
flexNegative: 1,
|
7659 |
+
flexOrder: 1,
|
7660 |
+
gridRow: 1,
|
7661 |
+
gridRowEnd: 1,
|
7662 |
+
gridRowSpan: 1,
|
7663 |
+
gridRowStart: 1,
|
7664 |
+
gridColumn: 1,
|
7665 |
+
gridColumnEnd: 1,
|
7666 |
+
gridColumnSpan: 1,
|
7667 |
+
gridColumnStart: 1,
|
7668 |
+
fontWeight: 1,
|
7669 |
+
lineHeight: 1,
|
7670 |
+
opacity: 1,
|
7671 |
+
order: 1,
|
7672 |
+
orphans: 1,
|
7673 |
+
tabSize: 1,
|
7674 |
+
widows: 1,
|
7675 |
+
zIndex: 1,
|
7676 |
+
zoom: 1,
|
7677 |
+
WebkitLineClamp: 1,
|
7678 |
+
// SVG-related properties
|
7679 |
+
fillOpacity: 1,
|
7680 |
+
floodOpacity: 1,
|
7681 |
+
stopOpacity: 1,
|
7682 |
+
strokeDasharray: 1,
|
7683 |
+
strokeDashoffset: 1,
|
7684 |
+
strokeMiterlimit: 1,
|
7685 |
+
strokeOpacity: 1,
|
7686 |
+
strokeWidth: 1
|
7687 |
+
};
|
7688 |
+
|
7689 |
+
/* harmony default export */ __webpack_exports__["a"] = (unitlessKeys);
|
7690 |
+
|
7691 |
+
|
7692 |
+
/***/ }),
|
7693 |
+
/* 37 */
|
7694 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7695 |
+
|
7696 |
+
"use strict";
|
7697 |
+
/* eslint-disable */
|
7698 |
+
// murmurhash2 via https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js
|
7699 |
+
function murmurhash2_32_gc(str) {
|
7700 |
+
var l = str.length,
|
7701 |
+
h = l ^ l,
|
7702 |
+
i = 0,
|
7703 |
+
k;
|
7704 |
+
|
7705 |
+
while (l >= 4) {
|
7706 |
+
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
7707 |
+
k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
7708 |
+
k ^= k >>> 24;
|
7709 |
+
k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
7710 |
+
h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k;
|
7711 |
+
l -= 4;
|
7712 |
+
++i;
|
7713 |
+
}
|
7714 |
+
|
7715 |
+
switch (l) {
|
7716 |
+
case 3:
|
7717 |
+
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
7718 |
+
|
7719 |
+
case 2:
|
7720 |
+
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
7721 |
+
|
7722 |
+
case 1:
|
7723 |
+
h ^= str.charCodeAt(i) & 0xff;
|
7724 |
+
h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
7725 |
+
}
|
7726 |
+
|
7727 |
+
h ^= h >>> 13;
|
7728 |
+
h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
7729 |
+
h ^= h >>> 15;
|
7730 |
+
return (h >>> 0).toString(36);
|
7731 |
+
}
|
7732 |
+
|
7733 |
+
/* harmony default export */ __webpack_exports__["a"] = (murmurhash2_32_gc);
|
7734 |
+
|
7735 |
+
|
7736 |
+
/***/ }),
|
7737 |
+
/* 38 */
|
7738 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
7739 |
+
|
7740 |
+
"use strict";
|
7741 |
+
function stylis_min (W) {
|
7742 |
+
function M(d, c, e, h, a) {
|
7743 |
+
for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
|
7744 |
+
g = e.charCodeAt(l);
|
7745 |
+
l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
|
7746 |
+
|
7747 |
+
if (0 === b + n + v + m) {
|
7748 |
+
if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
|
7749 |
+
switch (g) {
|
7750 |
+
case 32:
|
7751 |
+
case 9:
|
7752 |
+
case 59:
|
7753 |
+
case 13:
|
7754 |
+
case 10:
|
7755 |
+
break;
|
7756 |
+
|
7757 |
+
default:
|
7758 |
+
f += e.charAt(l);
|
7759 |
+
}
|
7760 |
+
|
7761 |
+
g = 59;
|
7762 |
+
}
|
7763 |
+
|
7764 |
+
switch (g) {
|
7765 |
+
case 123:
|
7766 |
+
f = f.trim();
|
7767 |
+
q = f.charCodeAt(0);
|
7768 |
+
k = 1;
|
7769 |
+
|
7770 |
+
for (t = ++l; l < B;) {
|
7771 |
+
switch (g = e.charCodeAt(l)) {
|
7772 |
+
case 123:
|
7773 |
+
k++;
|
7774 |
+
break;
|
7775 |
+
|
7776 |
+
case 125:
|
7777 |
+
k--;
|
7778 |
+
break;
|
7779 |
+
|
7780 |
+
case 47:
|
7781 |
+
switch (g = e.charCodeAt(l + 1)) {
|
7782 |
+
case 42:
|
7783 |
+
case 47:
|
7784 |
+
a: {
|
7785 |
+
for (u = l + 1; u < J; ++u) {
|
7786 |
+
switch (e.charCodeAt(u)) {
|
7787 |
+
case 47:
|
7788 |
+
if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
|
7789 |
+
l = u + 1;
|
7790 |
+
break a;
|
7791 |
+
}
|
7792 |
+
|
7793 |
+
break;
|
7794 |
+
|
7795 |
+
case 10:
|
7796 |
+
if (47 === g) {
|
7797 |
+
l = u + 1;
|
7798 |
+
break a;
|
7799 |
+
}
|
7800 |
+
|
7801 |
+
}
|
7802 |
+
}
|
7803 |
+
|
7804 |
+
l = u;
|
7805 |
+
}
|
7806 |
+
|
7807 |
+
}
|
7808 |
+
|
7809 |
+
break;
|
7810 |
+
|
7811 |
+
case 91:
|
7812 |
+
g++;
|
7813 |
+
|
7814 |
+
case 40:
|
7815 |
+
g++;
|
7816 |
+
|
7817 |
+
case 34:
|
7818 |
+
case 39:
|
7819 |
+
for (; l++ < J && e.charCodeAt(l) !== g;) {
|
7820 |
+
}
|
7821 |
+
|
7822 |
+
}
|
7823 |
+
|
7824 |
+
if (0 === k) break;
|
7825 |
+
l++;
|
7826 |
+
}
|
7827 |
+
|
7828 |
+
k = e.substring(t, l);
|
7829 |
+
0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
|
7830 |
+
|
7831 |
+
switch (q) {
|
7832 |
+
case 64:
|
7833 |
+
0 < r && (f = f.replace(N, ''));
|
7834 |
+
g = f.charCodeAt(1);
|
7835 |
+
|
7836 |
+
switch (g) {
|
7837 |
+
case 100:
|
7838 |
+
case 109:
|
7839 |
+
case 115:
|
7840 |
+
case 45:
|
7841 |
+
r = c;
|
7842 |
+
break;
|
7843 |
+
|
7844 |
+
default:
|
7845 |
+
r = O;
|
7846 |
+
}
|
7847 |
+
|
7848 |
+
k = M(c, r, k, g, a + 1);
|
7849 |
+
t = k.length;
|
7850 |
+
0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
|
7851 |
+
if (0 < t) switch (g) {
|
7852 |
+
case 115:
|
7853 |
+
f = f.replace(da, ea);
|
7854 |
+
|
7855 |
+
case 100:
|
7856 |
+
case 109:
|
7857 |
+
case 45:
|
7858 |
+
k = f + '{' + k + '}';
|
7859 |
+
break;
|
7860 |
+
|
7861 |
+
case 107:
|
7862 |
+
f = f.replace(fa, '$1 $2');
|
7863 |
+
k = f + '{' + k + '}';
|
7864 |
+
k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
|
7865 |
+
break;
|
7866 |
+
|
7867 |
+
default:
|
7868 |
+
k = f + k, 112 === h && (k = (p += k, ''));
|
7869 |
+
} else k = '';
|
7870 |
+
break;
|
7871 |
+
|
7872 |
+
default:
|
7873 |
+
k = M(c, X(c, f, I), k, h, a + 1);
|
7874 |
+
}
|
7875 |
+
|
7876 |
+
F += k;
|
7877 |
+
k = I = r = u = q = 0;
|
7878 |
+
f = '';
|
7879 |
+
g = e.charCodeAt(++l);
|
7880 |
+
break;
|
7881 |
+
|
7882 |
+
case 125:
|
7883 |
+
case 59:
|
7884 |
+
f = (0 < r ? f.replace(N, '') : f).trim();
|
7885 |
+
if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
|
7886 |
+
case 0:
|
7887 |
+
break;
|
7888 |
+
|
7889 |
+
case 64:
|
7890 |
+
if (105 === g || 99 === g) {
|
7891 |
+
G += f + e.charAt(l);
|
7892 |
+
break;
|
7893 |
+
}
|
7894 |
+
|
7895 |
+
default:
|
7896 |
+
58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
|
7897 |
+
}
|
7898 |
+
I = r = u = q = 0;
|
7899 |
+
f = '';
|
7900 |
+
g = e.charCodeAt(++l);
|
7901 |
+
}
|
7902 |
+
}
|
7903 |
+
|
7904 |
+
switch (g) {
|
7905 |
+
case 13:
|
7906 |
+
case 10:
|
7907 |
+
47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
|
7908 |
+
0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
|
7909 |
+
z = 1;
|
7910 |
+
D++;
|
7911 |
+
break;
|
7912 |
+
|
7913 |
+
case 59:
|
7914 |
+
case 125:
|
7915 |
+
if (0 === b + n + v + m) {
|
7916 |
+
z++;
|
7917 |
+
break;
|
7918 |
+
}
|
7919 |
+
|
7920 |
+
default:
|
7921 |
+
z++;
|
7922 |
+
y = e.charAt(l);
|
7923 |
+
|
7924 |
+
switch (g) {
|
7925 |
+
case 9:
|
7926 |
+
case 32:
|
7927 |
+
if (0 === n + m + b) switch (x) {
|
7928 |
+
case 44:
|
7929 |
+
case 58:
|
7930 |
+
case 9:
|
7931 |
+
case 32:
|
7932 |
+
y = '';
|
7933 |
+
break;
|
7934 |
+
|
7935 |
+
default:
|
7936 |
+
32 !== g && (y = ' ');
|
7937 |
+
}
|
7938 |
+
break;
|
7939 |
+
|
7940 |
+
case 0:
|
7941 |
+
y = '\\0';
|
7942 |
+
break;
|
7943 |
+
|
7944 |
+
case 12:
|
7945 |
+
y = '\\f';
|
7946 |
+
break;
|
7947 |
+
|
7948 |
+
case 11:
|
7949 |
+
y = '\\v';
|
7950 |
+
break;
|
7951 |
+
|
7952 |
+
case 38:
|
7953 |
+
0 === n + b + m && (r = I = 1, y = '\f' + y);
|
7954 |
+
break;
|
7955 |
+
|
7956 |
+
case 108:
|
7957 |
+
if (0 === n + b + m + E && 0 < u) switch (l - u) {
|
7958 |
+
case 2:
|
7959 |
+
112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
|
7960 |
+
|
7961 |
+
case 8:
|
7962 |
+
111 === K && (E = K);
|
7963 |
+
}
|
7964 |
+
break;
|
7965 |
+
|
7966 |
+
case 58:
|
7967 |
+
0 === n + b + m && (u = l);
|
7968 |
+
break;
|
7969 |
+
|
7970 |
+
case 44:
|
7971 |
+
0 === b + v + n + m && (r = 1, y += '\r');
|
7972 |
+
break;
|
7973 |
+
|
7974 |
+
case 34:
|
7975 |
+
case 39:
|
7976 |
+
0 === b && (n = n === g ? 0 : 0 === n ? g : n);
|
7977 |
+
break;
|
7978 |
+
|
7979 |
+
case 91:
|
7980 |
+
0 === n + b + v && m++;
|
7981 |
+
break;
|
7982 |
+
|
7983 |
+
case 93:
|
7984 |
+
0 === n + b + v && m--;
|
7985 |
+
break;
|
7986 |
+
|
7987 |
+
case 41:
|
7988 |
+
0 === n + b + m && v--;
|
7989 |
+
break;
|
7990 |
+
|
7991 |
+
case 40:
|
7992 |
+
if (0 === n + b + m) {
|
7993 |
+
if (0 === q) switch (2 * x + 3 * K) {
|
7994 |
+
case 533:
|
7995 |
+
break;
|
7996 |
+
|
7997 |
+
default:
|
7998 |
+
q = 1;
|
7999 |
+
}
|
8000 |
+
v++;
|
8001 |
+
}
|
8002 |
+
|
8003 |
+
break;
|
8004 |
+
|
8005 |
+
case 64:
|
8006 |
+
0 === b + v + n + m + u + k && (k = 1);
|
8007 |
+
break;
|
8008 |
+
|
8009 |
+
case 42:
|
8010 |
+
case 47:
|
8011 |
+
if (!(0 < n + m + v)) switch (b) {
|
8012 |
+
case 0:
|
8013 |
+
switch (2 * g + 3 * e.charCodeAt(l + 1)) {
|
8014 |
+
case 235:
|
8015 |
+
b = 47;
|
8016 |
+
break;
|
8017 |
+
|
8018 |
+
case 220:
|
8019 |
+
t = l, b = 42;
|
8020 |
+
}
|
8021 |
+
|
8022 |
+
break;
|
8023 |
+
|
8024 |
+
case 42:
|
8025 |
+
47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
|
8026 |
+
}
|
8027 |
+
}
|
8028 |
+
|
8029 |
+
0 === b && (f += y);
|
8030 |
+
}
|
8031 |
+
|
8032 |
+
K = x;
|
8033 |
+
x = g;
|
8034 |
+
l++;
|
8035 |
+
}
|
8036 |
+
|
8037 |
+
t = p.length;
|
8038 |
+
|
8039 |
+
if (0 < t) {
|
8040 |
+
r = c;
|
8041 |
+
if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
|
8042 |
+
p = r.join(',') + '{' + p + '}';
|
8043 |
+
|
8044 |
+
if (0 !== w * E) {
|
8045 |
+
2 !== w || L(p, 2) || (E = 0);
|
8046 |
+
|
8047 |
+
switch (E) {
|
8048 |
+
case 111:
|
8049 |
+
p = p.replace(ha, ':-moz-$1') + p;
|
8050 |
+
break;
|
8051 |
+
|
8052 |
+
case 112:
|
8053 |
+
p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
|
8054 |
+
}
|
8055 |
+
|
8056 |
+
E = 0;
|
8057 |
+
}
|
8058 |
+
}
|
8059 |
+
|
8060 |
+
return G + p + F;
|
8061 |
+
}
|
8062 |
+
|
8063 |
+
function X(d, c, e) {
|
8064 |
+
var h = c.trim().split(ia);
|
8065 |
+
c = h;
|
8066 |
+
var a = h.length,
|
8067 |
+
m = d.length;
|
8068 |
+
|
8069 |
+
switch (m) {
|
8070 |
+
case 0:
|
8071 |
+
case 1:
|
8072 |
+
var b = 0;
|
8073 |
+
|
8074 |
+
for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
|
8075 |
+
c[b] = Z(d, c[b], e, m).trim();
|
8076 |
+
}
|
8077 |
+
|
8078 |
+
break;
|
8079 |
+
|
8080 |
+
default:
|
8081 |
+
var v = b = 0;
|
8082 |
+
|
8083 |
+
for (c = []; b < a; ++b) {
|
8084 |
+
for (var n = 0; n < m; ++n) {
|
8085 |
+
c[v++] = Z(d[n] + ' ', h[b], e, m).trim();
|
8086 |
+
}
|
8087 |
+
}
|
8088 |
+
|
8089 |
+
}
|
8090 |
+
|
8091 |
+
return c;
|
8092 |
+
}
|
8093 |
+
|
8094 |
+
function Z(d, c, e) {
|
8095 |
+
var h = c.charCodeAt(0);
|
8096 |
+
33 > h && (h = (c = c.trim()).charCodeAt(0));
|
8097 |
+
|
8098 |
+
switch (h) {
|
8099 |
+
case 38:
|
8100 |
+
return c.replace(F, '$1' + d.trim());
|
8101 |
+
|
8102 |
+
case 58:
|
8103 |
+
return d.trim() + c.replace(F, '$1' + d.trim());
|
8104 |
+
|
8105 |
+
default:
|
8106 |
+
if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
|
8107 |
+
}
|
8108 |
+
|
8109 |
+
return d + c;
|
8110 |
+
}
|
8111 |
+
|
8112 |
+
function P(d, c, e, h) {
|
8113 |
+
var a = d + ';',
|
8114 |
+
m = 2 * c + 3 * e + 4 * h;
|
8115 |
+
|
8116 |
+
if (944 === m) {
|
8117 |
+
d = a.indexOf(':', 9) + 1;
|
8118 |
+
var b = a.substring(d, a.length - 1).trim();
|
8119 |
+
b = a.substring(0, d).trim() + b + ';';
|
8120 |
+
return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
|
8121 |
+
}
|
8122 |
+
|
8123 |
+
if (0 === w || 2 === w && !L(a, 1)) return a;
|
8124 |
+
|
8125 |
+
switch (m) {
|
8126 |
+
case 1015:
|
8127 |
+
return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
|
8128 |
+
|
8129 |
+
case 951:
|
8130 |
+
return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
|
8131 |
+
|
8132 |
+
case 963:
|
8133 |
+
return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
|
8134 |
+
|
8135 |
+
case 1009:
|
8136 |
+
if (100 !== a.charCodeAt(4)) break;
|
8137 |
+
|
8138 |
+
case 969:
|
8139 |
+
case 942:
|
8140 |
+
return '-webkit-' + a + a;
|
8141 |
+
|
8142 |
+
case 978:
|
8143 |
+
return '-webkit-' + a + '-moz-' + a + a;
|
8144 |
+
|
8145 |
+
case 1019:
|
8146 |
+
case 983:
|
8147 |
+
return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
|
8148 |
+
|
8149 |
+
case 883:
|
8150 |
+
if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
|
8151 |
+
if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
|
8152 |
+
break;
|
8153 |
+
|
8154 |
+
case 932:
|
8155 |
+
if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
|
8156 |
+
case 103:
|
8157 |
+
return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
|
8158 |
+
|
8159 |
+
case 115:
|
8160 |
+
return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
|
8161 |
+
|
8162 |
+
case 98:
|
8163 |
+
return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
|
8164 |
+
}
|
8165 |
+
return '-webkit-' + a + '-ms-' + a + a;
|
8166 |
+
|
8167 |
+
case 964:
|
8168 |
+
return '-webkit-' + a + '-ms-flex-' + a + a;
|
8169 |
+
|
8170 |
+
case 1023:
|
8171 |
+
if (99 !== a.charCodeAt(8)) break;
|
8172 |
+
b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
|
8173 |
+
return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
|
8174 |
+
|
8175 |
+
case 1005:
|
8176 |
+
return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
|
8177 |
+
|
8178 |
+
case 1e3:
|
8179 |
+
b = a.substring(13).trim();
|
8180 |
+
c = b.indexOf('-') + 1;
|
8181 |
+
|
8182 |
+
switch (b.charCodeAt(0) + b.charCodeAt(c)) {
|
8183 |
+
case 226:
|
8184 |
+
b = a.replace(G, 'tb');
|
8185 |
+
break;
|
8186 |
+
|
8187 |
+
case 232:
|
8188 |
+
b = a.replace(G, 'tb-rl');
|
8189 |
+
break;
|
8190 |
+
|
8191 |
+
case 220:
|
8192 |
+
b = a.replace(G, 'lr');
|
8193 |
+
break;
|
8194 |
+
|
8195 |
+
default:
|
8196 |
+
return a;
|
8197 |
+
}
|
8198 |
+
|
8199 |
+
return '-webkit-' + a + '-ms-' + b + a;
|
8200 |
+
|
8201 |
+
case 1017:
|
8202 |
+
if (-1 === a.indexOf('sticky', 9)) break;
|
8203 |
+
|
8204 |
+
case 975:
|
8205 |
+
c = (a = d).length - 10;
|
8206 |
+
b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
|
8207 |
+
|
8208 |
+
switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
|
8209 |
+
case 203:
|
8210 |
+
if (111 > b.charCodeAt(8)) break;
|
8211 |
+
|
8212 |
+
case 115:
|
8213 |
+
a = a.replace(b, '-webkit-' + b) + ';' + a;
|
8214 |
+
break;
|
8215 |
+
|
8216 |
+
case 207:
|
8217 |
+
case 102:
|
8218 |
+
a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
|
8219 |
+
}
|
8220 |
+
|
8221 |
+
return a + ';';
|
8222 |
+
|
8223 |
+
case 938:
|
8224 |
+
if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
|
8225 |
+
case 105:
|
8226 |
+
return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
|
8227 |
+
|
8228 |
+
case 115:
|
8229 |
+
return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
|
8230 |
+
|
8231 |
+
default:
|
8232 |
+
return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
|
8233 |
+
}
|
8234 |
+
break;
|
8235 |
+
|
8236 |
+
case 973:
|
8237 |
+
case 989:
|
8238 |
+
if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
|
8239 |
+
|
8240 |
+
case 931:
|
8241 |
+
case 953:
|
8242 |
+
if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
|
8243 |
+
break;
|
8244 |
+
|
8245 |
+
case 962:
|
8246 |
+
if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
|
8247 |
+
}
|
8248 |
+
|
8249 |
+
return a;
|
8250 |
+
}
|
8251 |
+
|
8252 |
+
function L(d, c) {
|
8253 |
+
var e = d.indexOf(1 === c ? ':' : '{'),
|
8254 |
+
h = d.substring(0, 3 !== c ? e : 10);
|
8255 |
+
e = d.substring(e + 1, d.length - 1);
|
8256 |
+
return R(2 !== c ? h : h.replace(na, '$1'), e, c);
|
8257 |
+
}
|
8258 |
+
|
8259 |
+
function ea(d, c) {
|
8260 |
+
var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
|
8261 |
+
return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
|
8262 |
+
}
|
8263 |
+
|
8264 |
+
function H(d, c, e, h, a, m, b, v, n, q) {
|
8265 |
+
for (var g = 0, x = c, w; g < A; ++g) {
|
8266 |
+
switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
|
8267 |
+
case void 0:
|
8268 |
+
case !1:
|
8269 |
+
case !0:
|
8270 |
+
case null:
|
8271 |
+
break;
|
8272 |
+
|
8273 |
+
default:
|
8274 |
+
x = w;
|
8275 |
+
}
|
8276 |
+
}
|
8277 |
+
|
8278 |
+
if (x !== c) return x;
|
8279 |
+
}
|
8280 |
+
|
8281 |
+
function T(d) {
|
8282 |
+
switch (d) {
|
8283 |
+
case void 0:
|
8284 |
+
case null:
|
8285 |
+
A = S.length = 0;
|
8286 |
+
break;
|
8287 |
+
|
8288 |
+
default:
|
8289 |
+
switch (d.constructor) {
|
8290 |
+
case Array:
|
8291 |
+
for (var c = 0, e = d.length; c < e; ++c) {
|
8292 |
+
T(d[c]);
|
8293 |
+
}
|
8294 |
+
|
8295 |
+
break;
|
8296 |
+
|
8297 |
+
case Function:
|
8298 |
+
S[A++] = d;
|
8299 |
+
break;
|
8300 |
+
|
8301 |
+
case Boolean:
|
8302 |
+
Y = !!d | 0;
|
8303 |
+
}
|
8304 |
+
|
8305 |
+
}
|
8306 |
+
|
8307 |
+
return T;
|
8308 |
+
}
|
8309 |
+
|
8310 |
+
function U(d) {
|
8311 |
+
d = d.prefix;
|
8312 |
+
void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
|
8313 |
+
return U;
|
8314 |
+
}
|
8315 |
+
|
8316 |
+
function B(d, c) {
|
8317 |
+
var e = d;
|
8318 |
+
33 > e.charCodeAt(0) && (e = e.trim());
|
8319 |
+
V = e;
|
8320 |
+
e = [V];
|
8321 |
+
|
8322 |
+
if (0 < A) {
|
8323 |
+
var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
|
8324 |
+
void 0 !== h && 'string' === typeof h && (c = h);
|
8325 |
+
}
|
8326 |
+
|
8327 |
+
var a = M(O, e, c, 0, 0);
|
8328 |
+
0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
|
8329 |
+
V = '';
|
8330 |
+
E = 0;
|
8331 |
+
z = D = 1;
|
8332 |
+
return a;
|
8333 |
+
}
|
8334 |
+
|
8335 |
+
var ca = /^\0+/g,
|
8336 |
+
N = /[\0\r\f]/g,
|
8337 |
+
aa = /: */g,
|
8338 |
+
ka = /zoo|gra/,
|
8339 |
+
ma = /([,: ])(transform)/g,
|
8340 |
+
ia = /,\r+?/g,
|
8341 |
+
F = /([\t\r\n ])*\f?&/g,
|
8342 |
+
fa = /@(k\w+)\s*(\S*)\s*/,
|
8343 |
+
Q = /::(place)/g,
|
8344 |
+
ha = /:(read-only)/g,
|
8345 |
+
G = /[svh]\w+-[tblr]{2}/,
|
8346 |
+
da = /\(\s*(.*)\s*\)/g,
|
8347 |
+
oa = /([\s\S]*?);/g,
|
8348 |
+
ba = /-self|flex-/g,
|
8349 |
+
na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
|
8350 |
+
la = /stretch|:\s*\w+\-(?:conte|avail)/,
|
8351 |
+
ja = /([^-])(image-set\()/,
|
8352 |
+
z = 1,
|
8353 |
+
D = 1,
|
8354 |
+
E = 0,
|
8355 |
+
w = 1,
|
8356 |
+
O = [],
|
8357 |
+
S = [],
|
8358 |
+
A = 0,
|
8359 |
+
R = null,
|
8360 |
+
Y = 0,
|
8361 |
+
V = '';
|
8362 |
+
B.use = T;
|
8363 |
+
B.set = U;
|
8364 |
+
void 0 !== W && U(W);
|
8365 |
+
return B;
|
8366 |
+
}
|
8367 |
+
|
8368 |
+
/* harmony default export */ __webpack_exports__["a"] = (stylis_min);
|
8369 |
+
|
8370 |
+
|
8371 |
+
/***/ }),
|
8372 |
+
/* 39 */
|
8373 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8374 |
+
|
8375 |
+
(function (factory) {
|
8376 |
+
true ? (module['exports'] = factory()) :
|
8377 |
+
typeof define === 'function' && define['amd'] ? define(factory()) :
|
8378 |
+
(window['stylisRuleSheet'] = factory())
|
8379 |
+
}(function () {
|
8380 |
+
|
8381 |
+
'use strict'
|
8382 |
+
|
8383 |
+
return function (insertRule) {
|
8384 |
+
var delimiter = '/*|*/'
|
8385 |
+
var needle = delimiter+'}'
|
8386 |
+
|
8387 |
+
function toSheet (block) {
|
8388 |
+
if (block)
|
8389 |
+
try {
|
8390 |
+
insertRule(block + '}')
|
8391 |
+
} catch (e) {}
|
8392 |
+
}
|
8393 |
+
|
8394 |
+
return function ruleSheet (context, content, selectors, parents, line, column, length, ns, depth, at) {
|
8395 |
+
switch (context) {
|
8396 |
+
// property
|
8397 |
+
case 1:
|
8398 |
+
// @import
|
8399 |
+
if (depth === 0 && content.charCodeAt(0) === 64)
|
8400 |
+
return insertRule(content+';'), ''
|
8401 |
+
break
|
8402 |
+
// selector
|
8403 |
+
case 2:
|
8404 |
+
if (ns === 0)
|
8405 |
+
return content + delimiter
|
8406 |
+
break
|
8407 |
+
// at-rule
|
8408 |
+
case 3:
|
8409 |
+
switch (ns) {
|
8410 |
+
// @font-face, @page
|
8411 |
+
case 102:
|
8412 |
+
case 112:
|
8413 |
+
return insertRule(selectors[0]+content), ''
|
8414 |
+
default:
|
8415 |
+
return content + (at === 0 ? delimiter : '')
|
8416 |
+
}
|
8417 |
+
case -2:
|
8418 |
+
content.split(needle).forEach(toSheet)
|
8419 |
+
}
|
8420 |
+
}
|
8421 |
+
}
|
8422 |
+
}))
|
8423 |
+
|
8424 |
+
|
8425 |
+
/***/ }),
|
8426 |
+
/* 40 */
|
8427 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8428 |
+
|
8429 |
+
"use strict";
|
8430 |
+
/** @license React v16.8.6
|
8431 |
+
* react-is.production.min.js
|
8432 |
+
*
|
8433 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
8434 |
+
*
|
8435 |
+
* This source code is licensed under the MIT license found in the
|
8436 |
+
* LICENSE file in the root directory of this source tree.
|
8437 |
+
*/
|
8438 |
+
|
8439 |
+
Object.defineProperty(exports,"__esModule",{value:!0});
|
8440 |
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.memo"):
|
8441 |
+
60115,r=b?Symbol.for("react.lazy"):60116;function t(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;
|
8442 |
+
exports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||"object"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};
|
8443 |
+
exports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};
|
8444 |
+
exports.isSuspense=function(a){return t(a)===p};
|
8445 |
+
|
8446 |
+
|
8447 |
+
/***/ }),
|
8448 |
+
/* 41 */
|
8449 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8450 |
+
|
8451 |
+
"use strict";
|
8452 |
+
/* WEBPACK VAR INJECTION */(function(process) {/** @license React v16.8.6
|
8453 |
+
* react-is.development.js
|
8454 |
+
*
|
8455 |
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
8456 |
+
*
|
8457 |
+
* This source code is licensed under the MIT license found in the
|
8458 |
+
* LICENSE file in the root directory of this source tree.
|
8459 |
+
*/
|
8460 |
+
|
8461 |
+
|
8462 |
+
|
8463 |
+
|
8464 |
+
|
8465 |
+
if (process.env.NODE_ENV !== "production") {
|
8466 |
+
(function() {
|
8467 |
+
'use strict';
|
8468 |
+
|
8469 |
+
Object.defineProperty(exports, '__esModule', { value: true });
|
8470 |
+
|
8471 |
+
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
8472 |
+
// nor polyfill, then a plain number is used for performance.
|
8473 |
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
8474 |
+
|
8475 |
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
8476 |
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
8477 |
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
8478 |
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
8479 |
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
8480 |
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
8481 |
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
8482 |
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
8483 |
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
8484 |
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
8485 |
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
8486 |
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
8487 |
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
8488 |
+
|
8489 |
+
function isValidElementType(type) {
|
8490 |
+
return typeof type === 'string' || typeof type === 'function' ||
|
8491 |
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
8492 |
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
8493 |
+
}
|
8494 |
+
|
8495 |
+
/**
|
8496 |
+
* Forked from fbjs/warning:
|
8497 |
+
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
8498 |
+
*
|
8499 |
+
* Only change is we use console.warn instead of console.error,
|
8500 |
+
* and do nothing when 'console' is not supported.
|
8501 |
+
* This really simplifies the code.
|
8502 |
+
* ---
|
8503 |
+
* Similar to invariant but only logs a warning if the condition is not met.
|
8504 |
+
* This can be used to log issues in development environments in critical
|
8505 |
+
* paths. Removing the logging code for production environments will keep the
|
8506 |
+
* same logic and follow the same code paths.
|
8507 |
+
*/
|
8508 |
+
|
8509 |
+
var lowPriorityWarning = function () {};
|
8510 |
+
|
8511 |
+
{
|
8512 |
+
var printWarning = function (format) {
|
8513 |
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
8514 |
+
args[_key - 1] = arguments[_key];
|
8515 |
+
}
|
8516 |
+
|
8517 |
+
var argIndex = 0;
|
8518 |
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
8519 |
+
return args[argIndex++];
|
8520 |
+
});
|
8521 |
+
if (typeof console !== 'undefined') {
|
8522 |
+
console.warn(message);
|
8523 |
+
}
|
8524 |
+
try {
|
8525 |
+
// --- Welcome to debugging React ---
|
8526 |
+
// This error was thrown as a convenience so that you can use this stack
|
8527 |
+
// to find the callsite that caused this warning to fire.
|
8528 |
+
throw new Error(message);
|
8529 |
+
} catch (x) {}
|
8530 |
+
};
|
8531 |
+
|
8532 |
+
lowPriorityWarning = function (condition, format) {
|
8533 |
+
if (format === undefined) {
|
8534 |
+
throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
|
8535 |
+
}
|
8536 |
+
if (!condition) {
|
8537 |
+
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
8538 |
+
args[_key2 - 2] = arguments[_key2];
|
8539 |
+
}
|
8540 |
+
|
8541 |
+
printWarning.apply(undefined, [format].concat(args));
|
8542 |
+
}
|
8543 |
+
};
|
8544 |
+
}
|
8545 |
+
|
8546 |
+
var lowPriorityWarning$1 = lowPriorityWarning;
|
8547 |
+
|
8548 |
+
function typeOf(object) {
|
8549 |
+
if (typeof object === 'object' && object !== null) {
|
8550 |
+
var $$typeof = object.$$typeof;
|
8551 |
+
switch ($$typeof) {
|
8552 |
+
case REACT_ELEMENT_TYPE:
|
8553 |
+
var type = object.type;
|
8554 |
+
|
8555 |
+
switch (type) {
|
8556 |
+
case REACT_ASYNC_MODE_TYPE:
|
8557 |
+
case REACT_CONCURRENT_MODE_TYPE:
|
8558 |
+
case REACT_FRAGMENT_TYPE:
|
8559 |
+
case REACT_PROFILER_TYPE:
|
8560 |
+
case REACT_STRICT_MODE_TYPE:
|
8561 |
+
case REACT_SUSPENSE_TYPE:
|
8562 |
+
return type;
|
8563 |
+
default:
|
8564 |
+
var $$typeofType = type && type.$$typeof;
|
8565 |
+
|
8566 |
+
switch ($$typeofType) {
|
8567 |
+
case REACT_CONTEXT_TYPE:
|
8568 |
+
case REACT_FORWARD_REF_TYPE:
|
8569 |
+
case REACT_PROVIDER_TYPE:
|
8570 |
+
return $$typeofType;
|
8571 |
+
default:
|
8572 |
+
return $$typeof;
|
8573 |
+
}
|
8574 |
+
}
|
8575 |
+
case REACT_LAZY_TYPE:
|
8576 |
+
case REACT_MEMO_TYPE:
|
8577 |
+
case REACT_PORTAL_TYPE:
|
8578 |
+
return $$typeof;
|
8579 |
+
}
|
8580 |
+
}
|
8581 |
+
|
8582 |
+
return undefined;
|
8583 |
+
}
|
8584 |
+
|
8585 |
+
// AsyncMode is deprecated along with isAsyncMode
|
8586 |
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
8587 |
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
8588 |
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
8589 |
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
8590 |
+
var Element = REACT_ELEMENT_TYPE;
|
8591 |
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
8592 |
+
var Fragment = REACT_FRAGMENT_TYPE;
|
8593 |
+
var Lazy = REACT_LAZY_TYPE;
|
8594 |
+
var Memo = REACT_MEMO_TYPE;
|
8595 |
+
var Portal = REACT_PORTAL_TYPE;
|
8596 |
+
var Profiler = REACT_PROFILER_TYPE;
|
8597 |
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
8598 |
+
var Suspense = REACT_SUSPENSE_TYPE;
|
8599 |
+
|
8600 |
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
8601 |
+
|
8602 |
+
// AsyncMode should be deprecated
|
8603 |
+
function isAsyncMode(object) {
|
8604 |
+
{
|
8605 |
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
8606 |
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
8607 |
+
lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
8608 |
+
}
|
8609 |
+
}
|
8610 |
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
8611 |
+
}
|
8612 |
+
function isConcurrentMode(object) {
|
8613 |
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
8614 |
+
}
|
8615 |
+
function isContextConsumer(object) {
|
8616 |
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
8617 |
+
}
|
8618 |
+
function isContextProvider(object) {
|
8619 |
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
8620 |
+
}
|
8621 |
+
function isElement(object) {
|
8622 |
+
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
8623 |
+
}
|
8624 |
+
function isForwardRef(object) {
|
8625 |
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
8626 |
+
}
|
8627 |
+
function isFragment(object) {
|
8628 |
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
8629 |
+
}
|
8630 |
+
function isLazy(object) {
|
8631 |
+
return typeOf(object) === REACT_LAZY_TYPE;
|
8632 |
+
}
|
8633 |
+
function isMemo(object) {
|
8634 |
+
return typeOf(object) === REACT_MEMO_TYPE;
|
8635 |
+
}
|
8636 |
+
function isPortal(object) {
|
8637 |
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
8638 |
+
}
|
8639 |
+
function isProfiler(object) {
|
8640 |
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
8641 |
+
}
|
8642 |
+
function isStrictMode(object) {
|
8643 |
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
8644 |
+
}
|
8645 |
+
function isSuspense(object) {
|
8646 |
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
8647 |
+
}
|
8648 |
+
|
8649 |
+
exports.typeOf = typeOf;
|
8650 |
+
exports.AsyncMode = AsyncMode;
|
8651 |
+
exports.ConcurrentMode = ConcurrentMode;
|
8652 |
+
exports.ContextConsumer = ContextConsumer;
|
8653 |
+
exports.ContextProvider = ContextProvider;
|
8654 |
+
exports.Element = Element;
|
8655 |
+
exports.ForwardRef = ForwardRef;
|
8656 |
+
exports.Fragment = Fragment;
|
8657 |
+
exports.Lazy = Lazy;
|
8658 |
+
exports.Memo = Memo;
|
8659 |
+
exports.Portal = Portal;
|
8660 |
+
exports.Profiler = Profiler;
|
8661 |
+
exports.StrictMode = StrictMode;
|
8662 |
+
exports.Suspense = Suspense;
|
8663 |
+
exports.isValidElementType = isValidElementType;
|
8664 |
+
exports.isAsyncMode = isAsyncMode;
|
8665 |
+
exports.isConcurrentMode = isConcurrentMode;
|
8666 |
+
exports.isContextConsumer = isContextConsumer;
|
8667 |
+
exports.isContextProvider = isContextProvider;
|
8668 |
+
exports.isElement = isElement;
|
8669 |
+
exports.isForwardRef = isForwardRef;
|
8670 |
+
exports.isFragment = isFragment;
|
8671 |
+
exports.isLazy = isLazy;
|
8672 |
+
exports.isMemo = isMemo;
|
8673 |
+
exports.isPortal = isPortal;
|
8674 |
+
exports.isProfiler = isProfiler;
|
8675 |
+
exports.isStrictMode = isStrictMode;
|
8676 |
+
exports.isSuspense = isSuspense;
|
8677 |
+
})();
|
8678 |
+
}
|
8679 |
+
|
8680 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
8681 |
+
|
8682 |
+
/***/ }),
|
8683 |
+
/* 42 */
|
8684 |
+
/***/ (function(module, exports, __webpack_require__) {
|
8685 |
+
|
8686 |
+
"use strict";
|
8687 |
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
8688 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
8689 |
+
*
|
8690 |
+
* This source code is licensed under the MIT license found in the
|
8691 |
+
* LICENSE file in the root directory of this source tree.
|
8692 |
+
*/
|
8693 |
+
|
8694 |
+
|
8695 |
+
|
8696 |
+
var ReactIs = __webpack_require__(18);
|
8697 |
+
var assign = __webpack_require__(43);
|
8698 |
+
|
8699 |
+
var ReactPropTypesSecret = __webpack_require__(7);
|
8700 |
+
var checkPropTypes = __webpack_require__(44);
|
8701 |
+
|
8702 |
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
8703 |
+
var printWarning = function() {};
|
8704 |
+
|
8705 |
+
if (process.env.NODE_ENV !== 'production') {
|
8706 |
+
printWarning = function(text) {
|
8707 |
+
var message = 'Warning: ' + text;
|
8708 |
+
if (typeof console !== 'undefined') {
|
8709 |
+
console.error(message);
|
8710 |
+
}
|
8711 |
+
try {
|
8712 |
+
// --- Welcome to debugging React ---
|
8713 |
+
// This error was thrown as a convenience so that you can use this stack
|
8714 |
+
// to find the callsite that caused this warning to fire.
|
8715 |
+
throw new Error(message);
|
8716 |
+
} catch (x) {}
|
8717 |
+
};
|
8718 |
+
}
|
8719 |
+
|
8720 |
+
function emptyFunctionThatReturnsNull() {
|
8721 |
+
return null;
|
8722 |
+
}
|
8723 |
+
|
8724 |
+
module.exports = function(isValidElement, throwOnDirectAccess) {
|
8725 |
+
/* global Symbol */
|
8726 |
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
8727 |
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
8728 |
+
|
8729 |
+
/**
|
8730 |
+
* Returns the iterator method function contained on the iterable object.
|
8731 |
+
*
|
8732 |
+
* Be sure to invoke the function with the iterable as context:
|
8733 |
+
*
|
8734 |
+
* var iteratorFn = getIteratorFn(myIterable);
|
8735 |
+
* if (iteratorFn) {
|
8736 |
+
* var iterator = iteratorFn.call(myIterable);
|
8737 |
+
* ...
|
8738 |
+
* }
|
8739 |
+
*
|
8740 |
+
* @param {?object} maybeIterable
|
8741 |
+
* @return {?function}
|
8742 |
+
*/
|
8743 |
+
function getIteratorFn(maybeIterable) {
|
8744 |
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
8745 |
+
if (typeof iteratorFn === 'function') {
|
8746 |
+
return iteratorFn;
|
8747 |
+
}
|
8748 |
+
}
|
8749 |
+
|
8750 |
+
/**
|
8751 |
+
* Collection of methods that allow declaration and validation of props that are
|
8752 |
+
* supplied to React components. Example usage:
|
8753 |
+
*
|
8754 |
+
* var Props = require('ReactPropTypes');
|
8755 |
+
* var MyArticle = React.createClass({
|
8756 |
+
* propTypes: {
|
8757 |
+
* // An optional string prop named "description".
|
8758 |
+
* description: Props.string,
|
8759 |
+
*
|
8760 |
+
* // A required enum prop named "category".
|
8761 |
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
8762 |
+
*
|
8763 |
+
* // A prop named "dialog" that requires an instance of Dialog.
|
8764 |
+
* dialog: Props.instanceOf(Dialog).isRequired
|
8765 |
+
* },
|
8766 |
+
* render: function() { ... }
|
8767 |
+
* });
|
8768 |
+
*
|
8769 |
+
* A more formal specification of how these methods are used:
|
8770 |
+
*
|
8771 |
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
8772 |
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
8773 |
+
*
|
8774 |
+
* Each and every declaration produces a function with the same signature. This
|
8775 |
+
* allows the creation of custom validation functions. For example:
|
8776 |
+
*
|
8777 |
+
* var MyLink = React.createClass({
|
8778 |
+
* propTypes: {
|
8779 |
+
* // An optional string or URI prop named "href".
|
8780 |
+
* href: function(props, propName, componentName) {
|
8781 |
+
* var propValue = props[propName];
|
8782 |
+
* if (propValue != null && typeof propValue !== 'string' &&
|
8783 |
+
* !(propValue instanceof URI)) {
|
8784 |
+
* return new Error(
|
8785 |
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
8786 |
+
* componentName
|
8787 |
+
* );
|
8788 |
+
* }
|
8789 |
+
* }
|
8790 |
+
* },
|
8791 |
+
* render: function() {...}
|
8792 |
+
* });
|
8793 |
+
*
|
8794 |
+
* @internal
|
8795 |
+
*/
|
8796 |
+
|
8797 |
+
var ANONYMOUS = '<<anonymous>>';
|
8798 |
+
|
8799 |
+
// Important!
|
8800 |
+
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
8801 |
+
var ReactPropTypes = {
|
8802 |
+
array: createPrimitiveTypeChecker('array'),
|
8803 |
+
bool: createPrimitiveTypeChecker('boolean'),
|
8804 |
+
func: createPrimitiveTypeChecker('function'),
|
8805 |
+
number: createPrimitiveTypeChecker('number'),
|
8806 |
+
object: createPrimitiveTypeChecker('object'),
|
8807 |
+
string: createPrimitiveTypeChecker('string'),
|
8808 |
+
symbol: createPrimitiveTypeChecker('symbol'),
|
8809 |
+
|
8810 |
+
any: createAnyTypeChecker(),
|
8811 |
+
arrayOf: createArrayOfTypeChecker,
|
8812 |
+
element: createElementTypeChecker(),
|
8813 |
+
elementType: createElementTypeTypeChecker(),
|
8814 |
+
instanceOf: createInstanceTypeChecker,
|
8815 |
+
node: createNodeChecker(),
|
8816 |
+
objectOf: createObjectOfTypeChecker,
|
8817 |
+
oneOf: createEnumTypeChecker,
|
8818 |
+
oneOfType: createUnionTypeChecker,
|
8819 |
+
shape: createShapeTypeChecker,
|
8820 |
+
exact: createStrictShapeTypeChecker,
|
8821 |
+
};
|
8822 |
+
|
8823 |
+
/**
|
8824 |
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
8825 |
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
8826 |
+
*/
|
8827 |
+
/*eslint-disable no-self-compare*/
|
8828 |
+
function is(x, y) {
|
8829 |
+
// SameValue algorithm
|
8830 |
+
if (x === y) {
|
8831 |
+
// Steps 1-5, 7-10
|
8832 |
+
// Steps 6.b-6.e: +0 != -0
|
8833 |
+
return x !== 0 || 1 / x === 1 / y;
|
8834 |
+
} else {
|
8835 |
+
// Step 6.a: NaN == NaN
|
8836 |
+
return x !== x && y !== y;
|
8837 |
+
}
|
8838 |
+
}
|
8839 |
+
/*eslint-enable no-self-compare*/
|
8840 |
+
|
8841 |
+
/**
|
8842 |
+
* We use an Error-like object for backward compatibility as people may call
|
8843 |
+
* PropTypes directly and inspect their output. However, we don't use real
|
8844 |
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
8845 |
+
* is prohibitively expensive if they are created too often, such as what
|
8846 |
+
* happens in oneOfType() for any type before the one that matched.
|
8847 |
+
*/
|
8848 |
+
function PropTypeError(message) {
|
8849 |
+
this.message = message;
|
8850 |
+
this.stack = '';
|
8851 |
+
}
|
8852 |
+
// Make `instanceof Error` still work for returned errors.
|
8853 |
+
PropTypeError.prototype = Error.prototype;
|
8854 |
+
|
8855 |
+
function createChainableTypeChecker(validate) {
|
8856 |
+
if (process.env.NODE_ENV !== 'production') {
|
8857 |
+
var manualPropTypeCallCache = {};
|
8858 |
+
var manualPropTypeWarningCount = 0;
|
8859 |
+
}
|
8860 |
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
8861 |
+
componentName = componentName || ANONYMOUS;
|
8862 |
+
propFullName = propFullName || propName;
|
8863 |
+
|
8864 |
+
if (secret !== ReactPropTypesSecret) {
|
8865 |
+
if (throwOnDirectAccess) {
|
8866 |
+
// New behavior only for users of `prop-types` package
|
8867 |
+
var err = new Error(
|
8868 |
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
8869 |
+
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
8870 |
+
'Read more at http://fb.me/use-check-prop-types'
|
8871 |
+
);
|
8872 |
+
err.name = 'Invariant Violation';
|
8873 |
+
throw err;
|
8874 |
+
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
8875 |
+
// Old behavior for people using React.PropTypes
|
8876 |
+
var cacheKey = componentName + ':' + propName;
|
8877 |
+
if (
|
8878 |
+
!manualPropTypeCallCache[cacheKey] &&
|
8879 |
+
// Avoid spamming the console because they are often not actionable except for lib authors
|
8880 |
+
manualPropTypeWarningCount < 3
|
8881 |
+
) {
|
8882 |
+
printWarning(
|
8883 |
+
'You are manually calling a React.PropTypes validation ' +
|
8884 |
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
8885 |
+
'and will throw in the standalone `prop-types` package. ' +
|
8886 |
+
'You may be seeing this warning due to a third-party PropTypes ' +
|
8887 |
+
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
8888 |
+
);
|
8889 |
+
manualPropTypeCallCache[cacheKey] = true;
|
8890 |
+
manualPropTypeWarningCount++;
|
8891 |
+
}
|
8892 |
+
}
|
8893 |
+
}
|
8894 |
+
if (props[propName] == null) {
|
8895 |
+
if (isRequired) {
|
8896 |
+
if (props[propName] === null) {
|
8897 |
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
8898 |
+
}
|
8899 |
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
8900 |
+
}
|
8901 |
+
return null;
|
8902 |
+
} else {
|
8903 |
+
return validate(props, propName, componentName, location, propFullName);
|
8904 |
+
}
|
8905 |
+
}
|
8906 |
+
|
8907 |
+
var chainedCheckType = checkType.bind(null, false);
|
8908 |
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
8909 |
+
|
8910 |
+
return chainedCheckType;
|
8911 |
+
}
|
8912 |
+
|
8913 |
+
function createPrimitiveTypeChecker(expectedType) {
|
8914 |
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
8915 |
+
var propValue = props[propName];
|
8916 |
+
var propType = getPropType(propValue);
|
8917 |
+
if (propType !== expectedType) {
|
8918 |
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
8919 |
+
// check, but we can offer a more precise error message here rather than
|
8920 |
+
// 'of type `object`'.
|
8921 |
+
var preciseType = getPreciseType(propValue);
|
8922 |
+
|
8923 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
8924 |
+
}
|
8925 |
+
return null;
|
8926 |
+
}
|
8927 |
+
return createChainableTypeChecker(validate);
|
8928 |
+
}
|
8929 |
+
|
8930 |
+
function createAnyTypeChecker() {
|
8931 |
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
8932 |
+
}
|
8933 |
+
|
8934 |
+
function createArrayOfTypeChecker(typeChecker) {
|
8935 |
+
function validate(props, propName, componentName, location, propFullName) {
|
8936 |
+
if (typeof typeChecker !== 'function') {
|
8937 |
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
8938 |
+
}
|
8939 |
+
var propValue = props[propName];
|
8940 |
+
if (!Array.isArray(propValue)) {
|
8941 |
+
var propType = getPropType(propValue);
|
8942 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
8943 |
+
}
|
8944 |
+
for (var i = 0; i < propValue.length; i++) {
|
8945 |
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
8946 |
+
if (error instanceof Error) {
|
8947 |
+
return error;
|
8948 |
+
}
|
8949 |
+
}
|
8950 |
+
return null;
|
8951 |
+
}
|
8952 |
+
return createChainableTypeChecker(validate);
|
8953 |
+
}
|
8954 |
+
|
8955 |
+
function createElementTypeChecker() {
|
8956 |
+
function validate(props, propName, componentName, location, propFullName) {
|
8957 |
+
var propValue = props[propName];
|
8958 |
+
if (!isValidElement(propValue)) {
|
8959 |
+
var propType = getPropType(propValue);
|
8960 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
8961 |
+
}
|
8962 |
+
return null;
|
8963 |
+
}
|
8964 |
+
return createChainableTypeChecker(validate);
|
8965 |
+
}
|
8966 |
+
|
8967 |
+
function createElementTypeTypeChecker() {
|
8968 |
+
function validate(props, propName, componentName, location, propFullName) {
|
8969 |
+
var propValue = props[propName];
|
8970 |
+
if (!ReactIs.isValidElementType(propValue)) {
|
8971 |
+
var propType = getPropType(propValue);
|
8972 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
8973 |
+
}
|
8974 |
+
return null;
|
8975 |
+
}
|
8976 |
+
return createChainableTypeChecker(validate);
|
8977 |
+
}
|
8978 |
+
|
8979 |
+
function createInstanceTypeChecker(expectedClass) {
|
8980 |
+
function validate(props, propName, componentName, location, propFullName) {
|
8981 |
+
if (!(props[propName] instanceof expectedClass)) {
|
8982 |
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
8983 |
+
var actualClassName = getClassName(props[propName]);
|
8984 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
8985 |
+
}
|
8986 |
+
return null;
|
8987 |
+
}
|
8988 |
+
return createChainableTypeChecker(validate);
|
8989 |
+
}
|
8990 |
+
|
8991 |
+
function createEnumTypeChecker(expectedValues) {
|
8992 |
+
if (!Array.isArray(expectedValues)) {
|
8993 |
+
if (process.env.NODE_ENV !== 'production') {
|
8994 |
+
if (arguments.length > 1) {
|
8995 |
+
printWarning(
|
8996 |
+
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
8997 |
+
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
8998 |
+
);
|
8999 |
+
} else {
|
9000 |
+
printWarning('Invalid argument supplied to oneOf, expected an array.');
|
9001 |
+
}
|
9002 |
+
}
|
9003 |
+
return emptyFunctionThatReturnsNull;
|
9004 |
+
}
|
9005 |
+
|
9006 |
+
function validate(props, propName, componentName, location, propFullName) {
|
9007 |
+
var propValue = props[propName];
|
9008 |
+
for (var i = 0; i < expectedValues.length; i++) {
|
9009 |
+
if (is(propValue, expectedValues[i])) {
|
9010 |
+
return null;
|
9011 |
+
}
|
9012 |
+
}
|
9013 |
+
|
9014 |
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
9015 |
+
var type = getPreciseType(value);
|
9016 |
+
if (type === 'symbol') {
|
9017 |
+
return String(value);
|
9018 |
+
}
|
9019 |
+
return value;
|
9020 |
+
});
|
9021 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
9022 |
+
}
|
9023 |
+
return createChainableTypeChecker(validate);
|
9024 |
+
}
|
9025 |
+
|
9026 |
+
function createObjectOfTypeChecker(typeChecker) {
|
9027 |
+
function validate(props, propName, componentName, location, propFullName) {
|
9028 |
+
if (typeof typeChecker !== 'function') {
|
9029 |
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
9030 |
+
}
|
9031 |
+
var propValue = props[propName];
|
9032 |
+
var propType = getPropType(propValue);
|
9033 |
+
if (propType !== 'object') {
|
9034 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
9035 |
+
}
|
9036 |
+
for (var key in propValue) {
|
9037 |
+
if (has(propValue, key)) {
|
9038 |
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
9039 |
+
if (error instanceof Error) {
|
9040 |
+
return error;
|
9041 |
+
}
|
9042 |
+
}
|
9043 |
+
}
|
9044 |
+
return null;
|
9045 |
+
}
|
9046 |
+
return createChainableTypeChecker(validate);
|
9047 |
+
}
|
9048 |
+
|
9049 |
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
9050 |
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
9051 |
+
process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
9052 |
+
return emptyFunctionThatReturnsNull;
|
9053 |
+
}
|
9054 |
+
|
9055 |
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
9056 |
+
var checker = arrayOfTypeCheckers[i];
|
9057 |
+
if (typeof checker !== 'function') {
|
9058 |
+
printWarning(
|
9059 |
+
'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
|
9060 |
+
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
9061 |
+
);
|
9062 |
+
return emptyFunctionThatReturnsNull;
|
9063 |
+
}
|
9064 |
+
}
|
9065 |
+
|
9066 |
+
function validate(props, propName, componentName, location, propFullName) {
|
9067 |
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
9068 |
+
var checker = arrayOfTypeCheckers[i];
|
9069 |
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
9070 |
+
return null;
|
9071 |
+
}
|
9072 |
+
}
|
9073 |
+
|
9074 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
9075 |
+
}
|
9076 |
+
return createChainableTypeChecker(validate);
|
9077 |
+
}
|
9078 |
+
|
9079 |
+
function createNodeChecker() {
|
9080 |
+
function validate(props, propName, componentName, location, propFullName) {
|
9081 |
+
if (!isNode(props[propName])) {
|
9082 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
9083 |
+
}
|
9084 |
+
return null;
|
9085 |
+
}
|
9086 |
+
return createChainableTypeChecker(validate);
|
9087 |
+
}
|
9088 |
+
|
9089 |
+
function createShapeTypeChecker(shapeTypes) {
|
9090 |
+
function validate(props, propName, componentName, location, propFullName) {
|
9091 |
+
var propValue = props[propName];
|
9092 |
+
var propType = getPropType(propValue);
|
9093 |
+
if (propType !== 'object') {
|
9094 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
9095 |
+
}
|
9096 |
+
for (var key in shapeTypes) {
|
9097 |
+
var checker = shapeTypes[key];
|
9098 |
+
if (!checker) {
|
9099 |
+
continue;
|
9100 |
+
}
|
9101 |
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
9102 |
+
if (error) {
|
9103 |
+
return error;
|
9104 |
+
}
|
9105 |
+
}
|
9106 |
+
return null;
|
9107 |
+
}
|
9108 |
+
return createChainableTypeChecker(validate);
|
9109 |
+
}
|
9110 |
+
|
9111 |
+
function createStrictShapeTypeChecker(shapeTypes) {
|
9112 |
+
function validate(props, propName, componentName, location, propFullName) {
|
9113 |
+
var propValue = props[propName];
|
9114 |
+
var propType = getPropType(propValue);
|
9115 |
+
if (propType !== 'object') {
|
9116 |
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
9117 |
+
}
|
9118 |
+
// We need to check all keys in case some are required but missing from
|
9119 |
+
// props.
|
9120 |
+
var allKeys = assign({}, props[propName], shapeTypes);
|
9121 |
+
for (var key in allKeys) {
|
9122 |
+
var checker = shapeTypes[key];
|
9123 |
+
if (!checker) {
|
9124 |
+
return new PropTypeError(
|
9125 |
+
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
9126 |
+
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
9127 |
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
9128 |
+
);
|
9129 |
+
}
|
9130 |
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
9131 |
+
if (error) {
|
9132 |
+
return error;
|
9133 |
+
}
|
9134 |
+
}
|
9135 |
+
return null;
|
9136 |
+
}
|
9137 |
+
|
9138 |
+
return createChainableTypeChecker(validate);
|
9139 |
+
}
|
9140 |
+
|
9141 |
+
function isNode(propValue) {
|
9142 |
+
switch (typeof propValue) {
|
9143 |
+
case 'number':
|
9144 |
+
case 'string':
|
9145 |
+
case 'undefined':
|
9146 |
+
return true;
|
9147 |
+
case 'boolean':
|
9148 |
+
return !propValue;
|
9149 |
+
case 'object':
|
9150 |
+
if (Array.isArray(propValue)) {
|
9151 |
+
return propValue.every(isNode);
|
9152 |
+
}
|
9153 |
+
if (propValue === null || isValidElement(propValue)) {
|
9154 |
+
return true;
|
9155 |
+
}
|
9156 |
+
|
9157 |
+
var iteratorFn = getIteratorFn(propValue);
|
9158 |
+
if (iteratorFn) {
|
9159 |
+
var iterator = iteratorFn.call(propValue);
|
9160 |
+
var step;
|
9161 |
+
if (iteratorFn !== propValue.entries) {
|
9162 |
+
while (!(step = iterator.next()).done) {
|
9163 |
+
if (!isNode(step.value)) {
|
9164 |
+
return false;
|
9165 |
+
}
|
9166 |
+
}
|
9167 |
+
} else {
|
9168 |
+
// Iterator will provide entry [k,v] tuples rather than values.
|
9169 |
+
while (!(step = iterator.next()).done) {
|
9170 |
+
var entry = step.value;
|
9171 |
+
if (entry) {
|
9172 |
+
if (!isNode(entry[1])) {
|
9173 |
+
return false;
|
9174 |
+
}
|
9175 |
+
}
|
9176 |
+
}
|
9177 |
+
}
|
9178 |
+
} else {
|
9179 |
+
return false;
|
9180 |
+
}
|
9181 |
+
|
9182 |
+
return true;
|
9183 |
+
default:
|
9184 |
+
return false;
|
9185 |
+
}
|
9186 |
+
}
|
9187 |
+
|
9188 |
+
function isSymbol(propType, propValue) {
|
9189 |
+
// Native Symbol.
|
9190 |
+
if (propType === 'symbol') {
|
9191 |
+
return true;
|
9192 |
+
}
|
9193 |
+
|
9194 |
+
// falsy value can't be a Symbol
|
9195 |
+
if (!propValue) {
|
9196 |
+
return false;
|
9197 |
+
}
|
9198 |
+
|
9199 |
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
9200 |
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
9201 |
+
return true;
|
9202 |
+
}
|
9203 |
+
|
9204 |
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
9205 |
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
9206 |
+
return true;
|
9207 |
+
}
|
9208 |
+
|
9209 |
+
return false;
|
9210 |
+
}
|
9211 |
+
|
9212 |
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
9213 |
+
function getPropType(propValue) {
|
9214 |
+
var propType = typeof propValue;
|
9215 |
+
if (Array.isArray(propValue)) {
|
9216 |
+
return 'array';
|
9217 |
+
}
|
9218 |
+
if (propValue instanceof RegExp) {
|
9219 |
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
9220 |
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
9221 |
+
// passes PropTypes.object.
|
9222 |
+
return 'object';
|
9223 |
+
}
|
9224 |
+
if (isSymbol(propType, propValue)) {
|
9225 |
+
return 'symbol';
|
9226 |
+
}
|
9227 |
+
return propType;
|
9228 |
+
}
|
9229 |
+
|
9230 |
+
// This handles more types than `getPropType`. Only used for error messages.
|
9231 |
+
// See `createPrimitiveTypeChecker`.
|
9232 |
+
function getPreciseType(propValue) {
|
9233 |
+
if (typeof propValue === 'undefined' || propValue === null) {
|
9234 |
+
return '' + propValue;
|
9235 |
+
}
|
9236 |
+
var propType = getPropType(propValue);
|
9237 |
+
if (propType === 'object') {
|
9238 |
+
if (propValue instanceof Date) {
|
9239 |
+
return 'date';
|
9240 |
+
} else if (propValue instanceof RegExp) {
|
9241 |
+
return 'regexp';
|
9242 |
+
}
|
9243 |
+
}
|
9244 |
+
return propType;
|
9245 |
+
}
|
9246 |
+
|
9247 |
+
// Returns a string that is postfixed to a warning about an invalid type.
|
9248 |
+
// For example, "undefined" or "of type array"
|
9249 |
+
function getPostfixForTypeWarning(value) {
|
9250 |
+
var type = getPreciseType(value);
|
9251 |
+
switch (type) {
|
9252 |
+
case 'array':
|
9253 |
+
case 'object':
|
9254 |
+
return 'an ' + type;
|
9255 |
+
case 'boolean':
|
9256 |
+
case 'date':
|
9257 |
+
case 'regexp':
|
9258 |
+
return 'a ' + type;
|
9259 |
+
default:
|
9260 |
+
return type;
|
9261 |
+
}
|
9262 |
+
}
|
9263 |
+
|
9264 |
+
// Returns class name of the object, if any.
|
9265 |
+
function getClassName(propValue) {
|
9266 |
+
if (!propValue.constructor || !propValue.constructor.name) {
|
9267 |
+
return ANONYMOUS;
|
9268 |
+
}
|
9269 |
+
return propValue.constructor.name;
|
9270 |
+
}
|
9271 |
+
|
9272 |
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
9273 |
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
9274 |
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
9275 |
+
|
9276 |
+
return ReactPropTypes;
|
9277 |
+
};
|
9278 |
+
|
9279 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
9280 |
+
|
9281 |
+
/***/ }),
|
9282 |
+
/* 43 */
|
9283 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9284 |
+
|
9285 |
+
"use strict";
|
9286 |
+
/*
|
9287 |
+
object-assign
|
9288 |
+
(c) Sindre Sorhus
|
9289 |
+
@license MIT
|
9290 |
+
*/
|
9291 |
+
|
9292 |
+
|
9293 |
+
/* eslint-disable no-unused-vars */
|
9294 |
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
9295 |
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
9296 |
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
9297 |
+
|
9298 |
+
function toObject(val) {
|
9299 |
+
if (val === null || val === undefined) {
|
9300 |
+
throw new TypeError('Object.assign cannot be called with null or undefined');
|
9301 |
+
}
|
9302 |
+
|
9303 |
+
return Object(val);
|
9304 |
+
}
|
9305 |
+
|
9306 |
+
function shouldUseNative() {
|
9307 |
+
try {
|
9308 |
+
if (!Object.assign) {
|
9309 |
+
return false;
|
9310 |
+
}
|
9311 |
+
|
9312 |
+
// Detect buggy property enumeration order in older V8 versions.
|
9313 |
+
|
9314 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
9315 |
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
9316 |
+
test1[5] = 'de';
|
9317 |
+
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
9318 |
+
return false;
|
9319 |
+
}
|
9320 |
+
|
9321 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
9322 |
+
var test2 = {};
|
9323 |
+
for (var i = 0; i < 10; i++) {
|
9324 |
+
test2['_' + String.fromCharCode(i)] = i;
|
9325 |
+
}
|
9326 |
+
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
9327 |
+
return test2[n];
|
9328 |
+
});
|
9329 |
+
if (order2.join('') !== '0123456789') {
|
9330 |
+
return false;
|
9331 |
+
}
|
9332 |
+
|
9333 |
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
9334 |
+
var test3 = {};
|
9335 |
+
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
9336 |
+
test3[letter] = letter;
|
9337 |
+
});
|
9338 |
+
if (Object.keys(Object.assign({}, test3)).join('') !==
|
9339 |
+
'abcdefghijklmnopqrst') {
|
9340 |
+
return false;
|
9341 |
+
}
|
9342 |
+
|
9343 |
+
return true;
|
9344 |
+
} catch (err) {
|
9345 |
+
// We don't expect any of the above to throw, but better to be safe.
|
9346 |
+
return false;
|
9347 |
+
}
|
9348 |
+
}
|
9349 |
+
|
9350 |
+
module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
9351 |
+
var from;
|
9352 |
+
var to = toObject(target);
|
9353 |
+
var symbols;
|
9354 |
+
|
9355 |
+
for (var s = 1; s < arguments.length; s++) {
|
9356 |
+
from = Object(arguments[s]);
|
9357 |
+
|
9358 |
+
for (var key in from) {
|
9359 |
+
if (hasOwnProperty.call(from, key)) {
|
9360 |
+
to[key] = from[key];
|
9361 |
+
}
|
9362 |
+
}
|
9363 |
+
|
9364 |
+
if (getOwnPropertySymbols) {
|
9365 |
+
symbols = getOwnPropertySymbols(from);
|
9366 |
+
for (var i = 0; i < symbols.length; i++) {
|
9367 |
+
if (propIsEnumerable.call(from, symbols[i])) {
|
9368 |
+
to[symbols[i]] = from[symbols[i]];
|
9369 |
+
}
|
9370 |
+
}
|
9371 |
+
}
|
9372 |
+
}
|
9373 |
+
|
9374 |
+
return to;
|
9375 |
+
};
|
9376 |
+
|
9377 |
+
|
9378 |
+
/***/ }),
|
9379 |
+
/* 44 */
|
9380 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9381 |
+
|
9382 |
+
"use strict";
|
9383 |
+
/* WEBPACK VAR INJECTION */(function(process) {/**
|
9384 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
9385 |
+
*
|
9386 |
+
* This source code is licensed under the MIT license found in the
|
9387 |
+
* LICENSE file in the root directory of this source tree.
|
9388 |
+
*/
|
9389 |
+
|
9390 |
+
|
9391 |
+
|
9392 |
+
var printWarning = function() {};
|
9393 |
+
|
9394 |
+
if (process.env.NODE_ENV !== 'production') {
|
9395 |
+
var ReactPropTypesSecret = __webpack_require__(7);
|
9396 |
+
var loggedTypeFailures = {};
|
9397 |
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
9398 |
+
|
9399 |
+
printWarning = function(text) {
|
9400 |
+
var message = 'Warning: ' + text;
|
9401 |
+
if (typeof console !== 'undefined') {
|
9402 |
+
console.error(message);
|
9403 |
+
}
|
9404 |
+
try {
|
9405 |
+
// --- Welcome to debugging React ---
|
9406 |
+
// This error was thrown as a convenience so that you can use this stack
|
9407 |
+
// to find the callsite that caused this warning to fire.
|
9408 |
+
throw new Error(message);
|
9409 |
+
} catch (x) {}
|
9410 |
+
};
|
9411 |
+
}
|
9412 |
+
|
9413 |
+
/**
|
9414 |
+
* Assert that the values match with the type specs.
|
9415 |
+
* Error messages are memorized and will only be shown once.
|
9416 |
+
*
|
9417 |
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
9418 |
+
* @param {object} values Runtime values that need to be type-checked
|
9419 |
+
* @param {string} location e.g. "prop", "context", "child context"
|
9420 |
+
* @param {string} componentName Name of the component for error messages.
|
9421 |
+
* @param {?Function} getStack Returns the component stack.
|
9422 |
+
* @private
|
9423 |
+
*/
|
9424 |
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
9425 |
+
if (process.env.NODE_ENV !== 'production') {
|
9426 |
+
for (var typeSpecName in typeSpecs) {
|
9427 |
+
if (has(typeSpecs, typeSpecName)) {
|
9428 |
+
var error;
|
9429 |
+
// Prop type validation may throw. In case they do, we don't want to
|
9430 |
+
// fail the render phase where it didn't fail before. So we log it.
|
9431 |
+
// After these have been cleaned up, we'll let them throw.
|
9432 |
+
try {
|
9433 |
+
// This is intentionally an invariant that gets caught. It's the same
|
9434 |
+
// behavior as without this statement except with a better message.
|
9435 |
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
9436 |
+
var err = Error(
|
9437 |
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
9438 |
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
9439 |
+
);
|
9440 |
+
err.name = 'Invariant Violation';
|
9441 |
+
throw err;
|
9442 |
+
}
|
9443 |
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
9444 |
+
} catch (ex) {
|
9445 |
+
error = ex;
|
9446 |
+
}
|
9447 |
+
if (error && !(error instanceof Error)) {
|
9448 |
+
printWarning(
|
9449 |
+
(componentName || 'React class') + ': type specification of ' +
|
9450 |
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
9451 |
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
9452 |
+
'You may have forgotten to pass an argument to the type checker ' +
|
9453 |
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
9454 |
+
'shape all require an argument).'
|
9455 |
+
);
|
9456 |
+
}
|
9457 |
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
9458 |
+
// Only monitor this failure once because there tends to be a lot of the
|
9459 |
+
// same error.
|
9460 |
+
loggedTypeFailures[error.message] = true;
|
9461 |
+
|
9462 |
+
var stack = getStack ? getStack() : '';
|
9463 |
+
|
9464 |
+
printWarning(
|
9465 |
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
9466 |
+
);
|
9467 |
+
}
|
9468 |
+
}
|
9469 |
+
}
|
9470 |
+
}
|
9471 |
+
}
|
9472 |
+
|
9473 |
+
/**
|
9474 |
+
* Resets warning cache when testing.
|
9475 |
+
*
|
9476 |
+
* @private
|
9477 |
+
*/
|
9478 |
+
checkPropTypes.resetWarningCache = function() {
|
9479 |
+
if (process.env.NODE_ENV !== 'production') {
|
9480 |
+
loggedTypeFailures = {};
|
9481 |
+
}
|
9482 |
+
}
|
9483 |
+
|
9484 |
+
module.exports = checkPropTypes;
|
9485 |
+
|
9486 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
9487 |
+
|
9488 |
+
/***/ }),
|
9489 |
+
/* 45 */
|
9490 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9491 |
+
|
9492 |
+
"use strict";
|
9493 |
+
/**
|
9494 |
+
* Copyright (c) 2013-present, Facebook, Inc.
|
9495 |
+
*
|
9496 |
+
* This source code is licensed under the MIT license found in the
|
9497 |
+
* LICENSE file in the root directory of this source tree.
|
9498 |
+
*/
|
9499 |
+
|
9500 |
+
|
9501 |
+
|
9502 |
+
var ReactPropTypesSecret = __webpack_require__(7);
|
9503 |
+
|
9504 |
+
function emptyFunction() {}
|
9505 |
+
function emptyFunctionWithReset() {}
|
9506 |
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
9507 |
+
|
9508 |
+
module.exports = function() {
|
9509 |
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
9510 |
+
if (secret === ReactPropTypesSecret) {
|
9511 |
+
// It is still safe when called from React.
|
9512 |
+
return;
|
9513 |
+
}
|
9514 |
+
var err = new Error(
|
9515 |
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
9516 |
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
9517 |
+
'Read more at http://fb.me/use-check-prop-types'
|
9518 |
+
);
|
9519 |
+
err.name = 'Invariant Violation';
|
9520 |
+
throw err;
|
9521 |
+
};
|
9522 |
+
shim.isRequired = shim;
|
9523 |
+
function getShim() {
|
9524 |
+
return shim;
|
9525 |
+
};
|
9526 |
+
// Important!
|
9527 |
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
9528 |
+
var ReactPropTypes = {
|
9529 |
+
array: shim,
|
9530 |
+
bool: shim,
|
9531 |
+
func: shim,
|
9532 |
+
number: shim,
|
9533 |
+
object: shim,
|
9534 |
+
string: shim,
|
9535 |
+
symbol: shim,
|
9536 |
+
|
9537 |
+
any: shim,
|
9538 |
+
arrayOf: getShim,
|
9539 |
+
element: shim,
|
9540 |
+
elementType: shim,
|
9541 |
+
instanceOf: getShim,
|
9542 |
+
node: shim,
|
9543 |
+
objectOf: getShim,
|
9544 |
+
oneOf: getShim,
|
9545 |
+
oneOfType: getShim,
|
9546 |
+
shape: getShim,
|
9547 |
+
exact: getShim,
|
9548 |
+
|
9549 |
+
checkPropTypes: emptyFunctionWithReset,
|
9550 |
+
resetWarningCache: emptyFunction
|
9551 |
+
};
|
9552 |
+
|
9553 |
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
9554 |
+
|
9555 |
+
return ReactPropTypes;
|
9556 |
+
};
|
9557 |
+
|
9558 |
+
|
9559 |
+
/***/ }),
|
9560 |
+
/* 46 */
|
9561 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9562 |
+
|
9563 |
+
/* WEBPACK VAR INJECTION */(function(global) {var now = __webpack_require__(47)
|
9564 |
+
, root = typeof window === 'undefined' ? global : window
|
9565 |
+
, vendors = ['moz', 'webkit']
|
9566 |
+
, suffix = 'AnimationFrame'
|
9567 |
+
, raf = root['request' + suffix]
|
9568 |
+
, caf = root['cancel' + suffix] || root['cancelRequest' + suffix]
|
9569 |
+
|
9570 |
+
for(var i = 0; !raf && i < vendors.length; i++) {
|
9571 |
+
raf = root[vendors[i] + 'Request' + suffix]
|
9572 |
+
caf = root[vendors[i] + 'Cancel' + suffix]
|
9573 |
+
|| root[vendors[i] + 'CancelRequest' + suffix]
|
9574 |
+
}
|
9575 |
+
|
9576 |
+
// Some versions of FF have rAF but not cAF
|
9577 |
+
if(!raf || !caf) {
|
9578 |
+
var last = 0
|
9579 |
+
, id = 0
|
9580 |
+
, queue = []
|
9581 |
+
, frameDuration = 1000 / 60
|
9582 |
+
|
9583 |
+
raf = function(callback) {
|
9584 |
+
if(queue.length === 0) {
|
9585 |
+
var _now = now()
|
9586 |
+
, next = Math.max(0, frameDuration - (_now - last))
|
9587 |
+
last = next + _now
|
9588 |
+
setTimeout(function() {
|
9589 |
+
var cp = queue.slice(0)
|
9590 |
+
// Clear queue here to prevent
|
9591 |
+
// callbacks from appending listeners
|
9592 |
+
// to the current frame's queue
|
9593 |
+
queue.length = 0
|
9594 |
+
for(var i = 0; i < cp.length; i++) {
|
9595 |
+
if(!cp[i].cancelled) {
|
9596 |
+
try{
|
9597 |
+
cp[i].callback(last)
|
9598 |
+
} catch(e) {
|
9599 |
+
setTimeout(function() { throw e }, 0)
|
9600 |
+
}
|
9601 |
+
}
|
9602 |
+
}
|
9603 |
+
}, Math.round(next))
|
9604 |
+
}
|
9605 |
+
queue.push({
|
9606 |
+
handle: ++id,
|
9607 |
+
callback: callback,
|
9608 |
+
cancelled: false
|
9609 |
+
})
|
9610 |
+
return id
|
9611 |
+
}
|
9612 |
+
|
9613 |
+
caf = function(handle) {
|
9614 |
+
for(var i = 0; i < queue.length; i++) {
|
9615 |
+
if(queue[i].handle === handle) {
|
9616 |
+
queue[i].cancelled = true
|
9617 |
+
}
|
9618 |
+
}
|
9619 |
+
}
|
9620 |
+
}
|
9621 |
+
|
9622 |
+
module.exports = function(fn) {
|
9623 |
+
// Wrap in a new function to prevent
|
9624 |
+
// `cancel` potentially being assigned
|
9625 |
+
// to the native rAF function
|
9626 |
+
return raf.call(root, fn)
|
9627 |
+
}
|
9628 |
+
module.exports.cancel = function() {
|
9629 |
+
caf.apply(root, arguments)
|
9630 |
+
}
|
9631 |
+
module.exports.polyfill = function(object) {
|
9632 |
+
if (!object) {
|
9633 |
+
object = root;
|
9634 |
+
}
|
9635 |
+
object.requestAnimationFrame = raf
|
9636 |
+
object.cancelAnimationFrame = caf
|
9637 |
+
}
|
9638 |
+
|
9639 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17)))
|
9640 |
+
|
9641 |
+
/***/ }),
|
9642 |
+
/* 47 */
|
9643 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9644 |
+
|
9645 |
+
/* WEBPACK VAR INJECTION */(function(process) {// Generated by CoffeeScript 1.12.2
|
9646 |
+
(function() {
|
9647 |
+
var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;
|
9648 |
+
|
9649 |
+
if ((typeof performance !== "undefined" && performance !== null) && performance.now) {
|
9650 |
+
module.exports = function() {
|
9651 |
+
return performance.now();
|
9652 |
+
};
|
9653 |
+
} else if ((typeof process !== "undefined" && process !== null) && process.hrtime) {
|
9654 |
+
module.exports = function() {
|
9655 |
+
return (getNanoSeconds() - nodeLoadTime) / 1e6;
|
9656 |
+
};
|
9657 |
+
hrtime = process.hrtime;
|
9658 |
+
getNanoSeconds = function() {
|
9659 |
+
var hr;
|
9660 |
+
hr = hrtime();
|
9661 |
+
return hr[0] * 1e9 + hr[1];
|
9662 |
+
};
|
9663 |
+
moduleLoadTime = getNanoSeconds();
|
9664 |
+
upTime = process.uptime() * 1e9;
|
9665 |
+
nodeLoadTime = moduleLoadTime - upTime;
|
9666 |
+
} else if (Date.now) {
|
9667 |
+
module.exports = function() {
|
9668 |
+
return Date.now() - loadTime;
|
9669 |
+
};
|
9670 |
+
loadTime = Date.now();
|
9671 |
+
} else {
|
9672 |
+
module.exports = function() {
|
9673 |
+
return new Date().getTime() - loadTime;
|
9674 |
+
};
|
9675 |
+
loadTime = new Date().getTime();
|
9676 |
+
}
|
9677 |
+
|
9678 |
+
}).call(this);
|
9679 |
+
|
9680 |
+
//# sourceMappingURL=performance-now.js.map
|
9681 |
+
|
9682 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
9683 |
+
|
9684 |
+
/***/ }),
|
9685 |
+
/* 48 */
|
9686 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9687 |
+
|
9688 |
+
"use strict";
|
9689 |
+
|
9690 |
+
|
9691 |
+
Object.defineProperty(exports, "__esModule", {
|
9692 |
+
value: true
|
9693 |
+
});
|
9694 |
+
|
9695 |
+
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
9696 |
+
|
9697 |
+
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; }; }();
|
9698 |
+
|
9699 |
+
var _react = __webpack_require__(2);
|
9700 |
+
|
9701 |
+
var _react2 = _interopRequireDefault(_react);
|
9702 |
+
|
9703 |
+
var _propTypes = __webpack_require__(3);
|
9704 |
+
|
9705 |
+
var _propTypes2 = _interopRequireDefault(_propTypes);
|
9706 |
+
|
9707 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9708 |
+
|
9709 |
+
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
|
9710 |
+
|
9711 |
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
9712 |
+
|
9713 |
+
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; }
|
9714 |
+
|
9715 |
+
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; }
|
9716 |
+
|
9717 |
+
var sizerStyle = {
|
9718 |
+
position: 'absolute',
|
9719 |
+
top: 0,
|
9720 |
+
left: 0,
|
9721 |
+
visibility: 'hidden',
|
9722 |
+
height: 0,
|
9723 |
+
overflow: 'scroll',
|
9724 |
+
whiteSpace: 'pre'
|
9725 |
+
};
|
9726 |
+
|
9727 |
+
var INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];
|
9728 |
+
|
9729 |
+
var cleanInputProps = function cleanInputProps(inputProps) {
|
9730 |
+
INPUT_PROPS_BLACKLIST.forEach(function (field) {
|
9731 |
+
return delete inputProps[field];
|
9732 |
+
});
|
9733 |
+
return inputProps;
|
9734 |
+
};
|
9735 |
+
|
9736 |
+
var copyStyles = function copyStyles(styles, node) {
|
9737 |
+
node.style.fontSize = styles.fontSize;
|
9738 |
+
node.style.fontFamily = styles.fontFamily;
|
9739 |
+
node.style.fontWeight = styles.fontWeight;
|
9740 |
+
node.style.fontStyle = styles.fontStyle;
|
9741 |
+
node.style.letterSpacing = styles.letterSpacing;
|
9742 |
+
node.style.textTransform = styles.textTransform;
|
9743 |
+
};
|
9744 |
+
|
9745 |
+
var isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\/|Edge\//.test(window.navigator.userAgent) : false;
|
9746 |
+
|
9747 |
+
var generateId = function generateId() {
|
9748 |
+
// we only need an auto-generated ID for stylesheet injection, which is only
|
9749 |
+
// used for IE. so if the browser is not IE, this should return undefined.
|
9750 |
+
return isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;
|
9751 |
+
};
|
9752 |
+
|
9753 |
+
var AutosizeInput = function (_Component) {
|
9754 |
+
_inherits(AutosizeInput, _Component);
|
9755 |
+
|
9756 |
+
function AutosizeInput(props) {
|
9757 |
+
_classCallCheck(this, AutosizeInput);
|
9758 |
+
|
9759 |
+
var _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));
|
9760 |
+
|
9761 |
+
_this.inputRef = function (el) {
|
9762 |
+
_this.input = el;
|
9763 |
+
if (typeof _this.props.inputRef === 'function') {
|
9764 |
+
_this.props.inputRef(el);
|
9765 |
+
}
|
9766 |
+
};
|
9767 |
+
|
9768 |
+
_this.placeHolderSizerRef = function (el) {
|
9769 |
+
_this.placeHolderSizer = el;
|
9770 |
+
};
|
9771 |
+
|
9772 |
+
_this.sizerRef = function (el) {
|
9773 |
+
_this.sizer = el;
|
9774 |
+
};
|
9775 |
+
|
9776 |
+
_this.state = {
|
9777 |
+
inputWidth: props.minWidth,
|
9778 |
+
inputId: props.id || generateId()
|
9779 |
+
};
|
9780 |
+
return _this;
|
9781 |
+
}
|
9782 |
+
|
9783 |
+
_createClass(AutosizeInput, [{
|
9784 |
+
key: 'componentDidMount',
|
9785 |
+
value: function componentDidMount() {
|
9786 |
+
this.mounted = true;
|
9787 |
+
this.copyInputStyles();
|
9788 |
+
this.updateInputWidth();
|
9789 |
+
}
|
9790 |
+
}, {
|
9791 |
+
key: 'componentWillReceiveProps',
|
9792 |
+
value: function componentWillReceiveProps(nextProps) {
|
9793 |
+
var id = nextProps.id;
|
9794 |
+
|
9795 |
+
if (id !== this.props.id) {
|
9796 |
+
this.setState({ inputId: id || generateId() });
|
9797 |
+
}
|
9798 |
+
}
|
9799 |
+
}, {
|
9800 |
+
key: 'componentDidUpdate',
|
9801 |
+
value: function componentDidUpdate(prevProps, prevState) {
|
9802 |
+
if (prevState.inputWidth !== this.state.inputWidth) {
|
9803 |
+
if (typeof this.props.onAutosize === 'function') {
|
9804 |
+
this.props.onAutosize(this.state.inputWidth);
|
9805 |
+
}
|
9806 |
+
}
|
9807 |
+
this.updateInputWidth();
|
9808 |
+
}
|
9809 |
+
}, {
|
9810 |
+
key: 'componentWillUnmount',
|
9811 |
+
value: function componentWillUnmount() {
|
9812 |
+
this.mounted = false;
|
9813 |
+
}
|
9814 |
+
}, {
|
9815 |
+
key: 'copyInputStyles',
|
9816 |
+
value: function copyInputStyles() {
|
9817 |
+
if (!this.mounted || !window.getComputedStyle) {
|
9818 |
+
return;
|
9819 |
+
}
|
9820 |
+
var inputStyles = this.input && window.getComputedStyle(this.input);
|
9821 |
+
if (!inputStyles) {
|
9822 |
+
return;
|
9823 |
+
}
|
9824 |
+
copyStyles(inputStyles, this.sizer);
|
9825 |
+
if (this.placeHolderSizer) {
|
9826 |
+
copyStyles(inputStyles, this.placeHolderSizer);
|
9827 |
+
}
|
9828 |
+
}
|
9829 |
+
}, {
|
9830 |
+
key: 'updateInputWidth',
|
9831 |
+
value: function updateInputWidth() {
|
9832 |
+
if (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {
|
9833 |
+
return;
|
9834 |
+
}
|
9835 |
+
var newInputWidth = void 0;
|
9836 |
+
if (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {
|
9837 |
+
newInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;
|
9838 |
+
} else {
|
9839 |
+
newInputWidth = this.sizer.scrollWidth + 2;
|
9840 |
+
}
|
9841 |
+
// add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI
|
9842 |
+
var extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;
|
9843 |
+
newInputWidth += extraWidth;
|
9844 |
+
if (newInputWidth < this.props.minWidth) {
|
9845 |
+
newInputWidth = this.props.minWidth;
|
9846 |
+
}
|
9847 |
+
if (newInputWidth !== this.state.inputWidth) {
|
9848 |
+
this.setState({
|
9849 |
+
inputWidth: newInputWidth
|
9850 |
+
});
|
9851 |
+
}
|
9852 |
+
}
|
9853 |
+
}, {
|
9854 |
+
key: 'getInput',
|
9855 |
+
value: function getInput() {
|
9856 |
+
return this.input;
|
9857 |
+
}
|
9858 |
+
}, {
|
9859 |
+
key: 'focus',
|
9860 |
+
value: function focus() {
|
9861 |
+
this.input.focus();
|
9862 |
+
}
|
9863 |
+
}, {
|
9864 |
+
key: 'blur',
|
9865 |
+
value: function blur() {
|
9866 |
+
this.input.blur();
|
9867 |
+
}
|
9868 |
+
}, {
|
9869 |
+
key: 'select',
|
9870 |
+
value: function select() {
|
9871 |
+
this.input.select();
|
9872 |
+
}
|
9873 |
+
}, {
|
9874 |
+
key: 'renderStyles',
|
9875 |
+
value: function renderStyles() {
|
9876 |
+
// this method injects styles to hide IE's clear indicator, which messes
|
9877 |
+
// with input size detection. the stylesheet is only injected when the
|
9878 |
+
// browser is IE, and can also be disabled by the `injectStyles` prop.
|
9879 |
+
var injectStyles = this.props.injectStyles;
|
9880 |
+
|
9881 |
+
return isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {
|
9882 |
+
__html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'
|
9883 |
+
} }) : null;
|
9884 |
+
}
|
9885 |
+
}, {
|
9886 |
+
key: 'render',
|
9887 |
+
value: function render() {
|
9888 |
+
var sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {
|
9889 |
+
if (previousValue !== null && previousValue !== undefined) {
|
9890 |
+
return previousValue;
|
9891 |
+
}
|
9892 |
+
return currentValue;
|
9893 |
+
});
|
9894 |
+
|
9895 |
+
var wrapperStyle = _extends({}, this.props.style);
|
9896 |
+
if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
|
9897 |
+
|
9898 |
+
var inputStyle = _extends({
|
9899 |
+
boxSizing: 'content-box',
|
9900 |
+
width: this.state.inputWidth + 'px'
|
9901 |
+
}, this.props.inputStyle);
|
9902 |
+
|
9903 |
+
var inputProps = _objectWithoutProperties(this.props, []);
|
9904 |
+
|
9905 |
+
cleanInputProps(inputProps);
|
9906 |
+
inputProps.className = this.props.inputClassName;
|
9907 |
+
inputProps.id = this.state.inputId;
|
9908 |
+
inputProps.style = inputStyle;
|
9909 |
+
|
9910 |
+
return _react2.default.createElement(
|
9911 |
+
'div',
|
9912 |
+
{ className: this.props.className, style: wrapperStyle },
|
9913 |
+
this.renderStyles(),
|
9914 |
+
_react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),
|
9915 |
+
_react2.default.createElement(
|
9916 |
+
'div',
|
9917 |
+
{ ref: this.sizerRef, style: sizerStyle },
|
9918 |
+
sizerValue
|
9919 |
+
),
|
9920 |
+
this.props.placeholder ? _react2.default.createElement(
|
9921 |
+
'div',
|
9922 |
+
{ ref: this.placeHolderSizerRef, style: sizerStyle },
|
9923 |
+
this.props.placeholder
|
9924 |
+
) : null
|
9925 |
+
);
|
9926 |
+
}
|
9927 |
+
}]);
|
9928 |
+
|
9929 |
+
return AutosizeInput;
|
9930 |
+
}(_react.Component);
|
9931 |
+
|
9932 |
+
AutosizeInput.propTypes = {
|
9933 |
+
className: _propTypes2.default.string, // className for the outer element
|
9934 |
+
defaultValue: _propTypes2.default.any, // default field value
|
9935 |
+
extraWidth: _propTypes2.default.oneOfType([// additional width for input element
|
9936 |
+
_propTypes2.default.number, _propTypes2.default.string]),
|
9937 |
+
id: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots
|
9938 |
+
injectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true
|
9939 |
+
inputClassName: _propTypes2.default.string, // className for the input element
|
9940 |
+
inputRef: _propTypes2.default.func, // ref callback for the input element
|
9941 |
+
inputStyle: _propTypes2.default.object, // css styles for the input element
|
9942 |
+
minWidth: _propTypes2.default.oneOfType([// minimum width for input element
|
9943 |
+
_propTypes2.default.number, _propTypes2.default.string]),
|
9944 |
+
onAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}
|
9945 |
+
onChange: _propTypes2.default.func, // onChange handler: function(event) {}
|
9946 |
+
placeholder: _propTypes2.default.string, // placeholder text
|
9947 |
+
placeholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder
|
9948 |
+
style: _propTypes2.default.object, // css styles for the outer element
|
9949 |
+
value: _propTypes2.default.any // field value
|
9950 |
+
};
|
9951 |
+
AutosizeInput.defaultProps = {
|
9952 |
+
minWidth: 1,
|
9953 |
+
injectStyles: true
|
9954 |
+
};
|
9955 |
+
|
9956 |
+
exports.default = AutosizeInput;
|
9957 |
+
|
9958 |
+
/***/ }),
|
9959 |
+
/* 49 */
|
9960 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9961 |
+
|
9962 |
+
"use strict";
|
9963 |
+
|
9964 |
+
|
9965 |
+
var _CSSTransition = _interopRequireDefault(__webpack_require__(50));
|
9966 |
+
|
9967 |
+
var _ReplaceTransition = _interopRequireDefault(__webpack_require__(55));
|
9968 |
+
|
9969 |
+
var _TransitionGroup = _interopRequireDefault(__webpack_require__(22));
|
9970 |
+
|
9971 |
+
var _Transition = _interopRequireDefault(__webpack_require__(19));
|
9972 |
+
|
9973 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
9974 |
+
|
9975 |
+
module.exports = {
|
9976 |
+
Transition: _Transition.default,
|
9977 |
+
TransitionGroup: _TransitionGroup.default,
|
9978 |
+
ReplaceTransition: _ReplaceTransition.default,
|
9979 |
+
CSSTransition: _CSSTransition.default
|
9980 |
+
};
|
9981 |
+
|
9982 |
+
/***/ }),
|
9983 |
+
/* 50 */
|
9984 |
+
/***/ (function(module, exports, __webpack_require__) {
|
9985 |
+
|
9986 |
+
"use strict";
|
9987 |
+
/* WEBPACK VAR INJECTION */(function(process) {
|
9988 |
+
|
9989 |
+
exports.__esModule = true;
|
9990 |
+
exports.default = void 0;
|
9991 |
+
|
9992 |
+
var PropTypes = _interopRequireWildcard(__webpack_require__(3));
|
9993 |
+
|
9994 |
+
var _addClass = _interopRequireDefault(__webpack_require__(51));
|
9995 |
+
|
9996 |
+
var _removeClass = _interopRequireDefault(__webpack_require__(54));
|
9997 |
+
|
9998 |
+
var _react = _interopRequireDefault(__webpack_require__(2));
|
9999 |
+
|
10000 |
+
var _Transition = _interopRequireDefault(__webpack_require__(19));
|
10001 |
+
|
10002 |
+
var _PropTypes = __webpack_require__(21);
|
10003 |
+
|
10004 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10005 |
+
|
10006 |
+
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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
|
10007 |
+
|
10008 |
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
10009 |
+
|
10010 |
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
10011 |
+
|
10012 |
+
var addClass = function addClass(node, classes) {
|
10013 |
+
return node && classes && classes.split(' ').forEach(function (c) {
|
10014 |
+
return (0, _addClass.default)(node, c);
|
10015 |
+
});
|
10016 |
+
};
|
10017 |
+
|
10018 |
+
var removeClass = function removeClass(node, classes) {
|
10019 |
+
return node && classes && classes.split(' ').forEach(function (c) {
|
10020 |
+
return (0, _removeClass.default)(node, c);
|
10021 |
+
});
|
10022 |
+
};
|
10023 |
+
/**
|
10024 |
+
* A transition component inspired by the excellent
|
10025 |
+
* [ng-animate](http://www.nganimate.org/) library, you should use it if you're
|
10026 |
+
* using CSS transitions or animations. It's built upon the
|
10027 |
+
* [`Transition`](https://reactcommunity.org/react-transition-group/transition)
|
10028 |
+
* component, so it inherits all of its props.
|
10029 |
+
*
|
10030 |
+
* `CSSTransition` applies a pair of class names during the `appear`, `enter`,
|
10031 |
+
* and `exit` states of the transition. The first class is applied and then a
|
10032 |
+
* second `*-active` class in order to activate the CSSS transition. After the
|
10033 |
+
* transition, matching `*-done` class names are applied to persist the
|
10034 |
+
* transition state.
|
10035 |
+
*
|
10036 |
+
* ```jsx
|
10037 |
+
* function App() {
|
10038 |
+
* const [inProp, setInProp] = useState(false);
|
10039 |
+
* return (
|
10040 |
+
* <div>
|
10041 |
+
* <CSSTransition in={inProp} timeout={200} classNames="my-node">
|
10042 |
+
* <div>
|
10043 |
+
* {"I'll receive my-node-* classes"}
|
10044 |
+
* </div>
|
10045 |
+
* </CSSTransition>
|
10046 |
+
* <button type="button" onClick={() => setInProp(true)}>
|
10047 |
+
* Click to Enter
|
10048 |
+
* </button>
|
10049 |
+
* </div>
|
10050 |
+
* );
|
10051 |
+
* }
|
10052 |
+
* ```
|
10053 |
+
*
|
10054 |
+
* When the `in` prop is set to `true`, the child component will first receive
|
10055 |
+
* the class `example-enter`, then the `example-enter-active` will be added in
|
10056 |
+
* the next tick. `CSSTransition` [forces a
|
10057 |
+
* reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)
|
10058 |
+
* between before adding the `example-enter-active`. This is an important trick
|
10059 |
+
* because it allows us to transition between `example-enter` and
|
10060 |
+
* `example-enter-active` even though they were added immediately one after
|
10061 |
+
* another. Most notably, this is what makes it possible for us to animate
|
10062 |
+
* _appearance_.
|
10063 |
+
*
|
10064 |
+
* ```css
|
10065 |
+
* .my-node-enter {
|
10066 |
+
* opacity: 0;
|
10067 |
+
* }
|
10068 |
+
* .my-node-enter-active {
|
10069 |
+
* opacity: 1;
|
10070 |
+
* transition: opacity 200ms;
|
10071 |
+
* }
|
10072 |
+
* .my-node-exit {
|
10073 |
+
* opacity: 1;
|
10074 |
+
* }
|
10075 |
+
* .my-node-exit-active {
|
10076 |
+
* opacity: 0;
|
10077 |
+
* transition: opacity: 200ms;
|
10078 |
+
* }
|
10079 |
+
* ```
|
10080 |
+
*
|
10081 |
+
* `*-active` classes represent which styles you want to animate **to**.
|
10082 |
+
*/
|
10083 |
+
|
10084 |
+
|
10085 |
+
var CSSTransition =
|
10086 |
+
/*#__PURE__*/
|
10087 |
+
function (_React$Component) {
|
10088 |
+
_inheritsLoose(CSSTransition, _React$Component);
|
10089 |
+
|
10090 |
+
function CSSTransition() {
|
10091 |
+
var _this;
|
10092 |
+
|
10093 |
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
10094 |
+
args[_key] = arguments[_key];
|
10095 |
+
}
|
10096 |
+
|
10097 |
+
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
10098 |
+
|
10099 |
+
_this.onEnter = function (node, appearing) {
|
10100 |
+
var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),
|
10101 |
+
className = _this$getClassNames.className;
|
10102 |
+
|
10103 |
+
_this.removeClasses(node, 'exit');
|
10104 |
+
|
10105 |
+
addClass(node, className);
|
10106 |
+
|
10107 |
+
if (_this.props.onEnter) {
|
10108 |
+
_this.props.onEnter(node, appearing);
|
10109 |
+
}
|
10110 |
+
};
|
10111 |
+
|
10112 |
+
_this.onEntering = function (node, appearing) {
|
10113 |
+
var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),
|
10114 |
+
activeClassName = _this$getClassNames2.activeClassName;
|
10115 |
+
|
10116 |
+
_this.reflowAndAddClass(node, activeClassName);
|
10117 |
+
|
10118 |
+
if (_this.props.onEntering) {
|
10119 |
+
_this.props.onEntering(node, appearing);
|
10120 |
+
}
|
10121 |
+
};
|
10122 |
+
|
10123 |
+
_this.onEntered = function (node, appearing) {
|
10124 |
+
var appearClassName = _this.getClassNames('appear').doneClassName;
|
10125 |
+
|
10126 |
+
var enterClassName = _this.getClassNames('enter').doneClassName;
|
10127 |
+
|
10128 |
+
var doneClassName = appearing ? appearClassName + " " + enterClassName : enterClassName;
|
10129 |
+
|
10130 |
+
_this.removeClasses(node, appearing ? 'appear' : 'enter');
|
10131 |
+
|
10132 |
+
addClass(node, doneClassName);
|
10133 |
+
|
10134 |
+
if (_this.props.onEntered) {
|
10135 |
+
_this.props.onEntered(node, appearing);
|
10136 |
+
}
|
10137 |
+
};
|
10138 |
+
|
10139 |
+
_this.onExit = function (node) {
|
10140 |
+
var _this$getClassNames3 = _this.getClassNames('exit'),
|
10141 |
+
className = _this$getClassNames3.className;
|
10142 |
+
|
10143 |
+
_this.removeClasses(node, 'appear');
|
10144 |
+
|
10145 |
+
_this.removeClasses(node, 'enter');
|
10146 |
+
|
10147 |
+
addClass(node, className);
|
10148 |
+
|
10149 |
+
if (_this.props.onExit) {
|
10150 |
+
_this.props.onExit(node);
|
10151 |
+
}
|
10152 |
+
};
|
10153 |
+
|
10154 |
+
_this.onExiting = function (node) {
|
10155 |
+
var _this$getClassNames4 = _this.getClassNames('exit'),
|
10156 |
+
activeClassName = _this$getClassNames4.activeClassName;
|
10157 |
+
|
10158 |
+
_this.reflowAndAddClass(node, activeClassName);
|
10159 |
+
|
10160 |
+
if (_this.props.onExiting) {
|
10161 |
+
_this.props.onExiting(node);
|
10162 |
+
}
|
10163 |
+
};
|
10164 |
+
|
10165 |
+
_this.onExited = function (node) {
|
10166 |
+
var _this$getClassNames5 = _this.getClassNames('exit'),
|
10167 |
+
doneClassName = _this$getClassNames5.doneClassName;
|
10168 |
+
|
10169 |
+
_this.removeClasses(node, 'exit');
|
10170 |
+
|
10171 |
+
addClass(node, doneClassName);
|
10172 |
+
|
10173 |
+
if (_this.props.onExited) {
|
10174 |
+
_this.props.onExited(node);
|
10175 |
+
}
|
10176 |
+
};
|
10177 |
+
|
10178 |
+
_this.getClassNames = function (type) {
|
10179 |
+
var classNames = _this.props.classNames;
|
10180 |
+
var isStringClassNames = typeof classNames === 'string';
|
10181 |
+
var prefix = isStringClassNames && classNames ? classNames + '-' : '';
|
10182 |
+
var className = isStringClassNames ? prefix + type : classNames[type];
|
10183 |
+
var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];
|
10184 |
+
var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];
|
10185 |
+
return {
|
10186 |
+
className: className,
|
10187 |
+
activeClassName: activeClassName,
|
10188 |
+
doneClassName: doneClassName
|
10189 |
+
};
|
10190 |
+
};
|
10191 |
+
|
10192 |
+
return _this;
|
10193 |
+
}
|
10194 |
+
|
10195 |
+
var _proto = CSSTransition.prototype;
|
10196 |
+
|
10197 |
+
_proto.removeClasses = function removeClasses(node, type) {
|
10198 |
+
var _this$getClassNames6 = this.getClassNames(type),
|
10199 |
+
className = _this$getClassNames6.className,
|
10200 |
+
activeClassName = _this$getClassNames6.activeClassName,
|
10201 |
+
doneClassName = _this$getClassNames6.doneClassName;
|
10202 |
+
|
10203 |
+
className && removeClass(node, className);
|
10204 |
+
activeClassName && removeClass(node, activeClassName);
|
10205 |
+
doneClassName && removeClass(node, doneClassName);
|
10206 |
+
};
|
10207 |
+
|
10208 |
+
_proto.reflowAndAddClass = function reflowAndAddClass(node, className) {
|
10209 |
+
// This is for to force a repaint,
|
10210 |
+
// which is necessary in order to transition styles when adding a class name.
|
10211 |
+
if (className) {
|
10212 |
+
/* eslint-disable no-unused-expressions */
|
10213 |
+
node && node.scrollTop;
|
10214 |
+
/* eslint-enable no-unused-expressions */
|
10215 |
+
|
10216 |
+
addClass(node, className);
|
10217 |
+
}
|
10218 |
+
};
|
10219 |
+
|
10220 |
+
_proto.render = function render() {
|
10221 |
+
var props = _extends({}, this.props);
|
10222 |
+
|
10223 |
+
delete props.classNames;
|
10224 |
+
return _react.default.createElement(_Transition.default, _extends({}, props, {
|
10225 |
+
onEnter: this.onEnter,
|
10226 |
+
onEntered: this.onEntered,
|
10227 |
+
onEntering: this.onEntering,
|
10228 |
+
onExit: this.onExit,
|
10229 |
+
onExiting: this.onExiting,
|
10230 |
+
onExited: this.onExited
|
10231 |
+
}));
|
10232 |
+
};
|
10233 |
+
|
10234 |
+
return CSSTransition;
|
10235 |
+
}(_react.default.Component);
|
10236 |
+
|
10237 |
+
CSSTransition.defaultProps = {
|
10238 |
+
classNames: ''
|
10239 |
+
};
|
10240 |
+
CSSTransition.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, _Transition.default.propTypes, {
|
10241 |
+
/**
|
10242 |
+
* The animation classNames applied to the component as it enters, exits or
|
10243 |
+
* has finished the transition. A single name can be provided and it will be
|
10244 |
+
* suffixed for each stage: e.g.
|
10245 |
+
*
|
10246 |
+
* `classNames="fade"` applies `fade-enter`, `fade-enter-active`,
|
10247 |
+
* `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,
|
10248 |
+
* `fade-appear`, `fade-appear-active`, and `fade-appear-done`.
|
10249 |
+
*
|
10250 |
+
* **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.
|
10251 |
+
* This allows you to define different behavior for when appearing is done and
|
10252 |
+
* when regular entering is done, using selectors like
|
10253 |
+
* `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an
|
10254 |
+
* epic entrance animation when element first appears in the DOM using
|
10255 |
+
* [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can
|
10256 |
+
* simply use `fade-enter-done` for defining both cases.
|
10257 |
+
*
|
10258 |
+
* Each individual classNames can also be specified independently like:
|
10259 |
+
*
|
10260 |
+
* ```js
|
10261 |
+
* classNames={{
|
10262 |
+
* appear: 'my-appear',
|
10263 |
+
* appearActive: 'my-active-appear',
|
10264 |
+
* appearDone: 'my-done-appear',
|
10265 |
+
* enter: 'my-enter',
|
10266 |
+
* enterActive: 'my-active-enter',
|
10267 |
+
* enterDone: 'my-done-enter',
|
10268 |
+
* exit: 'my-exit',
|
10269 |
+
* exitActive: 'my-active-exit',
|
10270 |
+
* exitDone: 'my-done-exit',
|
10271 |
+
* }}
|
10272 |
+
* ```
|
10273 |
+
*
|
10274 |
+
* If you want to set these classes using CSS Modules:
|
10275 |
+
*
|
10276 |
+
* ```js
|
10277 |
+
* import styles from './styles.css';
|
10278 |
+
* ```
|
10279 |
+
*
|
10280 |
+
* you might want to use camelCase in your CSS file, that way could simply
|
10281 |
+
* spread them instead of listing them one by one:
|
10282 |
+
*
|
10283 |
+
* ```js
|
10284 |
+
* classNames={{ ...styles }}
|
10285 |
+
* ```
|
10286 |
+
*
|
10287 |
+
* @type {string | {
|
10288 |
+
* appear?: string,
|
10289 |
+
* appearActive?: string,
|
10290 |
+
* appearDone?: string,
|
10291 |
+
* enter?: string,
|
10292 |
+
* enterActive?: string,
|
10293 |
+
* enterDone?: string,
|
10294 |
+
* exit?: string,
|
10295 |
+
* exitActive?: string,
|
10296 |
+
* exitDone?: string,
|
10297 |
+
* }}
|
10298 |
+
*/
|
10299 |
+
classNames: _PropTypes.classNamesShape,
|
10300 |
+
|
10301 |
+
/**
|
10302 |
+
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
10303 |
+
* applied.
|
10304 |
+
*
|
10305 |
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
10306 |
+
*/
|
10307 |
+
onEnter: PropTypes.func,
|
10308 |
+
|
10309 |
+
/**
|
10310 |
+
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
10311 |
+
* 'appear-active' class is applied.
|
10312 |
+
*
|
10313 |
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
10314 |
+
*/
|
10315 |
+
onEntering: PropTypes.func,
|
10316 |
+
|
10317 |
+
/**
|
10318 |
+
* A `<Transition>` callback fired immediately after the 'enter' or
|
10319 |
+
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
10320 |
+
*
|
10321 |
+
* @type Function(node: HtmlElement, isAppearing: bool)
|
10322 |
+
*/
|
10323 |
+
onEntered: PropTypes.func,
|
10324 |
+
|
10325 |
+
/**
|
10326 |
+
* A `<Transition>` callback fired immediately after the 'exit' class is
|
10327 |
+
* applied.
|
10328 |
+
*
|
10329 |
+
* @type Function(node: HtmlElement)
|
10330 |
+
*/
|
10331 |
+
onExit: PropTypes.func,
|
10332 |
+
|
10333 |
+
/**
|
10334 |
+
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
10335 |
+
*
|
10336 |
+
* @type Function(node: HtmlElement)
|
10337 |
+
*/
|
10338 |
+
onExiting: PropTypes.func,
|
10339 |
+
|
10340 |
+
/**
|
10341 |
+
* A `<Transition>` callback fired immediately after the 'exit' classes
|
10342 |
+
* are **removed** and the `exit-done` class is added to the DOM node.
|
10343 |
+
*
|
10344 |
+
* @type Function(node: HtmlElement)
|
10345 |
+
*/
|
10346 |
+
onExited: PropTypes.func
|
10347 |
+
}) : {};
|
10348 |
+
var _default = CSSTransition;
|
10349 |
+
exports.default = _default;
|
10350 |
+
module.exports = exports["default"];
|
10351 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
10352 |
+
|
10353 |
+
/***/ }),
|
10354 |
+
/* 51 */
|
10355 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10356 |
+
|
10357 |
+
"use strict";
|
10358 |
+
|
10359 |
+
|
10360 |
+
var _interopRequireDefault = __webpack_require__(52);
|
10361 |
+
|
10362 |
+
exports.__esModule = true;
|
10363 |
+
exports.default = addClass;
|
10364 |
+
|
10365 |
+
var _hasClass = _interopRequireDefault(__webpack_require__(53));
|
10366 |
+
|
10367 |
+
function addClass(element, className) {
|
10368 |
+
if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
|
10369 |
+
}
|
10370 |
+
|
10371 |
+
module.exports = exports["default"];
|
10372 |
+
|
10373 |
+
/***/ }),
|
10374 |
+
/* 52 */
|
10375 |
+
/***/ (function(module, exports) {
|
10376 |
+
|
10377 |
+
function _interopRequireDefault(obj) {
|
10378 |
+
return obj && obj.__esModule ? obj : {
|
10379 |
+
"default": obj
|
10380 |
+
};
|
10381 |
+
}
|
10382 |
+
|
10383 |
+
module.exports = _interopRequireDefault;
|
10384 |
+
|
10385 |
+
/***/ }),
|
10386 |
+
/* 53 */
|
10387 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10388 |
+
|
10389 |
+
"use strict";
|
10390 |
+
|
10391 |
+
|
10392 |
+
exports.__esModule = true;
|
10393 |
+
exports.default = hasClass;
|
10394 |
+
|
10395 |
+
function hasClass(element, className) {
|
10396 |
+
if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
10397 |
+
}
|
10398 |
+
|
10399 |
+
module.exports = exports["default"];
|
10400 |
+
|
10401 |
+
/***/ }),
|
10402 |
+
/* 54 */
|
10403 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10404 |
+
|
10405 |
+
"use strict";
|
10406 |
+
|
10407 |
+
|
10408 |
+
function replaceClassName(origClass, classToRemove) {
|
10409 |
+
return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
10410 |
+
}
|
10411 |
+
|
10412 |
+
module.exports = function removeClass(element, className) {
|
10413 |
+
if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
|
10414 |
+
};
|
10415 |
+
|
10416 |
+
/***/ }),
|
10417 |
+
/* 55 */
|
10418 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10419 |
+
|
10420 |
+
"use strict";
|
10421 |
+
/* WEBPACK VAR INJECTION */(function(process) {
|
10422 |
+
|
10423 |
+
exports.__esModule = true;
|
10424 |
+
exports.default = void 0;
|
10425 |
+
|
10426 |
+
var _propTypes = _interopRequireDefault(__webpack_require__(3));
|
10427 |
+
|
10428 |
+
var _react = _interopRequireDefault(__webpack_require__(2));
|
10429 |
+
|
10430 |
+
var _reactDom = __webpack_require__(6);
|
10431 |
+
|
10432 |
+
var _TransitionGroup = _interopRequireDefault(__webpack_require__(22));
|
10433 |
+
|
10434 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
10435 |
+
|
10436 |
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
10437 |
+
|
10438 |
+
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
|
10439 |
+
|
10440 |
+
/**
|
10441 |
+
* The `<ReplaceTransition>` component is a specialized `Transition` component
|
10442 |
+
* that animates between two children.
|
10443 |
+
*
|
10444 |
+
* ```jsx
|
10445 |
+
* <ReplaceTransition in>
|
10446 |
+
* <Fade><div>I appear first</div></Fade>
|
10447 |
+
* <Fade><div>I replace the above</div></Fade>
|
10448 |
+
* </ReplaceTransition>
|
10449 |
+
* ```
|
10450 |
+
*/
|
10451 |
+
var ReplaceTransition =
|
10452 |
+
/*#__PURE__*/
|
10453 |
+
function (_React$Component) {
|
10454 |
+
_inheritsLoose(ReplaceTransition, _React$Component);
|
10455 |
+
|
10456 |
+
function ReplaceTransition() {
|
10457 |
+
var _this;
|
10458 |
+
|
10459 |
+
for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
10460 |
+
_args[_key] = arguments[_key];
|
10461 |
+
}
|
10462 |
+
|
10463 |
+
_this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
|
10464 |
+
|
10465 |
+
_this.handleEnter = function () {
|
10466 |
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
10467 |
+
args[_key2] = arguments[_key2];
|
10468 |
+
}
|
10469 |
+
|
10470 |
+
return _this.handleLifecycle('onEnter', 0, args);
|
10471 |
+
};
|
10472 |
+
|
10473 |
+
_this.handleEntering = function () {
|
10474 |
+
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
10475 |
+
args[_key3] = arguments[_key3];
|
10476 |
+
}
|
10477 |
+
|
10478 |
+
return _this.handleLifecycle('onEntering', 0, args);
|
10479 |
+
};
|
10480 |
+
|
10481 |
+
_this.handleEntered = function () {
|
10482 |
+
for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
10483 |
+
args[_key4] = arguments[_key4];
|
10484 |
+
}
|
10485 |
+
|
10486 |
+
return _this.handleLifecycle('onEntered', 0, args);
|
10487 |
+
};
|
10488 |
+
|
10489 |
+
_this.handleExit = function () {
|
10490 |
+
for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
10491 |
+
args[_key5] = arguments[_key5];
|
10492 |
+
}
|
10493 |
+
|
10494 |
+
return _this.handleLifecycle('onExit', 1, args);
|
10495 |
+
};
|
10496 |
+
|
10497 |
+
_this.handleExiting = function () {
|
10498 |
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
10499 |
+
args[_key6] = arguments[_key6];
|
10500 |
+
}
|
10501 |
+
|
10502 |
+
return _this.handleLifecycle('onExiting', 1, args);
|
10503 |
+
};
|
10504 |
+
|
10505 |
+
_this.handleExited = function () {
|
10506 |
+
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
10507 |
+
args[_key7] = arguments[_key7];
|
10508 |
+
}
|
10509 |
+
|
10510 |
+
return _this.handleLifecycle('onExited', 1, args);
|
10511 |
+
};
|
10512 |
+
|
10513 |
+
return _this;
|
10514 |
+
}
|
10515 |
+
|
10516 |
+
var _proto = ReplaceTransition.prototype;
|
10517 |
+
|
10518 |
+
_proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {
|
10519 |
+
var _child$props;
|
10520 |
+
|
10521 |
+
var children = this.props.children;
|
10522 |
+
|
10523 |
+
var child = _react.default.Children.toArray(children)[idx];
|
10524 |
+
|
10525 |
+
if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
|
10526 |
+
if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));
|
10527 |
+
};
|
10528 |
+
|
10529 |
+
_proto.render = function render() {
|
10530 |
+
var _this$props = this.props,
|
10531 |
+
children = _this$props.children,
|
10532 |
+
inProp = _this$props.in,
|
10533 |
+
props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
|
10534 |
+
|
10535 |
+
var _React$Children$toArr = _react.default.Children.toArray(children),
|
10536 |
+
first = _React$Children$toArr[0],
|
10537 |
+
second = _React$Children$toArr[1];
|
10538 |
+
|
10539 |
+
delete props.onEnter;
|
10540 |
+
delete props.onEntering;
|
10541 |
+
delete props.onEntered;
|
10542 |
+
delete props.onExit;
|
10543 |
+
delete props.onExiting;
|
10544 |
+
delete props.onExited;
|
10545 |
+
return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {
|
10546 |
+
key: 'first',
|
10547 |
+
onEnter: this.handleEnter,
|
10548 |
+
onEntering: this.handleEntering,
|
10549 |
+
onEntered: this.handleEntered
|
10550 |
+
}) : _react.default.cloneElement(second, {
|
10551 |
+
key: 'second',
|
10552 |
+
onEnter: this.handleExit,
|
10553 |
+
onEntering: this.handleExiting,
|
10554 |
+
onEntered: this.handleExited
|
10555 |
+
}));
|
10556 |
+
};
|
10557 |
+
|
10558 |
+
return ReplaceTransition;
|
10559 |
+
}(_react.default.Component);
|
10560 |
+
|
10561 |
+
ReplaceTransition.propTypes = process.env.NODE_ENV !== "production" ? {
|
10562 |
+
in: _propTypes.default.bool.isRequired,
|
10563 |
+
children: function children(props, propName) {
|
10564 |
+
if (_react.default.Children.count(props[propName]) !== 2) return new Error("\"" + propName + "\" must be exactly two transition components.");
|
10565 |
+
return null;
|
10566 |
+
}
|
10567 |
+
} : {};
|
10568 |
+
var _default = ReplaceTransition;
|
10569 |
+
exports.default = _default;
|
10570 |
+
module.exports = exports["default"];
|
10571 |
+
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)))
|
10572 |
+
|
10573 |
+
/***/ }),
|
10574 |
+
/* 56 */
|
10575 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10576 |
+
|
10577 |
+
"use strict";
|
10578 |
+
|
10579 |
+
|
10580 |
+
exports.__esModule = true;
|
10581 |
+
exports.getChildMapping = getChildMapping;
|
10582 |
+
exports.mergeChildMappings = mergeChildMappings;
|
10583 |
+
exports.getInitialChildMapping = getInitialChildMapping;
|
10584 |
+
exports.getNextChildMapping = getNextChildMapping;
|
10585 |
+
|
10586 |
+
var _react = __webpack_require__(2);
|
10587 |
+
|
10588 |
+
/**
|
10589 |
+
* Given `this.props.children`, return an object mapping key to child.
|
10590 |
+
*
|
10591 |
+
* @param {*} children `this.props.children`
|
10592 |
+
* @return {object} Mapping of key to child
|
10593 |
+
*/
|
10594 |
+
function getChildMapping(children, mapFn) {
|
10595 |
+
var mapper = function mapper(child) {
|
10596 |
+
return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;
|
10597 |
+
};
|
10598 |
+
|
10599 |
+
var result = Object.create(null);
|
10600 |
+
if (children) _react.Children.map(children, function (c) {
|
10601 |
+
return c;
|
10602 |
+
}).forEach(function (child) {
|
10603 |
+
// run the map function here instead so that the key is the computed one
|
10604 |
+
result[child.key] = mapper(child);
|
10605 |
+
});
|
10606 |
+
return result;
|
10607 |
+
}
|
10608 |
+
/**
|
10609 |
+
* When you're adding or removing children some may be added or removed in the
|
10610 |
+
* same render pass. We want to show *both* since we want to simultaneously
|
10611 |
+
* animate elements in and out. This function takes a previous set of keys
|
10612 |
+
* and a new set of keys and merges them with its best guess of the correct
|
10613 |
+
* ordering. In the future we may expose some of the utilities in
|
10614 |
+
* ReactMultiChild to make this easy, but for now React itself does not
|
10615 |
+
* directly have this concept of the union of prevChildren and nextChildren
|
10616 |
+
* so we implement it here.
|
10617 |
+
*
|
10618 |
+
* @param {object} prev prev children as returned from
|
10619 |
+
* `ReactTransitionChildMapping.getChildMapping()`.
|
10620 |
+
* @param {object} next next children as returned from
|
10621 |
+
* `ReactTransitionChildMapping.getChildMapping()`.
|
10622 |
+
* @return {object} a key set that contains all keys in `prev` and all keys
|
10623 |
+
* in `next` in a reasonable order.
|
10624 |
+
*/
|
10625 |
+
|
10626 |
+
|
10627 |
+
function mergeChildMappings(prev, next) {
|
10628 |
+
prev = prev || {};
|
10629 |
+
next = next || {};
|
10630 |
+
|
10631 |
+
function getValueForKey(key) {
|
10632 |
+
return key in next ? next[key] : prev[key];
|
10633 |
+
} // For each key of `next`, the list of keys to insert before that key in
|
10634 |
+
// the combined list
|
10635 |
+
|
10636 |
+
|
10637 |
+
var nextKeysPending = Object.create(null);
|
10638 |
+
var pendingKeys = [];
|
10639 |
+
|
10640 |
+
for (var prevKey in prev) {
|
10641 |
+
if (prevKey in next) {
|
10642 |
+
if (pendingKeys.length) {
|
10643 |
+
nextKeysPending[prevKey] = pendingKeys;
|
10644 |
+
pendingKeys = [];
|
10645 |
+
}
|
10646 |
+
} else {
|
10647 |
+
pendingKeys.push(prevKey);
|
10648 |
+
}
|
10649 |
+
}
|
10650 |
+
|
10651 |
+
var i;
|
10652 |
+
var childMapping = {};
|
10653 |
+
|
10654 |
+
for (var nextKey in next) {
|
10655 |
+
if (nextKeysPending[nextKey]) {
|
10656 |
+
for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
10657 |
+
var pendingNextKey = nextKeysPending[nextKey][i];
|
10658 |
+
childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
10659 |
+
}
|
10660 |
+
}
|
10661 |
+
|
10662 |
+
childMapping[nextKey] = getValueForKey(nextKey);
|
10663 |
+
} // Finally, add the keys which didn't appear before any key in `next`
|
10664 |
+
|
10665 |
+
|
10666 |
+
for (i = 0; i < pendingKeys.length; i++) {
|
10667 |
+
childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
10668 |
+
}
|
10669 |
+
|
10670 |
+
return childMapping;
|
10671 |
+
}
|
10672 |
+
|
10673 |
+
function getProp(child, prop, props) {
|
10674 |
+
return props[prop] != null ? props[prop] : child.props[prop];
|
10675 |
+
}
|
10676 |
+
|
10677 |
+
function getInitialChildMapping(props, onExited) {
|
10678 |
+
return getChildMapping(props.children, function (child) {
|
10679 |
+
return (0, _react.cloneElement)(child, {
|
10680 |
+
onExited: onExited.bind(null, child),
|
10681 |
+
in: true,
|
10682 |
+
appear: getProp(child, 'appear', props),
|
10683 |
+
enter: getProp(child, 'enter', props),
|
10684 |
+
exit: getProp(child, 'exit', props)
|
10685 |
+
});
|
10686 |
+
});
|
10687 |
+
}
|
10688 |
+
|
10689 |
+
function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
10690 |
+
var nextChildMapping = getChildMapping(nextProps.children);
|
10691 |
+
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
10692 |
+
Object.keys(children).forEach(function (key) {
|
10693 |
+
var child = children[key];
|
10694 |
+
if (!(0, _react.isValidElement)(child)) return;
|
10695 |
+
var hasPrev = key in prevChildMapping;
|
10696 |
+
var hasNext = key in nextChildMapping;
|
10697 |
+
var prevChild = prevChildMapping[key];
|
10698 |
+
var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)
|
10699 |
+
|
10700 |
+
if (hasNext && (!hasPrev || isLeaving)) {
|
10701 |
+
// console.log('entering', key)
|
10702 |
+
children[key] = (0, _react.cloneElement)(child, {
|
10703 |
+
onExited: onExited.bind(null, child),
|
10704 |
+
in: true,
|
10705 |
+
exit: getProp(child, 'exit', nextProps),
|
10706 |
+
enter: getProp(child, 'enter', nextProps)
|
10707 |
+
});
|
10708 |
+
} else if (!hasNext && hasPrev && !isLeaving) {
|
10709 |
+
// item is old (exiting)
|
10710 |
+
// console.log('leaving', key)
|
10711 |
+
children[key] = (0, _react.cloneElement)(child, {
|
10712 |
+
in: false
|
10713 |
+
});
|
10714 |
+
} else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {
|
10715 |
+
// item hasn't changed transition states
|
10716 |
+
// copy over the last transition props;
|
10717 |
+
// console.log('unchanged', key)
|
10718 |
+
children[key] = (0, _react.cloneElement)(child, {
|
10719 |
+
onExited: onExited.bind(null, child),
|
10720 |
+
in: prevChild.props.in,
|
10721 |
+
exit: getProp(child, 'exit', nextProps),
|
10722 |
+
enter: getProp(child, 'enter', nextProps)
|
10723 |
+
});
|
10724 |
+
}
|
10725 |
+
});
|
10726 |
+
return children;
|
10727 |
+
}
|
10728 |
+
|
10729 |
+
/***/ }),
|
10730 |
+
/* 57 */
|
10731 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10732 |
+
|
10733 |
+
module.exports = { "default": __webpack_require__(100), __esModule: true };
|
10734 |
+
|
10735 |
+
/***/ }),
|
10736 |
+
/* 58 */
|
10737 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10738 |
+
|
10739 |
+
__webpack_require__(101);
|
10740 |
+
var global = __webpack_require__(5);
|
10741 |
+
var hide = __webpack_require__(13);
|
10742 |
+
var Iterators = __webpack_require__(23);
|
10743 |
+
var TO_STRING_TAG = __webpack_require__(4)('toStringTag');
|
10744 |
+
|
10745 |
+
var DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +
|
10746 |
+
'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +
|
10747 |
+
'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +
|
10748 |
+
'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +
|
10749 |
+
'TextTrackList,TouchList').split(',');
|
10750 |
+
|
10751 |
+
for (var i = 0; i < DOMIterables.length; i++) {
|
10752 |
+
var NAME = DOMIterables[i];
|
10753 |
+
var Collection = global[NAME];
|
10754 |
+
var proto = Collection && Collection.prototype;
|
10755 |
+
if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
|
10756 |
+
Iterators[NAME] = Iterators.Array;
|
10757 |
+
}
|
10758 |
+
|
10759 |
+
|
10760 |
+
/***/ }),
|
10761 |
+
/* 59 */
|
10762 |
+
/***/ (function(module, exports) {
|
10763 |
+
|
10764 |
+
var toString = {}.toString;
|
10765 |
+
|
10766 |
+
module.exports = function (it) {
|
10767 |
+
return toString.call(it).slice(8, -1);
|
10768 |
+
};
|
10769 |
+
|
10770 |
+
|
10771 |
+
/***/ }),
|
10772 |
+
/* 60 */
|
10773 |
+
/***/ (function(module, exports) {
|
10774 |
+
|
10775 |
+
// 7.2.1 RequireObjectCoercible(argument)
|
10776 |
+
module.exports = function (it) {
|
10777 |
+
if (it == undefined) throw TypeError("Can't call method on " + it);
|
10778 |
+
return it;
|
10779 |
+
};
|
10780 |
+
|
10781 |
+
|
10782 |
+
/***/ }),
|
10783 |
+
/* 61 */
|
10784 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10785 |
+
|
10786 |
+
// 7.1.1 ToPrimitive(input [, PreferredType])
|
10787 |
+
var isObject = __webpack_require__(15);
|
10788 |
+
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
|
10789 |
+
// and the second argument - flag - preferred type is a string
|
10790 |
+
module.exports = function (it, S) {
|
10791 |
+
if (!isObject(it)) return it;
|
10792 |
+
var fn, val;
|
10793 |
+
if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
10794 |
+
if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
|
10795 |
+
if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
|
10796 |
+
throw TypeError("Can't convert object to primitive value");
|
10797 |
+
};
|
10798 |
+
|
10799 |
+
|
10800 |
+
/***/ }),
|
10801 |
+
/* 62 */
|
10802 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10803 |
+
|
10804 |
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
10805 |
+
var anObject = __webpack_require__(14);
|
10806 |
+
var dPs = __webpack_require__(107);
|
10807 |
+
var enumBugKeys = __webpack_require__(66);
|
10808 |
+
var IE_PROTO = __webpack_require__(64)('IE_PROTO');
|
10809 |
+
var Empty = function () { /* empty */ };
|
10810 |
+
var PROTOTYPE = 'prototype';
|
10811 |
+
|
10812 |
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
10813 |
+
var createDict = function () {
|
10814 |
+
// Thrash, waste and sodomy: IE GC bug
|
10815 |
+
var iframe = __webpack_require__(74)('iframe');
|
10816 |
+
var i = enumBugKeys.length;
|
10817 |
+
var lt = '<';
|
10818 |
+
var gt = '>';
|
10819 |
+
var iframeDocument;
|
10820 |
+
iframe.style.display = 'none';
|
10821 |
+
__webpack_require__(111).appendChild(iframe);
|
10822 |
+
iframe.src = 'javascript:'; // eslint-disable-line no-script-url
|
10823 |
+
// createDict = iframe.contentWindow.Object;
|
10824 |
+
// html.removeChild(iframe);
|
10825 |
+
iframeDocument = iframe.contentWindow.document;
|
10826 |
+
iframeDocument.open();
|
10827 |
+
iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
|
10828 |
+
iframeDocument.close();
|
10829 |
+
createDict = iframeDocument.F;
|
10830 |
+
while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
|
10831 |
+
return createDict();
|
10832 |
+
};
|
10833 |
+
|
10834 |
+
module.exports = Object.create || function create(O, Properties) {
|
10835 |
+
var result;
|
10836 |
+
if (O !== null) {
|
10837 |
+
Empty[PROTOTYPE] = anObject(O);
|
10838 |
+
result = new Empty();
|
10839 |
+
Empty[PROTOTYPE] = null;
|
10840 |
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
10841 |
+
result[IE_PROTO] = O;
|
10842 |
+
} else result = createDict();
|
10843 |
+
return Properties === undefined ? result : dPs(result, Properties);
|
10844 |
+
};
|
10845 |
+
|
10846 |
+
|
10847 |
+
/***/ }),
|
10848 |
+
/* 63 */
|
10849 |
+
/***/ (function(module, exports) {
|
10850 |
+
|
10851 |
+
// 7.1.4 ToInteger
|
10852 |
+
var ceil = Math.ceil;
|
10853 |
+
var floor = Math.floor;
|
10854 |
+
module.exports = function (it) {
|
10855 |
+
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
|
10856 |
+
};
|
10857 |
+
|
10858 |
+
|
10859 |
+
/***/ }),
|
10860 |
+
/* 64 */
|
10861 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10862 |
+
|
10863 |
+
var shared = __webpack_require__(65)('keys');
|
10864 |
+
var uid = __webpack_require__(28);
|
10865 |
+
module.exports = function (key) {
|
10866 |
+
return shared[key] || (shared[key] = uid(key));
|
10867 |
+
};
|
10868 |
+
|
10869 |
+
|
10870 |
+
/***/ }),
|
10871 |
+
/* 65 */
|
10872 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10873 |
+
|
10874 |
+
var core = __webpack_require__(1);
|
10875 |
+
var global = __webpack_require__(5);
|
10876 |
+
var SHARED = '__core-js_shared__';
|
10877 |
+
var store = global[SHARED] || (global[SHARED] = {});
|
10878 |
+
|
10879 |
+
(module.exports = function (key, value) {
|
10880 |
+
return store[key] || (store[key] = value !== undefined ? value : {});
|
10881 |
+
})('versions', []).push({
|
10882 |
+
version: core.version,
|
10883 |
+
mode: __webpack_require__(25) ? 'pure' : 'global',
|
10884 |
+
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
10885 |
+
});
|
10886 |
+
|
10887 |
+
|
10888 |
+
/***/ }),
|
10889 |
+
/* 66 */
|
10890 |
+
/***/ (function(module, exports) {
|
10891 |
+
|
10892 |
+
// IE 8- don't enum bug keys
|
10893 |
+
module.exports = (
|
10894 |
+
'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
|
10895 |
+
).split(',');
|
10896 |
+
|
10897 |
+
|
10898 |
+
/***/ }),
|
10899 |
+
/* 67 */
|
10900 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10901 |
+
|
10902 |
+
var def = __webpack_require__(10).f;
|
10903 |
+
var has = __webpack_require__(12);
|
10904 |
+
var TAG = __webpack_require__(4)('toStringTag');
|
10905 |
+
|
10906 |
+
module.exports = function (it, tag, stat) {
|
10907 |
+
if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
|
10908 |
+
};
|
10909 |
+
|
10910 |
+
|
10911 |
+
/***/ }),
|
10912 |
+
/* 68 */
|
10913 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10914 |
+
|
10915 |
+
"use strict";
|
10916 |
+
|
10917 |
+
var $at = __webpack_require__(112)(true);
|
10918 |
+
|
10919 |
+
// 21.1.3.27 String.prototype[@@iterator]()
|
10920 |
+
__webpack_require__(71)(String, 'String', function (iterated) {
|
10921 |
+
this._t = String(iterated); // target
|
10922 |
+
this._i = 0; // next index
|
10923 |
+
// 21.1.5.2.1 %StringIteratorPrototype%.next()
|
10924 |
+
}, function () {
|
10925 |
+
var O = this._t;
|
10926 |
+
var index = this._i;
|
10927 |
+
var point;
|
10928 |
+
if (index >= O.length) return { value: undefined, done: true };
|
10929 |
+
point = $at(O, index);
|
10930 |
+
this._i += point.length;
|
10931 |
+
return { value: point, done: false };
|
10932 |
+
});
|
10933 |
+
|
10934 |
+
|
10935 |
+
/***/ }),
|
10936 |
+
/* 69 */
|
10937 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10938 |
+
|
10939 |
+
exports.f = __webpack_require__(4);
|
10940 |
+
|
10941 |
+
|
10942 |
+
/***/ }),
|
10943 |
+
/* 70 */
|
10944 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10945 |
+
|
10946 |
+
var global = __webpack_require__(5);
|
10947 |
+
var core = __webpack_require__(1);
|
10948 |
+
var LIBRARY = __webpack_require__(25);
|
10949 |
+
var wksExt = __webpack_require__(69);
|
10950 |
+
var defineProperty = __webpack_require__(10).f;
|
10951 |
+
module.exports = function (name) {
|
10952 |
+
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
|
10953 |
+
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
|
10954 |
+
};
|
10955 |
+
|
10956 |
+
|
10957 |
+
/***/ }),
|
10958 |
+
/* 71 */
|
10959 |
+
/***/ (function(module, exports, __webpack_require__) {
|
10960 |
+
|
10961 |
+
"use strict";
|
10962 |
+
|
10963 |
+
var LIBRARY = __webpack_require__(25);
|
10964 |
+
var $export = __webpack_require__(9);
|
10965 |
+
var redefine = __webpack_require__(75);
|
10966 |
+
var hide = __webpack_require__(13);
|
10967 |
+
var Iterators = __webpack_require__(23);
|
10968 |
+
var $iterCreate = __webpack_require__(106);
|
10969 |
+
var setToStringTag = __webpack_require__(67);
|
10970 |
+
var getPrototypeOf = __webpack_require__(77);
|
10971 |
+
var ITERATOR = __webpack_require__(4)('iterator');
|
10972 |
+
var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
|
10973 |
+
var FF_ITERATOR = '@@iterator';
|
10974 |
+
var KEYS = 'keys';
|
10975 |
+
var VALUES = 'values';
|
10976 |
+
|
10977 |
+
var returnThis = function () { return this; };
|
10978 |
+
|
10979 |
+
module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
|
10980 |
+
$iterCreate(Constructor, NAME, next);
|
10981 |
+
var getMethod = function (kind) {
|
10982 |
+
if (!BUGGY && kind in proto) return proto[kind];
|
10983 |
+
switch (kind) {
|
10984 |
+
case KEYS: return function keys() { return new Constructor(this, kind); };
|
10985 |
+
case VALUES: return function values() { return new Constructor(this, kind); };
|
10986 |
+
} return function entries() { return new Constructor(this, kind); };
|
10987 |
+
};
|
10988 |
+
var TAG = NAME + ' Iterator';
|
10989 |
+
var DEF_VALUES = DEFAULT == VALUES;
|
10990 |
+
var VALUES_BUG = false;
|
10991 |
+
var proto = Base.prototype;
|
10992 |
+
var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
|
10993 |
+
var $default = $native || getMethod(DEFAULT);
|
10994 |
+
var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
|
10995 |
+
var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
|
10996 |
+
var methods, key, IteratorPrototype;
|
10997 |
+
// Fix native
|
10998 |
+
if ($anyNative) {
|
10999 |
+
IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
|
11000 |
+
if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
|
11001 |
+
// Set @@toStringTag to native iterators
|
11002 |
+
setToStringTag(IteratorPrototype, TAG, true);
|
11003 |
+
// fix for some old engines
|
11004 |
+
if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
|
11005 |
+
}
|
11006 |
+
}
|
11007 |
+
// fix Array#{values, @@iterator}.name in V8 / FF
|
11008 |
+
if (DEF_VALUES && $native && $native.name !== VALUES) {
|
11009 |
+
VALUES_BUG = true;
|
11010 |
+
$default = function values() { return $native.call(this); };
|
11011 |
+
}
|
11012 |
+
// Define iterator
|
11013 |
+
if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
|
11014 |
+
hide(proto, ITERATOR, $default);
|
11015 |
+
}
|
11016 |
+
// Plug for library
|
11017 |
+
Iterators[NAME] = $default;
|
11018 |
+
Iterators[TAG] = returnThis;
|
11019 |
+
if (DEFAULT) {
|
11020 |
+
methods = {
|
11021 |
+
values: DEF_VALUES ? $default : getMethod(VALUES),
|
11022 |
+
keys: IS_SET ? $default : getMethod(KEYS),
|
11023 |
+
entries: $entries
|
11024 |
+
};
|
11025 |
+
if (FORCED) for (key in methods) {
|
11026 |
+
if (!(key in proto)) redefine(proto, key, methods[key]);
|
11027 |
+
} else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
|
11028 |
+
}
|
11029 |
+
return methods;
|
11030 |
+
};
|
11031 |
+
|
11032 |
+
|
11033 |
+
/***/ }),
|
11034 |
+
/* 72 */
|
11035 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11036 |
+
|
11037 |
+
// optional / simple context binding
|
11038 |
+
var aFunction = __webpack_require__(105);
|
11039 |
+
module.exports = function (fn, that, length) {
|
11040 |
+
aFunction(fn);
|
11041 |
+
if (that === undefined) return fn;
|
11042 |
+
switch (length) {
|
11043 |
+
case 1: return function (a) {
|
11044 |
+
return fn.call(that, a);
|
11045 |
+
};
|
11046 |
+
case 2: return function (a, b) {
|
11047 |
+
return fn.call(that, a, b);
|
11048 |
+
};
|
11049 |
+
case 3: return function (a, b, c) {
|
11050 |
+
return fn.call(that, a, b, c);
|
11051 |
+
};
|
11052 |
+
}
|
11053 |
+
return function (/* ...args */) {
|
11054 |
+
return fn.apply(that, arguments);
|
11055 |
+
};
|
11056 |
+
};
|
11057 |
+
|
11058 |
+
|
11059 |
+
/***/ }),
|
11060 |
+
/* 73 */
|
11061 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11062 |
+
|
11063 |
+
module.exports = !__webpack_require__(11) && !__webpack_require__(24)(function () {
|
11064 |
+
return Object.defineProperty(__webpack_require__(74)('div'), 'a', { get: function () { return 7; } }).a != 7;
|
11065 |
+
});
|
11066 |
+
|
11067 |
+
|
11068 |
+
/***/ }),
|
11069 |
+
/* 74 */
|
11070 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11071 |
+
|
11072 |
+
var isObject = __webpack_require__(15);
|
11073 |
+
var document = __webpack_require__(5).document;
|
11074 |
+
// typeof document.createElement is 'object' in old IE
|
11075 |
+
var is = isObject(document) && isObject(document.createElement);
|
11076 |
+
module.exports = function (it) {
|
11077 |
+
return is ? document.createElement(it) : {};
|
11078 |
+
};
|
11079 |
+
|
11080 |
+
|
11081 |
+
/***/ }),
|
11082 |
+
/* 75 */
|
11083 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11084 |
+
|
11085 |
+
module.exports = __webpack_require__(13);
|
11086 |
+
|
11087 |
+
|
11088 |
+
/***/ }),
|
11089 |
+
/* 76 */
|
11090 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11091 |
+
|
11092 |
+
var has = __webpack_require__(12);
|
11093 |
+
var toIObject = __webpack_require__(8);
|
11094 |
+
var arrayIndexOf = __webpack_require__(108)(false);
|
11095 |
+
var IE_PROTO = __webpack_require__(64)('IE_PROTO');
|
11096 |
+
|
11097 |
+
module.exports = function (object, names) {
|
11098 |
+
var O = toIObject(object);
|
11099 |
+
var i = 0;
|
11100 |
+
var result = [];
|
11101 |
+
var key;
|
11102 |
+
for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
|
11103 |
+
// Don't enum bug & hidden keys
|
11104 |
+
while (names.length > i) if (has(O, key = names[i++])) {
|
11105 |
+
~arrayIndexOf(result, key) || result.push(key);
|
11106 |
+
}
|
11107 |
+
return result;
|
11108 |
+
};
|
11109 |
+
|
11110 |
+
|
11111 |
+
/***/ }),
|
11112 |
+
/* 77 */
|
11113 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11114 |
+
|
11115 |
+
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
|
11116 |
+
var has = __webpack_require__(12);
|
11117 |
+
var toObject = __webpack_require__(78);
|
11118 |
+
var IE_PROTO = __webpack_require__(64)('IE_PROTO');
|
11119 |
+
var ObjectProto = Object.prototype;
|
11120 |
+
|
11121 |
+
module.exports = Object.getPrototypeOf || function (O) {
|
11122 |
+
O = toObject(O);
|
11123 |
+
if (has(O, IE_PROTO)) return O[IE_PROTO];
|
11124 |
+
if (typeof O.constructor == 'function' && O instanceof O.constructor) {
|
11125 |
+
return O.constructor.prototype;
|
11126 |
+
} return O instanceof Object ? ObjectProto : null;
|
11127 |
+
};
|
11128 |
+
|
11129 |
+
|
11130 |
+
/***/ }),
|
11131 |
+
/* 78 */
|
11132 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11133 |
+
|
11134 |
+
// 7.1.13 ToObject(argument)
|
11135 |
+
var defined = __webpack_require__(60);
|
11136 |
+
module.exports = function (it) {
|
11137 |
+
return Object(defined(it));
|
11138 |
+
};
|
11139 |
+
|
11140 |
+
|
11141 |
+
/***/ }),
|
11142 |
+
/* 79 */
|
11143 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11144 |
+
|
11145 |
+
// getting tag from 19.1.3.6 Object.prototype.toString()
|
11146 |
+
var cof = __webpack_require__(59);
|
11147 |
+
var TAG = __webpack_require__(4)('toStringTag');
|
11148 |
+
// ES3 wrong here
|
11149 |
+
var ARG = cof(function () { return arguments; }()) == 'Arguments';
|
11150 |
+
|
11151 |
+
// fallback for IE11 Script Access Denied error
|
11152 |
+
var tryGet = function (it, key) {
|
11153 |
+
try {
|
11154 |
+
return it[key];
|
11155 |
+
} catch (e) { /* empty */ }
|
11156 |
+
};
|
11157 |
+
|
11158 |
+
module.exports = function (it) {
|
11159 |
+
var O, T, B;
|
11160 |
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
11161 |
+
// @@toStringTag case
|
11162 |
+
: typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
|
11163 |
+
// builtinTag case
|
11164 |
+
: ARG ? cof(O)
|
11165 |
+
// ES3 arguments fallback
|
11166 |
+
: (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
|
11167 |
+
};
|
11168 |
+
|
11169 |
+
|
11170 |
+
/***/ }),
|
11171 |
+
/* 80 */
|
11172 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11173 |
+
|
11174 |
+
"use strict";
|
11175 |
+
|
11176 |
+
|
11177 |
+
exports.__esModule = true;
|
11178 |
+
|
11179 |
+
var _isIterable2 = __webpack_require__(115);
|
11180 |
+
|
11181 |
+
var _isIterable3 = _interopRequireDefault(_isIterable2);
|
11182 |
+
|
11183 |
+
var _getIterator2 = __webpack_require__(57);
|
11184 |
+
|
11185 |
+
var _getIterator3 = _interopRequireDefault(_getIterator2);
|
11186 |
+
|
11187 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11188 |
+
|
11189 |
+
exports.default = function () {
|
11190 |
+
function sliceIterator(arr, i) {
|
11191 |
+
var _arr = [];
|
11192 |
+
var _n = true;
|
11193 |
+
var _d = false;
|
11194 |
+
var _e = undefined;
|
11195 |
+
|
11196 |
+
try {
|
11197 |
+
for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
11198 |
+
_arr.push(_s.value);
|
11199 |
+
|
11200 |
+
if (i && _arr.length === i) break;
|
11201 |
+
}
|
11202 |
+
} catch (err) {
|
11203 |
+
_d = true;
|
11204 |
+
_e = err;
|
11205 |
+
} finally {
|
11206 |
+
try {
|
11207 |
+
if (!_n && _i["return"]) _i["return"]();
|
11208 |
+
} finally {
|
11209 |
+
if (_d) throw _e;
|
11210 |
+
}
|
11211 |
+
}
|
11212 |
+
|
11213 |
+
return _arr;
|
11214 |
+
}
|
11215 |
+
|
11216 |
+
return function (arr, i) {
|
11217 |
+
if (Array.isArray(arr)) {
|
11218 |
+
return arr;
|
11219 |
+
} else if ((0, _isIterable3.default)(Object(arr))) {
|
11220 |
+
return sliceIterator(arr, i);
|
11221 |
+
} else {
|
11222 |
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
11223 |
+
}
|
11224 |
+
};
|
11225 |
+
}();
|
11226 |
+
|
11227 |
+
/***/ }),
|
11228 |
+
/* 81 */
|
11229 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11230 |
+
|
11231 |
+
module.exports = { "default": __webpack_require__(118), __esModule: true };
|
11232 |
+
|
11233 |
+
/***/ }),
|
11234 |
+
/* 82 */
|
11235 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11236 |
+
|
11237 |
+
module.exports = { "default": __webpack_require__(121), __esModule: true };
|
11238 |
+
|
11239 |
+
/***/ }),
|
11240 |
+
/* 83 */
|
11241 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11242 |
+
|
11243 |
+
"use strict";
|
11244 |
+
|
11245 |
+
|
11246 |
+
exports.__esModule = true;
|
11247 |
+
|
11248 |
+
exports.default = function (instance, Constructor) {
|
11249 |
+
if (!(instance instanceof Constructor)) {
|
11250 |
+
throw new TypeError("Cannot call a class as a function");
|
11251 |
+
}
|
11252 |
+
};
|
11253 |
+
|
11254 |
+
/***/ }),
|
11255 |
+
/* 84 */
|
11256 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11257 |
+
|
11258 |
+
"use strict";
|
11259 |
+
|
11260 |
+
|
11261 |
+
exports.__esModule = true;
|
11262 |
+
|
11263 |
+
var _defineProperty = __webpack_require__(124);
|
11264 |
+
|
11265 |
+
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
11266 |
+
|
11267 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11268 |
+
|
11269 |
+
exports.default = function () {
|
11270 |
+
function defineProperties(target, props) {
|
11271 |
+
for (var i = 0; i < props.length; i++) {
|
11272 |
+
var descriptor = props[i];
|
11273 |
+
descriptor.enumerable = descriptor.enumerable || false;
|
11274 |
+
descriptor.configurable = true;
|
11275 |
+
if ("value" in descriptor) descriptor.writable = true;
|
11276 |
+
(0, _defineProperty2.default)(target, descriptor.key, descriptor);
|
11277 |
+
}
|
11278 |
+
}
|
11279 |
+
|
11280 |
+
return function (Constructor, protoProps, staticProps) {
|
11281 |
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
11282 |
+
if (staticProps) defineProperties(Constructor, staticProps);
|
11283 |
+
return Constructor;
|
11284 |
+
};
|
11285 |
+
}();
|
11286 |
+
|
11287 |
+
/***/ }),
|
11288 |
+
/* 85 */
|
11289 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11290 |
+
|
11291 |
+
"use strict";
|
11292 |
+
|
11293 |
+
|
11294 |
+
exports.__esModule = true;
|
11295 |
+
|
11296 |
+
var _typeof2 = __webpack_require__(86);
|
11297 |
+
|
11298 |
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
11299 |
+
|
11300 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11301 |
+
|
11302 |
+
exports.default = function (self, call) {
|
11303 |
+
if (!self) {
|
11304 |
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
11305 |
+
}
|
11306 |
+
|
11307 |
+
return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
|
11308 |
+
};
|
11309 |
+
|
11310 |
+
/***/ }),
|
11311 |
+
/* 86 */
|
11312 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11313 |
+
|
11314 |
+
"use strict";
|
11315 |
+
|
11316 |
+
|
11317 |
+
exports.__esModule = true;
|
11318 |
+
|
11319 |
+
var _iterator = __webpack_require__(127);
|
11320 |
+
|
11321 |
+
var _iterator2 = _interopRequireDefault(_iterator);
|
11322 |
+
|
11323 |
+
var _symbol = __webpack_require__(129);
|
11324 |
+
|
11325 |
+
var _symbol2 = _interopRequireDefault(_symbol);
|
11326 |
+
|
11327 |
+
var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
|
11328 |
+
|
11329 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11330 |
+
|
11331 |
+
exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
|
11332 |
+
return typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
11333 |
+
} : function (obj) {
|
11334 |
+
return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
|
11335 |
+
};
|
11336 |
+
|
11337 |
+
/***/ }),
|
11338 |
+
/* 87 */
|
11339 |
+
/***/ (function(module, exports) {
|
11340 |
+
|
11341 |
+
exports.f = Object.getOwnPropertySymbols;
|
11342 |
+
|
11343 |
+
|
11344 |
+
/***/ }),
|
11345 |
+
/* 88 */
|
11346 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11347 |
+
|
11348 |
+
// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
|
11349 |
+
var $keys = __webpack_require__(76);
|
11350 |
+
var hiddenKeys = __webpack_require__(66).concat('length', 'prototype');
|
11351 |
+
|
11352 |
+
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
11353 |
+
return $keys(O, hiddenKeys);
|
11354 |
+
};
|
11355 |
+
|
11356 |
+
|
11357 |
+
/***/ }),
|
11358 |
+
/* 89 */
|
11359 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11360 |
+
|
11361 |
+
var pIE = __webpack_require__(29);
|
11362 |
+
var createDesc = __webpack_require__(26);
|
11363 |
+
var toIObject = __webpack_require__(8);
|
11364 |
+
var toPrimitive = __webpack_require__(61);
|
11365 |
+
var has = __webpack_require__(12);
|
11366 |
+
var IE8_DOM_DEFINE = __webpack_require__(73);
|
11367 |
+
var gOPD = Object.getOwnPropertyDescriptor;
|
11368 |
+
|
11369 |
+
exports.f = __webpack_require__(11) ? gOPD : function getOwnPropertyDescriptor(O, P) {
|
11370 |
+
O = toIObject(O);
|
11371 |
+
P = toPrimitive(P, true);
|
11372 |
+
if (IE8_DOM_DEFINE) try {
|
11373 |
+
return gOPD(O, P);
|
11374 |
+
} catch (e) { /* empty */ }
|
11375 |
+
if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);
|
11376 |
+
};
|
11377 |
+
|
11378 |
+
|
11379 |
+
/***/ }),
|
11380 |
+
/* 90 */
|
11381 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11382 |
+
|
11383 |
+
"use strict";
|
11384 |
+
|
11385 |
+
|
11386 |
+
exports.__esModule = true;
|
11387 |
+
|
11388 |
+
var _setPrototypeOf = __webpack_require__(139);
|
11389 |
+
|
11390 |
+
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
|
11391 |
+
|
11392 |
+
var _create = __webpack_require__(143);
|
11393 |
+
|
11394 |
+
var _create2 = _interopRequireDefault(_create);
|
11395 |
+
|
11396 |
+
var _typeof2 = __webpack_require__(86);
|
11397 |
+
|
11398 |
+
var _typeof3 = _interopRequireDefault(_typeof2);
|
11399 |
+
|
11400 |
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
11401 |
+
|
11402 |
+
exports.default = function (subClass, superClass) {
|
11403 |
+
if (typeof superClass !== "function" && superClass !== null) {
|
11404 |
+
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
|
11405 |
+
}
|
11406 |
+
|
11407 |
+
subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
|
11408 |
+
constructor: {
|
11409 |
+
value: subClass,
|
11410 |
+
enumerable: false,
|
11411 |
+
writable: true,
|
11412 |
+
configurable: true
|
11413 |
+
}
|
11414 |
+
});
|
11415 |
+
if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
|
11416 |
+
};
|
11417 |
+
|
11418 |
+
/***/ }),
|
11419 |
+
/* 91 */,
|
11420 |
+
/* 92 */,
|
11421 |
+
/* 93 */
|
11422 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11423 |
+
|
11424 |
+
"use strict";
|
11425 |
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
11426 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__simple_sitemap__ = __webpack_require__(94);
|
11427 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__simple_sitemap_group__ = __webpack_require__(96);
|
11428 |
+
/**
|
11429 |
+
* Import blocks
|
11430 |
+
*/
|
11431 |
+
|
11432 |
+
|
11433 |
+
|
11434 |
+
|
11435 |
+
/***/ }),
|
11436 |
+
/* 94 */
|
11437 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11438 |
+
|
11439 |
+
"use strict";
|
11440 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__ = __webpack_require__(30);
|
11441 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify__);
|
11442 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_select__ = __webpack_require__(16);
|
11443 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_checkbox__ = __webpack_require__(95);
|
11444 |
+
|
11445 |
+
// BLOCK DEPENDENCIES
|
11446 |
+
|
11447 |
+
// Import chart components/objects
|
11448 |
+
//import attributes from './components/attributes';
|
11449 |
+
//import BarChart from './components/bar-chart';
|
11450 |
+
//import InspectorPanel from './components/inspector-panel';
|
11451 |
+
//import IsSelected from './components/is-selected';
|
11452 |
+
//import BlockAlignToolbar from '../_shared-components/block-align-toolbar';
|
11453 |
+
|
11454 |
+
// Import libraries and functionality
|
11455 |
+
//import classnames from 'classnames';
|
11456 |
+
|
11457 |
+
// Import styles and media assets
|
11458 |
+
//import customIcon from './components/icon';
|
11459 |
+
//import './styles/style.scss';
|
11460 |
+
//import './styles/editor.scss';
|
11461 |
+
|
11462 |
+
|
11463 |
+
|
11464 |
+
|
11465 |
+
// Import core block libraries
|
11466 |
+
var __ = wp.i18n.__;
|
11467 |
+
var InspectorControls = wp.blockEditor.InspectorControls;
|
11468 |
+
var _wp$components = wp.components,
|
11469 |
+
PanelBody = _wp$components.PanelBody,
|
11470 |
+
PanelRow = _wp$components.PanelRow,
|
11471 |
+
ServerSideRender = _wp$components.ServerSideRender,
|
11472 |
+
TextControl = _wp$components.TextControl,
|
11473 |
+
RadioControl = _wp$components.RadioControl,
|
11474 |
+
SelectControl = _wp$components.SelectControl;
|
11475 |
+
var registerBlockType = wp.blocks.registerBlockType;
|
11476 |
+
var Fragment = wp.element.Fragment;
|
11477 |
+
|
11478 |
+
/**
|
11479 |
+
* Register block
|
11480 |
+
*/
|
11481 |
+
|
11482 |
+
/* unused harmony default export */ var _unused_webpack_default_export = (registerBlockType('wpgoplugins/simple-sitemap-block', {
|
11483 |
+
title: 'Simple Sitemap',
|
11484 |
+
icon: 'editor-ul',
|
11485 |
+
category: 'simple-sitemap',
|
11486 |
+
attributes: {
|
11487 |
+
render_tab: {
|
11488 |
+
type: 'boolean',
|
11489 |
+
default: false
|
11490 |
+
},
|
11491 |
+
gutenberg_block: {
|
11492 |
+
type: 'boolean',
|
11493 |
+
default: true
|
11494 |
+
},
|
11495 |
+
orderby: {
|
11496 |
+
type: 'string',
|
11497 |
+
default: 'title'
|
11498 |
+
},
|
11499 |
+
order: {
|
11500 |
+
type: 'string',
|
11501 |
+
default: 'asc'
|
11502 |
+
},
|
11503 |
+
block_post_types: {
|
11504 |
+
type: 'string',
|
11505 |
+
default: '[{ "value": "page", "label": "Page" }]'
|
11506 |
+
},
|
11507 |
+
page_depth: {
|
11508 |
+
type: 'number',
|
11509 |
+
default: 0
|
11510 |
+
},
|
11511 |
+
show_excerpt: {
|
11512 |
+
type: 'boolean',
|
11513 |
+
default: false
|
11514 |
+
},
|
11515 |
+
show_label: {
|
11516 |
+
type: 'boolean',
|
11517 |
+
default: true
|
11518 |
+
},
|
11519 |
+
links: {
|
11520 |
+
type: 'boolean',
|
11521 |
+
default: true
|
11522 |
+
}
|
11523 |
+
},
|
11524 |
+
edit: function edit(props) {
|
11525 |
+
var _props$attributes = props.attributes,
|
11526 |
+
show_excerpt = _props$attributes.show_excerpt,
|
11527 |
+
show_label = _props$attributes.show_label,
|
11528 |
+
links = _props$attributes.links,
|
11529 |
+
page_depth = _props$attributes.page_depth,
|
11530 |
+
nofollow = _props$attributes.nofollow,
|
11531 |
+
image = _props$attributes.image,
|
11532 |
+
list_icon = _props$attributes.list_icon,
|
11533 |
+
max_width = _props$attributes.max_width,
|
11534 |
+
responsive_breakpoint = _props$attributes.responsive_breakpoint,
|
11535 |
+
sitemap_container_margin = _props$attributes.sitemap_container_margin,
|
11536 |
+
sitemap_item_line_height = _props$attributes.sitemap_item_line_height,
|
11537 |
+
tab_color = _props$attributes.tab_color,
|
11538 |
+
tab_header_bg = _props$attributes.tab_header_bg,
|
11539 |
+
post_type_label_padding = _props$attributes.post_type_label_padding,
|
11540 |
+
post_type_label_font_size = _props$attributes.post_type_label_font_size,
|
11541 |
+
render_tab = _props$attributes.render_tab,
|
11542 |
+
block_post_types = _props$attributes.block_post_types,
|
11543 |
+
exclude = _props$attributes.exclude,
|
11544 |
+
include = _props$attributes.include,
|
11545 |
+
order = _props$attributes.order,
|
11546 |
+
orderby = _props$attributes.orderby,
|
11547 |
+
className = props.className,
|
11548 |
+
setAttributes = props.setAttributes,
|
11549 |
+
isSelected = props.isSelected,
|
11550 |
+
attributes = props.attributes;
|
11551 |
+
|
11552 |
+
//const defaultValue = JSON.parse(props.attributes.block_post_types);
|
11553 |
+
//console.log(defaultValue);
|
11554 |
+
//console.log(typeof props.attributes.block_post_types, props.attributes.block_post_types);
|
11555 |
+
//console.log(JSON.parse(props.attributes.block_post_types));
|
11556 |
+
|
11557 |
+
function updateToggleTabs(isChecked) {
|
11558 |
+
setAttributes({ render_tab: isChecked });
|
11559 |
+
}
|
11560 |
+
|
11561 |
+
function updateExcerpt(isChecked) {
|
11562 |
+
setAttributes({ show_excerpt: isChecked });
|
11563 |
+
}
|
11564 |
+
|
11565 |
+
function updateShowLabel(isChecked) {
|
11566 |
+
setAttributes({ show_label: isChecked });
|
11567 |
+
}
|
11568 |
+
|
11569 |
+
function updateLinks(isChecked) {
|
11570 |
+
setAttributes({ links: isChecked });
|
11571 |
+
}
|
11572 |
+
|
11573 |
+
return [wp.element.createElement(
|
11574 |
+
InspectorControls,
|
11575 |
+
null,
|
11576 |
+
wp.element.createElement(
|
11577 |
+
PanelBody,
|
11578 |
+
{ title: __('General Settings', 'simple-sitemap') },
|
11579 |
+
wp.element.createElement(
|
11580 |
+
PanelRow,
|
11581 |
+
null,
|
11582 |
+
wp.element.createElement(
|
11583 |
+
'label',
|
11584 |
+
{ style: { marginBottom: '-14px' }, 'class': 'components-base-control__label' },
|
11585 |
+
'Select post types to display'
|
11586 |
+
)
|
11587 |
+
),
|
11588 |
+
wp.element.createElement(
|
11589 |
+
PanelRow,
|
11590 |
+
null,
|
11591 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1_react_select__["a" /* default */], {
|
11592 |
+
label: 'Title',
|
11593 |
+
defaultValue: JSON.parse(props.attributes.block_post_types),
|
11594 |
+
isMulti: true,
|
11595 |
+
onChange: function onChange(value) {
|
11596 |
+
return props.setAttributes({ block_post_types: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_json_stringify___default()(value) });
|
11597 |
+
},
|
11598 |
+
options: [{ value: 'post', label: 'Post' }, { value: 'page', label: 'Page' }]
|
11599 |
+
})
|
11600 |
+
),
|
11601 |
+
wp.element.createElement(
|
11602 |
+
PanelRow,
|
11603 |
+
null,
|
11604 |
+
wp.element.createElement(
|
11605 |
+
'p',
|
11606 |
+
{ style: { marginTop: '-20px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' } },
|
11607 |
+
'List ',
|
11608 |
+
wp.element.createElement(
|
11609 |
+
'a',
|
11610 |
+
{ href: 'https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types', target: '_blank' },
|
11611 |
+
'more'
|
11612 |
+
),
|
11613 |
+
' post types'
|
11614 |
+
)
|
11615 |
+
),
|
11616 |
+
wp.element.createElement(
|
11617 |
+
PanelRow,
|
11618 |
+
{ className: 'simple-sitemap order mb20' },
|
11619 |
+
wp.element.createElement(SelectControl, {
|
11620 |
+
label: 'Orderby',
|
11621 |
+
value: props.attributes.orderby,
|
11622 |
+
options: [{ label: 'Title', value: 'title' }, { label: 'Date', value: 'date' }, { label: 'ID', value: 'ID' }, { label: 'Author', value: 'author' }, { label: 'Name', value: 'name' }, { label: 'Modified', value: 'modified' }],
|
11623 |
+
onChange: function onChange(value) {
|
11624 |
+
props.setAttributes({ orderby: value });
|
11625 |
+
}
|
11626 |
+
}),
|
11627 |
+
wp.element.createElement(SelectControl, {
|
11628 |
+
label: 'Order',
|
11629 |
+
value: props.attributes.order,
|
11630 |
+
options: [{ label: 'Ascending', value: 'asc' }, { label: 'Descending', value: 'desc' }],
|
11631 |
+
onChange: function onChange(value) {
|
11632 |
+
props.setAttributes({ order: value });
|
11633 |
+
}
|
11634 |
+
})
|
11635 |
+
),
|
11636 |
+
wp.element.createElement(
|
11637 |
+
PanelRow,
|
11638 |
+
{ className: 'simple-sitemap general-chk' },
|
11639 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_excerpt, label: 'Show excerpt', updateCheckbox: updateExcerpt })
|
11640 |
+
),
|
11641 |
+
wp.element.createElement(
|
11642 |
+
PanelRow,
|
11643 |
+
{ className: 'simple-sitemap general-chk' },
|
11644 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_label, label: 'Show post type label', updateCheckbox: updateShowLabel })
|
11645 |
+
),
|
11646 |
+
wp.element.createElement(
|
11647 |
+
PanelRow,
|
11648 |
+
{ className: 'simple-sitemap general-chk' },
|
11649 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: links, label: 'Enable sitemap links', updateCheckbox: updateLinks })
|
11650 |
+
)
|
11651 |
+
),
|
11652 |
+
wp.element.createElement(
|
11653 |
+
PanelBody,
|
11654 |
+
{ title: __('Tab Settings', 'simple-sitemap'), initialOpen: false },
|
11655 |
+
wp.element.createElement(
|
11656 |
+
PanelRow,
|
11657 |
+
{ className: 'simple-sitemap' },
|
11658 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_2__components_checkbox__["a" /* SitemapCheckboxControl */], { value: render_tab, label: 'Enable tabs', updateCheckbox: updateToggleTabs })
|
11659 |
+
)
|
11660 |
+
),
|
11661 |
+
wp.element.createElement(
|
11662 |
+
PanelBody,
|
11663 |
+
{ title: __('Page Settings', 'simple-sitemap'), initialOpen: false },
|
11664 |
+
wp.element.createElement(
|
11665 |
+
PanelRow,
|
11666 |
+
{ className: 'simple-sitemap' },
|
11667 |
+
wp.element.createElement(
|
11668 |
+
'p',
|
11669 |
+
null,
|
11670 |
+
'Affects sitemap pages only.'
|
11671 |
+
)
|
11672 |
+
),
|
11673 |
+
wp.element.createElement(
|
11674 |
+
PanelRow,
|
11675 |
+
{ className: 'simple-sitemap' },
|
11676 |
+
wp.element.createElement(TextControl, {
|
11677 |
+
type: 'number',
|
11678 |
+
label: 'Page indentation',
|
11679 |
+
min: '0',
|
11680 |
+
max: '5',
|
11681 |
+
help: 'Leave at zero for auto-depth',
|
11682 |
+
value: page_depth,
|
11683 |
+
onChange: function onChange(value) {
|
11684 |
+
setAttributes({ page_depth: value });
|
11685 |
+
}
|
11686 |
+
})
|
11687 |
+
)
|
11688 |
+
)
|
11689 |
+
), wp.element.createElement(ServerSideRender, {
|
11690 |
+
block: 'wpgoplugins/simple-sitemap-block',
|
11691 |
+
attributes: props.attributes
|
11692 |
+
})];
|
11693 |
+
},
|
11694 |
+
save: function save() {
|
11695 |
+
return null;
|
11696 |
+
}
|
11697 |
+
}));
|
11698 |
+
|
11699 |
+
/***/ }),
|
11700 |
+
/* 95 */
|
11701 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11702 |
+
|
11703 |
+
"use strict";
|
11704 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SitemapCheckboxControl; });
|
11705 |
+
var CheckboxControl = wp.components.CheckboxControl;
|
11706 |
+
|
11707 |
+
|
11708 |
+
var SitemapCheckboxControl = function SitemapCheckboxControl(props) {
|
11709 |
+
var help = props.help,
|
11710 |
+
disabled = props.disabled,
|
11711 |
+
label = props.label,
|
11712 |
+
updateCheckbox = props.updateCheckbox,
|
11713 |
+
value = props.value;
|
11714 |
+
|
11715 |
+
|
11716 |
+
return wp.element.createElement(CheckboxControl, {
|
11717 |
+
help: help,
|
11718 |
+
disabled: disabled,
|
11719 |
+
label: label,
|
11720 |
+
checked: value,
|
11721 |
+
onChange: function onChange(isChecked) {
|
11722 |
+
return updateCheckbox(isChecked);
|
11723 |
+
}
|
11724 |
+
});
|
11725 |
+
};
|
11726 |
+
|
11727 |
+
/***/ }),
|
11728 |
+
/* 96 */
|
11729 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11730 |
+
|
11731 |
+
"use strict";
|
11732 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__components_select_cpt_taxonomy__ = __webpack_require__(149);
|
11733 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_checkbox__ = __webpack_require__(95);
|
11734 |
+
// BLOCK DEPENDENCIES
|
11735 |
+
|
11736 |
+
// Import chart components/objects
|
11737 |
+
//import attributes from './components/attributes';
|
11738 |
+
//import BarChart from './components/bar-chart';
|
11739 |
+
//import InspectorPanel from './components/inspector-panel';
|
11740 |
+
//import IsSelected from './components/is-selected';
|
11741 |
+
//import BlockAlignToolbar from '../_shared-components/block-align-toolbar';
|
11742 |
+
|
11743 |
+
// Import libraries and functionality
|
11744 |
+
//import classnames from 'classnames';
|
11745 |
+
|
11746 |
+
// Import styles and media assets
|
11747 |
+
//import customIcon from './components/icon';
|
11748 |
+
//import './styles/style.scss';
|
11749 |
+
//import './styles/editor.scss';
|
11750 |
+
|
11751 |
+
|
11752 |
+
|
11753 |
+
|
11754 |
+
//import Select from 'react-select';
|
11755 |
+
|
11756 |
+
// Import core block libraries
|
11757 |
+
var __ = wp.i18n.__;
|
11758 |
+
var InspectorControls = wp.blockEditor.InspectorControls;
|
11759 |
+
var _wp$components = wp.components,
|
11760 |
+
PanelBody = _wp$components.PanelBody,
|
11761 |
+
PanelRow = _wp$components.PanelRow,
|
11762 |
+
ServerSideRender = _wp$components.ServerSideRender,
|
11763 |
+
TextControl = _wp$components.TextControl,
|
11764 |
+
RadioControl = _wp$components.RadioControl,
|
11765 |
+
SelectControl = _wp$components.SelectControl,
|
11766 |
+
ColorPicker = _wp$components.ColorPicker;
|
11767 |
+
var registerBlockType = wp.blocks.registerBlockType;
|
11768 |
+
var Fragment = wp.element.Fragment;
|
11769 |
+
|
11770 |
+
/**
|
11771 |
+
* Register block
|
11772 |
+
*/
|
11773 |
+
|
11774 |
+
/* unused harmony default export */ var _unused_webpack_default_export = (registerBlockType('wpgoplugins/simple-sitemap-group-block', {
|
11775 |
+
title: 'Simple Sitemap Group',
|
11776 |
+
icon: 'networking',
|
11777 |
+
category: 'simple-sitemap',
|
11778 |
+
attributes: {
|
11779 |
+
show_excerpt: {
|
11780 |
+
type: 'boolean',
|
11781 |
+
default: false
|
11782 |
+
},
|
11783 |
+
show_label: {
|
11784 |
+
type: 'boolean',
|
11785 |
+
default: true
|
11786 |
+
},
|
11787 |
+
links: {
|
11788 |
+
type: 'boolean',
|
11789 |
+
default: true
|
11790 |
+
},
|
11791 |
+
orderby: {
|
11792 |
+
type: 'string',
|
11793 |
+
default: 'title'
|
11794 |
+
},
|
11795 |
+
order: {
|
11796 |
+
type: 'string',
|
11797 |
+
default: 'asc'
|
11798 |
+
},
|
11799 |
+
block_taxonomy: {
|
11800 |
+
type: 'string',
|
11801 |
+
default: 'category'
|
11802 |
+
},
|
11803 |
+
gutenberg_block: {
|
11804 |
+
type: 'boolean',
|
11805 |
+
default: true
|
11806 |
+
}
|
11807 |
+
},
|
11808 |
+
edit: function edit(props) {
|
11809 |
+
var _props$attributes = props.attributes,
|
11810 |
+
show_excerpt = _props$attributes.show_excerpt,
|
11811 |
+
show_label = _props$attributes.show_label,
|
11812 |
+
links = _props$attributes.links,
|
11813 |
+
block_taxonomy = _props$attributes.block_taxonomy,
|
11814 |
+
order = _props$attributes.order,
|
11815 |
+
orderby = _props$attributes.orderby,
|
11816 |
+
className = props.className,
|
11817 |
+
setAttributes = props.setAttributes,
|
11818 |
+
isSelected = props.isSelected,
|
11819 |
+
attributes = props.attributes;
|
11820 |
+
|
11821 |
+
|
11822 |
+
function updateShowExcerpt(isChecked) {
|
11823 |
+
setAttributes({ show_excerpt: isChecked });
|
11824 |
+
}
|
11825 |
+
|
11826 |
+
function updateShowLabel(isChecked) {
|
11827 |
+
setAttributes({ show_label: isChecked });
|
11828 |
+
}
|
11829 |
+
|
11830 |
+
function updateLinks(isChecked) {
|
11831 |
+
setAttributes({ links: isChecked });
|
11832 |
+
}
|
11833 |
+
|
11834 |
+
return [wp.element.createElement(
|
11835 |
+
InspectorControls,
|
11836 |
+
null,
|
11837 |
+
wp.element.createElement(
|
11838 |
+
PanelBody,
|
11839 |
+
{ title: __('General Settings', 'simple-sitemap') },
|
11840 |
+
wp.element.createElement(
|
11841 |
+
PanelRow,
|
11842 |
+
{ className: 'simple-sitemap' },
|
11843 |
+
wp.element.createElement(
|
11844 |
+
'label',
|
11845 |
+
{ style: { marginBottom: '-12px', maxWidth: '100%' }, 'class': 'components-base-control__label' },
|
11846 |
+
'Select post taxonomy'
|
11847 |
+
)
|
11848 |
+
),
|
11849 |
+
wp.element.createElement(
|
11850 |
+
PanelRow,
|
11851 |
+
{ className: 'simple-sitemap' },
|
11852 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_0__components_select_cpt_taxonomy__["a" /* SelectCptTaxonomy */], { setAttributes: setAttributes, multi: false, block_taxonomy: block_taxonomy })
|
11853 |
+
),
|
11854 |
+
wp.element.createElement(
|
11855 |
+
PanelRow,
|
11856 |
+
null,
|
11857 |
+
wp.element.createElement(
|
11858 |
+
'p',
|
11859 |
+
{ style: { marginTop: '-24px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' } },
|
11860 |
+
'List ',
|
11861 |
+
wp.element.createElement(
|
11862 |
+
'a',
|
11863 |
+
{ href: 'https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type', target: '_blank' },
|
11864 |
+
'taxonomies'
|
11865 |
+
),
|
11866 |
+
' for any post type'
|
11867 |
+
)
|
11868 |
+
),
|
11869 |
+
wp.element.createElement(
|
11870 |
+
PanelRow,
|
11871 |
+
{ className: 'simple-sitemap order-label' },
|
11872 |
+
wp.element.createElement(
|
11873 |
+
'label',
|
11874 |
+
{ style: { marginBottom: '-12px', maxWidth: '100%' }, 'class': 'components-base-control__label' },
|
11875 |
+
'Post ordering'
|
11876 |
+
)
|
11877 |
+
),
|
11878 |
+
wp.element.createElement(
|
11879 |
+
PanelRow,
|
11880 |
+
{ className: 'simple-sitemap order mb20' },
|
11881 |
+
wp.element.createElement(SelectControl, {
|
11882 |
+
label: 'Orderby',
|
11883 |
+
value: orderby,
|
11884 |
+
options: [{ label: 'Title', value: 'title' }, { label: 'Date', value: 'date' }, { label: 'ID', value: 'ID' }, { label: 'Author', value: 'author' }, { label: 'Name', value: 'name' }, { label: 'Modified', value: 'modified' }],
|
11885 |
+
onChange: function onChange(value) {
|
11886 |
+
setAttributes({ orderby: value });
|
11887 |
+
}
|
11888 |
+
}),
|
11889 |
+
wp.element.createElement(SelectControl, {
|
11890 |
+
label: 'Order',
|
11891 |
+
value: order,
|
11892 |
+
options: [{ label: 'Ascending', value: 'asc' }, { label: 'Descending', value: 'desc' }],
|
11893 |
+
onChange: function onChange(value) {
|
11894 |
+
setAttributes({ order: value });
|
11895 |
+
}
|
11896 |
+
})
|
11897 |
+
),
|
11898 |
+
wp.element.createElement(
|
11899 |
+
PanelRow,
|
11900 |
+
{ className: 'simple-sitemap general-chk' },
|
11901 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_excerpt, label: 'Display post excerpt', updateCheckbox: updateShowExcerpt })
|
11902 |
+
),
|
11903 |
+
wp.element.createElement(
|
11904 |
+
PanelRow,
|
11905 |
+
{ className: 'simple-sitemap general-chk' },
|
11906 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_checkbox__["a" /* SitemapCheckboxControl */], { value: show_label, label: 'Display post type label', updateCheckbox: updateShowLabel })
|
11907 |
+
),
|
11908 |
+
wp.element.createElement(
|
11909 |
+
PanelRow,
|
11910 |
+
{ className: 'simple-sitemap general-chk' },
|
11911 |
+
wp.element.createElement(__WEBPACK_IMPORTED_MODULE_1__components_checkbox__["a" /* SitemapCheckboxControl */], { value: links, label: 'Display sitemap links', updateCheckbox: updateLinks })
|
11912 |
+
)
|
11913 |
+
)
|
11914 |
+
), wp.element.createElement(ServerSideRender, {
|
11915 |
+
block: 'wpgoplugins/simple-sitemap-group-block',
|
11916 |
+
attributes: attributes
|
11917 |
+
})];
|
11918 |
+
},
|
11919 |
+
save: function save() {
|
11920 |
+
return null;
|
11921 |
+
}
|
11922 |
+
}));
|
11923 |
+
|
11924 |
+
/***/ }),
|
11925 |
+
/* 97 */,
|
11926 |
+
/* 98 */,
|
11927 |
+
/* 99 */,
|
11928 |
+
/* 100 */
|
11929 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11930 |
+
|
11931 |
+
__webpack_require__(58);
|
11932 |
+
__webpack_require__(68);
|
11933 |
+
module.exports = __webpack_require__(113);
|
11934 |
+
|
11935 |
+
|
11936 |
+
/***/ }),
|
11937 |
+
/* 101 */
|
11938 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11939 |
+
|
11940 |
+
"use strict";
|
11941 |
+
|
11942 |
+
var addToUnscopables = __webpack_require__(102);
|
11943 |
+
var step = __webpack_require__(103);
|
11944 |
+
var Iterators = __webpack_require__(23);
|
11945 |
+
var toIObject = __webpack_require__(8);
|
11946 |
+
|
11947 |
+
// 22.1.3.4 Array.prototype.entries()
|
11948 |
+
// 22.1.3.13 Array.prototype.keys()
|
11949 |
+
// 22.1.3.29 Array.prototype.values()
|
11950 |
+
// 22.1.3.30 Array.prototype[@@iterator]()
|
11951 |
+
module.exports = __webpack_require__(71)(Array, 'Array', function (iterated, kind) {
|
11952 |
+
this._t = toIObject(iterated); // target
|
11953 |
+
this._i = 0; // next index
|
11954 |
+
this._k = kind; // kind
|
11955 |
+
// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
|
11956 |
+
}, function () {
|
11957 |
+
var O = this._t;
|
11958 |
+
var kind = this._k;
|
11959 |
+
var index = this._i++;
|
11960 |
+
if (!O || index >= O.length) {
|
11961 |
+
this._t = undefined;
|
11962 |
+
return step(1);
|
11963 |
+
}
|
11964 |
+
if (kind == 'keys') return step(0, index);
|
11965 |
+
if (kind == 'values') return step(0, O[index]);
|
11966 |
+
return step(0, [index, O[index]]);
|
11967 |
+
}, 'values');
|
11968 |
+
|
11969 |
+
// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
|
11970 |
+
Iterators.Arguments = Iterators.Array;
|
11971 |
+
|
11972 |
+
addToUnscopables('keys');
|
11973 |
+
addToUnscopables('values');
|
11974 |
+
addToUnscopables('entries');
|
11975 |
+
|
11976 |
+
|
11977 |
+
/***/ }),
|
11978 |
+
/* 102 */
|
11979 |
+
/***/ (function(module, exports) {
|
11980 |
+
|
11981 |
+
module.exports = function () { /* empty */ };
|
11982 |
+
|
11983 |
+
|
11984 |
+
/***/ }),
|
11985 |
+
/* 103 */
|
11986 |
+
/***/ (function(module, exports) {
|
11987 |
+
|
11988 |
+
module.exports = function (done, value) {
|
11989 |
+
return { value: value, done: !!done };
|
11990 |
+
};
|
11991 |
+
|
11992 |
+
|
11993 |
+
/***/ }),
|
11994 |
+
/* 104 */
|
11995 |
+
/***/ (function(module, exports, __webpack_require__) {
|
11996 |
+
|
11997 |
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
11998 |
+
var cof = __webpack_require__(59);
|
11999 |
+
// eslint-disable-next-line no-prototype-builtins
|
12000 |
+
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
|
12001 |
+
return cof(it) == 'String' ? it.split('') : Object(it);
|
12002 |
+
};
|
12003 |
+
|
12004 |
+
|
12005 |
+
/***/ }),
|
12006 |
+
/* 105 */
|
12007 |
+
/***/ (function(module, exports) {
|
12008 |
+
|
12009 |
+
module.exports = function (it) {
|
12010 |
+
if (typeof it != 'function') throw TypeError(it + ' is not a function!');
|
12011 |
+
return it;
|
12012 |
+
};
|
12013 |
+
|
12014 |
+
|
12015 |
+
/***/ }),
|
12016 |
+
/* 106 */
|
12017 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12018 |
+
|
12019 |
+
"use strict";
|
12020 |
+
|
12021 |
+
var create = __webpack_require__(62);
|
12022 |
+
var descriptor = __webpack_require__(26);
|
12023 |
+
var setToStringTag = __webpack_require__(67);
|
12024 |
+
var IteratorPrototype = {};
|
12025 |
+
|
12026 |
+
// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
|
12027 |
+
__webpack_require__(13)(IteratorPrototype, __webpack_require__(4)('iterator'), function () { return this; });
|
12028 |
+
|
12029 |
+
module.exports = function (Constructor, NAME, next) {
|
12030 |
+
Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
|
12031 |
+
setToStringTag(Constructor, NAME + ' Iterator');
|
12032 |
+
};
|
12033 |
+
|
12034 |
+
|
12035 |
+
/***/ }),
|
12036 |
+
/* 107 */
|
12037 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12038 |
+
|
12039 |
+
var dP = __webpack_require__(10);
|
12040 |
+
var anObject = __webpack_require__(14);
|
12041 |
+
var getKeys = __webpack_require__(27);
|
12042 |
+
|
12043 |
+
module.exports = __webpack_require__(11) ? Object.defineProperties : function defineProperties(O, Properties) {
|
12044 |
+
anObject(O);
|
12045 |
+
var keys = getKeys(Properties);
|
12046 |
+
var length = keys.length;
|
12047 |
+
var i = 0;
|
12048 |
+
var P;
|
12049 |
+
while (length > i) dP.f(O, P = keys[i++], Properties[P]);
|
12050 |
+
return O;
|
12051 |
+
};
|
12052 |
+
|
12053 |
+
|
12054 |
+
/***/ }),
|
12055 |
+
/* 108 */
|
12056 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12057 |
+
|
12058 |
+
// false -> Array#indexOf
|
12059 |
+
// true -> Array#includes
|
12060 |
+
var toIObject = __webpack_require__(8);
|
12061 |
+
var toLength = __webpack_require__(109);
|
12062 |
+
var toAbsoluteIndex = __webpack_require__(110);
|
12063 |
+
module.exports = function (IS_INCLUDES) {
|
12064 |
+
return function ($this, el, fromIndex) {
|
12065 |
+
var O = toIObject($this);
|
12066 |
+
var length = toLength(O.length);
|
12067 |
+
var index = toAbsoluteIndex(fromIndex, length);
|
12068 |
+
var value;
|
12069 |
+
// Array#includes uses SameValueZero equality algorithm
|
12070 |
+
// eslint-disable-next-line no-self-compare
|
12071 |
+
if (IS_INCLUDES && el != el) while (length > index) {
|
12072 |
+
value = O[index++];
|
12073 |
+
// eslint-disable-next-line no-self-compare
|
12074 |
+
if (value != value) return true;
|
12075 |
+
// Array#indexOf ignores holes, Array#includes - not
|
12076 |
+
} else for (;length > index; index++) if (IS_INCLUDES || index in O) {
|
12077 |
+
if (O[index] === el) return IS_INCLUDES || index || 0;
|
12078 |
+
} return !IS_INCLUDES && -1;
|
12079 |
+
};
|
12080 |
+
};
|
12081 |
+
|
12082 |
+
|
12083 |
+
/***/ }),
|
12084 |
+
/* 109 */
|
12085 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12086 |
+
|
12087 |
+
// 7.1.15 ToLength
|
12088 |
+
var toInteger = __webpack_require__(63);
|
12089 |
+
var min = Math.min;
|
12090 |
+
module.exports = function (it) {
|
12091 |
+
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
|
12092 |
+
};
|
12093 |
+
|
12094 |
+
|
12095 |
+
/***/ }),
|
12096 |
+
/* 110 */
|
12097 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12098 |
+
|
12099 |
+
var toInteger = __webpack_require__(63);
|
12100 |
+
var max = Math.max;
|
12101 |
+
var min = Math.min;
|
12102 |
+
module.exports = function (index, length) {
|
12103 |
+
index = toInteger(index);
|
12104 |
+
return index < 0 ? max(index + length, 0) : min(index, length);
|
12105 |
+
};
|
12106 |
+
|
12107 |
+
|
12108 |
+
/***/ }),
|
12109 |
+
/* 111 */
|
12110 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12111 |
+
|
12112 |
+
var document = __webpack_require__(5).document;
|
12113 |
+
module.exports = document && document.documentElement;
|
12114 |
+
|
12115 |
+
|
12116 |
+
/***/ }),
|
12117 |
+
/* 112 */
|
12118 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12119 |
+
|
12120 |
+
var toInteger = __webpack_require__(63);
|
12121 |
+
var defined = __webpack_require__(60);
|
12122 |
+
// true -> String#at
|
12123 |
+
// false -> String#codePointAt
|
12124 |
+
module.exports = function (TO_STRING) {
|
12125 |
+
return function (that, pos) {
|
12126 |
+
var s = String(defined(that));
|
12127 |
+
var i = toInteger(pos);
|
12128 |
+
var l = s.length;
|
12129 |
+
var a, b;
|
12130 |
+
if (i < 0 || i >= l) return TO_STRING ? '' : undefined;
|
12131 |
+
a = s.charCodeAt(i);
|
12132 |
+
return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
|
12133 |
+
? TO_STRING ? s.charAt(i) : a
|
12134 |
+
: TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
|
12135 |
+
};
|
12136 |
+
};
|
12137 |
+
|
12138 |
+
|
12139 |
+
/***/ }),
|
12140 |
+
/* 113 */
|
12141 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12142 |
+
|
12143 |
+
var anObject = __webpack_require__(14);
|
12144 |
+
var get = __webpack_require__(114);
|
12145 |
+
module.exports = __webpack_require__(1).getIterator = function (it) {
|
12146 |
+
var iterFn = get(it);
|
12147 |
+
if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');
|
12148 |
+
return anObject(iterFn.call(it));
|
12149 |
+
};
|
12150 |
+
|
12151 |
+
|
12152 |
+
/***/ }),
|
12153 |
+
/* 114 */
|
12154 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12155 |
+
|
12156 |
+
var classof = __webpack_require__(79);
|
12157 |
+
var ITERATOR = __webpack_require__(4)('iterator');
|
12158 |
+
var Iterators = __webpack_require__(23);
|
12159 |
+
module.exports = __webpack_require__(1).getIteratorMethod = function (it) {
|
12160 |
+
if (it != undefined) return it[ITERATOR]
|
12161 |
+
|| it['@@iterator']
|
12162 |
+
|| Iterators[classof(it)];
|
12163 |
+
};
|
12164 |
+
|
12165 |
+
|
12166 |
+
/***/ }),
|
12167 |
+
/* 115 */
|
12168 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12169 |
+
|
12170 |
+
module.exports = { "default": __webpack_require__(116), __esModule: true };
|
12171 |
+
|
12172 |
+
/***/ }),
|
12173 |
+
/* 116 */
|
12174 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12175 |
+
|
12176 |
+
__webpack_require__(58);
|
12177 |
+
__webpack_require__(68);
|
12178 |
+
module.exports = __webpack_require__(117);
|
12179 |
+
|
12180 |
+
|
12181 |
+
/***/ }),
|
12182 |
+
/* 117 */
|
12183 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12184 |
+
|
12185 |
+
var classof = __webpack_require__(79);
|
12186 |
+
var ITERATOR = __webpack_require__(4)('iterator');
|
12187 |
+
var Iterators = __webpack_require__(23);
|
12188 |
+
module.exports = __webpack_require__(1).isIterable = function (it) {
|
12189 |
+
var O = Object(it);
|
12190 |
+
return O[ITERATOR] !== undefined
|
12191 |
+
|| '@@iterator' in O
|
12192 |
+
// eslint-disable-next-line no-prototype-builtins
|
12193 |
+
|| Iterators.hasOwnProperty(classof(O));
|
12194 |
+
};
|
12195 |
+
|
12196 |
+
|
12197 |
+
/***/ }),
|
12198 |
+
/* 118 */
|
12199 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12200 |
+
|
12201 |
+
__webpack_require__(119);
|
12202 |
+
module.exports = __webpack_require__(1).Object.entries;
|
12203 |
+
|
12204 |
+
|
12205 |
+
/***/ }),
|
12206 |
+
/* 119 */
|
12207 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12208 |
+
|
12209 |
+
// https://github.com/tc39/proposal-object-values-entries
|
12210 |
+
var $export = __webpack_require__(9);
|
12211 |
+
var $entries = __webpack_require__(120)(true);
|
12212 |
+
|
12213 |
+
$export($export.S, 'Object', {
|
12214 |
+
entries: function entries(it) {
|
12215 |
+
return $entries(it);
|
12216 |
+
}
|
12217 |
+
});
|
12218 |
+
|
12219 |
+
|
12220 |
+
/***/ }),
|
12221 |
+
/* 120 */
|
12222 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12223 |
+
|
12224 |
+
var getKeys = __webpack_require__(27);
|
12225 |
+
var toIObject = __webpack_require__(8);
|
12226 |
+
var isEnum = __webpack_require__(29).f;
|
12227 |
+
module.exports = function (isEntries) {
|
12228 |
+
return function (it) {
|
12229 |
+
var O = toIObject(it);
|
12230 |
+
var keys = getKeys(O);
|
12231 |
+
var length = keys.length;
|
12232 |
+
var i = 0;
|
12233 |
+
var result = [];
|
12234 |
+
var key;
|
12235 |
+
while (length > i) if (isEnum.call(O, key = keys[i++])) {
|
12236 |
+
result.push(isEntries ? [key, O[key]] : O[key]);
|
12237 |
+
} return result;
|
12238 |
+
};
|
12239 |
+
};
|
12240 |
+
|
12241 |
+
|
12242 |
+
/***/ }),
|
12243 |
+
/* 121 */
|
12244 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12245 |
+
|
12246 |
+
__webpack_require__(122);
|
12247 |
+
module.exports = __webpack_require__(1).Object.getPrototypeOf;
|
12248 |
+
|
12249 |
+
|
12250 |
+
/***/ }),
|
12251 |
+
/* 122 */
|
12252 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12253 |
+
|
12254 |
+
// 19.1.2.9 Object.getPrototypeOf(O)
|
12255 |
+
var toObject = __webpack_require__(78);
|
12256 |
+
var $getPrototypeOf = __webpack_require__(77);
|
12257 |
+
|
12258 |
+
__webpack_require__(123)('getPrototypeOf', function () {
|
12259 |
+
return function getPrototypeOf(it) {
|
12260 |
+
return $getPrototypeOf(toObject(it));
|
12261 |
+
};
|
12262 |
+
});
|
12263 |
+
|
12264 |
+
|
12265 |
+
/***/ }),
|
12266 |
+
/* 123 */
|
12267 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12268 |
+
|
12269 |
+
// most Object methods by ES6 should accept primitives
|
12270 |
+
var $export = __webpack_require__(9);
|
12271 |
+
var core = __webpack_require__(1);
|
12272 |
+
var fails = __webpack_require__(24);
|
12273 |
+
module.exports = function (KEY, exec) {
|
12274 |
+
var fn = (core.Object || {})[KEY] || Object[KEY];
|
12275 |
+
var exp = {};
|
12276 |
+
exp[KEY] = exec(fn);
|
12277 |
+
$export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
|
12278 |
+
};
|
12279 |
+
|
12280 |
+
|
12281 |
+
/***/ }),
|
12282 |
+
/* 124 */
|
12283 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12284 |
+
|
12285 |
+
module.exports = { "default": __webpack_require__(125), __esModule: true };
|
12286 |
+
|
12287 |
+
/***/ }),
|
12288 |
+
/* 125 */
|
12289 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12290 |
+
|
12291 |
+
__webpack_require__(126);
|
12292 |
+
var $Object = __webpack_require__(1).Object;
|
12293 |
+
module.exports = function defineProperty(it, key, desc) {
|
12294 |
+
return $Object.defineProperty(it, key, desc);
|
12295 |
+
};
|
12296 |
+
|
12297 |
+
|
12298 |
+
/***/ }),
|
12299 |
+
/* 126 */
|
12300 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12301 |
+
|
12302 |
+
var $export = __webpack_require__(9);
|
12303 |
+
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
12304 |
+
$export($export.S + $export.F * !__webpack_require__(11), 'Object', { defineProperty: __webpack_require__(10).f });
|
12305 |
+
|
12306 |
+
|
12307 |
+
/***/ }),
|
12308 |
+
/* 127 */
|
12309 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12310 |
+
|
12311 |
+
module.exports = { "default": __webpack_require__(128), __esModule: true };
|
12312 |
+
|
12313 |
+
/***/ }),
|
12314 |
+
/* 128 */
|
12315 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12316 |
+
|
12317 |
+
__webpack_require__(68);
|
12318 |
+
__webpack_require__(58);
|
12319 |
+
module.exports = __webpack_require__(69).f('iterator');
|
12320 |
+
|
12321 |
+
|
12322 |
+
/***/ }),
|
12323 |
+
/* 129 */
|
12324 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12325 |
+
|
12326 |
+
module.exports = { "default": __webpack_require__(130), __esModule: true };
|
12327 |
+
|
12328 |
+
/***/ }),
|
12329 |
+
/* 130 */
|
12330 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12331 |
+
|
12332 |
+
__webpack_require__(131);
|
12333 |
+
__webpack_require__(136);
|
12334 |
+
__webpack_require__(137);
|
12335 |
+
__webpack_require__(138);
|
12336 |
+
module.exports = __webpack_require__(1).Symbol;
|
12337 |
+
|
12338 |
+
|
12339 |
+
/***/ }),
|
12340 |
+
/* 131 */
|
12341 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12342 |
+
|
12343 |
+
"use strict";
|
12344 |
+
|
12345 |
+
// ECMAScript 6 symbols shim
|
12346 |
+
var global = __webpack_require__(5);
|
12347 |
+
var has = __webpack_require__(12);
|
12348 |
+
var DESCRIPTORS = __webpack_require__(11);
|
12349 |
+
var $export = __webpack_require__(9);
|
12350 |
+
var redefine = __webpack_require__(75);
|
12351 |
+
var META = __webpack_require__(132).KEY;
|
12352 |
+
var $fails = __webpack_require__(24);
|
12353 |
+
var shared = __webpack_require__(65);
|
12354 |
+
var setToStringTag = __webpack_require__(67);
|
12355 |
+
var uid = __webpack_require__(28);
|
12356 |
+
var wks = __webpack_require__(4);
|
12357 |
+
var wksExt = __webpack_require__(69);
|
12358 |
+
var wksDefine = __webpack_require__(70);
|
12359 |
+
var enumKeys = __webpack_require__(133);
|
12360 |
+
var isArray = __webpack_require__(134);
|
12361 |
+
var anObject = __webpack_require__(14);
|
12362 |
+
var isObject = __webpack_require__(15);
|
12363 |
+
var toIObject = __webpack_require__(8);
|
12364 |
+
var toPrimitive = __webpack_require__(61);
|
12365 |
+
var createDesc = __webpack_require__(26);
|
12366 |
+
var _create = __webpack_require__(62);
|
12367 |
+
var gOPNExt = __webpack_require__(135);
|
12368 |
+
var $GOPD = __webpack_require__(89);
|
12369 |
+
var $DP = __webpack_require__(10);
|
12370 |
+
var $keys = __webpack_require__(27);
|
12371 |
+
var gOPD = $GOPD.f;
|
12372 |
+
var dP = $DP.f;
|
12373 |
+
var gOPN = gOPNExt.f;
|
12374 |
+
var $Symbol = global.Symbol;
|
12375 |
+
var $JSON = global.JSON;
|
12376 |
+
var _stringify = $JSON && $JSON.stringify;
|
12377 |
+
var PROTOTYPE = 'prototype';
|
12378 |
+
var HIDDEN = wks('_hidden');
|
12379 |
+
var TO_PRIMITIVE = wks('toPrimitive');
|
12380 |
+
var isEnum = {}.propertyIsEnumerable;
|
12381 |
+
var SymbolRegistry = shared('symbol-registry');
|
12382 |
+
var AllSymbols = shared('symbols');
|
12383 |
+
var OPSymbols = shared('op-symbols');
|
12384 |
+
var ObjectProto = Object[PROTOTYPE];
|
12385 |
+
var USE_NATIVE = typeof $Symbol == 'function';
|
12386 |
+
var QObject = global.QObject;
|
12387 |
+
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
|
12388 |
+
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
12389 |
+
|
12390 |
+
// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
|
12391 |
+
var setSymbolDesc = DESCRIPTORS && $fails(function () {
|
12392 |
+
return _create(dP({}, 'a', {
|
12393 |
+
get: function () { return dP(this, 'a', { value: 7 }).a; }
|
12394 |
+
})).a != 7;
|
12395 |
+
}) ? function (it, key, D) {
|
12396 |
+
var protoDesc = gOPD(ObjectProto, key);
|
12397 |
+
if (protoDesc) delete ObjectProto[key];
|
12398 |
+
dP(it, key, D);
|
12399 |
+
if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);
|
12400 |
+
} : dP;
|
12401 |
+
|
12402 |
+
var wrap = function (tag) {
|
12403 |
+
var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
|
12404 |
+
sym._k = tag;
|
12405 |
+
return sym;
|
12406 |
+
};
|
12407 |
+
|
12408 |
+
var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {
|
12409 |
+
return typeof it == 'symbol';
|
12410 |
+
} : function (it) {
|
12411 |
+
return it instanceof $Symbol;
|
12412 |
+
};
|
12413 |
+
|
12414 |
+
var $defineProperty = function defineProperty(it, key, D) {
|
12415 |
+
if (it === ObjectProto) $defineProperty(OPSymbols, key, D);
|
12416 |
+
anObject(it);
|
12417 |
+
key = toPrimitive(key, true);
|
12418 |
+
anObject(D);
|
12419 |
+
if (has(AllSymbols, key)) {
|
12420 |
+
if (!D.enumerable) {
|
12421 |
+
if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));
|
12422 |
+
it[HIDDEN][key] = true;
|
12423 |
+
} else {
|
12424 |
+
if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;
|
12425 |
+
D = _create(D, { enumerable: createDesc(0, false) });
|
12426 |
+
} return setSymbolDesc(it, key, D);
|
12427 |
+
} return dP(it, key, D);
|
12428 |
+
};
|
12429 |
+
var $defineProperties = function defineProperties(it, P) {
|
12430 |
+
anObject(it);
|
12431 |
+
var keys = enumKeys(P = toIObject(P));
|
12432 |
+
var i = 0;
|
12433 |
+
var l = keys.length;
|
12434 |
+
var key;
|
12435 |
+
while (l > i) $defineProperty(it, key = keys[i++], P[key]);
|
12436 |
+
return it;
|
12437 |
+
};
|
12438 |
+
var $create = function create(it, P) {
|
12439 |
+
return P === undefined ? _create(it) : $defineProperties(_create(it), P);
|
12440 |
+
};
|
12441 |
+
var $propertyIsEnumerable = function propertyIsEnumerable(key) {
|
12442 |
+
var E = isEnum.call(this, key = toPrimitive(key, true));
|
12443 |
+
if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;
|
12444 |
+
return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
|
12445 |
+
};
|
12446 |
+
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {
|
12447 |
+
it = toIObject(it);
|
12448 |
+
key = toPrimitive(key, true);
|
12449 |
+
if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;
|
12450 |
+
var D = gOPD(it, key);
|
12451 |
+
if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;
|
12452 |
+
return D;
|
12453 |
+
};
|
12454 |
+
var $getOwnPropertyNames = function getOwnPropertyNames(it) {
|
12455 |
+
var names = gOPN(toIObject(it));
|
12456 |
+
var result = [];
|
12457 |
+
var i = 0;
|
12458 |
+
var key;
|
12459 |
+
while (names.length > i) {
|
12460 |
+
if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);
|
12461 |
+
} return result;
|
12462 |
+
};
|
12463 |
+
var $getOwnPropertySymbols = function getOwnPropertySymbols(it) {
|
12464 |
+
var IS_OP = it === ObjectProto;
|
12465 |
+
var names = gOPN(IS_OP ? OPSymbols : toIObject(it));
|
12466 |
+
var result = [];
|
12467 |
+
var i = 0;
|
12468 |
+
var key;
|
12469 |
+
while (names.length > i) {
|
12470 |
+
if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);
|
12471 |
+
} return result;
|
12472 |
+
};
|
12473 |
+
|
12474 |
+
// 19.4.1.1 Symbol([description])
|
12475 |
+
if (!USE_NATIVE) {
|
12476 |
+
$Symbol = function Symbol() {
|
12477 |
+
if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');
|
12478 |
+
var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
|
12479 |
+
var $set = function (value) {
|
12480 |
+
if (this === ObjectProto) $set.call(OPSymbols, value);
|
12481 |
+
if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
12482 |
+
setSymbolDesc(this, tag, createDesc(1, value));
|
12483 |
+
};
|
12484 |
+
if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });
|
12485 |
+
return wrap(tag);
|
12486 |
+
};
|
12487 |
+
redefine($Symbol[PROTOTYPE], 'toString', function toString() {
|
12488 |
+
return this._k;
|
12489 |
+
});
|
12490 |
+
|
12491 |
+
$GOPD.f = $getOwnPropertyDescriptor;
|
12492 |
+
$DP.f = $defineProperty;
|
12493 |
+
__webpack_require__(88).f = gOPNExt.f = $getOwnPropertyNames;
|
12494 |
+
__webpack_require__(29).f = $propertyIsEnumerable;
|
12495 |
+
__webpack_require__(87).f = $getOwnPropertySymbols;
|
12496 |
+
|
12497 |
+
if (DESCRIPTORS && !__webpack_require__(25)) {
|
12498 |
+
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
|
12499 |
+
}
|
12500 |
+
|
12501 |
+
wksExt.f = function (name) {
|
12502 |
+
return wrap(wks(name));
|
12503 |
+
};
|
12504 |
+
}
|
12505 |
+
|
12506 |
+
$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });
|
12507 |
+
|
12508 |
+
for (var es6Symbols = (
|
12509 |
+
// 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
|
12510 |
+
'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
|
12511 |
+
).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);
|
12512 |
+
|
12513 |
+
for (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);
|
12514 |
+
|
12515 |
+
$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
|
12516 |
+
// 19.4.2.1 Symbol.for(key)
|
12517 |
+
'for': function (key) {
|
12518 |
+
return has(SymbolRegistry, key += '')
|
12519 |
+
? SymbolRegistry[key]
|
12520 |
+
: SymbolRegistry[key] = $Symbol(key);
|
12521 |
+
},
|
12522 |
+
// 19.4.2.5 Symbol.keyFor(sym)
|
12523 |
+
keyFor: function keyFor(sym) {
|
12524 |
+
if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');
|
12525 |
+
for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;
|
12526 |
+
},
|
12527 |
+
useSetter: function () { setter = true; },
|
12528 |
+
useSimple: function () { setter = false; }
|
12529 |
+
});
|
12530 |
+
|
12531 |
+
$export($export.S + $export.F * !USE_NATIVE, 'Object', {
|
12532 |
+
// 19.1.2.2 Object.create(O [, Properties])
|
12533 |
+
create: $create,
|
12534 |
+
// 19.1.2.4 Object.defineProperty(O, P, Attributes)
|
12535 |
+
defineProperty: $defineProperty,
|
12536 |
+
// 19.1.2.3 Object.defineProperties(O, Properties)
|
12537 |
+
defineProperties: $defineProperties,
|
12538 |
+
// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
|
12539 |
+
getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
|
12540 |
+
// 19.1.2.7 Object.getOwnPropertyNames(O)
|
12541 |
+
getOwnPropertyNames: $getOwnPropertyNames,
|
12542 |
+
// 19.1.2.8 Object.getOwnPropertySymbols(O)
|
12543 |
+
getOwnPropertySymbols: $getOwnPropertySymbols
|
12544 |
+
});
|
12545 |
+
|
12546 |
+
// 24.3.2 JSON.stringify(value [, replacer [, space]])
|
12547 |
+
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
|
12548 |
+
var S = $Symbol();
|
12549 |
+
// MS Edge converts symbol values to JSON as {}
|
12550 |
+
// WebKit converts symbol values to JSON as null
|
12551 |
+
// V8 throws on boxed symbols
|
12552 |
+
return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';
|
12553 |
+
})), 'JSON', {
|
12554 |
+
stringify: function stringify(it) {
|
12555 |
+
var args = [it];
|
12556 |
+
var i = 1;
|
12557 |
+
var replacer, $replacer;
|
12558 |
+
while (arguments.length > i) args.push(arguments[i++]);
|
12559 |
+
$replacer = replacer = args[1];
|
12560 |
+
if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
|
12561 |
+
if (!isArray(replacer)) replacer = function (key, value) {
|
12562 |
+
if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
|
12563 |
+
if (!isSymbol(value)) return value;
|
12564 |
+
};
|
12565 |
+
args[1] = replacer;
|
12566 |
+
return _stringify.apply($JSON, args);
|
12567 |
+
}
|
12568 |
+
});
|
12569 |
+
|
12570 |
+
// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
|
12571 |
+
$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(13)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
|
12572 |
+
// 19.4.3.5 Symbol.prototype[@@toStringTag]
|
12573 |
+
setToStringTag($Symbol, 'Symbol');
|
12574 |
+
// 20.2.1.9 Math[@@toStringTag]
|
12575 |
+
setToStringTag(Math, 'Math', true);
|
12576 |
+
// 24.3.3 JSON[@@toStringTag]
|
12577 |
+
setToStringTag(global.JSON, 'JSON', true);
|
12578 |
+
|
12579 |
+
|
12580 |
+
/***/ }),
|
12581 |
+
/* 132 */
|
12582 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12583 |
+
|
12584 |
+
var META = __webpack_require__(28)('meta');
|
12585 |
+
var isObject = __webpack_require__(15);
|
12586 |
+
var has = __webpack_require__(12);
|
12587 |
+
var setDesc = __webpack_require__(10).f;
|
12588 |
+
var id = 0;
|
12589 |
+
var isExtensible = Object.isExtensible || function () {
|
12590 |
+
return true;
|
12591 |
+
};
|
12592 |
+
var FREEZE = !__webpack_require__(24)(function () {
|
12593 |
+
return isExtensible(Object.preventExtensions({}));
|
12594 |
+
});
|
12595 |
+
var setMeta = function (it) {
|
12596 |
+
setDesc(it, META, { value: {
|
12597 |
+
i: 'O' + ++id, // object ID
|
12598 |
+
w: {} // weak collections IDs
|
12599 |
+
} });
|
12600 |
+
};
|
12601 |
+
var fastKey = function (it, create) {
|
12602 |
+
// return primitive with prefix
|
12603 |
+
if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
|
12604 |
+
if (!has(it, META)) {
|
12605 |
+
// can't set metadata to uncaught frozen object
|
12606 |
+
if (!isExtensible(it)) return 'F';
|
12607 |
+
// not necessary to add metadata
|
12608 |
+
if (!create) return 'E';
|
12609 |
+
// add missing metadata
|
12610 |
+
setMeta(it);
|
12611 |
+
// return object ID
|
12612 |
+
} return it[META].i;
|
12613 |
+
};
|
12614 |
+
var getWeak = function (it, create) {
|
12615 |
+
if (!has(it, META)) {
|
12616 |
+
// can't set metadata to uncaught frozen object
|
12617 |
+
if (!isExtensible(it)) return true;
|
12618 |
+
// not necessary to add metadata
|
12619 |
+
if (!create) return false;
|
12620 |
+
// add missing metadata
|
12621 |
+
setMeta(it);
|
12622 |
+
// return hash weak collections IDs
|
12623 |
+
} return it[META].w;
|
12624 |
+
};
|
12625 |
+
// add metadata on freeze-family methods calling
|
12626 |
+
var onFreeze = function (it) {
|
12627 |
+
if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);
|
12628 |
+
return it;
|
12629 |
+
};
|
12630 |
+
var meta = module.exports = {
|
12631 |
+
KEY: META,
|
12632 |
+
NEED: false,
|
12633 |
+
fastKey: fastKey,
|
12634 |
+
getWeak: getWeak,
|
12635 |
+
onFreeze: onFreeze
|
12636 |
+
};
|
12637 |
+
|
12638 |
+
|
12639 |
+
/***/ }),
|
12640 |
+
/* 133 */
|
12641 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12642 |
+
|
12643 |
+
// all enumerable object keys, includes symbols
|
12644 |
+
var getKeys = __webpack_require__(27);
|
12645 |
+
var gOPS = __webpack_require__(87);
|
12646 |
+
var pIE = __webpack_require__(29);
|
12647 |
+
module.exports = function (it) {
|
12648 |
+
var result = getKeys(it);
|
12649 |
+
var getSymbols = gOPS.f;
|
12650 |
+
if (getSymbols) {
|
12651 |
+
var symbols = getSymbols(it);
|
12652 |
+
var isEnum = pIE.f;
|
12653 |
+
var i = 0;
|
12654 |
+
var key;
|
12655 |
+
while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);
|
12656 |
+
} return result;
|
12657 |
+
};
|
12658 |
+
|
12659 |
+
|
12660 |
+
/***/ }),
|
12661 |
+
/* 134 */
|
12662 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12663 |
+
|
12664 |
+
// 7.2.2 IsArray(argument)
|
12665 |
+
var cof = __webpack_require__(59);
|
12666 |
+
module.exports = Array.isArray || function isArray(arg) {
|
12667 |
+
return cof(arg) == 'Array';
|
12668 |
+
};
|
12669 |
+
|
12670 |
+
|
12671 |
+
/***/ }),
|
12672 |
+
/* 135 */
|
12673 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12674 |
+
|
12675 |
+
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
|
12676 |
+
var toIObject = __webpack_require__(8);
|
12677 |
+
var gOPN = __webpack_require__(88).f;
|
12678 |
+
var toString = {}.toString;
|
12679 |
+
|
12680 |
+
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
|
12681 |
+
? Object.getOwnPropertyNames(window) : [];
|
12682 |
+
|
12683 |
+
var getWindowNames = function (it) {
|
12684 |
+
try {
|
12685 |
+
return gOPN(it);
|
12686 |
+
} catch (e) {
|
12687 |
+
return windowNames.slice();
|
12688 |
+
}
|
12689 |
+
};
|
12690 |
+
|
12691 |
+
module.exports.f = function getOwnPropertyNames(it) {
|
12692 |
+
return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
|
12693 |
+
};
|
12694 |
+
|
12695 |
+
|
12696 |
+
/***/ }),
|
12697 |
+
/* 136 */
|
12698 |
+
/***/ (function(module, exports) {
|
12699 |
+
|
12700 |
+
|
12701 |
+
|
12702 |
+
/***/ }),
|
12703 |
+
/* 137 */
|
12704 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12705 |
+
|
12706 |
+
__webpack_require__(70)('asyncIterator');
|
12707 |
+
|
12708 |
+
|
12709 |
+
/***/ }),
|
12710 |
+
/* 138 */
|
12711 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12712 |
+
|
12713 |
+
__webpack_require__(70)('observable');
|
12714 |
+
|
12715 |
+
|
12716 |
+
/***/ }),
|
12717 |
+
/* 139 */
|
12718 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12719 |
+
|
12720 |
+
module.exports = { "default": __webpack_require__(140), __esModule: true };
|
12721 |
+
|
12722 |
+
/***/ }),
|
12723 |
+
/* 140 */
|
12724 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12725 |
+
|
12726 |
+
__webpack_require__(141);
|
12727 |
+
module.exports = __webpack_require__(1).Object.setPrototypeOf;
|
12728 |
+
|
12729 |
+
|
12730 |
+
/***/ }),
|
12731 |
+
/* 141 */
|
12732 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12733 |
+
|
12734 |
+
// 19.1.3.19 Object.setPrototypeOf(O, proto)
|
12735 |
+
var $export = __webpack_require__(9);
|
12736 |
+
$export($export.S, 'Object', { setPrototypeOf: __webpack_require__(142).set });
|
12737 |
+
|
12738 |
+
|
12739 |
+
/***/ }),
|
12740 |
+
/* 142 */
|
12741 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12742 |
+
|
12743 |
+
// Works with __proto__ only. Old v8 can't work with null proto objects.
|
12744 |
+
/* eslint-disable no-proto */
|
12745 |
+
var isObject = __webpack_require__(15);
|
12746 |
+
var anObject = __webpack_require__(14);
|
12747 |
+
var check = function (O, proto) {
|
12748 |
+
anObject(O);
|
12749 |
+
if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
|
12750 |
+
};
|
12751 |
+
module.exports = {
|
12752 |
+
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
|
12753 |
+
function (test, buggy, set) {
|
12754 |
+
try {
|
12755 |
+
set = __webpack_require__(72)(Function.call, __webpack_require__(89).f(Object.prototype, '__proto__').set, 2);
|
12756 |
+
set(test, []);
|
12757 |
+
buggy = !(test instanceof Array);
|
12758 |
+
} catch (e) { buggy = true; }
|
12759 |
+
return function setPrototypeOf(O, proto) {
|
12760 |
+
check(O, proto);
|
12761 |
+
if (buggy) O.__proto__ = proto;
|
12762 |
+
else set(O, proto);
|
12763 |
+
return O;
|
12764 |
+
};
|
12765 |
+
}({}, false) : undefined),
|
12766 |
+
check: check
|
12767 |
+
};
|
12768 |
+
|
12769 |
+
|
12770 |
+
/***/ }),
|
12771 |
+
/* 143 */
|
12772 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12773 |
+
|
12774 |
+
module.exports = { "default": __webpack_require__(144), __esModule: true };
|
12775 |
+
|
12776 |
+
/***/ }),
|
12777 |
+
/* 144 */
|
12778 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12779 |
+
|
12780 |
+
__webpack_require__(145);
|
12781 |
+
var $Object = __webpack_require__(1).Object;
|
12782 |
+
module.exports = function create(P, D) {
|
12783 |
+
return $Object.create(P, D);
|
12784 |
+
};
|
12785 |
+
|
12786 |
+
|
12787 |
+
/***/ }),
|
12788 |
+
/* 145 */
|
12789 |
+
/***/ (function(module, exports, __webpack_require__) {
|
12790 |
+
|
12791 |
+
var $export = __webpack_require__(9);
|
12792 |
+
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
12793 |
+
$export($export.S, 'Object', { create: __webpack_require__(62) });
|
12794 |
+
|
12795 |
+
|
12796 |
+
/***/ }),
|
12797 |
+
/* 146 */,
|
12798 |
+
/* 147 */,
|
12799 |
+
/* 148 */,
|
12800 |
+
/* 149 */
|
12801 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
12802 |
+
|
12803 |
+
"use strict";
|
12804 |
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SelectCptTaxonomy; });
|
12805 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__ = __webpack_require__(57);
|
12806 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator__);
|
12807 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__ = __webpack_require__(80);
|
12808 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray__);
|
12809 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries__ = __webpack_require__(81);
|
12810 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries__);
|
12811 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of__ = __webpack_require__(82);
|
12812 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of__);
|
12813 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck__ = __webpack_require__(83);
|
12814 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck__);
|
12815 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass__ = __webpack_require__(84);
|
12816 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass__);
|
12817 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn__ = __webpack_require__(85);
|
12818 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn__);
|
12819 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits__ = __webpack_require__(90);
|
12820 |
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits__);
|
12821 |
+
|
12822 |
+
|
12823 |
+
|
12824 |
+
|
12825 |
+
|
12826 |
+
|
12827 |
+
|
12828 |
+
|
12829 |
+
// Import core block libraries
|
12830 |
+
var __ = wp.i18n.__;
|
12831 |
+
var InspectorControls = wp.blockEditor.InspectorControls;
|
12832 |
+
var _wp$components = wp.components,
|
12833 |
+
PanelBody = _wp$components.PanelBody,
|
12834 |
+
PanelRow = _wp$components.PanelRow,
|
12835 |
+
ServerSideRender = _wp$components.ServerSideRender,
|
12836 |
+
TextControl = _wp$components.TextControl,
|
12837 |
+
RadioControl = _wp$components.RadioControl,
|
12838 |
+
SelectControl = _wp$components.SelectControl;
|
12839 |
+
var registerBlockType = wp.blocks.registerBlockType;
|
12840 |
+
var _wp$element = wp.element,
|
12841 |
+
Component = _wp$element.Component,
|
12842 |
+
Fragment = _wp$element.Fragment;
|
12843 |
+
|
12844 |
+
|
12845 |
+
var SelectCptTaxonomy = function (_Component) {
|
12846 |
+
__WEBPACK_IMPORTED_MODULE_7_babel_runtime_helpers_inherits___default()(SelectCptTaxonomy, _Component);
|
12847 |
+
|
12848 |
+
function SelectCptTaxonomy(props) {
|
12849 |
+
__WEBPACK_IMPORTED_MODULE_4_babel_runtime_helpers_classCallCheck___default()(this, SelectCptTaxonomy);
|
12850 |
+
|
12851 |
+
// or super(props); ??
|
12852 |
+
|
12853 |
+
var _this = __WEBPACK_IMPORTED_MODULE_6_babel_runtime_helpers_possibleConstructorReturn___default()(this, (SelectCptTaxonomy.__proto__ || __WEBPACK_IMPORTED_MODULE_3_babel_runtime_core_js_object_get_prototype_of___default()(SelectCptTaxonomy)).call(this));
|
12854 |
+
|
12855 |
+
_this.state = {
|
12856 |
+
types: [],
|
12857 |
+
taxonomies: [],
|
12858 |
+
taxonomy_select_disabled_status: true,
|
12859 |
+
taxonomy_select_disabled_help: '',
|
12860 |
+
wrapperClass: ''
|
12861 |
+
};
|
12862 |
+
_this.props = props;
|
12863 |
+
return _this;
|
12864 |
+
}
|
12865 |
+
|
12866 |
+
// get post types to populate select box
|
12867 |
+
|
12868 |
+
|
12869 |
+
__WEBPACK_IMPORTED_MODULE_5_babel_runtime_helpers_createClass___default()(SelectCptTaxonomy, [{
|
12870 |
+
key: 'componentDidMount',
|
12871 |
+
value: function componentDidMount() {
|
12872 |
+
|
12873 |
+
// render dropdowns
|
12874 |
+
this.fetchTaxonomies(null); // null is important here
|
12875 |
+
}
|
12876 |
+
|
12877 |
+
// set the taxonomy dropdown options
|
12878 |
+
|
12879 |
+
}, {
|
12880 |
+
key: 'fetchTaxonomies',
|
12881 |
+
value: function fetchTaxonomies(newCPT) {
|
12882 |
+
var _this2 = this;
|
12883 |
+
|
12884 |
+
var _props = this.props,
|
12885 |
+
setAttributes = _props.setAttributes,
|
12886 |
+
block_post_type = _props.block_post_type,
|
12887 |
+
block_taxonomy = _props.block_taxonomy;
|
12888 |
+
|
12889 |
+
var taxonomy_url = 'simple-sitemap/v1/post-type-taxonomies/post';
|
12890 |
+
|
12891 |
+
wp.apiFetch({ path: taxonomy_url, method: 'GET' }).then(function (data) {
|
12892 |
+
|
12893 |
+
var msg = '';
|
12894 |
+
var disabled_status = false;
|
12895 |
+
var wrapperClass = '';
|
12896 |
+
var taxonomies = [];
|
12897 |
+
var tax_flag = true;
|
12898 |
+
|
12899 |
+
if (data.length === 0) {
|
12900 |
+
msg = 'No taxonomies found for this post type';
|
12901 |
+
disabled_status = true;
|
12902 |
+
wrapperClass = 'disabled';
|
12903 |
+
setAttributes({ block_taxonomy: '' });
|
12904 |
+
} else {
|
12905 |
+
var entries = __WEBPACK_IMPORTED_MODULE_2_babel_runtime_core_js_object_entries___default()(data);
|
12906 |
+
var _iteratorNormalCompletion = true;
|
12907 |
+
var _didIteratorError = false;
|
12908 |
+
var _iteratorError = undefined;
|
12909 |
+
|
12910 |
+
try {
|
12911 |
+
for (var _iterator = __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_get_iterator___default()(entries), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
12912 |
+
var _ref = _step.value;
|
12913 |
+
|
12914 |
+
var _ref2 = __WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_slicedToArray___default()(_ref, 2);
|
12915 |
+
|
12916 |
+
var key = _ref2[0];
|
12917 |
+
var value = _ref2[1];
|
12918 |
+
|
12919 |
+
var tmp = {
|
12920 |
+
value: key,
|
12921 |
+
label: value
|
12922 |
+
};
|
12923 |
+
taxonomies.push(tmp);
|
12924 |
+
|
12925 |
+
// use attribute value?
|
12926 |
+
if (tmp.value === block_taxonomy) {
|
12927 |
+
tax_flag = false;
|
12928 |
+
}
|
12929 |
+
}
|
12930 |
+
// update attribute with first found taxonomy unless current taxonomy attr. is found in taxonomy array
|
12931 |
+
|
12932 |
+
// only update tax attr. if current value not found in updated taxonomies array in which case just set to first taxonomy in array
|
12933 |
+
} catch (err) {
|
12934 |
+
_didIteratorError = true;
|
12935 |
+
_iteratorError = err;
|
12936 |
+
} finally {
|
12937 |
+
try {
|
12938 |
+
if (!_iteratorNormalCompletion && _iterator.return) {
|
12939 |
+
_iterator.return();
|
12940 |
+
}
|
12941 |
+
} finally {
|
12942 |
+
if (_didIteratorError) {
|
12943 |
+
throw _iteratorError;
|
12944 |
+
}
|
12945 |
+
}
|
12946 |
+
}
|
12947 |
+
|
12948 |
+
if (tax_flag) {
|
12949 |
+
setAttributes({ block_taxonomy: taxonomies[0].value });
|
12950 |
+
}
|
12951 |
+
}
|
12952 |
+
|
12953 |
+
_this2.setState({
|
12954 |
+
taxonomy_select_disabled_status: disabled_status,
|
12955 |
+
taxonomy_select_disabled_help: msg,
|
12956 |
+
taxonomies: taxonomies,
|
12957 |
+
wrapperClass: wrapperClass
|
12958 |
+
});
|
12959 |
+
return data;
|
12960 |
+
}, function (err) {
|
12961 |
+
return err;
|
12962 |
+
});
|
12963 |
+
}
|
12964 |
+
}, {
|
12965 |
+
key: 'updateTaxonomyValues',
|
12966 |
+
value: function updateTaxonomyValues(val) {
|
12967 |
+
var setAttributes = this.props.setAttributes;
|
12968 |
+
|
12969 |
+
setAttributes({ block_taxonomy: val });
|
12970 |
+
}
|
12971 |
+
}, {
|
12972 |
+
key: 'render',
|
12973 |
+
value: function render() {
|
12974 |
+
var _this3 = this;
|
12975 |
+
|
12976 |
+
var block_taxonomy = this.props.block_taxonomy;
|
12977 |
+
|
12978 |
+
|
12979 |
+
return wp.element.createElement(
|
12980 |
+
'div',
|
12981 |
+
{ className: this.state.wrapperClass },
|
12982 |
+
wp.element.createElement(SelectControl, {
|
12983 |
+
value: block_taxonomy,
|
12984 |
+
options: this.state.taxonomies,
|
12985 |
+
onChange: function onChange(val) {
|
12986 |
+
return _this3.updateTaxonomyValues(val);
|
12987 |
+
},
|
12988 |
+
disabled: this.state.taxonomy_select_disabled_status
|
12989 |
+
})
|
12990 |
+
);
|
12991 |
+
}
|
12992 |
+
}]);
|
12993 |
+
|
12994 |
+
return SelectCptTaxonomy;
|
12995 |
+
}(Component);
|
12996 |
+
|
12997 |
+
/***/ })
|
12998 |
+
/******/ ]);
|
12999 |
+
//# sourceMappingURL=blocks.editor.js.map
|
block_assets/js/blocks.editor.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"file":"./block_assets/js/blocks.editor.js","sources":["webpack:///webpack/bootstrap 9590f9cef20a30f460c2","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///external \"React\"","webpack:///./node_modules/prop-types/index.js","webpack:///./node_modules/core-js/library/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_global.js","webpack:///external \"ReactDOM\"","webpack:///./node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///./node_modules/core-js/library/modules/_to-iobject.js","webpack:///./node_modules/core-js/library/modules/_export.js","webpack:///./node_modules/core-js/library/modules/_object-dp.js","webpack:///./node_modules/core-js/library/modules/_descriptors.js","webpack:///./node_modules/core-js/library/modules/_has.js","webpack:///./node_modules/core-js/library/modules/_hide.js","webpack:///./node_modules/core-js/library/modules/_an-object.js","webpack:///./node_modules/core-js/library/modules/_is-object.js","webpack:///./node_modules/react-select/dist/react-select.esm.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/react-is/index.js","webpack:///./node_modules/react-transition-group/Transition.js","webpack:///./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js","webpack:///./node_modules/react-transition-group/utils/PropTypes.js","webpack:///./node_modules/react-transition-group/TransitionGroup.js","webpack:///./node_modules/core-js/library/modules/_iterators.js","webpack:///./node_modules/core-js/library/modules/_fails.js","webpack:///./node_modules/core-js/library/modules/_library.js","webpack:///./node_modules/core-js/library/modules/_property-desc.js","webpack:///./node_modules/core-js/library/modules/_object-keys.js","webpack:///./node_modules/core-js/library/modules/_uid.js","webpack:///./node_modules/core-js/library/modules/_object-pie.js","webpack:///./node_modules/babel-runtime/core-js/json/stringify.js","webpack:///./node_modules/core-js/library/fn/json/stringify.js","webpack:///./node_modules/memoize-one/dist/memoize-one.esm.js","webpack:///./node_modules/emotion/dist/index.esm.js","webpack:///./node_modules/create-emotion/dist/index.esm.js","webpack:///./node_modules/@emotion/memoize/dist/memoize.esm.js","webpack:///./node_modules/@emotion/unitless/dist/unitless.esm.js","webpack:///./node_modules/@emotion/hash/dist/hash.esm.js","webpack:///./node_modules/@emotion/stylis/dist/stylis.esm.js","webpack:///./node_modules/stylis-rule-sheet/index.js","webpack:///./node_modules/react-is/cjs/react-is.production.min.js","webpack:///./node_modules/react-is/cjs/react-is.development.js","webpack:///./node_modules/prop-types/factoryWithTypeCheckers.js","webpack:///./node_modules/object-assign/index.js","webpack:///./node_modules/prop-types/checkPropTypes.js","webpack:///./node_modules/prop-types/factoryWithThrowingShims.js","webpack:///./node_modules/raf/index.js","webpack:///./node_modules/performance-now/lib/performance-now.js","webpack:///./node_modules/react-input-autosize/lib/AutosizeInput.js","webpack:///./node_modules/react-transition-group/index.js","webpack:///./node_modules/react-transition-group/CSSTransition.js","webpack:///./node_modules/dom-helpers/class/addClass.js","webpack:///./node_modules/@babel/runtime/helpers/interopRequireDefault.js","webpack:///./node_modules/dom-helpers/class/hasClass.js","webpack:///./node_modules/dom-helpers/class/removeClass.js","webpack:///./node_modules/react-transition-group/ReplaceTransition.js","webpack:///./node_modules/react-transition-group/utils/ChildMapping.js","webpack:///./node_modules/babel-runtime/core-js/get-iterator.js","webpack:///./node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///./node_modules/core-js/library/modules/_cof.js","webpack:///./node_modules/core-js/library/modules/_defined.js","webpack:///./node_modules/core-js/library/modules/_to-primitive.js","webpack:///./node_modules/core-js/library/modules/_object-create.js","webpack:///./node_modules/core-js/library/modules/_to-integer.js","webpack:///./node_modules/core-js/library/modules/_shared-key.js","webpack:///./node_modules/core-js/library/modules/_shared.js","webpack:///./node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:///./node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:///./node_modules/core-js/library/modules/es6.string.iterator.js","webpack:///./node_modules/core-js/library/modules/_wks-ext.js","webpack:///./node_modules/core-js/library/modules/_wks-define.js","webpack:///./node_modules/core-js/library/modules/_iter-define.js","webpack:///./node_modules/core-js/library/modules/_ctx.js","webpack:///./node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:///./node_modules/core-js/library/modules/_dom-create.js","webpack:///./node_modules/core-js/library/modules/_redefine.js","webpack:///./node_modules/core-js/library/modules/_object-keys-internal.js","webpack:///./node_modules/core-js/library/modules/_object-gpo.js","webpack:///./node_modules/core-js/library/modules/_to-object.js","webpack:///./node_modules/core-js/library/modules/_classof.js","webpack:///./node_modules/babel-runtime/helpers/slicedToArray.js","webpack:///./node_modules/babel-runtime/core-js/object/entries.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/babel-runtime/helpers/createClass.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/babel-runtime/helpers/typeof.js","webpack:///./node_modules/core-js/library/modules/_object-gops.js","webpack:///./node_modules/core-js/library/modules/_object-gopn.js","webpack:///./node_modules/core-js/library/modules/_object-gopd.js","webpack:///./node_modules/babel-runtime/helpers/inherits.js","webpack:///src/blocks/index.js","webpack:///src/blocks/simple-sitemap/index.js","webpack:///src/blocks/_components/checkbox.js","webpack:///src/blocks/simple-sitemap-group/index.js","webpack:///./node_modules/core-js/library/fn/get-iterator.js","webpack:///./node_modules/core-js/library/modules/es6.array.iterator.js","webpack:///./node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:///./node_modules/core-js/library/modules/_iter-step.js","webpack:///./node_modules/core-js/library/modules/_iobject.js","webpack:///./node_modules/core-js/library/modules/_a-function.js","webpack:///./node_modules/core-js/library/modules/_iter-create.js","webpack:///./node_modules/core-js/library/modules/_object-dps.js","webpack:///./node_modules/core-js/library/modules/_array-includes.js","webpack:///./node_modules/core-js/library/modules/_to-length.js","webpack:///./node_modules/core-js/library/modules/_to-absolute-index.js","webpack:///./node_modules/core-js/library/modules/_html.js","webpack:///./node_modules/core-js/library/modules/_string-at.js","webpack:///./node_modules/core-js/library/modules/core.get-iterator.js","webpack:///./node_modules/core-js/library/modules/core.get-iterator-method.js","webpack:///./node_modules/babel-runtime/core-js/is-iterable.js","webpack:///./node_modules/core-js/library/fn/is-iterable.js","webpack:///./node_modules/core-js/library/modules/core.is-iterable.js","webpack:///./node_modules/core-js/library/fn/object/entries.js","webpack:///./node_modules/core-js/library/modules/es7.object.entries.js","webpack:///./node_modules/core-js/library/modules/_object-to-array.js","webpack:///./node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_object-sap.js","webpack:///./node_modules/babel-runtime/core-js/object/define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:///./node_modules/core-js/library/fn/symbol/iterator.js","webpack:///./node_modules/babel-runtime/core-js/symbol.js","webpack:///./node_modules/core-js/library/fn/symbol/index.js","webpack:///./node_modules/core-js/library/modules/es6.symbol.js","webpack:///./node_modules/core-js/library/modules/_meta.js","webpack:///./node_modules/core-js/library/modules/_enum-keys.js","webpack:///./node_modules/core-js/library/modules/_is-array.js","webpack:///./node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:///./node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_set-proto.js","webpack:///./node_modules/babel-runtime/core-js/object/create.js","webpack:///./node_modules/core-js/library/fn/object/create.js","webpack:///./node_modules/core-js/library/modules/es6.object.create.js","webpack:///src/blocks/_components/select-cpt-taxonomy.js"],"sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 93);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 9590f9cef20a30f460c2","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 0\n// module chunks = 0 1","var core = module.exports = { version: '2.6.5' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_core.js\n// module id = 1\n// module chunks = 0 1","module.exports = React;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"React\"\n// module id = 2\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/index.js\n// module id = 3\n// module chunks = 0 1","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks.js\n// module id = 4\n// module chunks = 0 1","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_global.js\n// module id = 5\n// module chunks = 0 1","module.exports = ReactDOM;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"ReactDOM\"\n// module id = 6\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/lib/ReactPropTypesSecret.js\n// module id = 7\n// module chunks = 0 1","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-iobject.js\n// module id = 8\n// module chunks = 0 1","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_export.js\n// module id = 9\n// module chunks = 0 1","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dp.js\n// module id = 10\n// module chunks = 0 1","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_descriptors.js\n// module id = 11\n// module chunks = 0 1","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_has.js\n// module id = 12\n// module chunks = 0 1","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_hide.js\n// module id = 13\n// module chunks = 0 1","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-object.js\n// module id = 14\n// module chunks = 0 1","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-object.js\n// module id = 15\n// module chunks = 0 1","import React, { Component, PureComponent } from 'react';\nimport memoizeOne from 'memoize-one';\nimport { css, injectGlobal } from 'emotion';\nimport { createPortal, findDOMNode } from 'react-dom';\nimport PropTypes from 'prop-types';\nimport raf from 'raf';\nimport AutosizeInput from 'react-input-autosize';\nimport { Transition, TransitionGroup } from 'react-transition-group';\n\nfunction _typeof(obj) {\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectSpread(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n\n if (typeof Object.getOwnPropertySymbols === 'function') {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n\n ownKeys.forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (typeof call === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\n// ==============================\n// NO OP\n// ==============================\nvar noop = function noop() {};\n// Class Name Prefixer\n// ==============================\n\n/**\n String representation of component state for styling with class names.\n\n Expects an array of strings OR a string/object pair:\n - className(['comp', 'comp-arg', 'comp-arg-2'])\n @returns 'react-select__comp react-select__comp-arg react-select__comp-arg-2'\n - className('comp', { some: true, state: false })\n @returns 'react-select__comp react-select__comp--some'\n*/\n\nfunction applyPrefixToName(prefix, name) {\n if (!name) {\n return prefix;\n } else if (name[0] === '-') {\n return prefix + name;\n } else {\n return prefix + '__' + name;\n }\n}\n\nfunction classNames(prefix, cssKey, state, className) {\n var arr = [cssKey, className];\n\n if (state && prefix) {\n for (var key in state) {\n if (state.hasOwnProperty(key) && state[key]) {\n arr.push(\"\".concat(applyPrefixToName(prefix, key)));\n }\n }\n }\n\n return arr.filter(function (i) {\n return i;\n }).map(function (i) {\n return String(i).trim();\n }).join(' ');\n} // ==============================\n// Clean Value\n// ==============================\n\nvar cleanValue = function cleanValue(value) {\n if (Array.isArray(value)) return value.filter(Boolean);\n if (_typeof(value) === 'object' && value !== null) return [value];\n return [];\n}; // ==============================\n// Handle Input Change\n// ==============================\n\nfunction handleInputChange(inputValue, actionMeta, onInputChange) {\n if (onInputChange) {\n var newValue = onInputChange(inputValue, actionMeta);\n if (typeof newValue === 'string') return newValue;\n }\n\n return inputValue;\n} // ==============================\n// Scroll Helpers\n// ==============================\n\nfunction isDocumentElement(el) {\n return [document.documentElement, document.body, window].indexOf(el) > -1;\n} // Normalized Scroll Top\n// ------------------------------\n\nfunction getScrollTop(el) {\n if (isDocumentElement(el)) {\n return window.pageYOffset;\n }\n\n return el.scrollTop;\n}\nfunction scrollTo(el, top) {\n // with a scroll distance, we perform scroll on the element\n if (isDocumentElement(el)) {\n window.scrollTo(0, top);\n return;\n }\n\n el.scrollTop = top;\n} // Get Scroll Parent\n// ------------------------------\n\nfunction getScrollParent(element) {\n var style = getComputedStyle(element);\n var excludeStaticParent = style.position === 'absolute';\n var overflowRx = /(auto|scroll)/;\n var docEl = document.documentElement; // suck it, flow...\n\n if (style.position === 'fixed') return docEl;\n\n for (var parent = element; parent = parent.parentElement;) {\n style = getComputedStyle(parent);\n\n if (excludeStaticParent && style.position === 'static') {\n continue;\n }\n\n if (overflowRx.test(style.overflow + style.overflowY + style.overflowX)) {\n return parent;\n }\n }\n\n return docEl;\n} // Animated Scroll To\n// ------------------------------\n\n/**\n @param t: time (elapsed)\n @param b: initial value\n @param c: amount of change\n @param d: duration\n*/\n\nfunction easeOutCubic(t, b, c, d) {\n return c * ((t = t / d - 1) * t * t + 1) + b;\n}\n\nfunction animatedScrollTo(element, to) {\n var duration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;\n var callback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : noop;\n var start = getScrollTop(element);\n var change = to - start;\n var increment = 10;\n var currentTime = 0;\n\n function animateScroll() {\n currentTime += increment;\n var val = easeOutCubic(currentTime, start, change, duration);\n scrollTo(element, val);\n\n if (currentTime < duration) {\n raf(animateScroll);\n } else {\n callback(element);\n }\n }\n\n animateScroll();\n} // Scroll Into View\n// ------------------------------\n\nfunction scrollIntoView(menuEl, focusedEl) {\n var menuRect = menuEl.getBoundingClientRect();\n var focusedRect = focusedEl.getBoundingClientRect();\n var overScroll = focusedEl.offsetHeight / 3;\n\n if (focusedRect.bottom + overScroll > menuRect.bottom) {\n scrollTo(menuEl, Math.min(focusedEl.offsetTop + focusedEl.clientHeight - menuEl.offsetHeight + overScroll, menuEl.scrollHeight));\n } else if (focusedRect.top - overScroll < menuRect.top) {\n scrollTo(menuEl, Math.max(focusedEl.offsetTop - overScroll, 0));\n }\n} // ==============================\n// Get bounding client object\n// ==============================\n// cannot get keys using array notation with DOMRect\n\nfunction getBoundingClientObj(element) {\n var rect = element.getBoundingClientRect();\n return {\n bottom: rect.bottom,\n height: rect.height,\n left: rect.left,\n right: rect.right,\n top: rect.top,\n width: rect.width\n };\n}\n// Touch Capability Detector\n// ==============================\n\nfunction isTouchCapable() {\n try {\n document.createEvent('TouchEvent');\n return true;\n } catch (e) {\n return false;\n }\n} // ==============================\n// Mobile Device Detector\n// ==============================\n\nfunction isMobileDevice() {\n try {\n return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n } catch (e) {\n return false;\n }\n}\n\nfunction getMenuPlacement(_ref) {\n var maxHeight = _ref.maxHeight,\n menuEl = _ref.menuEl,\n minHeight = _ref.minHeight,\n placement = _ref.placement,\n shouldScroll = _ref.shouldScroll,\n isFixedPosition = _ref.isFixedPosition,\n theme = _ref.theme;\n var spacing = theme.spacing;\n var scrollParent = getScrollParent(menuEl);\n var defaultState = {\n placement: 'bottom',\n maxHeight: maxHeight\n }; // something went wrong, return default state\n\n if (!menuEl || !menuEl.offsetParent) return defaultState; // we can't trust `scrollParent.scrollHeight` --> it may increase when\n // the menu is rendered\n\n var _scrollParent$getBoun = scrollParent.getBoundingClientRect(),\n scrollHeight = _scrollParent$getBoun.height;\n\n var _menuEl$getBoundingCl = menuEl.getBoundingClientRect(),\n menuBottom = _menuEl$getBoundingCl.bottom,\n menuHeight = _menuEl$getBoundingCl.height,\n menuTop = _menuEl$getBoundingCl.top;\n\n var _menuEl$offsetParent$ = menuEl.offsetParent.getBoundingClientRect(),\n containerTop = _menuEl$offsetParent$.top;\n\n var viewHeight = window.innerHeight;\n var scrollTop = getScrollTop(scrollParent);\n var marginBottom = parseInt(getComputedStyle(menuEl).marginBottom, 10);\n var marginTop = parseInt(getComputedStyle(menuEl).marginTop, 10);\n var viewSpaceAbove = containerTop - marginTop;\n var viewSpaceBelow = viewHeight - menuTop;\n var scrollSpaceAbove = viewSpaceAbove + scrollTop;\n var scrollSpaceBelow = scrollHeight - scrollTop - menuTop;\n var scrollDown = menuBottom - viewHeight + scrollTop + marginBottom;\n var scrollUp = scrollTop + menuTop - marginTop;\n var scrollDuration = 160;\n\n switch (placement) {\n case 'auto':\n case 'bottom':\n // 1: the menu will fit, do nothing\n if (viewSpaceBelow >= menuHeight) {\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n } // 2: the menu will fit, if scrolled\n\n\n if (scrollSpaceBelow >= menuHeight && !isFixedPosition) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollDown, scrollDuration);\n }\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n } // 3: the menu will fit, if constrained\n\n\n if (!isFixedPosition && scrollSpaceBelow >= minHeight || isFixedPosition && viewSpaceBelow >= minHeight) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollDown, scrollDuration);\n } // we want to provide as much of the menu as possible to the user,\n // so give them whatever is available below rather than the minHeight.\n\n\n var constrainedHeight = isFixedPosition ? viewSpaceBelow - marginBottom : scrollSpaceBelow - marginBottom;\n return {\n placement: 'bottom',\n maxHeight: constrainedHeight\n };\n } // 4. Forked beviour when there isn't enough space below\n // AUTO: flip the menu, render above\n\n\n if (placement === 'auto' || isFixedPosition) {\n // may need to be constrained after flipping\n var _constrainedHeight = maxHeight;\n var spaceAbove = isFixedPosition ? viewSpaceAbove : scrollSpaceAbove;\n\n if (spaceAbove >= minHeight) {\n _constrainedHeight = Math.min(spaceAbove - marginBottom - spacing.controlHeight, maxHeight);\n }\n\n return {\n placement: 'top',\n maxHeight: _constrainedHeight\n };\n } // BOTTOM: allow browser to increase scrollable area and immediately set scroll\n\n\n if (placement === 'bottom') {\n scrollTo(scrollParent, scrollDown);\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n }\n\n break;\n\n case 'top':\n // 1: the menu will fit, do nothing\n if (viewSpaceAbove >= menuHeight) {\n return {\n placement: 'top',\n maxHeight: maxHeight\n };\n } // 2: the menu will fit, if scrolled\n\n\n if (scrollSpaceAbove >= menuHeight && !isFixedPosition) {\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollUp, scrollDuration);\n }\n\n return {\n placement: 'top',\n maxHeight: maxHeight\n };\n } // 3: the menu will fit, if constrained\n\n\n if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {\n var _constrainedHeight2 = maxHeight; // we want to provide as much of the menu as possible to the user,\n // so give them whatever is available below rather than the minHeight.\n\n if (!isFixedPosition && scrollSpaceAbove >= minHeight || isFixedPosition && viewSpaceAbove >= minHeight) {\n _constrainedHeight2 = isFixedPosition ? viewSpaceAbove - marginTop : scrollSpaceAbove - marginTop;\n }\n\n if (shouldScroll) {\n animatedScrollTo(scrollParent, scrollUp, scrollDuration);\n }\n\n return {\n placement: 'top',\n maxHeight: _constrainedHeight2\n };\n } // 4. not enough space, the browser WILL NOT increase scrollable area when\n // absolutely positioned element rendered above the viewport (only below).\n // Flip the menu, render below\n\n\n return {\n placement: 'bottom',\n maxHeight: maxHeight\n };\n\n default:\n throw new Error(\"Invalid placement provided \\\"\".concat(placement, \"\\\".\"));\n } // fulfil contract with flow: implicit return value of undefined\n\n\n return defaultState;\n} // Menu Component\n// ------------------------------\n\nfunction alignToControl(placement) {\n var placementToCSSProp = {\n bottom: 'top',\n top: 'bottom'\n };\n return placement ? placementToCSSProp[placement] : 'bottom';\n}\n\nvar coercePlacement = function coercePlacement(p) {\n return p === 'auto' ? 'bottom' : p;\n};\n\nvar menuCSS = function menuCSS(_ref2) {\n var _ref3;\n\n var placement = _ref2.placement,\n _ref2$theme = _ref2.theme,\n borderRadius = _ref2$theme.borderRadius,\n spacing = _ref2$theme.spacing,\n colors = _ref2$theme.colors;\n return _ref3 = {\n label: 'menu'\n }, _defineProperty(_ref3, alignToControl(placement), '100%'), _defineProperty(_ref3, \"backgroundColor\", colors.neutral0), _defineProperty(_ref3, \"borderRadius\", borderRadius), _defineProperty(_ref3, \"boxShadow\", '0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)'), _defineProperty(_ref3, \"marginBottom\", spacing.menuGutter), _defineProperty(_ref3, \"marginTop\", spacing.menuGutter), _defineProperty(_ref3, \"position\", 'absolute'), _defineProperty(_ref3, \"width\", '100%'), _defineProperty(_ref3, \"zIndex\", 1), _ref3;\n}; // NOTE: internal only\n\nvar MenuPlacer =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(MenuPlacer, _Component);\n\n function MenuPlacer() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, MenuPlacer);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MenuPlacer)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n maxHeight: _this.props.maxMenuHeight,\n placement: null\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getPlacement\", function (ref) {\n var _this$props = _this.props,\n minMenuHeight = _this$props.minMenuHeight,\n maxMenuHeight = _this$props.maxMenuHeight,\n menuPlacement = _this$props.menuPlacement,\n menuPosition = _this$props.menuPosition,\n menuShouldScrollIntoView = _this$props.menuShouldScrollIntoView,\n theme = _this$props.theme;\n var getPortalPlacement = _this.context.getPortalPlacement;\n if (!ref) return; // DO NOT scroll if position is fixed\n\n var isFixedPosition = menuPosition === 'fixed';\n var shouldScroll = menuShouldScrollIntoView && !isFixedPosition;\n var state = getMenuPlacement({\n maxHeight: maxMenuHeight,\n menuEl: ref,\n minHeight: minMenuHeight,\n placement: menuPlacement,\n shouldScroll: shouldScroll,\n isFixedPosition: isFixedPosition,\n theme: theme\n });\n if (getPortalPlacement) getPortalPlacement(state);\n\n _this.setState(state);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getUpdatedProps\", function () {\n var menuPlacement = _this.props.menuPlacement;\n var placement = _this.state.placement || coercePlacement(menuPlacement);\n return _objectSpread({}, _this.props, {\n placement: placement,\n maxHeight: _this.state.maxHeight\n });\n });\n\n return _this;\n }\n\n _createClass(MenuPlacer, [{\n key: \"render\",\n value: function render() {\n var children = this.props.children;\n return children({\n ref: this.getPlacement,\n placerProps: this.getUpdatedProps()\n });\n }\n }]);\n\n return MenuPlacer;\n}(Component);\n\n_defineProperty(MenuPlacer, \"contextTypes\", {\n getPortalPlacement: PropTypes.func\n});\n\nvar Menu = function Menu(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerRef = props.innerRef,\n innerProps = props.innerProps;\n var cn = cx(\n /*#__PURE__*/\n css(getStyles('menu', props)), {\n menu: true\n }, className);\n return React.createElement(\"div\", _extends({\n className: cn\n }, innerProps, {\n ref: innerRef\n }), children);\n};\n// Menu List\n// ==============================\n\nvar menuListCSS = function menuListCSS(_ref4) {\n var maxHeight = _ref4.maxHeight,\n baseUnit = _ref4.theme.spacing.baseUnit;\n return {\n maxHeight: maxHeight,\n overflowY: 'auto',\n paddingBottom: baseUnit,\n paddingTop: baseUnit,\n position: 'relative',\n // required for offset[Height, Top] > keyboard scroll\n WebkitOverflowScrolling: 'touch'\n };\n};\nvar MenuList = function MenuList(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isMulti = props.isMulti,\n innerRef = props.innerRef;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('menuList', props)), {\n 'menu-list': true,\n 'menu-list--is-multi': isMulti\n }, className),\n ref: innerRef\n }, children);\n}; // ==============================\n// Menu Notices\n// ==============================\n\nvar noticeCSS = function noticeCSS(_ref5) {\n var _ref5$theme = _ref5.theme,\n baseUnit = _ref5$theme.spacing.baseUnit,\n colors = _ref5$theme.colors;\n return {\n color: colors.neutral40,\n padding: \"\".concat(baseUnit * 2, \"px \").concat(baseUnit * 3, \"px\"),\n textAlign: 'center'\n };\n};\n\nvar noOptionsMessageCSS = noticeCSS;\nvar loadingMessageCSS = noticeCSS;\nvar NoOptionsMessage = function NoOptionsMessage(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('noOptionsMessage', props)), {\n 'menu-notice': true,\n 'menu-notice--no-options': true\n }, className)\n }, innerProps), children);\n};\nNoOptionsMessage.defaultProps = {\n children: 'No options'\n};\nvar LoadingMessage = function LoadingMessage(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('loadingMessage', props)), {\n 'menu-notice': true,\n 'menu-notice--loading': true\n }, className)\n }, innerProps), children);\n};\nLoadingMessage.defaultProps = {\n children: 'Loading...'\n}; // ==============================\n// Menu Portal\n// ==============================\n\nvar menuPortalCSS = function menuPortalCSS(_ref6) {\n var rect = _ref6.rect,\n offset = _ref6.offset,\n position = _ref6.position;\n return {\n left: rect.left,\n position: position,\n top: offset,\n width: rect.width,\n zIndex: 1\n };\n};\nvar MenuPortal =\n/*#__PURE__*/\nfunction (_Component2) {\n _inherits(MenuPortal, _Component2);\n\n function MenuPortal() {\n var _getPrototypeOf3;\n\n var _this2;\n\n _classCallCheck(this, MenuPortal);\n\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n _this2 = _possibleConstructorReturn(this, (_getPrototypeOf3 = _getPrototypeOf(MenuPortal)).call.apply(_getPrototypeOf3, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), \"state\", {\n placement: null\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this2)), \"getPortalPlacement\", function (_ref7) {\n var placement = _ref7.placement;\n var initialPlacement = coercePlacement(_this2.props.menuPlacement); // avoid re-renders if the placement has not changed\n\n if (placement !== initialPlacement) {\n _this2.setState({\n placement: placement\n });\n }\n });\n\n return _this2;\n }\n\n _createClass(MenuPortal, [{\n key: \"getChildContext\",\n value: function getChildContext() {\n return {\n getPortalPlacement: this.getPortalPlacement\n };\n } // callback for occassions where the menu must \"flip\"\n\n }, {\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n appendTo = _this$props2.appendTo,\n children = _this$props2.children,\n controlElement = _this$props2.controlElement,\n menuPlacement = _this$props2.menuPlacement,\n position = _this$props2.menuPosition,\n getStyles = _this$props2.getStyles;\n var isFixed = position === 'fixed'; // bail early if required elements aren't present\n\n if (!appendTo && !isFixed || !controlElement) {\n return null;\n }\n\n var placement = this.state.placement || coercePlacement(menuPlacement);\n var rect = getBoundingClientObj(controlElement);\n var scrollDistance = isFixed ? 0 : window.pageYOffset;\n var offset = rect[placement] + scrollDistance;\n var state = {\n offset: offset,\n position: position,\n rect: rect\n }; // same wrapper element whether fixed or portalled\n\n var menuWrapper = React.createElement(\"div\", {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css(getStyles('menuPortal', state))\n }, children);\n return appendTo ? createPortal(menuWrapper, appendTo) : menuWrapper;\n }\n }]);\n\n return MenuPortal;\n}(Component);\n\n_defineProperty(MenuPortal, \"childContextTypes\", {\n getPortalPlacement: PropTypes.func\n});\n\nvar isArray = Array.isArray;\nvar keyList = Object.keys;\nvar hasProp = Object.prototype.hasOwnProperty;\n\nfunction equal(a, b) {\n // fast-deep-equal index.js 2.0.1\n if (a === b) return true;\n\n if (a && b && _typeof(a) == 'object' && _typeof(b) == 'object') {\n var arrA = isArray(a),\n arrB = isArray(b),\n i,\n length,\n key;\n\n if (arrA && arrB) {\n length = a.length;\n if (length != b.length) return false;\n\n for (i = length; i-- !== 0;) {\n if (!equal(a[i], b[i])) return false;\n }\n\n return true;\n }\n\n if (arrA != arrB) return false;\n var dateA = a instanceof Date,\n dateB = b instanceof Date;\n if (dateA != dateB) return false;\n if (dateA && dateB) return a.getTime() == b.getTime();\n var regexpA = a instanceof RegExp,\n regexpB = b instanceof RegExp;\n if (regexpA != regexpB) return false;\n if (regexpA && regexpB) return a.toString() == b.toString();\n var keys = keyList(a);\n length = keys.length;\n\n if (length !== keyList(b).length) {\n return false;\n }\n\n for (i = length; i-- !== 0;) {\n if (!hasProp.call(b, keys[i])) return false;\n } // end fast-deep-equal\n // Custom handling for React\n\n\n for (i = length; i-- !== 0;) {\n key = keys[i];\n\n if (key === '_owner' && a.$$typeof) {\n // React-specific: avoid traversing React elements' _owner.\n // _owner contains circular references\n // and is not needed when comparing the actual elements (and not their owners)\n // .$$typeof and ._store on just reasonable markers of a react element\n continue;\n } else {\n // all other properties should be traversed as usual\n if (!equal(a[key], b[key])) return false;\n }\n } // fast-deep-equal index.js 2.0.1\n\n\n return true;\n }\n\n return a !== a && b !== b;\n} // end fast-deep-equal\n\n\nfunction exportedEqual(a, b) {\n try {\n return equal(a, b);\n } catch (error) {\n if (error.message && error.message.match(/stack|recursion/i)) {\n // warn on circular references, don't crash\n // browsers give this different errors name and messages:\n // chrome/safari: \"RangeError\", \"Maximum call stack size exceeded\"\n // firefox: \"InternalError\", too much recursion\"\n // edge: \"Error\", \"Out of stack space\"\n console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);\n return false;\n } // some other error. we should definitely know about these\n\n\n throw error;\n }\n}\n\nvar diacritics = [{\n base: 'A',\n letters: /[\\u0041\\u24B6\\uFF21\\u00C0\\u00C1\\u00C2\\u1EA6\\u1EA4\\u1EAA\\u1EA8\\u00C3\\u0100\\u0102\\u1EB0\\u1EAE\\u1EB4\\u1EB2\\u0226\\u01E0\\u00C4\\u01DE\\u1EA2\\u00C5\\u01FA\\u01CD\\u0200\\u0202\\u1EA0\\u1EAC\\u1EB6\\u1E00\\u0104\\u023A\\u2C6F]/g\n}, {\n base: 'AA',\n letters: /[\\uA732]/g\n}, {\n base: 'AE',\n letters: /[\\u00C6\\u01FC\\u01E2]/g\n}, {\n base: 'AO',\n letters: /[\\uA734]/g\n}, {\n base: 'AU',\n letters: /[\\uA736]/g\n}, {\n base: 'AV',\n letters: /[\\uA738\\uA73A]/g\n}, {\n base: 'AY',\n letters: /[\\uA73C]/g\n}, {\n base: 'B',\n letters: /[\\u0042\\u24B7\\uFF22\\u1E02\\u1E04\\u1E06\\u0243\\u0182\\u0181]/g\n}, {\n base: 'C',\n letters: /[\\u0043\\u24B8\\uFF23\\u0106\\u0108\\u010A\\u010C\\u00C7\\u1E08\\u0187\\u023B\\uA73E]/g\n}, {\n base: 'D',\n letters: /[\\u0044\\u24B9\\uFF24\\u1E0A\\u010E\\u1E0C\\u1E10\\u1E12\\u1E0E\\u0110\\u018B\\u018A\\u0189\\uA779]/g\n}, {\n base: 'DZ',\n letters: /[\\u01F1\\u01C4]/g\n}, {\n base: 'Dz',\n letters: /[\\u01F2\\u01C5]/g\n}, {\n base: 'E',\n letters: /[\\u0045\\u24BA\\uFF25\\u00C8\\u00C9\\u00CA\\u1EC0\\u1EBE\\u1EC4\\u1EC2\\u1EBC\\u0112\\u1E14\\u1E16\\u0114\\u0116\\u00CB\\u1EBA\\u011A\\u0204\\u0206\\u1EB8\\u1EC6\\u0228\\u1E1C\\u0118\\u1E18\\u1E1A\\u0190\\u018E]/g\n}, {\n base: 'F',\n letters: /[\\u0046\\u24BB\\uFF26\\u1E1E\\u0191\\uA77B]/g\n}, {\n base: 'G',\n letters: /[\\u0047\\u24BC\\uFF27\\u01F4\\u011C\\u1E20\\u011E\\u0120\\u01E6\\u0122\\u01E4\\u0193\\uA7A0\\uA77D\\uA77E]/g\n}, {\n base: 'H',\n letters: /[\\u0048\\u24BD\\uFF28\\u0124\\u1E22\\u1E26\\u021E\\u1E24\\u1E28\\u1E2A\\u0126\\u2C67\\u2C75\\uA78D]/g\n}, {\n base: 'I',\n letters: /[\\u0049\\u24BE\\uFF29\\u00CC\\u00CD\\u00CE\\u0128\\u012A\\u012C\\u0130\\u00CF\\u1E2E\\u1EC8\\u01CF\\u0208\\u020A\\u1ECA\\u012E\\u1E2C\\u0197]/g\n}, {\n base: 'J',\n letters: /[\\u004A\\u24BF\\uFF2A\\u0134\\u0248]/g\n}, {\n base: 'K',\n letters: /[\\u004B\\u24C0\\uFF2B\\u1E30\\u01E8\\u1E32\\u0136\\u1E34\\u0198\\u2C69\\uA740\\uA742\\uA744\\uA7A2]/g\n}, {\n base: 'L',\n letters: /[\\u004C\\u24C1\\uFF2C\\u013F\\u0139\\u013D\\u1E36\\u1E38\\u013B\\u1E3C\\u1E3A\\u0141\\u023D\\u2C62\\u2C60\\uA748\\uA746\\uA780]/g\n}, {\n base: 'LJ',\n letters: /[\\u01C7]/g\n}, {\n base: 'Lj',\n letters: /[\\u01C8]/g\n}, {\n base: 'M',\n letters: /[\\u004D\\u24C2\\uFF2D\\u1E3E\\u1E40\\u1E42\\u2C6E\\u019C]/g\n}, {\n base: 'N',\n letters: /[\\u004E\\u24C3\\uFF2E\\u01F8\\u0143\\u00D1\\u1E44\\u0147\\u1E46\\u0145\\u1E4A\\u1E48\\u0220\\u019D\\uA790\\uA7A4]/g\n}, {\n base: 'NJ',\n letters: /[\\u01CA]/g\n}, {\n base: 'Nj',\n letters: /[\\u01CB]/g\n}, {\n base: 'O',\n letters: /[\\u004F\\u24C4\\uFF2F\\u00D2\\u00D3\\u00D4\\u1ED2\\u1ED0\\u1ED6\\u1ED4\\u00D5\\u1E4C\\u022C\\u1E4E\\u014C\\u1E50\\u1E52\\u014E\\u022E\\u0230\\u00D6\\u022A\\u1ECE\\u0150\\u01D1\\u020C\\u020E\\u01A0\\u1EDC\\u1EDA\\u1EE0\\u1EDE\\u1EE2\\u1ECC\\u1ED8\\u01EA\\u01EC\\u00D8\\u01FE\\u0186\\u019F\\uA74A\\uA74C]/g\n}, {\n base: 'OI',\n letters: /[\\u01A2]/g\n}, {\n base: 'OO',\n letters: /[\\uA74E]/g\n}, {\n base: 'OU',\n letters: /[\\u0222]/g\n}, {\n base: 'P',\n letters: /[\\u0050\\u24C5\\uFF30\\u1E54\\u1E56\\u01A4\\u2C63\\uA750\\uA752\\uA754]/g\n}, {\n base: 'Q',\n letters: /[\\u0051\\u24C6\\uFF31\\uA756\\uA758\\u024A]/g\n}, {\n base: 'R',\n letters: /[\\u0052\\u24C7\\uFF32\\u0154\\u1E58\\u0158\\u0210\\u0212\\u1E5A\\u1E5C\\u0156\\u1E5E\\u024C\\u2C64\\uA75A\\uA7A6\\uA782]/g\n}, {\n base: 'S',\n letters: /[\\u0053\\u24C8\\uFF33\\u1E9E\\u015A\\u1E64\\u015C\\u1E60\\u0160\\u1E66\\u1E62\\u1E68\\u0218\\u015E\\u2C7E\\uA7A8\\uA784]/g\n}, {\n base: 'T',\n letters: /[\\u0054\\u24C9\\uFF34\\u1E6A\\u0164\\u1E6C\\u021A\\u0162\\u1E70\\u1E6E\\u0166\\u01AC\\u01AE\\u023E\\uA786]/g\n}, {\n base: 'TZ',\n letters: /[\\uA728]/g\n}, {\n base: 'U',\n letters: /[\\u0055\\u24CA\\uFF35\\u00D9\\u00DA\\u00DB\\u0168\\u1E78\\u016A\\u1E7A\\u016C\\u00DC\\u01DB\\u01D7\\u01D5\\u01D9\\u1EE6\\u016E\\u0170\\u01D3\\u0214\\u0216\\u01AF\\u1EEA\\u1EE8\\u1EEE\\u1EEC\\u1EF0\\u1EE4\\u1E72\\u0172\\u1E76\\u1E74\\u0244]/g\n}, {\n base: 'V',\n letters: /[\\u0056\\u24CB\\uFF36\\u1E7C\\u1E7E\\u01B2\\uA75E\\u0245]/g\n}, {\n base: 'VY',\n letters: /[\\uA760]/g\n}, {\n base: 'W',\n letters: /[\\u0057\\u24CC\\uFF37\\u1E80\\u1E82\\u0174\\u1E86\\u1E84\\u1E88\\u2C72]/g\n}, {\n base: 'X',\n letters: /[\\u0058\\u24CD\\uFF38\\u1E8A\\u1E8C]/g\n}, {\n base: 'Y',\n letters: /[\\u0059\\u24CE\\uFF39\\u1EF2\\u00DD\\u0176\\u1EF8\\u0232\\u1E8E\\u0178\\u1EF6\\u1EF4\\u01B3\\u024E\\u1EFE]/g\n}, {\n base: 'Z',\n letters: /[\\u005A\\u24CF\\uFF3A\\u0179\\u1E90\\u017B\\u017D\\u1E92\\u1E94\\u01B5\\u0224\\u2C7F\\u2C6B\\uA762]/g\n}, {\n base: 'a',\n letters: /[\\u0061\\u24D0\\uFF41\\u1E9A\\u00E0\\u00E1\\u00E2\\u1EA7\\u1EA5\\u1EAB\\u1EA9\\u00E3\\u0101\\u0103\\u1EB1\\u1EAF\\u1EB5\\u1EB3\\u0227\\u01E1\\u00E4\\u01DF\\u1EA3\\u00E5\\u01FB\\u01CE\\u0201\\u0203\\u1EA1\\u1EAD\\u1EB7\\u1E01\\u0105\\u2C65\\u0250]/g\n}, {\n base: 'aa',\n letters: /[\\uA733]/g\n}, {\n base: 'ae',\n letters: /[\\u00E6\\u01FD\\u01E3]/g\n}, {\n base: 'ao',\n letters: /[\\uA735]/g\n}, {\n base: 'au',\n letters: /[\\uA737]/g\n}, {\n base: 'av',\n letters: /[\\uA739\\uA73B]/g\n}, {\n base: 'ay',\n letters: /[\\uA73D]/g\n}, {\n base: 'b',\n letters: /[\\u0062\\u24D1\\uFF42\\u1E03\\u1E05\\u1E07\\u0180\\u0183\\u0253]/g\n}, {\n base: 'c',\n letters: /[\\u0063\\u24D2\\uFF43\\u0107\\u0109\\u010B\\u010D\\u00E7\\u1E09\\u0188\\u023C\\uA73F\\u2184]/g\n}, {\n base: 'd',\n letters: /[\\u0064\\u24D3\\uFF44\\u1E0B\\u010F\\u1E0D\\u1E11\\u1E13\\u1E0F\\u0111\\u018C\\u0256\\u0257\\uA77A]/g\n}, {\n base: 'dz',\n letters: /[\\u01F3\\u01C6]/g\n}, {\n base: 'e',\n letters: /[\\u0065\\u24D4\\uFF45\\u00E8\\u00E9\\u00EA\\u1EC1\\u1EBF\\u1EC5\\u1EC3\\u1EBD\\u0113\\u1E15\\u1E17\\u0115\\u0117\\u00EB\\u1EBB\\u011B\\u0205\\u0207\\u1EB9\\u1EC7\\u0229\\u1E1D\\u0119\\u1E19\\u1E1B\\u0247\\u025B\\u01DD]/g\n}, {\n base: 'f',\n letters: /[\\u0066\\u24D5\\uFF46\\u1E1F\\u0192\\uA77C]/g\n}, {\n base: 'g',\n letters: /[\\u0067\\u24D6\\uFF47\\u01F5\\u011D\\u1E21\\u011F\\u0121\\u01E7\\u0123\\u01E5\\u0260\\uA7A1\\u1D79\\uA77F]/g\n}, {\n base: 'h',\n letters: /[\\u0068\\u24D7\\uFF48\\u0125\\u1E23\\u1E27\\u021F\\u1E25\\u1E29\\u1E2B\\u1E96\\u0127\\u2C68\\u2C76\\u0265]/g\n}, {\n base: 'hv',\n letters: /[\\u0195]/g\n}, {\n base: 'i',\n letters: /[\\u0069\\u24D8\\uFF49\\u00EC\\u00ED\\u00EE\\u0129\\u012B\\u012D\\u00EF\\u1E2F\\u1EC9\\u01D0\\u0209\\u020B\\u1ECB\\u012F\\u1E2D\\u0268\\u0131]/g\n}, {\n base: 'j',\n letters: /[\\u006A\\u24D9\\uFF4A\\u0135\\u01F0\\u0249]/g\n}, {\n base: 'k',\n letters: /[\\u006B\\u24DA\\uFF4B\\u1E31\\u01E9\\u1E33\\u0137\\u1E35\\u0199\\u2C6A\\uA741\\uA743\\uA745\\uA7A3]/g\n}, {\n base: 'l',\n letters: /[\\u006C\\u24DB\\uFF4C\\u0140\\u013A\\u013E\\u1E37\\u1E39\\u013C\\u1E3D\\u1E3B\\u017F\\u0142\\u019A\\u026B\\u2C61\\uA749\\uA781\\uA747]/g\n}, {\n base: 'lj',\n letters: /[\\u01C9]/g\n}, {\n base: 'm',\n letters: /[\\u006D\\u24DC\\uFF4D\\u1E3F\\u1E41\\u1E43\\u0271\\u026F]/g\n}, {\n base: 'n',\n letters: /[\\u006E\\u24DD\\uFF4E\\u01F9\\u0144\\u00F1\\u1E45\\u0148\\u1E47\\u0146\\u1E4B\\u1E49\\u019E\\u0272\\u0149\\uA791\\uA7A5]/g\n}, {\n base: 'nj',\n letters: /[\\u01CC]/g\n}, {\n base: 'o',\n letters: /[\\u006F\\u24DE\\uFF4F\\u00F2\\u00F3\\u00F4\\u1ED3\\u1ED1\\u1ED7\\u1ED5\\u00F5\\u1E4D\\u022D\\u1E4F\\u014D\\u1E51\\u1E53\\u014F\\u022F\\u0231\\u00F6\\u022B\\u1ECF\\u0151\\u01D2\\u020D\\u020F\\u01A1\\u1EDD\\u1EDB\\u1EE1\\u1EDF\\u1EE3\\u1ECD\\u1ED9\\u01EB\\u01ED\\u00F8\\u01FF\\u0254\\uA74B\\uA74D\\u0275]/g\n}, {\n base: 'oi',\n letters: /[\\u01A3]/g\n}, {\n base: 'ou',\n letters: /[\\u0223]/g\n}, {\n base: 'oo',\n letters: /[\\uA74F]/g\n}, {\n base: 'p',\n letters: /[\\u0070\\u24DF\\uFF50\\u1E55\\u1E57\\u01A5\\u1D7D\\uA751\\uA753\\uA755]/g\n}, {\n base: 'q',\n letters: /[\\u0071\\u24E0\\uFF51\\u024B\\uA757\\uA759]/g\n}, {\n base: 'r',\n letters: /[\\u0072\\u24E1\\uFF52\\u0155\\u1E59\\u0159\\u0211\\u0213\\u1E5B\\u1E5D\\u0157\\u1E5F\\u024D\\u027D\\uA75B\\uA7A7\\uA783]/g\n}, {\n base: 's',\n letters: /[\\u0073\\u24E2\\uFF53\\u00DF\\u015B\\u1E65\\u015D\\u1E61\\u0161\\u1E67\\u1E63\\u1E69\\u0219\\u015F\\u023F\\uA7A9\\uA785\\u1E9B]/g\n}, {\n base: 't',\n letters: /[\\u0074\\u24E3\\uFF54\\u1E6B\\u1E97\\u0165\\u1E6D\\u021B\\u0163\\u1E71\\u1E6F\\u0167\\u01AD\\u0288\\u2C66\\uA787]/g\n}, {\n base: 'tz',\n letters: /[\\uA729]/g\n}, {\n base: 'u',\n letters: /[\\u0075\\u24E4\\uFF55\\u00F9\\u00FA\\u00FB\\u0169\\u1E79\\u016B\\u1E7B\\u016D\\u00FC\\u01DC\\u01D8\\u01D6\\u01DA\\u1EE7\\u016F\\u0171\\u01D4\\u0215\\u0217\\u01B0\\u1EEB\\u1EE9\\u1EEF\\u1EED\\u1EF1\\u1EE5\\u1E73\\u0173\\u1E77\\u1E75\\u0289]/g\n}, {\n base: 'v',\n letters: /[\\u0076\\u24E5\\uFF56\\u1E7D\\u1E7F\\u028B\\uA75F\\u028C]/g\n}, {\n base: 'vy',\n letters: /[\\uA761]/g\n}, {\n base: 'w',\n letters: /[\\u0077\\u24E6\\uFF57\\u1E81\\u1E83\\u0175\\u1E87\\u1E85\\u1E98\\u1E89\\u2C73]/g\n}, {\n base: 'x',\n letters: /[\\u0078\\u24E7\\uFF58\\u1E8B\\u1E8D]/g\n}, {\n base: 'y',\n letters: /[\\u0079\\u24E8\\uFF59\\u1EF3\\u00FD\\u0177\\u1EF9\\u0233\\u1E8F\\u00FF\\u1EF7\\u1E99\\u1EF5\\u01B4\\u024F\\u1EFF]/g\n}, {\n base: 'z',\n letters: /[\\u007A\\u24E9\\uFF5A\\u017A\\u1E91\\u017C\\u017E\\u1E93\\u1E95\\u01B6\\u0225\\u0240\\u2C6C\\uA763]/g\n}];\nvar stripDiacritics = function stripDiacritics(str) {\n for (var i = 0; i < diacritics.length; i++) {\n str = str.replace(diacritics[i].letters, diacritics[i].base);\n }\n\n return str;\n};\n\nvar trimString = function trimString(str) {\n return str.replace(/^\\s+|\\s+$/g, '');\n};\n\nvar defaultStringify = function defaultStringify(option) {\n return \"\".concat(option.label, \" \").concat(option.value);\n};\n\nvar createFilter = function createFilter(config) {\n return function (option, rawInput) {\n var _ignoreCase$ignoreAcc = _objectSpread({\n ignoreCase: true,\n ignoreAccents: true,\n stringify: defaultStringify,\n trim: true,\n matchFrom: 'any'\n }, config),\n ignoreCase = _ignoreCase$ignoreAcc.ignoreCase,\n ignoreAccents = _ignoreCase$ignoreAcc.ignoreAccents,\n stringify = _ignoreCase$ignoreAcc.stringify,\n trim = _ignoreCase$ignoreAcc.trim,\n matchFrom = _ignoreCase$ignoreAcc.matchFrom;\n\n var input = trim ? trimString(rawInput) : rawInput;\n var candidate = trim ? trimString(stringify(option)) : stringify(option);\n\n if (ignoreCase) {\n input = input.toLowerCase();\n candidate = candidate.toLowerCase();\n }\n\n if (ignoreAccents) {\n input = stripDiacritics(input);\n candidate = stripDiacritics(candidate);\n }\n\n return matchFrom === 'start' ? candidate.substr(0, input.length) === input : candidate.indexOf(input) > -1;\n };\n};\n\nvar A11yText = function A11yText(props) {\n return React.createElement(\"span\", _extends({\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n label: 'a11yText',\n zIndex: 9999,\n border: 0,\n clip: 'rect(1px, 1px, 1px, 1px)',\n height: 1,\n width: 1,\n position: 'absolute',\n overflow: 'hidden',\n padding: 0,\n whiteSpace: 'nowrap',\n backgroundColor: 'red',\n color: 'blue'\n })\n }, props));\n};\n\nvar DummyInput =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(DummyInput, _Component);\n\n function DummyInput() {\n _classCallCheck(this, DummyInput);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(DummyInput).apply(this, arguments));\n }\n\n _createClass(DummyInput, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n inProp = _this$props.in,\n out = _this$props.out,\n onExited = _this$props.onExited,\n appear = _this$props.appear,\n enter = _this$props.enter,\n exit = _this$props.exit,\n innerRef = _this$props.innerRef,\n emotion = _this$props.emotion,\n props = _objectWithoutProperties(_this$props, [\"in\", \"out\", \"onExited\", \"appear\", \"enter\", \"exit\", \"innerRef\", \"emotion\"]);\n\n return React.createElement(\"input\", _extends({\n ref: innerRef\n }, props, {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n label: 'dummyInput',\n // get rid of any default styles\n background: 0,\n border: 0,\n fontSize: 'inherit',\n outline: 0,\n padding: 0,\n // important! without `width` browsers won't allow focus\n width: 1,\n // remove cursor on desktop\n color: 'transparent',\n // remove cursor on mobile whilst maintaining \"scroll into view\" behaviour\n left: -100,\n opacity: 0,\n position: 'relative',\n transform: 'scale(0)'\n })\n }));\n }\n }]);\n\n return DummyInput;\n}(Component);\n\nvar NodeResolver =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(NodeResolver, _Component);\n\n function NodeResolver() {\n _classCallCheck(this, NodeResolver);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(NodeResolver).apply(this, arguments));\n }\n\n _createClass(NodeResolver, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.props.innerRef(findDOMNode(this));\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.props.innerRef(null);\n }\n }, {\n key: \"render\",\n value: function render() {\n return this.props.children;\n }\n }]);\n\n return NodeResolver;\n}(Component);\n\nvar STYLE_KEYS = ['boxSizing', 'height', 'overflow', 'paddingRight', 'position'];\nvar LOCK_STYLES = {\n boxSizing: 'border-box',\n // account for possible declaration `width: 100%;` on body\n overflow: 'hidden',\n position: 'relative',\n height: '100%'\n};\n\nfunction preventTouchMove(e) {\n e.preventDefault();\n}\nfunction allowTouchMove(e) {\n e.stopPropagation();\n}\nfunction preventInertiaScroll() {\n var top = this.scrollTop;\n var totalScroll = this.scrollHeight;\n var currentScroll = top + this.offsetHeight;\n\n if (top === 0) {\n this.scrollTop = 1;\n } else if (currentScroll === totalScroll) {\n this.scrollTop = top - 1;\n }\n} // `ontouchstart` check works on most browsers\n// `maxTouchPoints` works on IE10/11 and Surface\n\nfunction isTouchDevice() {\n return 'ontouchstart' in window || navigator.maxTouchPoints;\n}\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nvar activeScrollLocks = 0;\n\nvar ScrollLock =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ScrollLock, _Component);\n\n function ScrollLock() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, ScrollLock);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollLock)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"originalStyles\", {});\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"listenerOptions\", {\n capture: false,\n passive: false\n });\n\n return _this;\n }\n\n _createClass(ScrollLock, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n if (!canUseDOM) return;\n var _this$props = this.props,\n accountForScrollbars = _this$props.accountForScrollbars,\n touchScrollTarget = _this$props.touchScrollTarget;\n var target = document.body;\n var targetStyle = target && target.style;\n\n if (accountForScrollbars) {\n // store any styles already applied to the body\n STYLE_KEYS.forEach(function (key) {\n var val = targetStyle && targetStyle[key];\n _this2.originalStyles[key] = val;\n });\n } // apply the lock styles and padding if this is the first scroll lock\n\n\n if (accountForScrollbars && activeScrollLocks < 1) {\n var currentPadding = parseInt(this.originalStyles.paddingRight, 10) || 0;\n var clientWidth = document.body ? document.body.clientWidth : 0;\n var adjustedPadding = window.innerWidth - clientWidth + currentPadding || 0;\n Object.keys(LOCK_STYLES).forEach(function (key) {\n var val = LOCK_STYLES[key];\n\n if (targetStyle) {\n targetStyle[key] = val;\n }\n });\n\n if (targetStyle) {\n targetStyle.paddingRight = \"\".concat(adjustedPadding, \"px\");\n }\n } // account for touch devices\n\n\n if (target && isTouchDevice()) {\n // Mobile Safari ignores { overflow: hidden } declaration on the body.\n target.addEventListener('touchmove', preventTouchMove, this.listenerOptions); // Allow scroll on provided target\n\n if (touchScrollTarget) {\n touchScrollTarget.addEventListener('touchstart', preventInertiaScroll, this.listenerOptions);\n touchScrollTarget.addEventListener('touchmove', allowTouchMove, this.listenerOptions);\n }\n } // increment active scroll locks\n\n\n activeScrollLocks += 1;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n var _this3 = this;\n\n if (!canUseDOM) return;\n var _this$props2 = this.props,\n accountForScrollbars = _this$props2.accountForScrollbars,\n touchScrollTarget = _this$props2.touchScrollTarget;\n var target = document.body;\n var targetStyle = target && target.style; // safely decrement active scroll locks\n\n activeScrollLocks = Math.max(activeScrollLocks - 1, 0); // reapply original body styles, if any\n\n if (accountForScrollbars && activeScrollLocks < 1) {\n STYLE_KEYS.forEach(function (key) {\n var val = _this3.originalStyles[key];\n\n if (targetStyle) {\n targetStyle[key] = val;\n }\n });\n } // remove touch listeners\n\n\n if (target && isTouchDevice()) {\n target.removeEventListener('touchmove', preventTouchMove, this.listenerOptions);\n\n if (touchScrollTarget) {\n touchScrollTarget.removeEventListener('touchstart', preventInertiaScroll, this.listenerOptions);\n touchScrollTarget.removeEventListener('touchmove', allowTouchMove, this.listenerOptions);\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return null;\n }\n }]);\n\n return ScrollLock;\n}(Component);\n\n_defineProperty(ScrollLock, \"defaultProps\", {\n accountForScrollbars: true\n});\n\n// NOTE:\n// We shouldn't need this after updating to React v16.3.0, which introduces:\n// - createRef() https://reactjs.org/docs/react-api.html#reactcreateref\n// - forwardRef() https://reactjs.org/docs/react-api.html#reactforwardref\nvar ScrollBlock =\n/*#__PURE__*/\nfunction (_PureComponent) {\n _inherits(ScrollBlock, _PureComponent);\n\n function ScrollBlock() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, ScrollBlock);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollBlock)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n touchScrollTarget: null\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getScrollTarget\", function (ref) {\n if (ref === _this.state.touchScrollTarget) return;\n\n _this.setState({\n touchScrollTarget: ref\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"blurSelectInput\", function () {\n if (document.activeElement) {\n document.activeElement.blur();\n }\n });\n\n return _this;\n }\n\n _createClass(ScrollBlock, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n children = _this$props.children,\n isEnabled = _this$props.isEnabled;\n var touchScrollTarget = this.state.touchScrollTarget; // bail early if not enabled\n\n if (!isEnabled) return children;\n /*\n * Div\n * ------------------------------\n * blocks scrolling on non-body elements behind the menu\n * NodeResolver\n * ------------------------------\n * we need a reference to the scrollable element to \"unlock\" scroll on\n * mobile devices\n * ScrollLock\n * ------------------------------\n * actually does the scroll locking\n */\n\n return React.createElement(\"div\", null, React.createElement(\"div\", {\n onClick: this.blurSelectInput,\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n position: 'fixed',\n left: 0,\n bottom: 0,\n right: 0,\n top: 0\n })\n }), React.createElement(NodeResolver, {\n innerRef: this.getScrollTarget\n }, children), touchScrollTarget ? React.createElement(ScrollLock, {\n touchScrollTarget: touchScrollTarget\n }) : null);\n }\n }]);\n\n return ScrollBlock;\n}(PureComponent);\n\nvar ScrollCaptor =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ScrollCaptor, _Component);\n\n function ScrollCaptor() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, ScrollCaptor);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(ScrollCaptor)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"isBottom\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"isTop\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"scrollTarget\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"touchStart\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"cancelScroll\", function (event) {\n event.preventDefault();\n event.stopPropagation();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleEventDelta\", function (event, delta) {\n var _this$props = _this.props,\n onBottomArrive = _this$props.onBottomArrive,\n onBottomLeave = _this$props.onBottomLeave,\n onTopArrive = _this$props.onTopArrive,\n onTopLeave = _this$props.onTopLeave;\n var _this$scrollTarget = _this.scrollTarget,\n scrollTop = _this$scrollTarget.scrollTop,\n scrollHeight = _this$scrollTarget.scrollHeight,\n clientHeight = _this$scrollTarget.clientHeight;\n var target = _this.scrollTarget;\n var isDeltaPositive = delta > 0;\n var availableScroll = scrollHeight - clientHeight - scrollTop;\n var shouldCancelScroll = false; // reset bottom/top flags\n\n if (availableScroll > delta && _this.isBottom) {\n if (onBottomLeave) onBottomLeave(event);\n _this.isBottom = false;\n }\n\n if (isDeltaPositive && _this.isTop) {\n if (onTopLeave) onTopLeave(event);\n _this.isTop = false;\n } // bottom limit\n\n\n if (isDeltaPositive && delta > availableScroll) {\n if (onBottomArrive && !_this.isBottom) {\n onBottomArrive(event);\n }\n\n target.scrollTop = scrollHeight;\n shouldCancelScroll = true;\n _this.isBottom = true; // top limit\n } else if (!isDeltaPositive && -delta > scrollTop) {\n if (onTopArrive && !_this.isTop) {\n onTopArrive(event);\n }\n\n target.scrollTop = 0;\n shouldCancelScroll = true;\n _this.isTop = true;\n } // cancel scroll\n\n\n if (shouldCancelScroll) {\n _this.cancelScroll(event);\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onWheel\", function (event) {\n _this.handleEventDelta(event, event.deltaY);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchStart\", function (event) {\n // set touch start so we can calculate touchmove delta\n _this.touchStart = event.changedTouches[0].clientY;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchMove\", function (event) {\n var deltaY = _this.touchStart - event.changedTouches[0].clientY;\n\n _this.handleEventDelta(event, deltaY);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getScrollTarget\", function (ref) {\n _this.scrollTarget = ref;\n });\n\n return _this;\n }\n\n _createClass(ScrollCaptor, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.startListening(this.scrollTarget);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.stopListening(this.scrollTarget);\n }\n }, {\n key: \"startListening\",\n value: function startListening(el) {\n // bail early if no scroll available\n if (!el) return;\n if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢\n\n if (typeof el.addEventListener === 'function') {\n el.addEventListener('wheel', this.onWheel, false);\n }\n\n if (typeof el.addEventListener === 'function') {\n el.addEventListener('touchstart', this.onTouchStart, false);\n }\n\n if (typeof el.addEventListener === 'function') {\n el.addEventListener('touchmove', this.onTouchMove, false);\n }\n }\n }, {\n key: \"stopListening\",\n value: function stopListening(el) {\n // bail early if no scroll available\n if (el.scrollHeight <= el.clientHeight) return; // all the if statements are to appease Flow 😢\n\n if (typeof el.removeEventListener === 'function') {\n el.removeEventListener('wheel', this.onWheel, false);\n }\n\n if (typeof el.removeEventListener === 'function') {\n el.removeEventListener('touchstart', this.onTouchStart, false);\n }\n\n if (typeof el.removeEventListener === 'function') {\n el.removeEventListener('touchmove', this.onTouchMove, false);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n return React.createElement(NodeResolver, {\n innerRef: this.getScrollTarget\n }, this.props.children);\n }\n }]);\n\n return ScrollCaptor;\n}(Component);\n\nvar ScrollCaptorSwitch =\n/*#__PURE__*/\nfunction (_Component2) {\n _inherits(ScrollCaptorSwitch, _Component2);\n\n function ScrollCaptorSwitch() {\n _classCallCheck(this, ScrollCaptorSwitch);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(ScrollCaptorSwitch).apply(this, arguments));\n }\n\n _createClass(ScrollCaptorSwitch, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n isEnabled = _this$props2.isEnabled,\n props = _objectWithoutProperties(_this$props2, [\"isEnabled\"]);\n\n return isEnabled ? React.createElement(ScrollCaptor, props) : this.props.children;\n }\n }]);\n\n return ScrollCaptorSwitch;\n}(Component);\n\n_defineProperty(ScrollCaptorSwitch, \"defaultProps\", {\n isEnabled: true\n});\n\nvar instructionsAriaMessage = function instructionsAriaMessage(event) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var isSearchable = context.isSearchable,\n isMulti = context.isMulti,\n label = context.label,\n isDisabled = context.isDisabled;\n\n switch (event) {\n case 'menu':\n return \"Use Up and Down to choose options\".concat(isDisabled ? '' : ', press Enter to select the currently focused option', \", press Escape to exit the menu, press Tab to select the option and exit the menu.\");\n\n case 'input':\n return \"\".concat(label ? label : 'Select', \" is focused \").concat(isSearchable ? ',type to refine list' : '', \", press Down to open the menu, \").concat(isMulti ? ' press left to focus selected values' : '');\n\n case 'value':\n return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';\n }\n};\nvar valueEventAriaMessage = function valueEventAriaMessage(event, context) {\n var value = context.value,\n isDisabled = context.isDisabled;\n if (!value) return;\n\n switch (event) {\n case 'deselect-option':\n case 'pop-value':\n case 'remove-value':\n return \"option \".concat(value, \", deselected.\");\n\n case 'select-option':\n return isDisabled ? \"option \".concat(value, \" is disabled. Select another option.\") : \"option \".concat(value, \", selected.\");\n }\n};\nvar valueFocusAriaMessage = function valueFocusAriaMessage(_ref) {\n var focusedValue = _ref.focusedValue,\n getOptionLabel = _ref.getOptionLabel,\n selectValue = _ref.selectValue;\n return \"value \".concat(getOptionLabel(focusedValue), \" focused, \").concat(selectValue.indexOf(focusedValue) + 1, \" of \").concat(selectValue.length, \".\");\n};\nvar optionFocusAriaMessage = function optionFocusAriaMessage(_ref2) {\n var focusedOption = _ref2.focusedOption,\n getOptionLabel = _ref2.getOptionLabel,\n options = _ref2.options;\n return \"option \".concat(getOptionLabel(focusedOption), \" focused\").concat(focusedOption.isDisabled ? ' disabled' : '', \", \").concat(options.indexOf(focusedOption) + 1, \" of \").concat(options.length, \".\");\n};\nvar resultsAriaMessage = function resultsAriaMessage(_ref3) {\n var inputValue = _ref3.inputValue,\n screenReaderMessage = _ref3.screenReaderMessage;\n return \"\".concat(screenReaderMessage).concat(inputValue ? ' for search term ' + inputValue : '', \".\");\n};\n\nvar formatGroupLabel = function formatGroupLabel(group) {\n return group.label;\n};\nvar getOptionLabel = function getOptionLabel(option) {\n return option.label;\n};\nvar getOptionValue = function getOptionValue(option) {\n return option.value;\n};\nvar isOptionDisabled = function isOptionDisabled(option) {\n return !!option.isDisabled;\n};\n\nvar containerCSS = function containerCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n isRtl = _ref.isRtl;\n return {\n label: 'container',\n direction: isRtl ? 'rtl' : null,\n pointerEvents: isDisabled ? 'none' : null,\n // cancel mouse events when disabled\n position: 'relative'\n };\n};\nvar SelectContainer = function SelectContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isDisabled = props.isDisabled,\n isRtl = props.isRtl;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('container', props)), {\n '--is-disabled': isDisabled,\n '--is-rtl': isRtl\n }, className)\n }, innerProps), children);\n}; // ==============================\n// Value Container\n// ==============================\n\nvar valueContainerCSS = function valueContainerCSS(_ref2) {\n var spacing = _ref2.theme.spacing;\n return {\n alignItems: 'center',\n display: 'flex',\n flex: 1,\n flexWrap: 'wrap',\n padding: \"\".concat(spacing.baseUnit / 2, \"px \").concat(spacing.baseUnit * 2, \"px\"),\n WebkitOverflowScrolling: 'touch',\n position: 'relative',\n overflow: 'hidden'\n };\n};\nvar ValueContainer =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(ValueContainer, _Component);\n\n function ValueContainer() {\n _classCallCheck(this, ValueContainer);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(ValueContainer).apply(this, arguments));\n }\n\n _createClass(ValueContainer, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n children = _this$props.children,\n className = _this$props.className,\n cx = _this$props.cx,\n isMulti = _this$props.isMulti,\n getStyles = _this$props.getStyles,\n hasValue = _this$props.hasValue;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('valueContainer', this.props)), {\n 'value-container': true,\n 'value-container--is-multi': isMulti,\n 'value-container--has-value': hasValue\n }, className)\n }, children);\n }\n }]);\n\n return ValueContainer;\n}(Component); // ==============================\n// Indicator Container\n// ==============================\n\nvar indicatorsContainerCSS = function indicatorsContainerCSS() {\n return {\n alignItems: 'center',\n alignSelf: 'stretch',\n display: 'flex',\n flexShrink: 0\n };\n};\nvar IndicatorsContainer = function IndicatorsContainer(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('indicatorsContainer', props)), {\n 'indicators': true\n }, className)\n }, children);\n};\n\n// ==============================\n// Dropdown & Clear Icons\n// ==============================\nvar Svg = function Svg(_ref) {\n var size = _ref.size,\n props = _objectWithoutProperties(_ref, [\"size\"]);\n\n return React.createElement(\"svg\", _extends({\n height: size,\n width: size,\n viewBox: \"0 0 20 20\",\n \"aria-hidden\": \"true\",\n focusable: \"false\",\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n display: 'inline-block',\n fill: 'currentColor',\n lineHeight: 1,\n stroke: 'currentColor',\n strokeWidth: 0\n })\n }, props));\n};\n\nvar CrossIcon = function CrossIcon(props) {\n return React.createElement(Svg, _extends({\n size: 20\n }, props), React.createElement(\"path\", {\n d: \"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z\"\n }));\n};\nvar DownChevron = function DownChevron(props) {\n return React.createElement(Svg, _extends({\n size: 20\n }, props), React.createElement(\"path\", {\n d: \"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z\"\n }));\n}; // ==============================\n// Dropdown & Clear Buttons\n// ==============================\n\nvar baseCSS = function baseCSS(_ref2) {\n var isFocused = _ref2.isFocused,\n _ref2$theme = _ref2.theme,\n baseUnit = _ref2$theme.spacing.baseUnit,\n colors = _ref2$theme.colors;\n return {\n label: 'indicatorContainer',\n color: isFocused ? colors.neutral60 : colors.neutral20,\n display: 'flex',\n padding: baseUnit * 2,\n transition: 'color 150ms',\n ':hover': {\n color: isFocused ? colors.neutral80 : colors.neutral40\n }\n };\n};\n\nvar dropdownIndicatorCSS = baseCSS;\nvar DropdownIndicator = function DropdownIndicator(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('dropdownIndicator', props)), {\n 'indicator': true,\n 'dropdown-indicator': true\n }, className)\n }), children || React.createElement(DownChevron, null));\n};\nvar clearIndicatorCSS = baseCSS;\nvar ClearIndicator = function ClearIndicator(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('clearIndicator', props)), {\n 'indicator': true,\n 'clear-indicator': true\n }, className)\n }), children || React.createElement(CrossIcon, null));\n}; // ==============================\n// Separator\n// ==============================\n\nvar indicatorSeparatorCSS = function indicatorSeparatorCSS(_ref3) {\n var isDisabled = _ref3.isDisabled,\n _ref3$theme = _ref3.theme,\n baseUnit = _ref3$theme.spacing.baseUnit,\n colors = _ref3$theme.colors;\n return {\n label: 'indicatorSeparator',\n alignSelf: 'stretch',\n backgroundColor: isDisabled ? colors.neutral10 : colors.neutral20,\n marginBottom: baseUnit * 2,\n marginTop: baseUnit * 2,\n width: 1\n };\n};\nvar IndicatorSeparator = function IndicatorSeparator(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"span\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('indicatorSeparator', props)), {\n 'indicator-separator': true\n }, className)\n }));\n}; // ==============================\n// Loading\n// ==============================\n\nvar keyframesName = 'react-select-loading-indicator';\nvar keyframesInjected = false;\nvar loadingIndicatorCSS = function loadingIndicatorCSS(_ref4) {\n var isFocused = _ref4.isFocused,\n size = _ref4.size,\n _ref4$theme = _ref4.theme,\n colors = _ref4$theme.colors,\n baseUnit = _ref4$theme.spacing.baseUnit;\n return {\n label: 'loadingIndicator',\n color: isFocused ? colors.neutral60 : colors.neutral20,\n display: 'flex',\n padding: baseUnit * 2,\n transition: 'color 150ms',\n alignSelf: 'center',\n fontSize: size,\n lineHeight: 1,\n marginRight: size,\n textAlign: 'center',\n verticalAlign: 'middle'\n };\n};\n\nvar LoadingDot = function LoadingDot(_ref5) {\n var color = _ref5.color,\n delay = _ref5.delay,\n offset = _ref5.offset;\n return React.createElement(\"span\", {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css({\n animationDuration: '1s',\n animationDelay: \"\".concat(delay, \"ms\"),\n animationIterationCount: 'infinite',\n animationName: keyframesName,\n animationTimingFunction: 'ease-in-out',\n backgroundColor: color,\n borderRadius: '1em',\n display: 'inline-block',\n marginLeft: offset ? '1em' : null,\n height: '1em',\n verticalAlign: 'top',\n width: '1em'\n })\n });\n};\n\nvar LoadingIndicator = function LoadingIndicator(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps,\n isFocused = props.isFocused,\n isRtl = props.isRtl,\n colors = props.theme.colors;\n var color = isFocused ? colors.neutral80 : colors.neutral20;\n\n if (!keyframesInjected) {\n // eslint-disable-next-line no-unused-expressions\n injectGlobal(\"@keyframes \", keyframesName, \"{0%,80%,100%{opacity:0;}40%{opacity:1;}};\");\n keyframesInjected = true;\n }\n\n return React.createElement(\"div\", _extends({}, innerProps, {\n className: cx(\n /*#__PURE__*/\n css(getStyles('loadingIndicator', props)), {\n 'indicator': true,\n 'loading-indicator': true\n }, className)\n }), React.createElement(LoadingDot, {\n color: color,\n delay: 0,\n offset: isRtl\n }), React.createElement(LoadingDot, {\n color: color,\n delay: 160,\n offset: true\n }), React.createElement(LoadingDot, {\n color: color,\n delay: 320,\n offset: !isRtl\n }));\n};\nLoadingIndicator.defaultProps = {\n size: 4\n};\n\nvar css$1 = function css$$1(_ref) {\n var isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n _ref$theme = _ref.theme,\n colors = _ref$theme.colors,\n borderRadius = _ref$theme.borderRadius,\n spacing = _ref$theme.spacing;\n return {\n label: 'control',\n alignItems: 'center',\n backgroundColor: isDisabled ? colors.neutral5 : colors.neutral0,\n borderColor: isDisabled ? colors.neutral10 : isFocused ? colors.primary : colors.neutral20,\n borderRadius: borderRadius,\n borderStyle: 'solid',\n borderWidth: 1,\n boxShadow: isFocused ? \"0 0 0 1px \".concat(colors.primary) : null,\n cursor: 'default',\n display: 'flex',\n flexWrap: 'wrap',\n justifyContent: 'space-between',\n minHeight: spacing.controlHeight,\n outline: '0 !important',\n position: 'relative',\n transition: 'all 100ms',\n '&:hover': {\n borderColor: isFocused ? colors.primary : colors.neutral30\n }\n };\n};\n\nvar Control = function Control(props) {\n var children = props.children,\n cx = props.cx,\n getStyles = props.getStyles,\n className = props.className,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n innerRef = props.innerRef,\n innerProps = props.innerProps,\n menuIsOpen = props.menuIsOpen;\n return React.createElement(\"div\", _extends({\n ref: innerRef,\n className: cx(\n /*#__PURE__*/\n css(getStyles('control', props)), {\n 'control': true,\n 'control--is-disabled': isDisabled,\n 'control--is-focused': isFocused,\n 'control--menu-is-open': menuIsOpen\n }, className)\n }, innerProps), children);\n};\n\nvar groupCSS = function groupCSS(_ref) {\n var spacing = _ref.theme.spacing;\n return {\n paddingBottom: spacing.baseUnit * 2,\n paddingTop: spacing.baseUnit * 2\n };\n};\n\nvar Group = function Group(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n Heading = props.Heading,\n headingProps = props.headingProps,\n label = props.label,\n theme = props.theme,\n selectProps = props.selectProps;\n return React.createElement(\"div\", {\n className: cx(\n /*#__PURE__*/\n css(getStyles('group', props)), {\n 'group': true\n }, className)\n }, React.createElement(Heading, _extends({}, headingProps, {\n selectProps: selectProps,\n theme: theme,\n getStyles: getStyles,\n cx: cx\n }), label), React.createElement(\"div\", null, children));\n};\n\nvar groupHeadingCSS = function groupHeadingCSS(_ref2) {\n var spacing = _ref2.theme.spacing;\n return {\n label: 'group',\n color: '#999',\n cursor: 'default',\n display: 'block',\n fontSize: '75%',\n fontWeight: '500',\n marginBottom: '0.25em',\n paddingLeft: spacing.baseUnit * 3,\n paddingRight: spacing.baseUnit * 3,\n textTransform: 'uppercase'\n };\n};\nvar GroupHeading = function GroupHeading(props) {\n var className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n theme = props.theme,\n selectProps = props.selectProps,\n cleanProps = _objectWithoutProperties(props, [\"className\", \"cx\", \"getStyles\", \"theme\", \"selectProps\"]);\n\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('groupHeading', _objectSpread({\n theme: theme\n }, cleanProps))), {\n 'group-heading': true\n }, className)\n }, cleanProps));\n};\n\nvar inputCSS = function inputCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n margin: spacing.baseUnit / 2,\n paddingBottom: spacing.baseUnit / 2,\n paddingTop: spacing.baseUnit / 2,\n visibility: isDisabled ? 'hidden' : 'visible',\n color: colors.neutral80\n };\n};\n\nvar inputStyle = function inputStyle(isHidden) {\n return {\n label: 'input',\n background: 0,\n border: 0,\n fontSize: 'inherit',\n opacity: isHidden ? 0 : 1,\n outline: 0,\n padding: 0,\n color: 'inherit'\n };\n};\n\nvar Input = function Input(_ref2) {\n var className = _ref2.className,\n cx = _ref2.cx,\n getStyles = _ref2.getStyles,\n innerRef = _ref2.innerRef,\n isHidden = _ref2.isHidden,\n isDisabled = _ref2.isDisabled,\n theme = _ref2.theme,\n selectProps = _ref2.selectProps,\n props = _objectWithoutProperties(_ref2, [\"className\", \"cx\", \"getStyles\", \"innerRef\", \"isHidden\", \"isDisabled\", \"theme\", \"selectProps\"]);\n\n return React.createElement(\"div\", {\n className:\n /*#__PURE__*/\n\n /*#__PURE__*/\n css(getStyles('input', _objectSpread({\n theme: theme\n }, props)))\n }, React.createElement(AutosizeInput, _extends({\n className: cx(null, {\n 'input': true\n }, className),\n inputRef: innerRef,\n inputStyle: inputStyle(isHidden),\n disabled: isDisabled\n }, props)));\n};\n\nvar multiValueCSS = function multiValueCSS(_ref) {\n var _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n borderRadius = _ref$theme.borderRadius,\n colors = _ref$theme.colors;\n return {\n label: 'multiValue',\n backgroundColor: colors.neutral10,\n borderRadius: borderRadius / 2,\n display: 'flex',\n margin: spacing.baseUnit / 2,\n minWidth: 0 // resolves flex/text-overflow bug\n\n };\n};\nvar multiValueLabelCSS = function multiValueLabelCSS(_ref2) {\n var _ref2$theme = _ref2.theme,\n borderRadius = _ref2$theme.borderRadius,\n colors = _ref2$theme.colors,\n cropWithEllipsis = _ref2.cropWithEllipsis;\n return {\n borderRadius: borderRadius / 2,\n color: colors.neutral80,\n fontSize: '85%',\n overflow: 'hidden',\n padding: 3,\n paddingLeft: 6,\n textOverflow: cropWithEllipsis ? 'ellipsis' : null,\n whiteSpace: 'nowrap'\n };\n};\nvar multiValueRemoveCSS = function multiValueRemoveCSS(_ref3) {\n var _ref3$theme = _ref3.theme,\n spacing = _ref3$theme.spacing,\n borderRadius = _ref3$theme.borderRadius,\n colors = _ref3$theme.colors,\n isFocused = _ref3.isFocused;\n return {\n alignItems: 'center',\n borderRadius: borderRadius / 2,\n backgroundColor: isFocused && colors.dangerLight,\n display: 'flex',\n paddingLeft: spacing.baseUnit,\n paddingRight: spacing.baseUnit,\n ':hover': {\n backgroundColor: colors.dangerLight,\n color: colors.danger\n }\n };\n};\nvar MultiValueGeneric = function MultiValueGeneric(_ref4) {\n var children = _ref4.children,\n innerProps = _ref4.innerProps;\n return React.createElement(\"div\", innerProps, children);\n};\nvar MultiValueContainer = MultiValueGeneric;\nvar MultiValueLabel = MultiValueGeneric;\nvar MultiValueRemove =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(MultiValueRemove, _Component);\n\n function MultiValueRemove() {\n _classCallCheck(this, MultiValueRemove);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(MultiValueRemove).apply(this, arguments));\n }\n\n _createClass(MultiValueRemove, [{\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n children = _this$props.children,\n innerProps = _this$props.innerProps;\n return React.createElement(\"div\", innerProps, children || React.createElement(CrossIcon, {\n size: 14\n }));\n }\n }]);\n\n return MultiValueRemove;\n}(Component);\n\nvar MultiValue =\n/*#__PURE__*/\nfunction (_Component2) {\n _inherits(MultiValue, _Component2);\n\n function MultiValue() {\n _classCallCheck(this, MultiValue);\n\n return _possibleConstructorReturn(this, _getPrototypeOf(MultiValue).apply(this, arguments));\n }\n\n _createClass(MultiValue, [{\n key: \"render\",\n value: function render() {\n var _this$props2 = this.props,\n children = _this$props2.children,\n className = _this$props2.className,\n components = _this$props2.components,\n cx = _this$props2.cx,\n data = _this$props2.data,\n getStyles = _this$props2.getStyles,\n innerProps = _this$props2.innerProps,\n isDisabled = _this$props2.isDisabled,\n removeProps = _this$props2.removeProps,\n selectProps = _this$props2.selectProps;\n var Container = components.Container,\n Label = components.Label,\n Remove = components.Remove;\n\n var containerInnerProps = _objectSpread({\n className: cx(\n /*#__PURE__*/\n css(getStyles('multiValue', this.props)), {\n 'multi-value': true,\n 'multi-value--is-disabled': isDisabled\n }, className)\n }, innerProps);\n\n var labelInnerProps = {\n className: cx(\n /*#__PURE__*/\n css(getStyles('multiValueLabel', this.props)), {\n 'multi-value__label': true\n }, className)\n };\n\n var removeInnerProps = _objectSpread({\n className: cx(\n /*#__PURE__*/\n css(getStyles('multiValueRemove', this.props)), {\n 'multi-value__remove': true\n }, className)\n }, removeProps);\n\n return React.createElement(Container, {\n data: data,\n innerProps: containerInnerProps,\n selectProps: selectProps\n }, React.createElement(Label, {\n data: data,\n innerProps: labelInnerProps,\n selectProps: selectProps\n }, children), React.createElement(Remove, {\n data: data,\n innerProps: removeInnerProps,\n selectProps: selectProps\n }));\n }\n }]);\n\n return MultiValue;\n}(Component);\n\n_defineProperty(MultiValue, \"defaultProps\", {\n cropWithEllipsis: true\n});\n\nvar optionCSS = function optionCSS(_ref) {\n var isDisabled = _ref.isDisabled,\n isFocused = _ref.isFocused,\n isSelected = _ref.isSelected,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'option',\n backgroundColor: isSelected ? colors.primary : isFocused ? colors.primary25 : 'transparent',\n color: isDisabled ? colors.neutral20 : isSelected ? colors.neutral0 : 'inherit',\n cursor: 'default',\n display: 'block',\n fontSize: 'inherit',\n padding: \"\".concat(spacing.baseUnit * 2, \"px \").concat(spacing.baseUnit * 3, \"px\"),\n width: '100%',\n userSelect: 'none',\n WebkitTapHighlightColor: 'rgba(0, 0, 0, 0)',\n // provide some affordance on touch devices\n ':active': {\n backgroundColor: !isDisabled && (isSelected ? colors.primary : colors.primary50)\n }\n };\n};\n\nvar Option = function Option(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isDisabled = props.isDisabled,\n isFocused = props.isFocused,\n isSelected = props.isSelected,\n innerRef = props.innerRef,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n ref: innerRef,\n className: cx(\n /*#__PURE__*/\n css(getStyles('option', props)), {\n 'option': true,\n 'option--is-disabled': isDisabled,\n 'option--is-focused': isFocused,\n 'option--is-selected': isSelected\n }, className)\n }, innerProps), children);\n};\n\nvar placeholderCSS = function placeholderCSS(_ref) {\n var _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'placeholder',\n color: colors.neutral50,\n marginLeft: spacing.baseUnit / 2,\n marginRight: spacing.baseUnit / 2,\n position: 'absolute',\n top: '50%',\n transform: 'translateY(-50%)'\n };\n};\n\nvar Placeholder = function Placeholder(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('placeholder', props)), {\n 'placeholder': true\n }, className)\n }, innerProps), children);\n};\n\nvar css$2 = function css$$1(_ref) {\n var isDisabled = _ref.isDisabled,\n _ref$theme = _ref.theme,\n spacing = _ref$theme.spacing,\n colors = _ref$theme.colors;\n return {\n label: 'singleValue',\n color: isDisabled ? colors.neutral40 : colors.neutral80,\n marginLeft: spacing.baseUnit / 2,\n marginRight: spacing.baseUnit / 2,\n maxWidth: \"calc(100% - \".concat(spacing.baseUnit * 2, \"px)\"),\n overflow: 'hidden',\n position: 'absolute',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n top: '50%',\n transform: 'translateY(-50%)'\n };\n};\n\nvar SingleValue = function SingleValue(props) {\n var children = props.children,\n className = props.className,\n cx = props.cx,\n getStyles = props.getStyles,\n isDisabled = props.isDisabled,\n innerProps = props.innerProps;\n return React.createElement(\"div\", _extends({\n className: cx(\n /*#__PURE__*/\n css(getStyles('singleValue', props)), {\n 'single-value': true,\n 'single-value--is-disabled': isDisabled\n }, className)\n }, innerProps), children);\n};\n\nvar components = {\n ClearIndicator: ClearIndicator,\n Control: Control,\n DropdownIndicator: DropdownIndicator,\n DownChevron: DownChevron,\n CrossIcon: CrossIcon,\n Group: Group,\n GroupHeading: GroupHeading,\n IndicatorsContainer: IndicatorsContainer,\n IndicatorSeparator: IndicatorSeparator,\n Input: Input,\n LoadingIndicator: LoadingIndicator,\n Menu: Menu,\n MenuList: MenuList,\n MenuPortal: MenuPortal,\n LoadingMessage: LoadingMessage,\n NoOptionsMessage: NoOptionsMessage,\n MultiValue: MultiValue,\n MultiValueContainer: MultiValueContainer,\n MultiValueLabel: MultiValueLabel,\n MultiValueRemove: MultiValueRemove,\n Option: Option,\n Placeholder: Placeholder,\n SelectContainer: SelectContainer,\n SingleValue: SingleValue,\n ValueContainer: ValueContainer\n};\nvar defaultComponents = function defaultComponents(props) {\n return _objectSpread({}, components, props.components);\n};\n\nvar defaultStyles = {\n clearIndicator: clearIndicatorCSS,\n container: containerCSS,\n control: css$1,\n dropdownIndicator: dropdownIndicatorCSS,\n group: groupCSS,\n groupHeading: groupHeadingCSS,\n indicatorsContainer: indicatorsContainerCSS,\n indicatorSeparator: indicatorSeparatorCSS,\n input: inputCSS,\n loadingIndicator: loadingIndicatorCSS,\n loadingMessage: loadingMessageCSS,\n menu: menuCSS,\n menuList: menuListCSS,\n menuPortal: menuPortalCSS,\n multiValue: multiValueCSS,\n multiValueLabel: multiValueLabelCSS,\n multiValueRemove: multiValueRemoveCSS,\n noOptionsMessage: noOptionsMessageCSS,\n option: optionCSS,\n placeholder: placeholderCSS,\n singleValue: css$2,\n valueContainer: valueContainerCSS\n}; // Merge Utility\n// Allows consumers to extend a base Select with additional styles\n\nfunction mergeStyles(source) {\n var target = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n // initialize with source styles\n var styles = _objectSpread({}, source); // massage in target styles\n\n\n Object.keys(target).forEach(function (key) {\n if (source[key]) {\n styles[key] = function (rsCss, props) {\n return target[key](source[key](rsCss, props), props);\n };\n } else {\n styles[key] = target[key];\n }\n });\n return styles;\n}\n\nvar colors = {\n primary: '#2684FF',\n primary75: '#4C9AFF',\n primary50: '#B2D4FF',\n primary25: '#DEEBFF',\n danger: '#DE350B',\n dangerLight: '#FFBDAD',\n neutral0: 'hsl(0, 0%, 100%)',\n neutral5: 'hsl(0, 0%, 95%)',\n neutral10: 'hsl(0, 0%, 90%)',\n neutral20: 'hsl(0, 0%, 80%)',\n neutral30: 'hsl(0, 0%, 70%)',\n neutral40: 'hsl(0, 0%, 60%)',\n neutral50: 'hsl(0, 0%, 50%)',\n neutral60: 'hsl(0, 0%, 40%)',\n neutral70: 'hsl(0, 0%, 30%)',\n neutral80: 'hsl(0, 0%, 20%)',\n neutral90: 'hsl(0, 0%, 10%)'\n};\nvar borderRadius = 4;\nvar baseUnit = 4;\n/* Used to calculate consistent margin/padding on elements */\n\nvar controlHeight = 38;\n/* The minimum height of the control */\n\nvar menuGutter = baseUnit * 2;\n/* The amount of space between the control and menu */\n\nvar spacing = {\n baseUnit: baseUnit,\n controlHeight: controlHeight,\n menuGutter: menuGutter\n};\nvar defaultTheme = {\n borderRadius: borderRadius,\n colors: colors,\n spacing: spacing\n};\n\nvar defaultProps = {\n backspaceRemovesValue: true,\n blurInputOnSelect: isTouchCapable(),\n captureMenuScroll: !isTouchCapable(),\n closeMenuOnSelect: true,\n closeMenuOnScroll: false,\n components: {},\n controlShouldRenderValue: true,\n escapeClearsValue: false,\n filterOption: createFilter(),\n formatGroupLabel: formatGroupLabel,\n getOptionLabel: getOptionLabel,\n getOptionValue: getOptionValue,\n isDisabled: false,\n isLoading: false,\n isMulti: false,\n isRtl: false,\n isSearchable: true,\n isOptionDisabled: isOptionDisabled,\n loadingMessage: function loadingMessage() {\n return 'Loading...';\n },\n maxMenuHeight: 300,\n minMenuHeight: 140,\n menuIsOpen: false,\n menuPlacement: 'bottom',\n menuPosition: 'absolute',\n menuShouldBlockScroll: false,\n menuShouldScrollIntoView: !isMobileDevice(),\n noOptionsMessage: function noOptionsMessage() {\n return 'No options';\n },\n openMenuOnFocus: false,\n openMenuOnClick: true,\n options: [],\n pageSize: 5,\n placeholder: 'Select...',\n screenReaderStatus: function screenReaderStatus(_ref) {\n var count = _ref.count;\n return \"\".concat(count, \" result\").concat(count !== 1 ? 's' : '', \" available\");\n },\n styles: {},\n tabIndex: '0',\n tabSelectsValue: true\n};\nvar instanceId = 1;\n\nvar Select =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Select, _Component);\n\n // Misc. Instance Properties\n // ------------------------------\n // TODO\n // Refs\n // ------------------------------\n // Lifecycle\n // ------------------------------\n function Select(_props) {\n var _this;\n\n _classCallCheck(this, Select);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Select).call(this, _props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n ariaLiveSelection: '',\n ariaLiveContext: '',\n focusedOption: null,\n focusedValue: null,\n inputIsHidden: false,\n isFocused: false,\n menuOptions: {\n render: [],\n focusable: []\n },\n selectValue: []\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"blockOptionHover\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"isComposing\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"clearFocusValueOnUpdate\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"commonProps\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"components\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"hasGroups\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"initialTouchX\", 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"initialTouchY\", 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"inputIsHiddenAfterUpdate\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"instancePrefix\", '');\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"openAfterFocus\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"scrollToFocusedOptionOnUpdate\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"userIsDragging\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"controlRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getControlRef\", function (ref) {\n _this.controlRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"focusedOptionRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getFocusedOptionRef\", function (ref) {\n _this.focusedOptionRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"menuListRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getMenuListRef\", function (ref) {\n _this.menuListRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"inputRef\", null);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getInputRef\", function (ref) {\n _this.inputRef = ref;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"cacheComponents\", function (components$$1) {\n _this.components = defaultComponents({\n components: components$$1\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"focus\", _this.focusInput);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"blur\", _this.blurInput);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onChange\", function (newValue, actionMeta) {\n var _this$props = _this.props,\n onChange = _this$props.onChange,\n name = _this$props.name;\n onChange(newValue, _objectSpread({}, actionMeta, {\n name: name\n }));\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"setValue\", function (newValue) {\n var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'set-value';\n var option = arguments.length > 2 ? arguments[2] : undefined;\n var _this$props2 = _this.props,\n closeMenuOnSelect = _this$props2.closeMenuOnSelect,\n isMulti = _this$props2.isMulti;\n\n _this.onInputChange('', {\n action: 'set-value'\n });\n\n if (closeMenuOnSelect) {\n _this.inputIsHiddenAfterUpdate = !isMulti;\n\n _this.onMenuClose();\n } // when the select value should change, we should reset focusedValue\n\n\n _this.clearFocusValueOnUpdate = true;\n\n _this.onChange(newValue, {\n action: action,\n option: option\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"selectOption\", function (newValue) {\n var _this$props3 = _this.props,\n blurInputOnSelect = _this$props3.blurInputOnSelect,\n isMulti = _this$props3.isMulti;\n var selectValue = _this.state.selectValue;\n\n if (isMulti) {\n if (_this.isOptionSelected(newValue, selectValue)) {\n var candidate = _this.getOptionValue(newValue);\n\n _this.setValue(selectValue.filter(function (i) {\n return _this.getOptionValue(i) !== candidate;\n }), 'deselect-option', newValue);\n\n _this.announceAriaLiveSelection({\n event: 'deselect-option',\n context: {\n value: _this.getOptionLabel(newValue)\n }\n });\n } else {\n if (!_this.isOptionDisabled(newValue, selectValue)) {\n _this.setValue([].concat(_toConsumableArray(selectValue), [newValue]), 'select-option', newValue);\n\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue)\n }\n });\n } else {\n // announce that option is disabled\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue),\n isDisabled: true\n }\n });\n }\n }\n } else {\n if (!_this.isOptionDisabled(newValue, selectValue)) {\n _this.setValue(newValue, 'select-option');\n\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue)\n }\n });\n } else {\n // announce that option is disabled\n _this.announceAriaLiveSelection({\n event: 'select-option',\n context: {\n value: _this.getOptionLabel(newValue),\n isDisabled: true\n }\n });\n }\n }\n\n if (blurInputOnSelect) {\n _this.blurInput();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"removeValue\", function (removedValue) {\n var selectValue = _this.state.selectValue;\n\n var candidate = _this.getOptionValue(removedValue);\n\n _this.onChange(selectValue.filter(function (i) {\n return _this.getOptionValue(i) !== candidate;\n }), {\n action: 'remove-value',\n removedValue: removedValue\n });\n\n _this.announceAriaLiveSelection({\n event: 'remove-value',\n context: {\n value: removedValue ? _this.getOptionLabel(removedValue) : ''\n }\n });\n\n _this.focusInput();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"clearValue\", function () {\n var isMulti = _this.props.isMulti;\n\n _this.onChange(isMulti ? [] : null, {\n action: 'clear'\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"popValue\", function () {\n var selectValue = _this.state.selectValue;\n var lastSelectedValue = selectValue[selectValue.length - 1];\n\n _this.announceAriaLiveSelection({\n event: 'pop-value',\n context: {\n value: lastSelectedValue ? _this.getOptionLabel(lastSelectedValue) : ''\n }\n });\n\n _this.onChange(selectValue.slice(0, selectValue.length - 1), {\n action: 'pop-value',\n removedValue: lastSelectedValue\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getOptionLabel\", function (data) {\n return _this.props.getOptionLabel(data);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getOptionValue\", function (data) {\n return _this.props.getOptionValue(data);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getStyles\", function (key, props) {\n var base = defaultStyles[key](props);\n base.boxSizing = 'border-box';\n var custom = _this.props.styles[key];\n return custom ? custom(base, props) : base;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getElementId\", function (element) {\n return \"\".concat(_this.instancePrefix, \"-\").concat(element);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getActiveDescendentId\", function () {\n var menuIsOpen = _this.props.menuIsOpen;\n var _this$state = _this.state,\n menuOptions = _this$state.menuOptions,\n focusedOption = _this$state.focusedOption;\n if (!focusedOption || !menuIsOpen) return undefined;\n var index = menuOptions.focusable.indexOf(focusedOption);\n var option = menuOptions.render[index];\n return option && option.key;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"announceAriaLiveSelection\", function (_ref2) {\n var event = _ref2.event,\n context = _ref2.context;\n\n _this.setState({\n ariaLiveSelection: valueEventAriaMessage(event, context)\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"announceAriaLiveContext\", function (_ref3) {\n var event = _ref3.event,\n context = _ref3.context;\n\n _this.setState({\n ariaLiveContext: instructionsAriaMessage(event, _objectSpread({}, context, {\n label: _this.props['aria-label']\n }))\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuMouseDown\", function (event) {\n if (event.button !== 0) {\n return;\n }\n\n event.stopPropagation();\n event.preventDefault();\n\n _this.focusInput();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuMouseMove\", function (event) {\n _this.blockOptionHover = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onControlMouseDown\", function (event) {\n var openMenuOnClick = _this.props.openMenuOnClick;\n\n if (!_this.state.isFocused) {\n if (openMenuOnClick) {\n _this.openAfterFocus = true;\n }\n\n _this.focusInput();\n } else if (!_this.props.menuIsOpen) {\n if (openMenuOnClick) {\n _this.openMenu('first');\n }\n } else {\n //$FlowFixMe\n if (event.target.tagName !== 'INPUT') {\n _this.onMenuClose();\n }\n } //$FlowFixMe\n\n\n if (event.target.tagName !== 'INPUT') {\n event.preventDefault();\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onDropdownIndicatorMouseDown\", function (event) {\n // ignore mouse events that weren't triggered by the primary button\n if (event && event.type === 'mousedown' && event.button !== 0) {\n return;\n }\n\n if (_this.props.isDisabled) return;\n var _this$props4 = _this.props,\n isMulti = _this$props4.isMulti,\n menuIsOpen = _this$props4.menuIsOpen;\n\n _this.focusInput();\n\n if (menuIsOpen) {\n _this.inputIsHiddenAfterUpdate = !isMulti;\n\n _this.onMenuClose();\n } else {\n _this.openMenu('first');\n }\n\n event.preventDefault();\n event.stopPropagation();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onClearIndicatorMouseDown\", function (event) {\n // ignore mouse events that weren't triggered by the primary button\n if (event && event.type === 'mousedown' && event.button !== 0) {\n return;\n }\n\n _this.clearValue();\n\n event.stopPropagation();\n _this.openAfterFocus = false;\n setTimeout(function () {\n return _this.focusInput();\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onScroll\", function (event) {\n if (typeof _this.props.closeMenuOnScroll === 'boolean') {\n if (event.target instanceof HTMLElement && isDocumentElement(event.target)) {\n _this.props.onMenuClose();\n }\n } else if (typeof _this.props.closeMenuOnScroll === 'function') {\n if (_this.props.closeMenuOnScroll(event)) {\n _this.props.onMenuClose();\n }\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onCompositionStart\", function () {\n _this.isComposing = true;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onCompositionEnd\", function () {\n _this.isComposing = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchStart\", function (_ref4) {\n var touches = _ref4.touches;\n var touch = touches.item(0);\n\n if (!touch) {\n return;\n }\n\n _this.initialTouchX = touch.clientX;\n _this.initialTouchY = touch.clientY;\n _this.userIsDragging = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchMove\", function (_ref5) {\n var touches = _ref5.touches;\n var touch = touches.item(0);\n\n if (!touch) {\n return;\n }\n\n var deltaX = Math.abs(touch.clientX - _this.initialTouchX);\n var deltaY = Math.abs(touch.clientY - _this.initialTouchY);\n var moveThreshold = 5;\n _this.userIsDragging = deltaX > moveThreshold || deltaY > moveThreshold;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onTouchEnd\", function (event) {\n if (_this.userIsDragging) return; // close the menu if the user taps outside\n // we're checking on event.target here instead of event.currentTarget, because we want to assert information\n // on events on child elements, not the document (which we've attached this handler to).\n\n if (_this.controlRef && !_this.controlRef.contains(event.target) && _this.menuListRef && !_this.menuListRef.contains(event.target)) {\n _this.blurInput();\n } // reset move vars\n\n\n _this.initialTouchX = 0;\n _this.initialTouchY = 0;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onControlTouchEnd\", function (event) {\n if (_this.userIsDragging) return;\n\n _this.onControlMouseDown(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onClearIndicatorTouchEnd\", function (event) {\n if (_this.userIsDragging) return;\n\n _this.onClearIndicatorMouseDown(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onDropdownIndicatorTouchEnd\", function (event) {\n if (_this.userIsDragging) return;\n\n _this.onDropdownIndicatorMouseDown(event);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleInputChange\", function (event) {\n var inputValue = event.currentTarget.value;\n _this.inputIsHiddenAfterUpdate = false;\n\n _this.onInputChange(inputValue, {\n action: 'input-change'\n });\n\n _this.onMenuOpen();\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onInputFocus\", function (event) {\n var _this$props5 = _this.props,\n isSearchable = _this$props5.isSearchable,\n isMulti = _this$props5.isMulti;\n\n if (_this.props.onFocus) {\n _this.props.onFocus(event);\n }\n\n _this.inputIsHiddenAfterUpdate = false;\n\n _this.announceAriaLiveContext({\n event: 'input',\n context: {\n isSearchable: isSearchable,\n isMulti: isMulti\n }\n });\n\n _this.setState({\n isFocused: true\n });\n\n if (_this.openAfterFocus || _this.props.openMenuOnFocus) {\n _this.openMenu('first');\n }\n\n _this.openAfterFocus = false;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onInputBlur\", function (event) {\n if (_this.menuListRef && _this.menuListRef.contains(document.activeElement)) {\n _this.inputRef.focus();\n\n return;\n }\n\n if (_this.props.onBlur) {\n _this.props.onBlur(event);\n }\n\n _this.onInputChange('', {\n action: 'input-blur'\n });\n\n _this.onMenuClose();\n\n _this.setState({\n focusedValue: null,\n isFocused: false\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onOptionHover\", function (focusedOption) {\n if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {\n return;\n }\n\n _this.setState({\n focusedOption: focusedOption\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"shouldHideSelectedOptions\", function () {\n var _this$props6 = _this.props,\n hideSelectedOptions = _this$props6.hideSelectedOptions,\n isMulti = _this$props6.isMulti;\n if (hideSelectedOptions === undefined) return isMulti;\n return hideSelectedOptions;\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onKeyDown\", function (event) {\n var _this$props7 = _this.props,\n isMulti = _this$props7.isMulti,\n backspaceRemovesValue = _this$props7.backspaceRemovesValue,\n escapeClearsValue = _this$props7.escapeClearsValue,\n inputValue = _this$props7.inputValue,\n isClearable = _this$props7.isClearable,\n isDisabled = _this$props7.isDisabled,\n menuIsOpen = _this$props7.menuIsOpen,\n onKeyDown = _this$props7.onKeyDown,\n tabSelectsValue = _this$props7.tabSelectsValue,\n openMenuOnFocus = _this$props7.openMenuOnFocus;\n var _this$state2 = _this.state,\n focusedOption = _this$state2.focusedOption,\n focusedValue = _this$state2.focusedValue,\n selectValue = _this$state2.selectValue;\n if (isDisabled) return;\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n\n if (event.defaultPrevented) {\n return;\n }\n } // Block option hover events when the user has just pressed a key\n\n\n _this.blockOptionHover = true;\n\n switch (event.key) {\n case 'ArrowLeft':\n if (!isMulti || inputValue) return;\n\n _this.focusValue('previous');\n\n break;\n\n case 'ArrowRight':\n if (!isMulti || inputValue) return;\n\n _this.focusValue('next');\n\n break;\n\n case 'Delete':\n case 'Backspace':\n if (inputValue) return;\n\n if (focusedValue) {\n _this.removeValue(focusedValue);\n } else {\n if (!backspaceRemovesValue) return;\n\n if (isMulti) {\n _this.popValue();\n } else if (isClearable) {\n _this.clearValue();\n }\n }\n\n break;\n\n case 'Tab':\n if (_this.isComposing) return;\n\n if (event.shiftKey || !menuIsOpen || !tabSelectsValue || !focusedOption || // don't capture the event if the menu opens on focus and the focused\n // option is already selected; it breaks the flow of navigation\n openMenuOnFocus && _this.isOptionSelected(focusedOption, selectValue)) {\n return;\n }\n\n _this.selectOption(focusedOption);\n\n break;\n\n case 'Enter':\n if (event.keyCode === 229) {\n // ignore the keydown event from an Input Method Editor(IME)\n // ref. https://www.w3.org/TR/uievents/#determine-keydown-keyup-keyCode\n break;\n }\n\n if (menuIsOpen) {\n if (!focusedOption) return;\n if (_this.isComposing) return;\n\n _this.selectOption(focusedOption);\n\n break;\n }\n\n return;\n\n case 'Escape':\n if (menuIsOpen) {\n _this.inputIsHiddenAfterUpdate = false;\n\n _this.onInputChange('', {\n action: 'menu-close'\n });\n\n _this.onMenuClose();\n } else if (isClearable && escapeClearsValue) {\n _this.clearValue();\n }\n\n break;\n\n case ' ':\n // space\n if (inputValue) {\n return;\n }\n\n if (!menuIsOpen) {\n _this.openMenu('first');\n\n break;\n }\n\n if (!focusedOption) return;\n\n _this.selectOption(focusedOption);\n\n break;\n\n case 'ArrowUp':\n if (menuIsOpen) {\n _this.focusOption('up');\n } else {\n _this.openMenu('last');\n }\n\n break;\n\n case 'ArrowDown':\n if (menuIsOpen) {\n _this.focusOption('down');\n } else {\n _this.openMenu('first');\n }\n\n break;\n\n case 'PageUp':\n if (!menuIsOpen) return;\n\n _this.focusOption('pageup');\n\n break;\n\n case 'PageDown':\n if (!menuIsOpen) return;\n\n _this.focusOption('pagedown');\n\n break;\n\n case 'Home':\n if (!menuIsOpen) return;\n\n _this.focusOption('first');\n\n break;\n\n case 'End':\n if (!menuIsOpen) return;\n\n _this.focusOption('last');\n\n break;\n\n default:\n return;\n }\n\n event.preventDefault();\n });\n\n var value = _props.value;\n _this.cacheComponents = memoizeOne(_this.cacheComponents, exportedEqual).bind(_assertThisInitialized(_assertThisInitialized(_this)));\n\n _this.cacheComponents(_props.components);\n\n _this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);\n\n var _selectValue = cleanValue(value);\n\n var _menuOptions = _this.buildMenuOptions(_props, _selectValue);\n\n _this.state.menuOptions = _menuOptions;\n _this.state.selectValue = _selectValue;\n return _this;\n }\n\n _createClass(Select, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n this.startListeningComposition();\n this.startListeningToTouch();\n\n if (this.props.closeMenuOnScroll && document && document.addEventListener) {\n // Listen to all scroll events, and filter them out inside of 'onScroll'\n document.addEventListener('scroll', this.onScroll, true);\n }\n\n if (this.props.autoFocus) {\n this.focusInput();\n }\n }\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n var _this$props8 = this.props,\n options = _this$props8.options,\n value = _this$props8.value,\n inputValue = _this$props8.inputValue; // re-cache custom components\n\n this.cacheComponents(nextProps.components); // rebuild the menu options\n\n if (nextProps.value !== value || nextProps.options !== options || nextProps.inputValue !== inputValue) {\n var selectValue = cleanValue(nextProps.value);\n var menuOptions = this.buildMenuOptions(nextProps, selectValue);\n var focusedValue = this.getNextFocusedValue(selectValue);\n var focusedOption = this.getNextFocusedOption(menuOptions.focusable);\n this.setState({\n menuOptions: menuOptions,\n selectValue: selectValue,\n focusedOption: focusedOption,\n focusedValue: focusedValue\n });\n } // some updates should toggle the state of the input visibility\n\n\n if (this.inputIsHiddenAfterUpdate != null) {\n this.setState({\n inputIsHidden: this.inputIsHiddenAfterUpdate\n });\n delete this.inputIsHiddenAfterUpdate;\n }\n }\n }, {\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(prevProps) {\n var _this$props9 = this.props,\n isDisabled = _this$props9.isDisabled,\n menuIsOpen = _this$props9.menuIsOpen;\n var isFocused = this.state.isFocused;\n\n if ( // ensure focus is restored correctly when the control becomes enabled\n isFocused && !isDisabled && prevProps.isDisabled || // ensure focus is on the Input when the menu opens\n isFocused && menuIsOpen && !prevProps.menuIsOpen) {\n this.focusInput();\n } // scroll the focused option into view if necessary\n\n\n if (this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate) {\n scrollIntoView(this.menuListRef, this.focusedOptionRef);\n }\n\n this.scrollToFocusedOptionOnUpdate = false;\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.stopListeningComposition();\n this.stopListeningToTouch();\n document.removeEventListener('scroll', this.onScroll, true);\n }\n }, {\n key: \"onMenuOpen\",\n // ==============================\n // Consumer Handlers\n // ==============================\n value: function onMenuOpen() {\n this.props.onMenuOpen();\n }\n }, {\n key: \"onMenuClose\",\n value: function onMenuClose() {\n var _this$props10 = this.props,\n isSearchable = _this$props10.isSearchable,\n isMulti = _this$props10.isMulti;\n this.announceAriaLiveContext({\n event: 'input',\n context: {\n isSearchable: isSearchable,\n isMulti: isMulti\n }\n });\n this.onInputChange('', {\n action: 'menu-close'\n });\n this.props.onMenuClose();\n }\n }, {\n key: \"onInputChange\",\n value: function onInputChange(newValue, actionMeta) {\n this.props.onInputChange(newValue, actionMeta);\n } // ==============================\n // Methods\n // ==============================\n\n }, {\n key: \"focusInput\",\n value: function focusInput() {\n if (!this.inputRef) return;\n this.inputRef.focus();\n }\n }, {\n key: \"blurInput\",\n value: function blurInput() {\n if (!this.inputRef) return;\n this.inputRef.blur();\n } // aliased for consumers\n\n }, {\n key: \"openMenu\",\n value: function openMenu(focusOption) {\n var _this$state3 = this.state,\n menuOptions = _this$state3.menuOptions,\n selectValue = _this$state3.selectValue,\n isFocused = _this$state3.isFocused;\n var isMulti = this.props.isMulti;\n var openAtIndex = focusOption === 'first' ? 0 : menuOptions.focusable.length - 1;\n\n if (!isMulti) {\n var selectedIndex = menuOptions.focusable.indexOf(selectValue[0]);\n\n if (selectedIndex > -1) {\n openAtIndex = selectedIndex;\n }\n } // only scroll if the menu isn't already open\n\n\n this.scrollToFocusedOptionOnUpdate = !(isFocused && this.menuListRef);\n this.inputIsHiddenAfterUpdate = false;\n this.onMenuOpen();\n this.setState({\n focusedValue: null,\n focusedOption: menuOptions.focusable[openAtIndex]\n });\n this.announceAriaLiveContext({\n event: 'menu'\n });\n }\n }, {\n key: \"focusValue\",\n value: function focusValue(direction) {\n var _this$props11 = this.props,\n isMulti = _this$props11.isMulti,\n isSearchable = _this$props11.isSearchable;\n var _this$state4 = this.state,\n selectValue = _this$state4.selectValue,\n focusedValue = _this$state4.focusedValue; // Only multiselects support value focusing\n\n if (!isMulti) return;\n this.setState({\n focusedOption: null\n });\n var focusedIndex = selectValue.indexOf(focusedValue);\n\n if (!focusedValue) {\n focusedIndex = -1;\n this.announceAriaLiveContext({\n event: 'value'\n });\n }\n\n var lastIndex = selectValue.length - 1;\n var nextFocus = -1;\n if (!selectValue.length) return;\n\n switch (direction) {\n case 'previous':\n if (focusedIndex === 0) {\n // don't cycle from the start to the end\n nextFocus = 0;\n } else if (focusedIndex === -1) {\n // if nothing is focused, focus the last value first\n nextFocus = lastIndex;\n } else {\n nextFocus = focusedIndex - 1;\n }\n\n break;\n\n case 'next':\n if (focusedIndex > -1 && focusedIndex < lastIndex) {\n nextFocus = focusedIndex + 1;\n }\n\n break;\n }\n\n if (nextFocus === -1) {\n this.announceAriaLiveContext({\n event: 'input',\n context: {\n isSearchable: isSearchable,\n isMulti: isMulti\n }\n });\n }\n\n this.setState({\n inputIsHidden: nextFocus === -1 ? false : true,\n focusedValue: selectValue[nextFocus]\n });\n }\n }, {\n key: \"focusOption\",\n value: function focusOption() {\n var direction = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'first';\n var pageSize = this.props.pageSize;\n var _this$state5 = this.state,\n focusedOption = _this$state5.focusedOption,\n menuOptions = _this$state5.menuOptions;\n var options = menuOptions.focusable;\n if (!options.length) return;\n var nextFocus = 0; // handles 'first'\n\n var focusedIndex = options.indexOf(focusedOption);\n\n if (!focusedOption) {\n focusedIndex = -1;\n this.announceAriaLiveContext({\n event: 'menu'\n });\n }\n\n if (direction === 'up') {\n nextFocus = focusedIndex > 0 ? focusedIndex - 1 : options.length - 1;\n } else if (direction === 'down') {\n nextFocus = (focusedIndex + 1) % options.length;\n } else if (direction === 'pageup') {\n nextFocus = focusedIndex - pageSize;\n if (nextFocus < 0) nextFocus = 0;\n } else if (direction === 'pagedown') {\n nextFocus = focusedIndex + pageSize;\n if (nextFocus > options.length - 1) nextFocus = options.length - 1;\n } else if (direction === 'last') {\n nextFocus = options.length - 1;\n }\n\n this.scrollToFocusedOptionOnUpdate = true;\n this.setState({\n focusedOption: options[nextFocus],\n focusedValue: null\n });\n this.announceAriaLiveContext({\n event: 'menu',\n context: {\n isDisabled: isOptionDisabled(options[nextFocus])\n }\n });\n }\n }, {\n key: \"getTheme\",\n // ==============================\n // Getters\n // ==============================\n value: function getTheme() {\n // Use the default theme if there are no customizations.\n if (!this.props.theme) {\n return defaultTheme;\n } // If the theme prop is a function, assume the function\n // knows how to merge the passed-in default theme with\n // its own modifications.\n\n\n if (typeof this.props.theme === 'function') {\n return this.props.theme(defaultTheme);\n } // Otherwise, if a plain theme object was passed in,\n // overlay it with the default theme.\n\n\n return _objectSpread({}, defaultTheme, this.props.theme);\n }\n }, {\n key: \"getCommonProps\",\n value: function getCommonProps() {\n var clearValue = this.clearValue,\n getStyles = this.getStyles,\n setValue = this.setValue,\n selectOption = this.selectOption,\n props = this.props;\n var classNamePrefix = props.classNamePrefix,\n isMulti = props.isMulti,\n isRtl = props.isRtl,\n options = props.options;\n var selectValue = this.state.selectValue;\n var hasValue = this.hasValue();\n\n var getValue = function getValue() {\n return selectValue;\n };\n\n var cx = classNames.bind(null, classNamePrefix);\n return {\n cx: cx,\n clearValue: clearValue,\n getStyles: getStyles,\n getValue: getValue,\n hasValue: hasValue,\n isMulti: isMulti,\n isRtl: isRtl,\n options: options,\n selectOption: selectOption,\n setValue: setValue,\n selectProps: props,\n theme: this.getTheme()\n };\n }\n }, {\n key: \"getNextFocusedValue\",\n value: function getNextFocusedValue(nextSelectValue) {\n if (this.clearFocusValueOnUpdate) {\n this.clearFocusValueOnUpdate = false;\n return null;\n }\n\n var _this$state6 = this.state,\n focusedValue = _this$state6.focusedValue,\n lastSelectValue = _this$state6.selectValue;\n var lastFocusedIndex = lastSelectValue.indexOf(focusedValue);\n\n if (lastFocusedIndex > -1) {\n var nextFocusedIndex = nextSelectValue.indexOf(focusedValue);\n\n if (nextFocusedIndex > -1) {\n // the focused value is still in the selectValue, return it\n return focusedValue;\n } else if (lastFocusedIndex < nextSelectValue.length) {\n // the focusedValue is not present in the next selectValue array by\n // reference, so return the new value at the same index\n return nextSelectValue[lastFocusedIndex];\n }\n }\n\n return null;\n }\n }, {\n key: \"getNextFocusedOption\",\n value: function getNextFocusedOption(options) {\n var lastFocusedOption = this.state.focusedOption;\n return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];\n }\n }, {\n key: \"hasValue\",\n value: function hasValue() {\n var selectValue = this.state.selectValue;\n return selectValue.length > 0;\n }\n }, {\n key: \"hasOptions\",\n value: function hasOptions() {\n return !!this.state.menuOptions.render.length;\n }\n }, {\n key: \"countOptions\",\n value: function countOptions() {\n return this.state.menuOptions.focusable.length;\n }\n }, {\n key: \"isClearable\",\n value: function isClearable() {\n var _this$props12 = this.props,\n isClearable = _this$props12.isClearable,\n isMulti = _this$props12.isMulti; // single select, by default, IS NOT clearable\n // multi select, by default, IS clearable\n\n if (isClearable === undefined) return isMulti;\n return isClearable;\n }\n }, {\n key: \"isOptionDisabled\",\n value: function isOptionDisabled$$1(option, selectValue) {\n return typeof this.props.isOptionDisabled === 'function' ? this.props.isOptionDisabled(option, selectValue) : false;\n }\n }, {\n key: \"isOptionSelected\",\n value: function isOptionSelected(option, selectValue) {\n var _this2 = this;\n\n if (selectValue.indexOf(option) > -1) return true;\n\n if (typeof this.props.isOptionSelected === 'function') {\n return this.props.isOptionSelected(option, selectValue);\n }\n\n var candidate = this.getOptionValue(option);\n return selectValue.some(function (i) {\n return _this2.getOptionValue(i) === candidate;\n });\n }\n }, {\n key: \"filterOption\",\n value: function filterOption(option, inputValue) {\n return this.props.filterOption ? this.props.filterOption(option, inputValue) : true;\n }\n }, {\n key: \"formatOptionLabel\",\n value: function formatOptionLabel(data, context) {\n if (typeof this.props.formatOptionLabel === 'function') {\n var inputValue = this.props.inputValue;\n var selectValue = this.state.selectValue;\n return this.props.formatOptionLabel(data, {\n context: context,\n inputValue: inputValue,\n selectValue: selectValue\n });\n } else {\n return this.getOptionLabel(data);\n }\n }\n }, {\n key: \"formatGroupLabel\",\n value: function formatGroupLabel$$1(data) {\n return this.props.formatGroupLabel(data);\n } // ==============================\n // Mouse Handlers\n // ==============================\n\n }, {\n key: \"startListeningComposition\",\n // ==============================\n // Composition Handlers\n // ==============================\n value: function startListeningComposition() {\n if (document && document.addEventListener) {\n document.addEventListener('compositionstart', this.onCompositionStart, false);\n document.addEventListener('compositionend', this.onCompositionEnd, false);\n }\n }\n }, {\n key: \"stopListeningComposition\",\n value: function stopListeningComposition() {\n if (document && document.removeEventListener) {\n document.removeEventListener('compositionstart', this.onCompositionStart);\n document.removeEventListener('compositionend', this.onCompositionEnd);\n }\n }\n }, {\n key: \"startListeningToTouch\",\n // ==============================\n // Touch Handlers\n // ==============================\n value: function startListeningToTouch() {\n if (document && document.addEventListener) {\n document.addEventListener('touchstart', this.onTouchStart, false);\n document.addEventListener('touchmove', this.onTouchMove, false);\n document.addEventListener('touchend', this.onTouchEnd, false);\n }\n }\n }, {\n key: \"stopListeningToTouch\",\n value: function stopListeningToTouch() {\n if (document && document.removeEventListener) {\n document.removeEventListener('touchstart', this.onTouchStart);\n document.removeEventListener('touchmove', this.onTouchMove);\n document.removeEventListener('touchend', this.onTouchEnd);\n }\n }\n }, {\n key: \"buildMenuOptions\",\n // ==============================\n // Menu Options\n // ==============================\n value: function buildMenuOptions(props, selectValue) {\n var _this3 = this;\n\n var _props$inputValue = props.inputValue,\n inputValue = _props$inputValue === void 0 ? '' : _props$inputValue,\n options = props.options;\n\n var toOption = function toOption(option, id) {\n var isDisabled = _this3.isOptionDisabled(option, selectValue);\n\n var isSelected = _this3.isOptionSelected(option, selectValue);\n\n var label = _this3.getOptionLabel(option);\n\n var value = _this3.getOptionValue(option);\n\n if (_this3.shouldHideSelectedOptions() && isSelected || !_this3.filterOption({\n label: label,\n value: value,\n data: option\n }, inputValue)) {\n return;\n }\n\n var onHover = isDisabled ? undefined : function () {\n return _this3.onOptionHover(option);\n };\n var onSelect = isDisabled ? undefined : function () {\n return _this3.selectOption(option);\n };\n var optionId = \"\".concat(_this3.getElementId('option'), \"-\").concat(id);\n return {\n innerProps: {\n id: optionId,\n onClick: onSelect,\n onMouseMove: onHover,\n onMouseOver: onHover,\n tabIndex: -1\n },\n data: option,\n isDisabled: isDisabled,\n isSelected: isSelected,\n key: optionId,\n label: label,\n type: 'option',\n value: value\n };\n };\n\n return options.reduce(function (acc, item, itemIndex) {\n if (item.options) {\n // TODO needs a tidier implementation\n if (!_this3.hasGroups) _this3.hasGroups = true;\n var items = item.options;\n var children = items.map(function (child, i) {\n var option = toOption(child, \"\".concat(itemIndex, \"-\").concat(i));\n if (option) acc.focusable.push(child);\n return option;\n }).filter(Boolean);\n\n if (children.length) {\n var groupId = \"\".concat(_this3.getElementId('group'), \"-\").concat(itemIndex);\n acc.render.push({\n type: 'group',\n key: groupId,\n data: item,\n options: children\n });\n }\n } else {\n var option = toOption(item, \"\".concat(itemIndex));\n\n if (option) {\n acc.render.push(option);\n acc.focusable.push(item);\n }\n }\n\n return acc;\n }, {\n render: [],\n focusable: []\n });\n } // ==============================\n // Renderers\n // ==============================\n\n }, {\n key: \"constructAriaLiveMessage\",\n value: function constructAriaLiveMessage() {\n var _this$state7 = this.state,\n ariaLiveContext = _this$state7.ariaLiveContext,\n selectValue = _this$state7.selectValue,\n focusedValue = _this$state7.focusedValue,\n focusedOption = _this$state7.focusedOption;\n var _this$props13 = this.props,\n options = _this$props13.options,\n menuIsOpen = _this$props13.menuIsOpen,\n inputValue = _this$props13.inputValue,\n screenReaderStatus = _this$props13.screenReaderStatus; // An aria live message representing the currently focused value in the select.\n\n var focusedValueMsg = focusedValue ? valueFocusAriaMessage({\n focusedValue: focusedValue,\n getOptionLabel: this.getOptionLabel,\n selectValue: selectValue\n }) : ''; // An aria live message representing the currently focused option in the select.\n\n var focusedOptionMsg = focusedOption && menuIsOpen ? optionFocusAriaMessage({\n focusedOption: focusedOption,\n getOptionLabel: this.getOptionLabel,\n options: options\n }) : ''; // An aria live message representing the set of focusable results and current searchterm/inputvalue.\n\n var resultsMsg = resultsAriaMessage({\n inputValue: inputValue,\n screenReaderMessage: screenReaderStatus({\n count: this.countOptions()\n })\n });\n return \"\".concat(focusedValueMsg, \" \").concat(focusedOptionMsg, \" \").concat(resultsMsg, \" \").concat(ariaLiveContext);\n }\n }, {\n key: \"renderInput\",\n value: function renderInput() {\n var _this$props14 = this.props,\n isDisabled = _this$props14.isDisabled,\n isSearchable = _this$props14.isSearchable,\n inputId = _this$props14.inputId,\n inputValue = _this$props14.inputValue,\n tabIndex = _this$props14.tabIndex;\n var Input = this.components.Input;\n var inputIsHidden = this.state.inputIsHidden;\n var id = inputId || this.getElementId('input');\n\n if (!isSearchable) {\n // use a dummy input to maintain focus/blur functionality\n return React.createElement(DummyInput, {\n id: id,\n innerRef: this.getInputRef,\n onBlur: this.onInputBlur,\n onChange: noop,\n onFocus: this.onInputFocus,\n readOnly: true,\n disabled: isDisabled,\n tabIndex: tabIndex,\n value: \"\"\n });\n } // aria attributes makes the JSX \"noisy\", separated for clarity\n\n\n var ariaAttributes = {\n 'aria-autocomplete': 'list',\n 'aria-label': this.props['aria-label'],\n 'aria-labelledby': this.props['aria-labelledby']\n };\n var _this$commonProps = this.commonProps,\n cx = _this$commonProps.cx,\n theme = _this$commonProps.theme,\n selectProps = _this$commonProps.selectProps;\n return React.createElement(Input, _extends({\n autoCapitalize: \"none\",\n autoComplete: \"off\",\n autoCorrect: \"off\",\n cx: cx,\n getStyles: this.getStyles,\n id: id,\n innerRef: this.getInputRef,\n isDisabled: isDisabled,\n isHidden: inputIsHidden,\n onBlur: this.onInputBlur,\n onChange: this.handleInputChange,\n onFocus: this.onInputFocus,\n selectProps: selectProps,\n spellCheck: \"false\",\n tabIndex: tabIndex,\n theme: theme,\n type: \"text\",\n value: inputValue\n }, ariaAttributes));\n }\n }, {\n key: \"renderPlaceholderOrValue\",\n value: function renderPlaceholderOrValue() {\n var _this4 = this;\n\n var _this$components = this.components,\n MultiValue = _this$components.MultiValue,\n MultiValueContainer = _this$components.MultiValueContainer,\n MultiValueLabel = _this$components.MultiValueLabel,\n MultiValueRemove = _this$components.MultiValueRemove,\n SingleValue = _this$components.SingleValue,\n Placeholder = _this$components.Placeholder;\n var commonProps = this.commonProps;\n var _this$props15 = this.props,\n controlShouldRenderValue = _this$props15.controlShouldRenderValue,\n isDisabled = _this$props15.isDisabled,\n isMulti = _this$props15.isMulti,\n inputValue = _this$props15.inputValue,\n placeholder = _this$props15.placeholder;\n var _this$state8 = this.state,\n selectValue = _this$state8.selectValue,\n focusedValue = _this$state8.focusedValue,\n isFocused = _this$state8.isFocused;\n\n if (!this.hasValue() || !controlShouldRenderValue) {\n return inputValue ? null : React.createElement(Placeholder, _extends({}, commonProps, {\n key: \"placeholder\",\n isDisabled: isDisabled,\n isFocused: isFocused\n }), placeholder);\n }\n\n if (isMulti) {\n var selectValues = selectValue.map(function (opt) {\n var isOptionFocused = opt === focusedValue;\n return React.createElement(MultiValue, _extends({}, commonProps, {\n components: {\n Container: MultiValueContainer,\n Label: MultiValueLabel,\n Remove: MultiValueRemove\n },\n isFocused: isOptionFocused,\n isDisabled: isDisabled,\n key: _this4.getOptionValue(opt),\n removeProps: {\n onClick: function onClick() {\n return _this4.removeValue(opt);\n },\n onTouchEnd: function onTouchEnd() {\n return _this4.removeValue(opt);\n },\n onMouseDown: function onMouseDown(e) {\n e.preventDefault();\n e.stopPropagation();\n }\n },\n data: opt\n }), _this4.formatOptionLabel(opt, 'value'));\n });\n return selectValues;\n }\n\n if (inputValue) {\n return null;\n }\n\n var singleValue = selectValue[0];\n return React.createElement(SingleValue, _extends({}, commonProps, {\n data: singleValue,\n isDisabled: isDisabled\n }), this.formatOptionLabel(singleValue, 'value'));\n }\n }, {\n key: \"renderClearIndicator\",\n value: function renderClearIndicator() {\n var ClearIndicator = this.components.ClearIndicator;\n var commonProps = this.commonProps;\n var _this$props16 = this.props,\n isDisabled = _this$props16.isDisabled,\n isLoading = _this$props16.isLoading;\n var isFocused = this.state.isFocused;\n\n if (!this.isClearable() || !ClearIndicator || isDisabled || !this.hasValue() || isLoading) {\n return null;\n }\n\n var innerProps = {\n onMouseDown: this.onClearIndicatorMouseDown,\n onTouchEnd: this.onClearIndicatorTouchEnd,\n 'aria-hidden': 'true'\n };\n return React.createElement(ClearIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderLoadingIndicator\",\n value: function renderLoadingIndicator() {\n var LoadingIndicator = this.components.LoadingIndicator;\n var commonProps = this.commonProps;\n var _this$props17 = this.props,\n isDisabled = _this$props17.isDisabled,\n isLoading = _this$props17.isLoading;\n var isFocused = this.state.isFocused;\n if (!LoadingIndicator || !isLoading) return null;\n var innerProps = {\n 'aria-hidden': 'true'\n };\n return React.createElement(LoadingIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderIndicatorSeparator\",\n value: function renderIndicatorSeparator() {\n var _this$components2 = this.components,\n DropdownIndicator = _this$components2.DropdownIndicator,\n IndicatorSeparator = _this$components2.IndicatorSeparator; // separator doesn't make sense without the dropdown indicator\n\n if (!DropdownIndicator || !IndicatorSeparator) return null;\n var commonProps = this.commonProps;\n var isDisabled = this.props.isDisabled;\n var isFocused = this.state.isFocused;\n return React.createElement(IndicatorSeparator, _extends({}, commonProps, {\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderDropdownIndicator\",\n value: function renderDropdownIndicator() {\n var DropdownIndicator = this.components.DropdownIndicator;\n if (!DropdownIndicator) return null;\n var commonProps = this.commonProps;\n var isDisabled = this.props.isDisabled;\n var isFocused = this.state.isFocused;\n var innerProps = {\n onMouseDown: this.onDropdownIndicatorMouseDown,\n onTouchEnd: this.onDropdownIndicatorTouchEnd,\n 'aria-hidden': 'true'\n };\n return React.createElement(DropdownIndicator, _extends({}, commonProps, {\n innerProps: innerProps,\n isDisabled: isDisabled,\n isFocused: isFocused\n }));\n }\n }, {\n key: \"renderMenu\",\n value: function renderMenu() {\n var _this5 = this;\n\n var _this$components3 = this.components,\n Group = _this$components3.Group,\n GroupHeading = _this$components3.GroupHeading,\n Menu$$1 = _this$components3.Menu,\n MenuList$$1 = _this$components3.MenuList,\n MenuPortal$$1 = _this$components3.MenuPortal,\n LoadingMessage$$1 = _this$components3.LoadingMessage,\n NoOptionsMessage$$1 = _this$components3.NoOptionsMessage,\n Option = _this$components3.Option;\n var commonProps = this.commonProps;\n var _this$state9 = this.state,\n focusedOption = _this$state9.focusedOption,\n menuOptions = _this$state9.menuOptions;\n var _this$props18 = this.props,\n captureMenuScroll = _this$props18.captureMenuScroll,\n inputValue = _this$props18.inputValue,\n isLoading = _this$props18.isLoading,\n loadingMessage = _this$props18.loadingMessage,\n minMenuHeight = _this$props18.minMenuHeight,\n maxMenuHeight = _this$props18.maxMenuHeight,\n menuIsOpen = _this$props18.menuIsOpen,\n menuPlacement = _this$props18.menuPlacement,\n menuPosition = _this$props18.menuPosition,\n menuPortalTarget = _this$props18.menuPortalTarget,\n menuShouldBlockScroll = _this$props18.menuShouldBlockScroll,\n menuShouldScrollIntoView = _this$props18.menuShouldScrollIntoView,\n noOptionsMessage = _this$props18.noOptionsMessage,\n onMenuScrollToTop = _this$props18.onMenuScrollToTop,\n onMenuScrollToBottom = _this$props18.onMenuScrollToBottom;\n if (!menuIsOpen) return null; // TODO: Internal Option Type here\n\n var render = function render(props) {\n // for performance, the menu options in state aren't changed when the\n // focused option changes so we calculate additional props based on that\n var isFocused = focusedOption === props.data;\n props.innerRef = isFocused ? _this5.getFocusedOptionRef : undefined;\n return React.createElement(Option, _extends({}, commonProps, props, {\n isFocused: isFocused\n }), _this5.formatOptionLabel(props.data, 'menu'));\n };\n\n var menuUI;\n\n if (this.hasOptions()) {\n menuUI = menuOptions.render.map(function (item) {\n if (item.type === 'group') {\n var type = item.type,\n group = _objectWithoutProperties(item, [\"type\"]);\n\n var headingId = \"\".concat(item.key, \"-heading\");\n return React.createElement(Group, _extends({}, commonProps, group, {\n Heading: GroupHeading,\n headingProps: {\n id: headingId\n },\n label: _this5.formatGroupLabel(item.data)\n }), item.options.map(function (option) {\n return render(option);\n }));\n } else if (item.type === 'option') {\n return render(item);\n }\n });\n } else if (isLoading) {\n var message = loadingMessage({\n inputValue: inputValue\n });\n if (message === null) return null;\n menuUI = React.createElement(LoadingMessage$$1, commonProps, message);\n } else {\n var _message = noOptionsMessage({\n inputValue: inputValue\n });\n\n if (_message === null) return null;\n menuUI = React.createElement(NoOptionsMessage$$1, commonProps, _message);\n }\n\n var menuPlacementProps = {\n minMenuHeight: minMenuHeight,\n maxMenuHeight: maxMenuHeight,\n menuPlacement: menuPlacement,\n menuPosition: menuPosition,\n menuShouldScrollIntoView: menuShouldScrollIntoView\n };\n var menuElement = React.createElement(MenuPlacer, _extends({}, commonProps, menuPlacementProps), function (_ref6) {\n var ref = _ref6.ref,\n _ref6$placerProps = _ref6.placerProps,\n placement = _ref6$placerProps.placement,\n maxHeight = _ref6$placerProps.maxHeight;\n return React.createElement(Menu$$1, _extends({}, commonProps, menuPlacementProps, {\n innerRef: ref,\n innerProps: {\n onMouseDown: _this5.onMenuMouseDown,\n onMouseMove: _this5.onMenuMouseMove\n },\n isLoading: isLoading,\n placement: placement\n }), React.createElement(ScrollCaptorSwitch, {\n isEnabled: captureMenuScroll,\n onTopArrive: onMenuScrollToTop,\n onBottomArrive: onMenuScrollToBottom\n }, React.createElement(ScrollBlock, {\n isEnabled: menuShouldBlockScroll\n }, React.createElement(MenuList$$1, _extends({}, commonProps, {\n innerRef: _this5.getMenuListRef,\n isLoading: isLoading,\n maxHeight: maxHeight\n }), menuUI))));\n }); // positioning behaviour is almost identical for portalled and fixed,\n // so we use the same component. the actual portalling logic is forked\n // within the component based on `menuPosition`\n\n return menuPortalTarget || menuPosition === 'fixed' ? React.createElement(MenuPortal$$1, _extends({}, commonProps, {\n appendTo: menuPortalTarget,\n controlElement: this.controlRef,\n menuPlacement: menuPlacement,\n menuPosition: menuPosition\n }), menuElement) : menuElement;\n }\n }, {\n key: \"renderFormField\",\n value: function renderFormField() {\n var _this6 = this;\n\n var _this$props19 = this.props,\n delimiter = _this$props19.delimiter,\n isDisabled = _this$props19.isDisabled,\n isMulti = _this$props19.isMulti,\n name = _this$props19.name;\n var selectValue = this.state.selectValue;\n if (!name || isDisabled) return;\n\n if (isMulti) {\n if (delimiter) {\n var value = selectValue.map(function (opt) {\n return _this6.getOptionValue(opt);\n }).join(delimiter);\n return React.createElement(\"input\", {\n name: name,\n type: \"hidden\",\n value: value\n });\n } else {\n var input = selectValue.length > 0 ? selectValue.map(function (opt, i) {\n return React.createElement(\"input\", {\n key: \"i-\".concat(i),\n name: name,\n type: \"hidden\",\n value: _this6.getOptionValue(opt)\n });\n }) : React.createElement(\"input\", {\n name: name,\n type: \"hidden\"\n });\n return React.createElement(\"div\", null, input);\n }\n } else {\n var _value = selectValue[0] ? this.getOptionValue(selectValue[0]) : '';\n\n return React.createElement(\"input\", {\n name: name,\n type: \"hidden\",\n value: _value\n });\n }\n }\n }, {\n key: \"renderLiveRegion\",\n value: function renderLiveRegion() {\n if (!this.state.isFocused) return null;\n return React.createElement(A11yText, {\n \"aria-live\": \"assertive\"\n }, React.createElement(\"p\", {\n id: \"aria-selection-event\"\n }, \"\\xA0\", this.state.ariaLiveSelection), React.createElement(\"p\", {\n id: \"aria-context\"\n }, \"\\xA0\", this.constructAriaLiveMessage()));\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$components4 = this.components,\n Control = _this$components4.Control,\n IndicatorsContainer = _this$components4.IndicatorsContainer,\n SelectContainer = _this$components4.SelectContainer,\n ValueContainer = _this$components4.ValueContainer;\n var _this$props20 = this.props,\n className = _this$props20.className,\n id = _this$props20.id,\n isDisabled = _this$props20.isDisabled,\n menuIsOpen = _this$props20.menuIsOpen;\n var isFocused = this.state.isFocused;\n var commonProps = this.commonProps = this.getCommonProps();\n return React.createElement(SelectContainer, _extends({}, commonProps, {\n className: className,\n innerProps: {\n id: id,\n onKeyDown: this.onKeyDown\n },\n isDisabled: isDisabled,\n isFocused: isFocused\n }), this.renderLiveRegion(), React.createElement(Control, _extends({}, commonProps, {\n innerRef: this.getControlRef,\n innerProps: {\n onMouseDown: this.onControlMouseDown,\n onTouchEnd: this.onControlTouchEnd\n },\n isDisabled: isDisabled,\n isFocused: isFocused,\n menuIsOpen: menuIsOpen\n }), React.createElement(ValueContainer, _extends({}, commonProps, {\n isDisabled: isDisabled\n }), this.renderPlaceholderOrValue(), this.renderInput()), React.createElement(IndicatorsContainer, _extends({}, commonProps, {\n isDisabled: isDisabled\n }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());\n }\n }]);\n\n return Select;\n}(Component);\n\n_defineProperty(Select, \"defaultProps\", defaultProps);\n\nvar defaultProps$1 = {\n defaultInputValue: '',\n defaultMenuIsOpen: false,\n defaultValue: null\n};\n\nvar manageState = function manageState(SelectComponent) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inherits(StateManager, _Component);\n\n function StateManager() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, StateManager);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(StateManager)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"select\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n inputValue: _this.props.inputValue !== undefined ? _this.props.inputValue : _this.props.defaultInputValue,\n menuIsOpen: _this.props.menuIsOpen !== undefined ? _this.props.menuIsOpen : _this.props.defaultMenuIsOpen,\n value: _this.props.value !== undefined ? _this.props.value : _this.props.defaultValue\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onChange\", function (value, actionMeta) {\n _this.callProp('onChange', value, actionMeta);\n\n _this.setState({\n value: value\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onInputChange\", function (value, actionMeta) {\n // TODO: for backwards compatibility, we allow the prop to return a new\n // value, but now inputValue is a controllable prop we probably shouldn't\n var newValue = _this.callProp('onInputChange', value, actionMeta);\n\n _this.setState({\n inputValue: newValue !== undefined ? newValue : value\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuOpen\", function () {\n _this.callProp('onMenuOpen');\n\n _this.setState({\n menuIsOpen: true\n });\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onMenuClose\", function () {\n _this.callProp('onMenuClose');\n\n _this.setState({\n menuIsOpen: false\n });\n });\n\n return _this;\n }\n\n _createClass(StateManager, [{\n key: \"focus\",\n value: function focus() {\n this.select.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.select.blur();\n } // FIXME: untyped flow code, return any\n\n }, {\n key: \"getProp\",\n value: function getProp(key) {\n return this.props[key] !== undefined ? this.props[key] : this.state[key];\n } // FIXME: untyped flow code, return any\n\n }, {\n key: \"callProp\",\n value: function callProp(name) {\n if (typeof this.props[name] === 'function') {\n var _this$props;\n\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n return (_this$props = this.props)[name].apply(_this$props, args);\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props2 = this.props,\n defaultInputValue = _this$props2.defaultInputValue,\n defaultMenuIsOpen = _this$props2.defaultMenuIsOpen,\n defaultValue = _this$props2.defaultValue,\n props = _objectWithoutProperties(_this$props2, [\"defaultInputValue\", \"defaultMenuIsOpen\", \"defaultValue\"]);\n\n return React.createElement(SelectComponent, _extends({}, props, {\n ref: function ref(_ref) {\n _this2.select = _ref;\n },\n inputValue: this.getProp('inputValue'),\n menuIsOpen: this.getProp('menuIsOpen'),\n onChange: this.onChange,\n onInputChange: this.onInputChange,\n onMenuClose: this.onMenuClose,\n onMenuOpen: this.onMenuOpen,\n value: this.getProp('value')\n }));\n }\n }]);\n\n return StateManager;\n }(Component), _defineProperty(_class, \"defaultProps\", defaultProps$1), _temp;\n};\n\nvar defaultProps$2 = {\n cacheOptions: false,\n defaultOptions: false,\n filterOption: null\n};\nvar makeAsyncSelect = function makeAsyncSelect(SelectComponent) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inherits(Async, _Component);\n\n function Async(props) {\n var _this;\n\n _classCallCheck(this, Async);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Async).call(this));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"select\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"lastRequest\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"mounted\", false);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"optionsCache\", {});\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"handleInputChange\", function (newValue, actionMeta) {\n var _this$props = _this.props,\n cacheOptions = _this$props.cacheOptions,\n onInputChange = _this$props.onInputChange; // TODO\n\n var inputValue = handleInputChange(newValue, actionMeta, onInputChange);\n\n if (!inputValue) {\n delete _this.lastRequest;\n\n _this.setState({\n inputValue: '',\n loadedInputValue: '',\n loadedOptions: [],\n isLoading: false,\n passEmptyOptions: false\n });\n\n return;\n }\n\n if (cacheOptions && _this.optionsCache[inputValue]) {\n _this.setState({\n inputValue: inputValue,\n loadedInputValue: inputValue,\n loadedOptions: _this.optionsCache[inputValue],\n isLoading: false,\n passEmptyOptions: false\n });\n } else {\n var request = _this.lastRequest = {};\n\n _this.setState({\n inputValue: inputValue,\n isLoading: true,\n passEmptyOptions: !_this.state.loadedInputValue\n }, function () {\n _this.loadOptions(inputValue, function (options) {\n if (!_this.mounted) return;\n\n if (options) {\n _this.optionsCache[inputValue] = options;\n }\n\n if (request !== _this.lastRequest) return;\n delete _this.lastRequest;\n\n _this.setState({\n isLoading: false,\n loadedInputValue: inputValue,\n loadedOptions: options || [],\n passEmptyOptions: false\n });\n });\n });\n }\n\n return inputValue;\n });\n\n _this.state = {\n defaultOptions: Array.isArray(props.defaultOptions) ? props.defaultOptions : undefined,\n inputValue: typeof props.inputValue !== 'undefined' ? props.inputValue : '',\n isLoading: props.defaultOptions === true ? true : false,\n loadedOptions: [],\n passEmptyOptions: false\n };\n return _this;\n }\n\n _createClass(Async, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n var _this2 = this;\n\n this.mounted = true;\n var defaultOptions = this.props.defaultOptions;\n var inputValue = this.state.inputValue;\n\n if (defaultOptions === true) {\n this.loadOptions(inputValue, function (options) {\n if (!_this2.mounted) return;\n var isLoading = !!_this2.lastRequest;\n\n _this2.setState({\n defaultOptions: options || [],\n isLoading: isLoading\n });\n });\n }\n }\n }, {\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n // if the cacheOptions prop changes, clear the cache\n if (nextProps.cacheOptions !== this.props.cacheOptions) {\n this.optionsCache = {};\n }\n\n if (nextProps.defaultOptions !== this.props.defaultOptions) {\n this.setState({\n defaultOptions: Array.isArray(nextProps.defaultOptions) ? nextProps.defaultOptions : undefined\n });\n }\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n this.mounted = false;\n }\n }, {\n key: \"focus\",\n value: function focus() {\n this.select.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.select.blur();\n }\n }, {\n key: \"loadOptions\",\n value: function loadOptions(inputValue, callback) {\n var loadOptions = this.props.loadOptions;\n if (!loadOptions) return callback();\n var loader = loadOptions(inputValue, callback);\n\n if (loader && typeof loader.then === 'function') {\n loader.then(callback, function () {\n return callback();\n });\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this3 = this;\n\n var _this$props2 = this.props,\n loadOptions = _this$props2.loadOptions,\n props = _objectWithoutProperties(_this$props2, [\"loadOptions\"]);\n\n var _this$state = this.state,\n defaultOptions = _this$state.defaultOptions,\n inputValue = _this$state.inputValue,\n isLoading = _this$state.isLoading,\n loadedInputValue = _this$state.loadedInputValue,\n loadedOptions = _this$state.loadedOptions,\n passEmptyOptions = _this$state.passEmptyOptions;\n var options = passEmptyOptions ? [] : inputValue && loadedInputValue ? loadedOptions : defaultOptions || [];\n return React.createElement(SelectComponent, _extends({}, props, {\n ref: function ref(_ref) {\n _this3.select = _ref;\n },\n options: options,\n isLoading: isLoading,\n onInputChange: this.handleInputChange\n }));\n }\n }]);\n\n return Async;\n }(Component), _defineProperty(_class, \"defaultProps\", defaultProps$2), _temp;\n};\nvar SelectState = manageState(Select);\nvar Async = makeAsyncSelect(SelectState);\n\nvar compareOption = function compareOption() {\n var inputValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var option = arguments.length > 1 ? arguments[1] : undefined;\n var candidate = String(inputValue).toLowerCase();\n var optionValue = String(option.value).toLowerCase();\n var optionLabel = String(option.label).toLowerCase();\n return optionValue === candidate || optionLabel === candidate;\n};\n\nvar builtins = {\n formatCreateLabel: function formatCreateLabel(inputValue) {\n return \"Create \\\"\".concat(inputValue, \"\\\"\");\n },\n isValidNewOption: function isValidNewOption(inputValue, selectValue, selectOptions) {\n return !(!inputValue || selectValue.some(function (option) {\n return compareOption(inputValue, option);\n }) || selectOptions.some(function (option) {\n return compareOption(inputValue, option);\n }));\n },\n getNewOptionData: function getNewOptionData(inputValue, optionLabel) {\n return {\n label: optionLabel,\n value: inputValue,\n __isNew__: true\n };\n }\n};\nvar defaultProps$3 = _objectSpread({\n allowCreateWhileLoading: false,\n createOptionPosition: 'last'\n}, builtins);\nvar makeCreatableSelect = function makeCreatableSelect(SelectComponent) {\n var _class, _temp;\n\n return _temp = _class =\n /*#__PURE__*/\n function (_Component) {\n _inherits(Creatable, _Component);\n\n function Creatable(props) {\n var _this;\n\n _classCallCheck(this, Creatable);\n\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Creatable).call(this, props));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"select\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"onChange\", function (newValue, actionMeta) {\n var _this$props = _this.props,\n getNewOptionData = _this$props.getNewOptionData,\n inputValue = _this$props.inputValue,\n isMulti = _this$props.isMulti,\n onChange = _this$props.onChange,\n onCreateOption = _this$props.onCreateOption,\n value = _this$props.value;\n\n if (actionMeta.action !== 'select-option') {\n return onChange(newValue, actionMeta);\n }\n\n var newOption = _this.state.newOption;\n var valueArray = Array.isArray(newValue) ? newValue : [newValue];\n\n if (valueArray[valueArray.length - 1] === newOption) {\n if (onCreateOption) onCreateOption(inputValue);else {\n var newOptionData = getNewOptionData(inputValue, inputValue);\n var newActionMeta = {\n action: 'create-option'\n };\n\n if (isMulti) {\n onChange([].concat(_toConsumableArray(cleanValue(value)), [newOptionData]), newActionMeta);\n } else {\n onChange(newOptionData, newActionMeta);\n }\n }\n return;\n }\n\n onChange(newValue, actionMeta);\n });\n\n var options = props.options || [];\n _this.state = {\n newOption: undefined,\n options: options\n };\n return _this;\n }\n\n _createClass(Creatable, [{\n key: \"componentWillReceiveProps\",\n value: function componentWillReceiveProps(nextProps) {\n var allowCreateWhileLoading = nextProps.allowCreateWhileLoading,\n createOptionPosition = nextProps.createOptionPosition,\n formatCreateLabel = nextProps.formatCreateLabel,\n getNewOptionData = nextProps.getNewOptionData,\n inputValue = nextProps.inputValue,\n isLoading = nextProps.isLoading,\n isValidNewOption = nextProps.isValidNewOption,\n value = nextProps.value;\n var options = nextProps.options || [];\n var newOption = this.state.newOption;\n\n if (isValidNewOption(inputValue, cleanValue(value), options)) {\n newOption = getNewOptionData(inputValue, formatCreateLabel(inputValue));\n } else {\n newOption = undefined;\n }\n\n this.setState({\n newOption: newOption,\n options: (allowCreateWhileLoading || !isLoading) && newOption ? createOptionPosition === 'first' ? [newOption].concat(_toConsumableArray(options)) : [].concat(_toConsumableArray(options), [newOption]) : options\n });\n }\n }, {\n key: \"focus\",\n value: function focus() {\n this.select.focus();\n }\n }, {\n key: \"blur\",\n value: function blur() {\n this.select.blur();\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var props = _extends({}, this.props);\n\n var options = this.state.options;\n return React.createElement(SelectComponent, _extends({}, props, {\n ref: function ref(_ref) {\n _this2.select = _ref;\n },\n options: options,\n onChange: this.onChange\n }));\n }\n }]);\n\n return Creatable;\n }(Component), _defineProperty(_class, \"defaultProps\", defaultProps$3), _temp;\n}; // TODO: do this in package entrypoint\n\nvar SelectCreatable = makeCreatableSelect(Select);\nvar Creatable = manageState(SelectCreatable);\n\nvar SelectCreatable$1 = makeCreatableSelect(Select);\nvar SelectCreatableState = manageState(SelectCreatable$1);\nvar AsyncCreatable = makeAsyncSelect(SelectCreatableState);\n\n// strip transition props off before spreading onto select component\n// note we need to be explicit about innerRef for flow\nvar AnimatedInput = function AnimatedInput(WrappedComponent) {\n return function (_ref) {\n var inProp = _ref.in,\n onExited = _ref.onExited,\n appear = _ref.appear,\n enter = _ref.enter,\n exit = _ref.exit,\n props = _objectWithoutProperties(_ref, [\"in\", \"onExited\", \"appear\", \"enter\", \"exit\"]);\n\n return React.createElement(WrappedComponent, props);\n };\n};\n\nvar Fade = function Fade(_ref) {\n var Tag = _ref.component,\n _ref$duration = _ref.duration,\n duration = _ref$duration === void 0 ? 1 : _ref$duration,\n inProp = _ref.in,\n onExited = _ref.onExited,\n props = _objectWithoutProperties(_ref, [\"component\", \"duration\", \"in\", \"onExited\"]);\n\n var transition = {\n entering: {\n opacity: 0\n },\n entered: {\n opacity: 1,\n transition: \"opacity \".concat(duration, \"ms\")\n },\n exiting: {\n opacity: 0\n },\n exited: {\n opacity: 0\n }\n };\n return React.createElement(Transition, {\n mountOnEnter: true,\n unmountOnExit: true,\n in: inProp,\n timeout: duration\n }, function (state) {\n var innerProps = {\n style: _objectSpread({}, transition[state])\n };\n return React.createElement(Tag, _extends({\n innerProps: innerProps\n }, props));\n });\n}; // ==============================\n// Collapse Transition\n// ==============================\n\nvar collapseDuration = 260;\n// wrap each MultiValue with a collapse transition; decreases width until\n// finally removing from DOM\nvar Collapse =\n/*#__PURE__*/\nfunction (_Component) {\n _inherits(Collapse, _Component);\n\n function Collapse() {\n var _getPrototypeOf2;\n\n var _this;\n\n _classCallCheck(this, Collapse);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Collapse)).call.apply(_getPrototypeOf2, [this].concat(args)));\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"duration\", collapseDuration);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"rafID\", void 0);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"state\", {\n width: 'auto'\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"transition\", {\n exiting: {\n width: 0,\n transition: \"width \".concat(_this.duration, \"ms ease-out\")\n },\n exited: {\n width: 0\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getWidth\", function (ref) {\n if (ref && isNaN(_this.state.width)) {\n /*\n Here we're invoking requestAnimationFrame with a callback invoking our\n call to getBoundingClientRect and setState in order to resolve an edge case\n around portalling. Certain portalling solutions briefly remove children from the DOM\n before appending them to the target node. This is to avoid us trying to call getBoundingClientrect\n while the Select component is in this state.\n */\n // cannot use `offsetWidth` because it is rounded\n _this.rafID = window.requestAnimationFrame(function () {\n var _ref$getBoundingClien = ref.getBoundingClientRect(),\n width = _ref$getBoundingClien.width;\n\n _this.setState({\n width: width\n });\n });\n }\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getStyle\", function (width) {\n return {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n width: width\n };\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getTransition\", function (state) {\n return _this.transition[state];\n });\n\n return _this;\n }\n\n _createClass(Collapse, [{\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n if (this.rafID) {\n window.cancelAnimationFrame(this.rafID);\n }\n } // width must be calculated; cannot transition from `undefined` to `number`\n\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in;\n var width = this.state.width;\n return React.createElement(Transition, {\n enter: false,\n mountOnEnter: true,\n unmountOnExit: true,\n in: inProp,\n timeout: this.duration\n }, function (state) {\n var style = _objectSpread({}, _this2.getStyle(width), _this2.getTransition(state));\n\n return React.createElement(\"div\", {\n ref: _this2.getWidth,\n style: style\n }, children);\n });\n }\n }]);\n\n return Collapse;\n}(Component);\n\nvar AnimatedMultiValue = function AnimatedMultiValue(WrappedComponent) {\n return function (_ref) {\n var inProp = _ref.in,\n onExited = _ref.onExited,\n props = _objectWithoutProperties(_ref, [\"in\", \"onExited\"]);\n\n return React.createElement(Collapse, {\n in: inProp,\n onExited: onExited\n }, React.createElement(WrappedComponent, _extends({\n cropWithEllipsis: inProp\n }, props)));\n };\n};\n\nvar AnimatedPlaceholder = function AnimatedPlaceholder(WrappedComponent) {\n return function (props) {\n return React.createElement(Fade, _extends({\n component: WrappedComponent,\n duration: props.isMulti ? collapseDuration : 1\n }, props));\n };\n};\n\nvar AnimatedSingleValue = function AnimatedSingleValue(WrappedComponent) {\n return function (props) {\n return React.createElement(Fade, _extends({\n component: WrappedComponent\n }, props));\n };\n};\n\n// make ValueContainer a transition group\nvar AnimatedValueContainer = function AnimatedValueContainer(WrappedComponent) {\n return function (props) {\n return React.createElement(TransitionGroup, _extends({\n component: WrappedComponent\n }, props));\n };\n};\n\nvar makeAnimated = function makeAnimated() {\n var externalComponents = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var components$$1 = defaultComponents({\n components: externalComponents\n });\n\n var Input = components$$1.Input,\n MultiValue = components$$1.MultiValue,\n Placeholder = components$$1.Placeholder,\n SingleValue = components$$1.SingleValue,\n ValueContainer = components$$1.ValueContainer,\n rest = _objectWithoutProperties(components$$1, [\"Input\", \"MultiValue\", \"Placeholder\", \"SingleValue\", \"ValueContainer\"]);\n\n return _objectSpread({\n Input: AnimatedInput(Input),\n MultiValue: AnimatedMultiValue(MultiValue),\n Placeholder: AnimatedPlaceholder(Placeholder),\n SingleValue: AnimatedSingleValue(SingleValue),\n ValueContainer: AnimatedValueContainer(ValueContainer)\n }, rest);\n};\n\nvar AnimatedComponents = makeAnimated();\nvar Input$1 = AnimatedComponents.Input;\nvar MultiValue$1 = AnimatedComponents.MultiValue;\nvar Placeholder$1 = AnimatedComponents.Placeholder;\nvar SingleValue$1 = AnimatedComponents.SingleValue;\nvar ValueContainer$1 = AnimatedComponents.ValueContainer;\nvar index = memoizeOne(makeAnimated, exportedEqual);\n\nvar index$1 = manageState(Select);\n\nexport default index$1;\nexport { Select as SelectBase, Async, makeAsyncSelect, AsyncCreatable, Creatable, makeCreatableSelect, createFilter, index as makeAnimated, components, mergeStyles, defaultTheme };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-select/dist/react-select.esm.js\n// module id = 16\n// module chunks = 0 1","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 17\n// module chunks = 0 1","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-is/index.js\n// module id = 18\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = _interopRequireDefault(require(\"react-dom\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar UNMOUNTED = 'unmounted';\nexports.UNMOUNTED = UNMOUNTED;\nvar EXITED = 'exited';\nexports.EXITED = EXITED;\nvar ENTERING = 'entering';\nexports.ENTERING = ENTERING;\nvar ENTERED = 'entered';\nexports.ENTERED = ENTERED;\nvar EXITING = 'exiting';\n/**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * ---\n *\n * **Note**: `Transition` is a platform-agnostic base component. If you're using\n * transitions in CSS, you'll probably want to use\n * [`CSSTransition`](https://reactcommunity.org/react-transition-group/css-transition)\n * instead. It inherits all the features of `Transition`, but contains\n * additional features necessary to play nice with CSS transitions (hence the\n * name of the component).\n *\n * ---\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the\n * components. It's up to you to give meaning and effect to those states. For\n * example we can add styles to a component when it enters or exits:\n *\n * ```jsx\n * import { Transition } from 'react-transition-group';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 0 },\n * entered: { opacity: 1 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * <Transition in={inProp} timeout={duration}>\n * {state => (\n * <div style={{\n * ...defaultStyle,\n * ...transitionStyles[state]\n * }}>\n * I'm a fade Transition!\n * </div>\n * )}\n * </Transition>\n * );\n * ```\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component\n * begins the \"Enter\" stage. During this stage, the component will shift from\n * its current transition state, to `'entering'` for the duration of the\n * transition and then to the `'entered'` stage once it's complete. Let's take\n * the following example (we'll use the\n * [useState](https://reactjs.org/docs/hooks-reference.html#usestate) hook):\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <Transition in={inProp} timeout={500}>\n * {state => (\n * // ...\n * )}\n * </Transition>\n * <button onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state\n * and stay there for 500ms (the value of `timeout`) before it finally switches\n * to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from\n * `'exiting'` to `'exited'`.\n */\n\nexports.EXITING = EXITING;\n\nvar Transition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Transition, _React$Component);\n\n function Transition(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n var parentGroup = context.transitionGroup; // In the context of a TransitionGroup all enters are really appears\n\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n var initialStatus;\n _this.appearStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.appearStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = {\n status: initialStatus\n };\n _this.nextCallback = null;\n return _this;\n }\n\n var _proto = Transition.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: null // allows for nested Transitions\n\n };\n };\n\n Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {\n var nextIn = _ref.in;\n\n if (nextIn && prevState.status === UNMOUNTED) {\n return {\n status: EXITED\n };\n }\n\n return null;\n }; // getSnapshotBeforeUpdate(prevProps) {\n // let nextStatus = null\n // if (prevProps !== this.props) {\n // const { status } = this.state\n // if (this.props.in) {\n // if (status !== ENTERING && status !== ENTERED) {\n // nextStatus = ENTERING\n // }\n // } else {\n // if (status === ENTERING || status === ENTERED) {\n // nextStatus = EXITING\n // }\n // }\n // }\n // return { nextStatus }\n // }\n\n\n _proto.componentDidMount = function componentDidMount() {\n this.updateStatus(true, this.appearStatus);\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var nextStatus = null;\n\n if (prevProps !== this.props) {\n var status = this.state.status;\n\n if (this.props.in) {\n if (status !== ENTERING && status !== ENTERED) {\n nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n nextStatus = EXITING;\n }\n }\n }\n\n this.updateStatus(false, nextStatus);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n _proto.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n var exit, enter, appear;\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter; // TODO: remove fallback for next major\n\n appear = timeout.appear !== undefined ? timeout.appear : enter;\n }\n\n return {\n exit: exit,\n enter: enter,\n appear: appear\n };\n };\n\n _proto.updateStatus = function updateStatus(mounting, nextStatus) {\n if (mounting === void 0) {\n mounting = false;\n }\n\n if (nextStatus !== null) {\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n\n var node = _reactDom.default.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({\n status: UNMOUNTED\n });\n }\n };\n\n _proto.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;\n var timeouts = this.getTimeouts();\n var enterTimeout = appearing ? timeouts.appear : timeouts.enter; // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n\n if (!mounting && !enter) {\n this.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n this.safeSetState({\n status: ENTERING\n }, function () {\n _this2.props.onEntering(node, appearing);\n\n _this2.onTransitionEnd(node, enterTimeout, function () {\n _this2.safeSetState({\n status: ENTERED\n }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n _proto.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n var timeouts = this.getTimeouts(); // no exit animation skip right to EXITED\n\n if (!exit) {\n this.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n\n this.props.onExit(node);\n this.safeSetState({\n status: EXITING\n }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({\n status: EXITED\n }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n _proto.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n _proto.safeSetState = function safeSetState(nextState, callback) {\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, callback);\n };\n\n _proto.setNextCallback = function setNextCallback(callback) {\n var _this4 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this4.nextCallback = null;\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;\n\n if (!node || doesNotHaveTimeoutOrListener) {\n setTimeout(this.nextCallback, 0);\n return;\n }\n\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n };\n\n _proto.render = function render() {\n var status = this.state.status;\n\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _this$props = this.props,\n children = _this$props.children,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"children\"]); // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n return children(status, childProps);\n }\n\n var child = _react.default.Children.only(children);\n\n return _react.default.cloneElement(child, childProps);\n };\n\n return Transition;\n}(_react.default.Component);\n\nTransition.contextTypes = {\n transitionGroup: PropTypes.object\n};\nTransition.childContextTypes = {\n transitionGroup: function transitionGroup() {}\n};\nTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element. This function is\n * called with the current transition status (`'entering'`, `'entered'`,\n * `'exiting'`, `'exited'`, `'unmounted'`), which can be used to apply context\n * specific props to a component.\n *\n * ```jsx\n * <Transition in={this.state.in} timeout={150}>\n * {state => (\n * <MyComponent className={`fade fade-${state}`} />\n * )}\n * </Transition>\n * ```\n */\n children: PropTypes.oneOfType([PropTypes.func.isRequired, PropTypes.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the `<Transition>` component mounts.\n * If you want to transition on the first mount set `appear` to `true`, and the\n * component will transition in as soon as the `<Transition>` mounts.\n *\n * > Note: there are no specific \"appear\" states. `appear` only adds an additional `enter` transition.\n */\n appear: PropTypes.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided.\n *\n * You may specify a single timeout for all transitions:\n *\n * ```jsx\n * timeout={500}\n * ```\n *\n * or individually:\n *\n * ```jsx\n * timeout={{\n * appear: 500,\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * - `appear` defaults to the value of `enter`\n * - `enter` defaults to `0`\n * - `exit` defaults to `0`\n *\n * @type {number | { enter?: number, exit?: number, appear?: number }}\n */\n timeout: function timeout(props) {\n var pt = _PropTypes.timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return pt.apply(void 0, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes.func // Name the function so it is clearer in the documentation\n\n} : {};\n\nfunction noop() {}\n\nTransition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n onExit: noop,\n onExiting: noop,\n onExited: noop\n};\nTransition.UNMOUNTED = 0;\nTransition.EXITED = 1;\nTransition.ENTERING = 2;\nTransition.ENTERED = 3;\nTransition.EXITING = 4;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(Transition);\n\nexports.default = _default;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/Transition.js\n// module id = 19\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nfunction componentWillMount() {\n // Call this.constructor.gDSFP to support sub-classes.\n var state = this.constructor.getDerivedStateFromProps(this.props, this.state);\n if (state !== null && state !== undefined) {\n this.setState(state);\n }\n}\n\nfunction componentWillReceiveProps(nextProps) {\n // Call this.constructor.gDSFP to support sub-classes.\n // Use the setState() updater to ensure state isn't stale in certain edge cases.\n function updater(prevState) {\n var state = this.constructor.getDerivedStateFromProps(nextProps, prevState);\n return state !== null && state !== undefined ? state : null;\n }\n // Binding \"this\" is important for shallow renderer support.\n this.setState(updater.bind(this));\n}\n\nfunction componentWillUpdate(nextProps, nextState) {\n try {\n var prevProps = this.props;\n var prevState = this.state;\n this.props = nextProps;\n this.state = nextState;\n this.__reactInternalSnapshotFlag = true;\n this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(\n prevProps,\n prevState\n );\n } finally {\n this.props = prevProps;\n this.state = prevState;\n }\n}\n\n// React may warn about cWM/cWRP/cWU methods being deprecated.\n// Add a flag to suppress these warnings for this special case.\ncomponentWillMount.__suppressDeprecationWarning = true;\ncomponentWillReceiveProps.__suppressDeprecationWarning = true;\ncomponentWillUpdate.__suppressDeprecationWarning = true;\n\nfunction polyfill(Component) {\n var prototype = Component.prototype;\n\n if (!prototype || !prototype.isReactComponent) {\n throw new Error('Can only polyfill class components');\n }\n\n if (\n typeof Component.getDerivedStateFromProps !== 'function' &&\n typeof prototype.getSnapshotBeforeUpdate !== 'function'\n ) {\n return Component;\n }\n\n // If new component APIs are defined, \"unsafe\" lifecycles won't be called.\n // Error if any of these lifecycles are present,\n // Because they would work differently between older and newer (16.3+) versions of React.\n var foundWillMountName = null;\n var foundWillReceivePropsName = null;\n var foundWillUpdateName = null;\n if (typeof prototype.componentWillMount === 'function') {\n foundWillMountName = 'componentWillMount';\n } else if (typeof prototype.UNSAFE_componentWillMount === 'function') {\n foundWillMountName = 'UNSAFE_componentWillMount';\n }\n if (typeof prototype.componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'componentWillReceiveProps';\n } else if (typeof prototype.UNSAFE_componentWillReceiveProps === 'function') {\n foundWillReceivePropsName = 'UNSAFE_componentWillReceiveProps';\n }\n if (typeof prototype.componentWillUpdate === 'function') {\n foundWillUpdateName = 'componentWillUpdate';\n } else if (typeof prototype.UNSAFE_componentWillUpdate === 'function') {\n foundWillUpdateName = 'UNSAFE_componentWillUpdate';\n }\n if (\n foundWillMountName !== null ||\n foundWillReceivePropsName !== null ||\n foundWillUpdateName !== null\n ) {\n var componentName = Component.displayName || Component.name;\n var newApiName =\n typeof Component.getDerivedStateFromProps === 'function'\n ? 'getDerivedStateFromProps()'\n : 'getSnapshotBeforeUpdate()';\n\n throw Error(\n 'Unsafe legacy lifecycles will not be called for components using new component APIs.\\n\\n' +\n componentName +\n ' uses ' +\n newApiName +\n ' but also contains the following legacy lifecycles:' +\n (foundWillMountName !== null ? '\\n ' + foundWillMountName : '') +\n (foundWillReceivePropsName !== null\n ? '\\n ' + foundWillReceivePropsName\n : '') +\n (foundWillUpdateName !== null ? '\\n ' + foundWillUpdateName : '') +\n '\\n\\nThe above lifecycles should be removed. Learn more about this warning here:\\n' +\n 'https://fb.me/react-async-component-lifecycle-hooks'\n );\n }\n\n // React <= 16.2 does not support static getDerivedStateFromProps.\n // As a workaround, use cWM and cWRP to invoke the new static lifecycle.\n // Newer versions of React will ignore these lifecycles if gDSFP exists.\n if (typeof Component.getDerivedStateFromProps === 'function') {\n prototype.componentWillMount = componentWillMount;\n prototype.componentWillReceiveProps = componentWillReceiveProps;\n }\n\n // React <= 16.2 does not support getSnapshotBeforeUpdate.\n // As a workaround, use cWU to invoke the new lifecycle.\n // Newer versions of React will ignore that lifecycle if gSBU exists.\n if (typeof prototype.getSnapshotBeforeUpdate === 'function') {\n if (typeof prototype.componentDidUpdate !== 'function') {\n throw new Error(\n 'Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype'\n );\n }\n\n prototype.componentWillUpdate = componentWillUpdate;\n\n var componentDidUpdate = prototype.componentDidUpdate;\n\n prototype.componentDidUpdate = function componentDidUpdatePolyfill(\n prevProps,\n prevState,\n maybeSnapshot\n ) {\n // 16.3+ will not execute our will-update method;\n // It will pass a snapshot value to did-update though.\n // Older versions will require our polyfilled will-update value.\n // We need to handle both cases, but can't just check for the presence of \"maybeSnapshot\",\n // Because for <= 15.x versions this might be a \"prevContext\" object.\n // We also can't just check \"__reactInternalSnapshot\",\n // Because get-snapshot might return a falsy value.\n // So check for the explicit __reactInternalSnapshotFlag flag to determine behavior.\n var snapshot = this.__reactInternalSnapshotFlag\n ? this.__reactInternalSnapshot\n : maybeSnapshot;\n\n componentDidUpdate.call(this, prevProps, prevState, snapshot);\n };\n }\n\n return Component;\n}\n\nexport { polyfill };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js\n// module id = 20\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.classNamesShape = exports.timeoutsShape = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar timeoutsShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({\n enter: _propTypes.default.number,\n exit: _propTypes.default.number,\n appear: _propTypes.default.number\n}).isRequired]) : null;\nexports.timeoutsShape = timeoutsShape;\nvar classNamesShape = process.env.NODE_ENV !== 'production' ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({\n enter: _propTypes.default.string,\n exit: _propTypes.default.string,\n active: _propTypes.default.string\n}), _propTypes.default.shape({\n enter: _propTypes.default.string,\n enterDone: _propTypes.default.string,\n enterActive: _propTypes.default.string,\n exit: _propTypes.default.string,\n exitDone: _propTypes.default.string,\n exitActive: _propTypes.default.string\n})]) : null;\nexports.classNamesShape = classNamesShape;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/utils/PropTypes.js\n// module id = 21\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactLifecyclesCompat = require(\"react-lifecycles-compat\");\n\nvar _ChildMapping = require(\"./utils/ChildMapping\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nvar values = Object.values || function (obj) {\n return Object.keys(obj).map(function (k) {\n return obj[k];\n });\n};\n\nvar defaultProps = {\n component: 'div',\n childFactory: function childFactory(child) {\n return child;\n }\n /**\n * The `<TransitionGroup>` component manages a set of transition components\n * (`<Transition>` and `<CSSTransition>`) in a list. Like with the transition\n * components, `<TransitionGroup>` is a state machine for managing the mounting\n * and unmounting of components over time.\n *\n * Consider the example below. As items are removed or added to the TodoList the\n * `in` prop is toggled automatically by the `<TransitionGroup>`.\n *\n * Note that `<TransitionGroup>` does not define any animation behavior!\n * Exactly _how_ a list item animates is up to the individual transition\n * component. This means you can mix and match animations across different list\n * items.\n */\n\n};\n\nvar TransitionGroup =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(TransitionGroup, _React$Component);\n\n function TransitionGroup(props, context) {\n var _this;\n\n _this = _React$Component.call(this, props, context) || this;\n\n var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this))); // Initial children should all be entering, dependent on appear\n\n\n _this.state = {\n handleExited: handleExited,\n firstRender: true\n };\n return _this;\n }\n\n var _proto = TransitionGroup.prototype;\n\n _proto.getChildContext = function getChildContext() {\n return {\n transitionGroup: {\n isMounting: !this.appeared\n }\n };\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.appeared = true;\n this.mounted = true;\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.mounted = false;\n };\n\n TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {\n var prevChildMapping = _ref.children,\n handleExited = _ref.handleExited,\n firstRender = _ref.firstRender;\n return {\n children: firstRender ? (0, _ChildMapping.getInitialChildMapping)(nextProps, handleExited) : (0, _ChildMapping.getNextChildMapping)(nextProps, prevChildMapping, handleExited),\n firstRender: false\n };\n };\n\n _proto.handleExited = function handleExited(child, node) {\n var currentChildMapping = (0, _ChildMapping.getChildMapping)(this.props.children);\n if (child.key in currentChildMapping) return;\n\n if (child.props.onExited) {\n child.props.onExited(node);\n }\n\n if (this.mounted) {\n this.setState(function (state) {\n var children = _extends({}, state.children);\n\n delete children[child.key];\n return {\n children: children\n };\n });\n }\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n Component = _this$props.component,\n childFactory = _this$props.childFactory,\n props = _objectWithoutPropertiesLoose(_this$props, [\"component\", \"childFactory\"]);\n\n var children = values(this.state.children).map(childFactory);\n delete props.appear;\n delete props.enter;\n delete props.exit;\n\n if (Component === null) {\n return children;\n }\n\n return _react.default.createElement(Component, props, children);\n };\n\n return TransitionGroup;\n}(_react.default.Component);\n\nTransitionGroup.childContextTypes = {\n transitionGroup: _propTypes.default.object.isRequired\n};\nTransitionGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * `<TransitionGroup>` renders a `<div>` by default. You can change this\n * behavior by providing a `component` prop.\n * If you use React v16+ and would like to avoid a wrapping `<div>` element\n * you can pass in `component={null}`. This is useful if the wrapping div\n * borks your css styles.\n */\n component: _propTypes.default.any,\n\n /**\n * A set of `<Transition>` components, that are toggled `in` and out as they\n * leave. the `<TransitionGroup>` will inject specific transition props, so\n * remember to spread them through if you are wrapping the `<Transition>` as\n * with our `<Fade>` example.\n *\n * While this component is meant for multiple `Transition` or `CSSTransition`\n * children, sometimes you may want to have a single transition child with\n * content that you want to be transitioned out and in when you change it\n * (e.g. routes, images etc.) In that case you can change the `key` prop of\n * the transition child as you change its content, this will cause\n * `TransitionGroup` to transition the child out and back in.\n */\n children: _propTypes.default.node,\n\n /**\n * A convenience prop that enables or disables appear animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n appear: _propTypes.default.bool,\n\n /**\n * A convenience prop that enables or disables enter animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n enter: _propTypes.default.bool,\n\n /**\n * A convenience prop that enables or disables exit animations\n * for all children. Note that specifying this will override any defaults set\n * on individual children Transitions.\n */\n exit: _propTypes.default.bool,\n\n /**\n * You may need to apply reactive updates to a child as it is exiting.\n * This is generally done by using `cloneElement` however in the case of an exiting\n * child the element has already been removed and not accessible to the consumer.\n *\n * If you do need to update a child as it leaves you can provide a `childFactory`\n * to wrap every child, even the ones that are leaving.\n *\n * @type Function(child: ReactElement) -> ReactElement\n */\n childFactory: _propTypes.default.func\n} : {};\nTransitionGroup.defaultProps = defaultProps;\n\nvar _default = (0, _reactLifecyclesCompat.polyfill)(TransitionGroup);\n\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/TransitionGroup.js\n// module id = 22\n// module chunks = 0 1","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iterators.js\n// module id = 23\n// module chunks = 0 1","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_fails.js\n// module id = 24\n// module chunks = 0 1","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_library.js\n// module id = 25\n// module chunks = 0 1","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_property-desc.js\n// module id = 26\n// module chunks = 0 1","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys.js\n// module id = 27\n// module chunks = 0 1","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_uid.js\n// module id = 28\n// module chunks = 0 1","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-pie.js\n// module id = 29\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/json/stringify\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/json/stringify.js\n// module id = 30\n// module chunks = 0 1","var core = require('../../modules/_core');\nvar $JSON = core.JSON || (core.JSON = { stringify: JSON.stringify });\nmodule.exports = function stringify(it) { // eslint-disable-line no-unused-vars\n return $JSON.stringify.apply($JSON, arguments);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/json/stringify.js\n// module id = 31\n// module chunks = 0 1","function areInputsEqual(newInputs, lastInputs) {\n if (newInputs.length !== lastInputs.length) {\n return false;\n }\n\n for (var i = 0; i < newInputs.length; i++) {\n if (newInputs[i] !== lastInputs[i]) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction index (resultFn, isEqual) {\n if (isEqual === void 0) {\n isEqual = areInputsEqual;\n }\n\n var lastThis;\n var lastArgs = [];\n var lastResult;\n var calledOnce = false;\n\n var result = function result() {\n for (var _len = arguments.length, newArgs = new Array(_len), _key = 0; _key < _len; _key++) {\n newArgs[_key] = arguments[_key];\n }\n\n if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {\n return lastResult;\n }\n\n lastResult = resultFn.apply(this, newArgs);\n calledOnce = true;\n lastThis = this;\n lastArgs = newArgs;\n return lastResult;\n };\n\n return result;\n}\n\nexport default index;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/memoize-one/dist/memoize-one.esm.js\n// module id = 32\n// module chunks = 0 1","import createEmotion from 'create-emotion';\n\nvar context = typeof global !== 'undefined' ? global : {};\n\nvar _createEmotion = createEmotion(context),\n flush = _createEmotion.flush,\n hydrate = _createEmotion.hydrate,\n cx = _createEmotion.cx,\n merge = _createEmotion.merge,\n getRegisteredStyles = _createEmotion.getRegisteredStyles,\n injectGlobal = _createEmotion.injectGlobal,\n keyframes = _createEmotion.keyframes,\n css = _createEmotion.css,\n sheet = _createEmotion.sheet,\n caches = _createEmotion.caches;\n\nexport { flush, hydrate, cx, merge, getRegisteredStyles, injectGlobal, keyframes, css, sheet, caches };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/emotion/dist/index.esm.js\n// module id = 33\n// module chunks = 0 1","import memoize from '@emotion/memoize';\nimport unitless from '@emotion/unitless';\nimport hashString from '@emotion/hash';\nimport Stylis from '@emotion/stylis';\nimport stylisRuleSheet from 'stylis-rule-sheet';\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar processStyleName = memoize(function (styleName) {\n return styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\nvar processStyleValue = function processStyleValue(key, value) {\n if (value == null || typeof value === 'boolean') {\n return '';\n }\n\n if (unitless[key] !== 1 && key.charCodeAt(1) !== 45 && // custom properties\n !isNaN(value) && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nif (process.env.NODE_ENV !== 'production') {\n var contentValuePattern = /(attr|calc|counters?|url)\\(/;\n var contentValues = ['normal', 'none', 'counter', 'open-quote', 'close-quote', 'no-open-quote', 'no-close-quote', 'initial', 'inherit', 'unset'];\n var oldProcessStyleValue = processStyleValue;\n\n processStyleValue = function processStyleValue(key, value) {\n if (key === 'content') {\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n console.error(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\" + value + \"\\\"'`\");\n }\n }\n\n return oldProcessStyleValue(key, value);\n };\n}\n\nvar classnames = function classnames(args) {\n var len = args.length;\n var i = 0;\n var cls = '';\n\n for (; i < len; i++) {\n var arg = args[i];\n if (arg == null) continue;\n var toAdd = void 0;\n\n switch (typeof arg) {\n case 'boolean':\n break;\n\n case 'function':\n if (process.env.NODE_ENV !== 'production') {\n console.error('Passing functions to cx is deprecated and will be removed in the next major version of Emotion.\\n' + 'Please call the function before passing it to cx.');\n }\n\n toAdd = classnames([arg()]);\n break;\n\n case 'object':\n {\n if (Array.isArray(arg)) {\n toAdd = classnames(arg);\n } else {\n toAdd = '';\n\n for (var k in arg) {\n if (arg[k] && k) {\n toAdd && (toAdd += ' ');\n toAdd += k;\n }\n }\n }\n\n break;\n }\n\n default:\n {\n toAdd = arg;\n }\n }\n\n if (toAdd) {\n cls && (cls += ' ');\n cls += toAdd;\n }\n }\n\n return cls;\n};\nvar isBrowser = typeof document !== 'undefined';\n\n/*\n\nhigh performance StyleSheet for css-in-js systems\n\n- uses multiple style tags behind the scenes for millions of rules\n- uses `insertRule` for appending in production for *much* faster performance\n- 'polyfills' on server side\n\n// usage\n\nimport StyleSheet from 'glamor/lib/sheet'\nlet styleSheet = new StyleSheet()\n\nstyleSheet.inject()\n- 'injects' the stylesheet into the page (or into memory if on server)\n\nstyleSheet.insert('#box { border: 1px solid red; }')\n- appends a css rule into the stylesheet\n\nstyleSheet.flush()\n- empties the stylesheet of all its contents\n\n*/\n// $FlowFixMe\nfunction sheetForTag(tag) {\n if (tag.sheet) {\n // $FlowFixMe\n return tag.sheet;\n } // this weirdness brought to you by firefox\n\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n if (document.styleSheets[i].ownerNode === tag) {\n // $FlowFixMe\n return document.styleSheets[i];\n }\n }\n}\n\nfunction makeStyleTag(opts) {\n var tag = document.createElement('style');\n tag.setAttribute('data-emotion', opts.key || '');\n\n if (opts.nonce !== undefined) {\n tag.setAttribute('nonce', opts.nonce);\n }\n\n tag.appendChild(document.createTextNode('')) // $FlowFixMe\n ;\n (opts.container !== undefined ? opts.container : document.head).appendChild(tag);\n return tag;\n}\n\nvar StyleSheet =\n/*#__PURE__*/\nfunction () {\n function StyleSheet(options) {\n this.isSpeedy = process.env.NODE_ENV === 'production'; // the big drawback here is that the css won't be editable in devtools\n\n this.tags = [];\n this.ctr = 0;\n this.opts = options;\n }\n\n var _proto = StyleSheet.prototype;\n\n _proto.inject = function inject() {\n if (this.injected) {\n throw new Error('already injected!');\n }\n\n this.tags[0] = makeStyleTag(this.opts);\n this.injected = true;\n };\n\n _proto.speedy = function speedy(bool) {\n if (this.ctr !== 0) {\n // cannot change speedy mode after inserting any rule to sheet. Either call speedy(${bool}) earlier in your app, or call flush() before speedy(${bool})\n throw new Error(\"cannot change speedy now\");\n }\n\n this.isSpeedy = !!bool;\n };\n\n _proto.insert = function insert(rule, sourceMap) {\n // this is the ultrafast version, works across browsers\n if (this.isSpeedy) {\n var tag = this.tags[this.tags.length - 1];\n var sheet = sheetForTag(tag);\n\n try {\n sheet.insertRule(rule, sheet.cssRules.length);\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n console.warn('illegal rule', rule); // eslint-disable-line no-console\n }\n }\n } else {\n var _tag = makeStyleTag(this.opts);\n\n this.tags.push(_tag);\n\n _tag.appendChild(document.createTextNode(rule + (sourceMap || '')));\n }\n\n this.ctr++;\n\n if (this.ctr % 65000 === 0) {\n this.tags.push(makeStyleTag(this.opts));\n }\n };\n\n _proto.flush = function flush() {\n // $FlowFixMe\n this.tags.forEach(function (tag) {\n return tag.parentNode.removeChild(tag);\n });\n this.tags = [];\n this.ctr = 0; // todo - look for remnants in document.styleSheets\n\n this.injected = false;\n };\n\n return StyleSheet;\n}();\n\nfunction createEmotion(context, options) {\n if (context.__SECRET_EMOTION__ !== undefined) {\n return context.__SECRET_EMOTION__;\n }\n\n if (options === undefined) options = {};\n var key = options.key || 'css';\n\n if (process.env.NODE_ENV !== 'production') {\n if (/[^a-z-]/.test(key)) {\n throw new Error(\"Emotion key must only contain lower case alphabetical characters and - but \\\"\" + key + \"\\\" was passed\");\n }\n }\n\n var current;\n\n function insertRule(rule) {\n current += rule;\n\n if (isBrowser) {\n sheet.insert(rule, currentSourceMap);\n }\n }\n\n var insertionPlugin = stylisRuleSheet(insertRule);\n var stylisOptions;\n\n if (options.prefix !== undefined) {\n stylisOptions = {\n prefix: options.prefix\n };\n }\n\n var caches = {\n registered: {},\n inserted: {},\n nonce: options.nonce,\n key: key\n };\n var sheet = new StyleSheet(options);\n\n if (isBrowser) {\n // 🚀\n sheet.inject();\n }\n\n var stylis = new Stylis(stylisOptions);\n stylis.use(options.stylisPlugins)(insertionPlugin);\n var currentSourceMap = '';\n\n function handleInterpolation(interpolation, couldBeSelectorInterpolation) {\n if (interpolation == null) {\n return '';\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n return '';\n\n case 'function':\n if (interpolation.__emotion_styles !== undefined) {\n var selector = interpolation.toString();\n\n if (selector === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');\n }\n\n return selector;\n }\n\n if (this === undefined && process.env.NODE_ENV !== 'production') {\n console.error('Interpolating functions in css calls is deprecated and will be removed in the next major version of Emotion.\\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\\n' + 'It can be called directly with props or interpolated in a styled call like this\\n' + \"let SomeComponent = styled('div')`${dynamicStyle}`\");\n }\n\n return handleInterpolation.call(this, this === undefined ? interpolation() : // $FlowFixMe\n interpolation(this.mergedProps, this.context), couldBeSelectorInterpolation);\n\n case 'object':\n return createStringFromObject.call(this, interpolation);\n\n default:\n var cached = caches.registered[interpolation];\n return couldBeSelectorInterpolation === false && cached !== undefined ? cached : interpolation;\n }\n }\n\n var objectToStringCache = new WeakMap();\n\n function createStringFromObject(obj) {\n if (objectToStringCache.has(obj)) {\n // $FlowFixMe\n return objectToStringCache.get(obj);\n }\n\n var string = '';\n\n if (Array.isArray(obj)) {\n obj.forEach(function (interpolation) {\n string += handleInterpolation.call(this, interpolation, false);\n }, this);\n } else {\n Object.keys(obj).forEach(function (key) {\n if (typeof obj[key] !== 'object') {\n if (caches.registered[obj[key]] !== undefined) {\n string += key + \"{\" + caches.registered[obj[key]] + \"}\";\n } else {\n string += processStyleName(key) + \":\" + processStyleValue(key, obj[key]) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && process.env.NODE_ENV !== 'production') {\n throw new Error('Component selectors can only be used in conjunction with babel-plugin-emotion.');\n }\n\n if (Array.isArray(obj[key]) && typeof obj[key][0] === 'string' && caches.registered[obj[key][0]] === undefined) {\n obj[key].forEach(function (value) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value) + \";\";\n });\n } else {\n string += key + \"{\" + handleInterpolation.call(this, obj[key], false) + \"}\";\n }\n }\n }, this);\n }\n\n objectToStringCache.set(obj, string);\n return string;\n }\n\n var name;\n var stylesWithLabel;\n var labelPattern = /label:\\s*([^\\s;\\n{]+)\\s*;/g;\n\n var createClassName = function createClassName(styles, identifierName) {\n return hashString(styles + identifierName) + identifierName;\n };\n\n if (process.env.NODE_ENV !== 'production') {\n var oldCreateClassName = createClassName;\n var sourceMappingUrlPattern = /\\/\\*#\\ssourceMappingURL=data:application\\/json;\\S+\\s+\\*\\//g;\n\n createClassName = function createClassName(styles, identifierName) {\n return oldCreateClassName(styles.replace(sourceMappingUrlPattern, function (sourceMap) {\n currentSourceMap = sourceMap;\n return '';\n }), identifierName);\n };\n }\n\n var createStyles = function createStyles(strings) {\n var stringMode = true;\n var styles = '';\n var identifierName = '';\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation.call(this, strings, false);\n } else {\n styles += strings[0];\n }\n\n for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n interpolations[_key - 1] = arguments[_key];\n }\n\n interpolations.forEach(function (interpolation, i) {\n styles += handleInterpolation.call(this, interpolation, styles.charCodeAt(styles.length - 1) === 46 // .\n );\n\n if (stringMode === true && strings[i + 1] !== undefined) {\n styles += strings[i + 1];\n }\n }, this);\n stylesWithLabel = styles;\n styles = styles.replace(labelPattern, function (match, p1) {\n identifierName += \"-\" + p1;\n return '';\n });\n name = createClassName(styles, identifierName);\n return styles;\n };\n\n if (process.env.NODE_ENV !== 'production') {\n var oldStylis = stylis;\n\n stylis = function stylis(selector, styles) {\n oldStylis(selector, styles);\n currentSourceMap = '';\n };\n }\n\n function insert(scope, styles) {\n if (caches.inserted[name] === undefined) {\n current = '';\n stylis(scope, styles);\n caches.inserted[name] = current;\n }\n }\n\n var css = function css() {\n var styles = createStyles.apply(this, arguments);\n var selector = key + \"-\" + name;\n\n if (caches.registered[selector] === undefined) {\n caches.registered[selector] = stylesWithLabel;\n }\n\n insert(\".\" + selector, styles);\n return selector;\n };\n\n var keyframes = function keyframes() {\n var styles = createStyles.apply(this, arguments);\n var animation = \"animation-\" + name;\n insert('', \"@keyframes \" + animation + \"{\" + styles + \"}\");\n return animation;\n };\n\n var injectGlobal = function injectGlobal() {\n var styles = createStyles.apply(this, arguments);\n insert('', styles);\n };\n\n function getRegisteredStyles(registeredStyles, classNames) {\n var rawClassName = '';\n classNames.split(' ').forEach(function (className) {\n if (caches.registered[className] !== undefined) {\n registeredStyles.push(className);\n } else {\n rawClassName += className + \" \";\n }\n });\n return rawClassName;\n }\n\n function merge(className, sourceMap) {\n var registeredStyles = [];\n var rawClassName = getRegisteredStyles(registeredStyles, className);\n\n if (registeredStyles.length < 2) {\n return className;\n }\n\n return rawClassName + css(registeredStyles, sourceMap);\n }\n\n function cx() {\n for (var _len2 = arguments.length, classNames = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n classNames[_key2] = arguments[_key2];\n }\n\n return merge(classnames(classNames));\n }\n\n function hydrateSingleId(id) {\n caches.inserted[id] = true;\n }\n\n function hydrate(ids) {\n ids.forEach(hydrateSingleId);\n }\n\n function flush() {\n if (isBrowser) {\n sheet.flush();\n sheet.inject();\n }\n\n caches.inserted = {};\n caches.registered = {};\n }\n\n if (isBrowser) {\n var chunks = document.querySelectorAll(\"[data-emotion-\" + key + \"]\");\n Array.prototype.forEach.call(chunks, function (node) {\n // $FlowFixMe\n sheet.tags[0].parentNode.insertBefore(node, sheet.tags[0]); // $FlowFixMe\n\n node.getAttribute(\"data-emotion-\" + key).split(' ').forEach(hydrateSingleId);\n });\n }\n\n var emotion = {\n flush: flush,\n hydrate: hydrate,\n cx: cx,\n merge: merge,\n getRegisteredStyles: getRegisteredStyles,\n injectGlobal: injectGlobal,\n keyframes: keyframes,\n css: css,\n sheet: sheet,\n caches: caches\n };\n context.__SECRET_EMOTION__ = emotion;\n return emotion;\n}\n\nexport default createEmotion;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/create-emotion/dist/index.esm.js\n// module id = 34\n// module chunks = 0 1","function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/memoize/dist/memoize.esm.js\n// module id = 35\n// module chunks = 0 1","var unitlessKeys = {\n animationIterationCount: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport default unitlessKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/unitless/dist/unitless.esm.js\n// module id = 36\n// module chunks = 0 1","/* eslint-disable */\n// murmurhash2 via https://github.com/garycourt/murmurhash-js/blob/master/murmurhash2_gc.js\nfunction murmurhash2_32_gc(str) {\n var l = str.length,\n h = l ^ l,\n i = 0,\n k;\n\n while (l >= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n k ^= k >>> 24;\n k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k;\n l -= 4;\n ++i;\n }\n\n switch (l) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n }\n\n h ^= h >>> 13;\n h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);\n h ^= h >>> 15;\n return (h >>> 0).toString(36);\n}\n\nexport default murmurhash2_32_gc;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/hash/dist/hash.esm.js\n// module id = 37\n// module chunks = 0 1","function stylis_min (W) {\n function M(d, c, e, h, a) {\n for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {\n g = e.charCodeAt(l);\n l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);\n\n if (0 === b + n + v + m) {\n if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {\n switch (g) {\n case 32:\n case 9:\n case 59:\n case 13:\n case 10:\n break;\n\n default:\n f += e.charAt(l);\n }\n\n g = 59;\n }\n\n switch (g) {\n case 123:\n f = f.trim();\n q = f.charCodeAt(0);\n k = 1;\n\n for (t = ++l; l < B;) {\n switch (g = e.charCodeAt(l)) {\n case 123:\n k++;\n break;\n\n case 125:\n k--;\n break;\n\n case 47:\n switch (g = e.charCodeAt(l + 1)) {\n case 42:\n case 47:\n a: {\n for (u = l + 1; u < J; ++u) {\n switch (e.charCodeAt(u)) {\n case 47:\n if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {\n l = u + 1;\n break a;\n }\n\n break;\n\n case 10:\n if (47 === g) {\n l = u + 1;\n break a;\n }\n\n }\n }\n\n l = u;\n }\n\n }\n\n break;\n\n case 91:\n g++;\n\n case 40:\n g++;\n\n case 34:\n case 39:\n for (; l++ < J && e.charCodeAt(l) !== g;) {\n }\n\n }\n\n if (0 === k) break;\n l++;\n }\n\n k = e.substring(t, l);\n 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));\n\n switch (q) {\n case 64:\n 0 < r && (f = f.replace(N, ''));\n g = f.charCodeAt(1);\n\n switch (g) {\n case 100:\n case 109:\n case 115:\n case 45:\n r = c;\n break;\n\n default:\n r = O;\n }\n\n k = M(c, r, k, g, a + 1);\n t = k.length;\n 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));\n if (0 < t) switch (g) {\n case 115:\n f = f.replace(da, ea);\n\n case 100:\n case 109:\n case 45:\n k = f + '{' + k + '}';\n break;\n\n case 107:\n f = f.replace(fa, '$1 $2');\n k = f + '{' + k + '}';\n k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;\n break;\n\n default:\n k = f + k, 112 === h && (k = (p += k, ''));\n } else k = '';\n break;\n\n default:\n k = M(c, X(c, f, I), k, h, a + 1);\n }\n\n F += k;\n k = I = r = u = q = 0;\n f = '';\n g = e.charCodeAt(++l);\n break;\n\n case 125:\n case 59:\n f = (0 < r ? f.replace(N, '') : f).trim();\n if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\\x00\\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {\n case 0:\n break;\n\n case 64:\n if (105 === g || 99 === g) {\n G += f + e.charAt(l);\n break;\n }\n\n default:\n 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));\n }\n I = r = u = q = 0;\n f = '';\n g = e.charCodeAt(++l);\n }\n }\n\n switch (g) {\n case 13:\n case 10:\n 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\\x00');\n 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);\n z = 1;\n D++;\n break;\n\n case 59:\n case 125:\n if (0 === b + n + v + m) {\n z++;\n break;\n }\n\n default:\n z++;\n y = e.charAt(l);\n\n switch (g) {\n case 9:\n case 32:\n if (0 === n + m + b) switch (x) {\n case 44:\n case 58:\n case 9:\n case 32:\n y = '';\n break;\n\n default:\n 32 !== g && (y = ' ');\n }\n break;\n\n case 0:\n y = '\\\\0';\n break;\n\n case 12:\n y = '\\\\f';\n break;\n\n case 11:\n y = '\\\\v';\n break;\n\n case 38:\n 0 === n + b + m && (r = I = 1, y = '\\f' + y);\n break;\n\n case 108:\n if (0 === n + b + m + E && 0 < u) switch (l - u) {\n case 2:\n 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);\n\n case 8:\n 111 === K && (E = K);\n }\n break;\n\n case 58:\n 0 === n + b + m && (u = l);\n break;\n\n case 44:\n 0 === b + v + n + m && (r = 1, y += '\\r');\n break;\n\n case 34:\n case 39:\n 0 === b && (n = n === g ? 0 : 0 === n ? g : n);\n break;\n\n case 91:\n 0 === n + b + v && m++;\n break;\n\n case 93:\n 0 === n + b + v && m--;\n break;\n\n case 41:\n 0 === n + b + m && v--;\n break;\n\n case 40:\n if (0 === n + b + m) {\n if (0 === q) switch (2 * x + 3 * K) {\n case 533:\n break;\n\n default:\n q = 1;\n }\n v++;\n }\n\n break;\n\n case 64:\n 0 === b + v + n + m + u + k && (k = 1);\n break;\n\n case 42:\n case 47:\n if (!(0 < n + m + v)) switch (b) {\n case 0:\n switch (2 * g + 3 * e.charCodeAt(l + 1)) {\n case 235:\n b = 47;\n break;\n\n case 220:\n t = l, b = 42;\n }\n\n break;\n\n case 42:\n 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);\n }\n }\n\n 0 === b && (f += y);\n }\n\n K = x;\n x = g;\n l++;\n }\n\n t = p.length;\n\n if (0 < t) {\n r = c;\n if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;\n p = r.join(',') + '{' + p + '}';\n\n if (0 !== w * E) {\n 2 !== w || L(p, 2) || (E = 0);\n\n switch (E) {\n case 111:\n p = p.replace(ha, ':-moz-$1') + p;\n break;\n\n case 112:\n p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;\n }\n\n E = 0;\n }\n }\n\n return G + p + F;\n }\n\n function X(d, c, e) {\n var h = c.trim().split(ia);\n c = h;\n var a = h.length,\n m = d.length;\n\n switch (m) {\n case 0:\n case 1:\n var b = 0;\n\n for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {\n c[b] = Z(d, c[b], e, m).trim();\n }\n\n break;\n\n default:\n var v = b = 0;\n\n for (c = []; b < a; ++b) {\n for (var n = 0; n < m; ++n) {\n c[v++] = Z(d[n] + ' ', h[b], e, m).trim();\n }\n }\n\n }\n\n return c;\n }\n\n function Z(d, c, e) {\n var h = c.charCodeAt(0);\n 33 > h && (h = (c = c.trim()).charCodeAt(0));\n\n switch (h) {\n case 38:\n return c.replace(F, '$1' + d.trim());\n\n case 58:\n return d.trim() + c.replace(F, '$1' + d.trim());\n\n default:\n if (0 < 1 * e && 0 < c.indexOf('\\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());\n }\n\n return d + c;\n }\n\n function P(d, c, e, h) {\n var a = d + ';',\n m = 2 * c + 3 * e + 4 * h;\n\n if (944 === m) {\n d = a.indexOf(':', 9) + 1;\n var b = a.substring(d, a.length - 1).trim();\n b = a.substring(0, d).trim() + b + ';';\n return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;\n }\n\n if (0 === w || 2 === w && !L(a, 1)) return a;\n\n switch (m) {\n case 1015:\n return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;\n\n case 951:\n return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;\n\n case 963:\n return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;\n\n case 1009:\n if (100 !== a.charCodeAt(4)) break;\n\n case 969:\n case 942:\n return '-webkit-' + a + a;\n\n case 978:\n return '-webkit-' + a + '-moz-' + a + a;\n\n case 1019:\n case 983:\n return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;\n\n case 883:\n if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;\n if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;\n break;\n\n case 932:\n if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {\n case 103:\n return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;\n\n case 115:\n return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;\n\n case 98:\n return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;\n }\n return '-webkit-' + a + '-ms-' + a + a;\n\n case 964:\n return '-webkit-' + a + '-ms-flex-' + a + a;\n\n case 1023:\n if (99 !== a.charCodeAt(8)) break;\n b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');\n return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;\n\n case 1005:\n return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;\n\n case 1e3:\n b = a.substring(13).trim();\n c = b.indexOf('-') + 1;\n\n switch (b.charCodeAt(0) + b.charCodeAt(c)) {\n case 226:\n b = a.replace(G, 'tb');\n break;\n\n case 232:\n b = a.replace(G, 'tb-rl');\n break;\n\n case 220:\n b = a.replace(G, 'lr');\n break;\n\n default:\n return a;\n }\n\n return '-webkit-' + a + '-ms-' + b + a;\n\n case 1017:\n if (-1 === a.indexOf('sticky', 9)) break;\n\n case 975:\n c = (a = d).length - 10;\n b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();\n\n switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {\n case 203:\n if (111 > b.charCodeAt(8)) break;\n\n case 115:\n a = a.replace(b, '-webkit-' + b) + ';' + a;\n break;\n\n case 207:\n case 102:\n a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;\n }\n\n return a + ';';\n\n case 938:\n if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {\n case 105:\n return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;\n\n case 115:\n return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;\n\n default:\n return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;\n }\n break;\n\n case 973:\n case 989:\n if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;\n\n case 931:\n case 953:\n if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;\n break;\n\n case 962:\n if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;\n }\n\n return a;\n }\n\n function L(d, c) {\n var e = d.indexOf(1 === c ? ':' : '{'),\n h = d.substring(0, 3 !== c ? e : 10);\n e = d.substring(e + 1, d.length - 1);\n return R(2 !== c ? h : h.replace(na, '$1'), e, c);\n }\n\n function ea(d, c) {\n var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));\n return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';\n }\n\n function H(d, c, e, h, a, m, b, v, n, q) {\n for (var g = 0, x = c, w; g < A; ++g) {\n switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {\n case void 0:\n case !1:\n case !0:\n case null:\n break;\n\n default:\n x = w;\n }\n }\n\n if (x !== c) return x;\n }\n\n function T(d) {\n switch (d) {\n case void 0:\n case null:\n A = S.length = 0;\n break;\n\n default:\n switch (d.constructor) {\n case Array:\n for (var c = 0, e = d.length; c < e; ++c) {\n T(d[c]);\n }\n\n break;\n\n case Function:\n S[A++] = d;\n break;\n\n case Boolean:\n Y = !!d | 0;\n }\n\n }\n\n return T;\n }\n\n function U(d) {\n d = d.prefix;\n void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);\n return U;\n }\n\n function B(d, c) {\n var e = d;\n 33 > e.charCodeAt(0) && (e = e.trim());\n V = e;\n e = [V];\n\n if (0 < A) {\n var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);\n void 0 !== h && 'string' === typeof h && (c = h);\n }\n\n var a = M(O, e, c, 0, 0);\n 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));\n V = '';\n E = 0;\n z = D = 1;\n return a;\n }\n\n var ca = /^\\0+/g,\n N = /[\\0\\r\\f]/g,\n aa = /: */g,\n ka = /zoo|gra/,\n ma = /([,: ])(transform)/g,\n ia = /,\\r+?/g,\n F = /([\\t\\r\\n ])*\\f?&/g,\n fa = /@(k\\w+)\\s*(\\S*)\\s*/,\n Q = /::(place)/g,\n ha = /:(read-only)/g,\n G = /[svh]\\w+-[tblr]{2}/,\n da = /\\(\\s*(.*)\\s*\\)/g,\n oa = /([\\s\\S]*?);/g,\n ba = /-self|flex-/g,\n na = /[^]*?(:[rp][el]a[\\w-]+)[^]*/,\n la = /stretch|:\\s*\\w+\\-(?:conte|avail)/,\n ja = /([^-])(image-set\\()/,\n z = 1,\n D = 1,\n E = 0,\n w = 1,\n O = [],\n S = [],\n A = 0,\n R = null,\n Y = 0,\n V = '';\n B.use = T;\n B.set = U;\n void 0 !== W && U(W);\n return B;\n}\n\nexport default stylis_min;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@emotion/stylis/dist/stylis.esm.js\n// module id = 38\n// module chunks = 0 1","(function (factory) {\n\ttypeof exports === 'object' && typeof module !== 'undefined' ? (module['exports'] = factory()) :\n\t\ttypeof define === 'function' && define['amd'] ? define(factory()) :\n\t\t\t(window['stylisRuleSheet'] = factory())\n}(function () {\n\n\t'use strict'\n\n\treturn function (insertRule) {\n\t\tvar delimiter = '/*|*/'\n\t\tvar needle = delimiter+'}'\n\n\t\tfunction toSheet (block) {\n\t\t\tif (block)\n\t\t\t\ttry {\n\t\t\t\t\tinsertRule(block + '}')\n\t\t\t\t} catch (e) {}\n\t\t}\n\n\t\treturn function ruleSheet (context, content, selectors, parents, line, column, length, ns, depth, at) {\n\t\t\tswitch (context) {\n\t\t\t\t// property\n\t\t\t\tcase 1:\n\t\t\t\t\t// @import\n\t\t\t\t\tif (depth === 0 && content.charCodeAt(0) === 64)\n\t\t\t\t\t\treturn insertRule(content+';'), ''\n\t\t\t\t\tbreak\n\t\t\t\t// selector\n\t\t\t\tcase 2:\n\t\t\t\t\tif (ns === 0)\n\t\t\t\t\t\treturn content + delimiter\n\t\t\t\t\tbreak\n\t\t\t\t// at-rule\n\t\t\t\tcase 3:\n\t\t\t\t\tswitch (ns) {\n\t\t\t\t\t\t// @font-face, @page\n\t\t\t\t\t\tcase 102:\n\t\t\t\t\t\tcase 112:\n\t\t\t\t\t\t\treturn insertRule(selectors[0]+content), ''\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\treturn content + (at === 0 ? delimiter : '')\n\t\t\t\t\t}\n\t\t\t\tcase -2:\n\t\t\t\t\tcontent.split(needle).forEach(toSheet)\n\t\t\t}\n\t\t}\n\t}\n}))\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/stylis-rule-sheet/index.js\n// module id = 39\n// module chunks = 0 1","/** @license React v16.8.6\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';Object.defineProperty(exports,\"__esModule\",{value:!0});\nvar b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?Symbol.for(\"react.memo\"):\n60115,r=b?Symbol.for(\"react.lazy\"):60116;function t(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case r:case q:case d:return u}}}function v(a){return t(a)===m}exports.typeOf=t;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;\nexports.Fragment=e;exports.Lazy=r;exports.Memo=q;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||\"object\"===typeof a&&null!==a&&(a.$$typeof===r||a.$$typeof===q||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n)};exports.isAsyncMode=function(a){return v(a)||t(a)===l};exports.isConcurrentMode=v;exports.isContextConsumer=function(a){return t(a)===k};\nexports.isContextProvider=function(a){return t(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return t(a)===n};exports.isFragment=function(a){return t(a)===e};exports.isLazy=function(a){return t(a)===r};exports.isMemo=function(a){return t(a)===q};exports.isPortal=function(a){return t(a)===d};exports.isProfiler=function(a){return t(a)===g};exports.isStrictMode=function(a){return t(a)===f};\nexports.isSuspense=function(a){return t(a)===p};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-is/cjs/react-is.production.min.js\n// module id = 40\n// module chunks = 0 1","/** @license React v16.8.6\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\nObject.defineProperty(exports, '__esModule', { value: true });\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\n\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' ||\n // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);\n}\n\n/**\n * Forked from fbjs/warning:\n * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js\n *\n * Only change is we use console.warn instead of console.error,\n * and do nothing when 'console' is not supported.\n * This really simplifies the code.\n * ---\n * Similar to invariant but only logs a warning if the condition is not met.\n * This can be used to log issues in development environments in critical\n * paths. Removing the logging code for production environments will keep the\n * same logic and follow the same code paths.\n */\n\nvar lowPriorityWarning = function () {};\n\n{\n var printWarning = function (format) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var argIndex = 0;\n var message = 'Warning: ' + format.replace(/%s/g, function () {\n return args[argIndex++];\n });\n if (typeof console !== 'undefined') {\n console.warn(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n\n lowPriorityWarning = function (condition, format) {\n if (format === undefined) {\n throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');\n }\n if (!condition) {\n for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {\n args[_key2 - 2] = arguments[_key2];\n }\n\n printWarning.apply(undefined, [format].concat(args));\n }\n };\n}\n\nvar lowPriorityWarning$1 = lowPriorityWarning;\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n default:\n return $$typeof;\n }\n }\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n}\n\n// AsyncMode is deprecated along with isAsyncMode\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\n\nvar hasWarnedAboutDeprecatedIsAsyncMode = false;\n\n// AsyncMode should be deprecated\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true;\n lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.typeOf = typeOf;\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isValidElementType = isValidElementType;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\n })();\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-is/cjs/react-is.development.js\n// module id = 41\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar has = Function.call.bind(Object.prototype.hasOwnProperty);\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message) {\n this.message = message;\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {\n return null;\n }\n }\n\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (!checker) {\n continue;\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from\n // props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/factoryWithTypeCheckers.js\n// module id = 42\n// module chunks = 0 1","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/object-assign/index.js\n// module id = 43\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = Function.call.bind(Object.prototype.hasOwnProperty);\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/checkPropTypes.js\n// module id = 44\n// module chunks = 0 1","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/prop-types/factoryWithThrowingShims.js\n// module id = 45\n// module chunks = 0 1","var now = require('performance-now')\n , root = typeof window === 'undefined' ? global : window\n , vendors = ['moz', 'webkit']\n , suffix = 'AnimationFrame'\n , raf = root['request' + suffix]\n , caf = root['cancel' + suffix] || root['cancelRequest' + suffix]\n\nfor(var i = 0; !raf && i < vendors.length; i++) {\n raf = root[vendors[i] + 'Request' + suffix]\n caf = root[vendors[i] + 'Cancel' + suffix]\n || root[vendors[i] + 'CancelRequest' + suffix]\n}\n\n// Some versions of FF have rAF but not cAF\nif(!raf || !caf) {\n var last = 0\n , id = 0\n , queue = []\n , frameDuration = 1000 / 60\n\n raf = function(callback) {\n if(queue.length === 0) {\n var _now = now()\n , next = Math.max(0, frameDuration - (_now - last))\n last = next + _now\n setTimeout(function() {\n var cp = queue.slice(0)\n // Clear queue here to prevent\n // callbacks from appending listeners\n // to the current frame's queue\n queue.length = 0\n for(var i = 0; i < cp.length; i++) {\n if(!cp[i].cancelled) {\n try{\n cp[i].callback(last)\n } catch(e) {\n setTimeout(function() { throw e }, 0)\n }\n }\n }\n }, Math.round(next))\n }\n queue.push({\n handle: ++id,\n callback: callback,\n cancelled: false\n })\n return id\n }\n\n caf = function(handle) {\n for(var i = 0; i < queue.length; i++) {\n if(queue[i].handle === handle) {\n queue[i].cancelled = true\n }\n }\n }\n}\n\nmodule.exports = function(fn) {\n // Wrap in a new function to prevent\n // `cancel` potentially being assigned\n // to the native rAF function\n return raf.call(root, fn)\n}\nmodule.exports.cancel = function() {\n caf.apply(root, arguments)\n}\nmodule.exports.polyfill = function(object) {\n if (!object) {\n object = root;\n }\n object.requestAnimationFrame = raf\n object.cancelAnimationFrame = caf\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/raf/index.js\n// module id = 46\n// module chunks = 0 1","// Generated by CoffeeScript 1.12.2\n(function() {\n var getNanoSeconds, hrtime, loadTime, moduleLoadTime, nodeLoadTime, upTime;\n\n if ((typeof performance !== \"undefined\" && performance !== null) && performance.now) {\n module.exports = function() {\n return performance.now();\n };\n } else if ((typeof process !== \"undefined\" && process !== null) && process.hrtime) {\n module.exports = function() {\n return (getNanoSeconds() - nodeLoadTime) / 1e6;\n };\n hrtime = process.hrtime;\n getNanoSeconds = function() {\n var hr;\n hr = hrtime();\n return hr[0] * 1e9 + hr[1];\n };\n moduleLoadTime = getNanoSeconds();\n upTime = process.uptime() * 1e9;\n nodeLoadTime = moduleLoadTime - upTime;\n } else if (Date.now) {\n module.exports = function() {\n return Date.now() - loadTime;\n };\n loadTime = Date.now();\n } else {\n module.exports = function() {\n return new Date().getTime() - loadTime;\n };\n loadTime = new Date().getTime();\n }\n\n}).call(this);\n\n//# sourceMappingURL=performance-now.js.map\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/performance-now/lib/performance-now.js\n// module id = 47\n// module chunks = 0 1","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n\tvalue: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _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; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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; }\n\nfunction _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; }\n\nvar sizerStyle = {\n\tposition: 'absolute',\n\ttop: 0,\n\tleft: 0,\n\tvisibility: 'hidden',\n\theight: 0,\n\toverflow: 'scroll',\n\twhiteSpace: 'pre'\n};\n\nvar INPUT_PROPS_BLACKLIST = ['extraWidth', 'injectStyles', 'inputClassName', 'inputRef', 'inputStyle', 'minWidth', 'onAutosize', 'placeholderIsMinWidth'];\n\nvar cleanInputProps = function cleanInputProps(inputProps) {\n\tINPUT_PROPS_BLACKLIST.forEach(function (field) {\n\t\treturn delete inputProps[field];\n\t});\n\treturn inputProps;\n};\n\nvar copyStyles = function copyStyles(styles, node) {\n\tnode.style.fontSize = styles.fontSize;\n\tnode.style.fontFamily = styles.fontFamily;\n\tnode.style.fontWeight = styles.fontWeight;\n\tnode.style.fontStyle = styles.fontStyle;\n\tnode.style.letterSpacing = styles.letterSpacing;\n\tnode.style.textTransform = styles.textTransform;\n};\n\nvar isIE = typeof window !== 'undefined' && window.navigator ? /MSIE |Trident\\/|Edge\\//.test(window.navigator.userAgent) : false;\n\nvar generateId = function generateId() {\n\t// we only need an auto-generated ID for stylesheet injection, which is only\n\t// used for IE. so if the browser is not IE, this should return undefined.\n\treturn isIE ? '_' + Math.random().toString(36).substr(2, 12) : undefined;\n};\n\nvar AutosizeInput = function (_Component) {\n\t_inherits(AutosizeInput, _Component);\n\n\tfunction AutosizeInput(props) {\n\t\t_classCallCheck(this, AutosizeInput);\n\n\t\tvar _this = _possibleConstructorReturn(this, (AutosizeInput.__proto__ || Object.getPrototypeOf(AutosizeInput)).call(this, props));\n\n\t\t_this.inputRef = function (el) {\n\t\t\t_this.input = el;\n\t\t\tif (typeof _this.props.inputRef === 'function') {\n\t\t\t\t_this.props.inputRef(el);\n\t\t\t}\n\t\t};\n\n\t\t_this.placeHolderSizerRef = function (el) {\n\t\t\t_this.placeHolderSizer = el;\n\t\t};\n\n\t\t_this.sizerRef = function (el) {\n\t\t\t_this.sizer = el;\n\t\t};\n\n\t\t_this.state = {\n\t\t\tinputWidth: props.minWidth,\n\t\t\tinputId: props.id || generateId()\n\t\t};\n\t\treturn _this;\n\t}\n\n\t_createClass(AutosizeInput, [{\n\t\tkey: 'componentDidMount',\n\t\tvalue: function componentDidMount() {\n\t\t\tthis.mounted = true;\n\t\t\tthis.copyInputStyles();\n\t\t\tthis.updateInputWidth();\n\t\t}\n\t}, {\n\t\tkey: 'componentWillReceiveProps',\n\t\tvalue: function componentWillReceiveProps(nextProps) {\n\t\t\tvar id = nextProps.id;\n\n\t\t\tif (id !== this.props.id) {\n\t\t\t\tthis.setState({ inputId: id || generateId() });\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'componentDidUpdate',\n\t\tvalue: function componentDidUpdate(prevProps, prevState) {\n\t\t\tif (prevState.inputWidth !== this.state.inputWidth) {\n\t\t\t\tif (typeof this.props.onAutosize === 'function') {\n\t\t\t\t\tthis.props.onAutosize(this.state.inputWidth);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.updateInputWidth();\n\t\t}\n\t}, {\n\t\tkey: 'componentWillUnmount',\n\t\tvalue: function componentWillUnmount() {\n\t\t\tthis.mounted = false;\n\t\t}\n\t}, {\n\t\tkey: 'copyInputStyles',\n\t\tvalue: function copyInputStyles() {\n\t\t\tif (!this.mounted || !window.getComputedStyle) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar inputStyles = this.input && window.getComputedStyle(this.input);\n\t\t\tif (!inputStyles) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcopyStyles(inputStyles, this.sizer);\n\t\t\tif (this.placeHolderSizer) {\n\t\t\t\tcopyStyles(inputStyles, this.placeHolderSizer);\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'updateInputWidth',\n\t\tvalue: function updateInputWidth() {\n\t\t\tif (!this.mounted || !this.sizer || typeof this.sizer.scrollWidth === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar newInputWidth = void 0;\n\t\t\tif (this.props.placeholder && (!this.props.value || this.props.value && this.props.placeholderIsMinWidth)) {\n\t\t\t\tnewInputWidth = Math.max(this.sizer.scrollWidth, this.placeHolderSizer.scrollWidth) + 2;\n\t\t\t} else {\n\t\t\t\tnewInputWidth = this.sizer.scrollWidth + 2;\n\t\t\t}\n\t\t\t// add extraWidth to the detected width. for number types, this defaults to 16 to allow for the stepper UI\n\t\t\tvar extraWidth = this.props.type === 'number' && this.props.extraWidth === undefined ? 16 : parseInt(this.props.extraWidth) || 0;\n\t\t\tnewInputWidth += extraWidth;\n\t\t\tif (newInputWidth < this.props.minWidth) {\n\t\t\t\tnewInputWidth = this.props.minWidth;\n\t\t\t}\n\t\t\tif (newInputWidth !== this.state.inputWidth) {\n\t\t\t\tthis.setState({\n\t\t\t\t\tinputWidth: newInputWidth\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t}, {\n\t\tkey: 'getInput',\n\t\tvalue: function getInput() {\n\t\t\treturn this.input;\n\t\t}\n\t}, {\n\t\tkey: 'focus',\n\t\tvalue: function focus() {\n\t\t\tthis.input.focus();\n\t\t}\n\t}, {\n\t\tkey: 'blur',\n\t\tvalue: function blur() {\n\t\t\tthis.input.blur();\n\t\t}\n\t}, {\n\t\tkey: 'select',\n\t\tvalue: function select() {\n\t\t\tthis.input.select();\n\t\t}\n\t}, {\n\t\tkey: 'renderStyles',\n\t\tvalue: function renderStyles() {\n\t\t\t// this method injects styles to hide IE's clear indicator, which messes\n\t\t\t// with input size detection. the stylesheet is only injected when the\n\t\t\t// browser is IE, and can also be disabled by the `injectStyles` prop.\n\t\t\tvar injectStyles = this.props.injectStyles;\n\n\t\t\treturn isIE && injectStyles ? _react2.default.createElement('style', { dangerouslySetInnerHTML: {\n\t\t\t\t\t__html: 'input#' + this.state.inputId + '::-ms-clear {display: none;}'\n\t\t\t\t} }) : null;\n\t\t}\n\t}, {\n\t\tkey: 'render',\n\t\tvalue: function render() {\n\t\t\tvar sizerValue = [this.props.defaultValue, this.props.value, ''].reduce(function (previousValue, currentValue) {\n\t\t\t\tif (previousValue !== null && previousValue !== undefined) {\n\t\t\t\t\treturn previousValue;\n\t\t\t\t}\n\t\t\t\treturn currentValue;\n\t\t\t});\n\n\t\t\tvar wrapperStyle = _extends({}, this.props.style);\n\t\t\tif (!wrapperStyle.display) wrapperStyle.display = 'inline-block';\n\n\t\t\tvar inputStyle = _extends({\n\t\t\t\tboxSizing: 'content-box',\n\t\t\t\twidth: this.state.inputWidth + 'px'\n\t\t\t}, this.props.inputStyle);\n\n\t\t\tvar inputProps = _objectWithoutProperties(this.props, []);\n\n\t\t\tcleanInputProps(inputProps);\n\t\t\tinputProps.className = this.props.inputClassName;\n\t\t\tinputProps.id = this.state.inputId;\n\t\t\tinputProps.style = inputStyle;\n\n\t\t\treturn _react2.default.createElement(\n\t\t\t\t'div',\n\t\t\t\t{ className: this.props.className, style: wrapperStyle },\n\t\t\t\tthis.renderStyles(),\n\t\t\t\t_react2.default.createElement('input', _extends({}, inputProps, { ref: this.inputRef })),\n\t\t\t\t_react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ ref: this.sizerRef, style: sizerStyle },\n\t\t\t\t\tsizerValue\n\t\t\t\t),\n\t\t\t\tthis.props.placeholder ? _react2.default.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ ref: this.placeHolderSizerRef, style: sizerStyle },\n\t\t\t\t\tthis.props.placeholder\n\t\t\t\t) : null\n\t\t\t);\n\t\t}\n\t}]);\n\n\treturn AutosizeInput;\n}(_react.Component);\n\nAutosizeInput.propTypes = {\n\tclassName: _propTypes2.default.string, // className for the outer element\n\tdefaultValue: _propTypes2.default.any, // default field value\n\textraWidth: _propTypes2.default.oneOfType([// additional width for input element\n\t_propTypes2.default.number, _propTypes2.default.string]),\n\tid: _propTypes2.default.string, // id to use for the input, can be set for consistent snapshots\n\tinjectStyles: _propTypes2.default.bool, // inject the custom stylesheet to hide clear UI, defaults to true\n\tinputClassName: _propTypes2.default.string, // className for the input element\n\tinputRef: _propTypes2.default.func, // ref callback for the input element\n\tinputStyle: _propTypes2.default.object, // css styles for the input element\n\tminWidth: _propTypes2.default.oneOfType([// minimum width for input element\n\t_propTypes2.default.number, _propTypes2.default.string]),\n\tonAutosize: _propTypes2.default.func, // onAutosize handler: function(newWidth) {}\n\tonChange: _propTypes2.default.func, // onChange handler: function(event) {}\n\tplaceholder: _propTypes2.default.string, // placeholder text\n\tplaceholderIsMinWidth: _propTypes2.default.bool, // don't collapse size to less than the placeholder\n\tstyle: _propTypes2.default.object, // css styles for the outer element\n\tvalue: _propTypes2.default.any // field value\n};\nAutosizeInput.defaultProps = {\n\tminWidth: 1,\n\tinjectStyles: true\n};\n\nexports.default = AutosizeInput;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-input-autosize/lib/AutosizeInput.js\n// module id = 48\n// module chunks = 0 1","\"use strict\";\n\nvar _CSSTransition = _interopRequireDefault(require(\"./CSSTransition\"));\n\nvar _ReplaceTransition = _interopRequireDefault(require(\"./ReplaceTransition\"));\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nmodule.exports = {\n Transition: _Transition.default,\n TransitionGroup: _TransitionGroup.default,\n ReplaceTransition: _ReplaceTransition.default,\n CSSTransition: _CSSTransition.default\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/index.js\n// module id = 49\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar PropTypes = _interopRequireWildcard(require(\"prop-types\"));\n\nvar _addClass = _interopRequireDefault(require(\"dom-helpers/class/addClass\"));\n\nvar _removeClass = _interopRequireDefault(require(\"dom-helpers/class/removeClass\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _Transition = _interopRequireDefault(require(\"./Transition\"));\n\nvar _PropTypes = require(\"./utils/PropTypes\");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }\n\nfunction _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar addClass = function addClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _addClass.default)(node, c);\n });\n};\n\nvar removeClass = function removeClass(node, classes) {\n return node && classes && classes.split(' ').forEach(function (c) {\n return (0, _removeClass.default)(node, c);\n });\n};\n/**\n * A transition component inspired by the excellent\n * [ng-animate](http://www.nganimate.org/) library, you should use it if you're\n * using CSS transitions or animations. It's built upon the\n * [`Transition`](https://reactcommunity.org/react-transition-group/transition)\n * component, so it inherits all of its props.\n *\n * `CSSTransition` applies a pair of class names during the `appear`, `enter`,\n * and `exit` states of the transition. The first class is applied and then a\n * second `*-active` class in order to activate the CSSS transition. After the\n * transition, matching `*-done` class names are applied to persist the\n * transition state.\n *\n * ```jsx\n * function App() {\n * const [inProp, setInProp] = useState(false);\n * return (\n * <div>\n * <CSSTransition in={inProp} timeout={200} classNames=\"my-node\">\n * <div>\n * {\"I'll receive my-node-* classes\"}\n * </div>\n * </CSSTransition>\n * <button type=\"button\" onClick={() => setInProp(true)}>\n * Click to Enter\n * </button>\n * </div>\n * );\n * }\n * ```\n *\n * When the `in` prop is set to `true`, the child component will first receive\n * the class `example-enter`, then the `example-enter-active` will be added in\n * the next tick. `CSSTransition` [forces a\n * reflow](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * between before adding the `example-enter-active`. This is an important trick\n * because it allows us to transition between `example-enter` and\n * `example-enter-active` even though they were added immediately one after\n * another. Most notably, this is what makes it possible for us to animate\n * _appearance_.\n *\n * ```css\n * .my-node-enter {\n * opacity: 0;\n * }\n * .my-node-enter-active {\n * opacity: 1;\n * transition: opacity 200ms;\n * }\n * .my-node-exit {\n * opacity: 1;\n * }\n * .my-node-exit-active {\n * opacity: 0;\n * transition: opacity: 200ms;\n * }\n * ```\n *\n * `*-active` classes represent which styles you want to animate **to**.\n */\n\n\nvar CSSTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(CSSTransition, _React$Component);\n\n function CSSTransition() {\n var _this;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;\n\n _this.onEnter = function (node, appearing) {\n var _this$getClassNames = _this.getClassNames(appearing ? 'appear' : 'enter'),\n className = _this$getClassNames.className;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, className);\n\n if (_this.props.onEnter) {\n _this.props.onEnter(node, appearing);\n }\n };\n\n _this.onEntering = function (node, appearing) {\n var _this$getClassNames2 = _this.getClassNames(appearing ? 'appear' : 'enter'),\n activeClassName = _this$getClassNames2.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onEntering) {\n _this.props.onEntering(node, appearing);\n }\n };\n\n _this.onEntered = function (node, appearing) {\n var appearClassName = _this.getClassNames('appear').doneClassName;\n\n var enterClassName = _this.getClassNames('enter').doneClassName;\n\n var doneClassName = appearing ? appearClassName + \" \" + enterClassName : enterClassName;\n\n _this.removeClasses(node, appearing ? 'appear' : 'enter');\n\n addClass(node, doneClassName);\n\n if (_this.props.onEntered) {\n _this.props.onEntered(node, appearing);\n }\n };\n\n _this.onExit = function (node) {\n var _this$getClassNames3 = _this.getClassNames('exit'),\n className = _this$getClassNames3.className;\n\n _this.removeClasses(node, 'appear');\n\n _this.removeClasses(node, 'enter');\n\n addClass(node, className);\n\n if (_this.props.onExit) {\n _this.props.onExit(node);\n }\n };\n\n _this.onExiting = function (node) {\n var _this$getClassNames4 = _this.getClassNames('exit'),\n activeClassName = _this$getClassNames4.activeClassName;\n\n _this.reflowAndAddClass(node, activeClassName);\n\n if (_this.props.onExiting) {\n _this.props.onExiting(node);\n }\n };\n\n _this.onExited = function (node) {\n var _this$getClassNames5 = _this.getClassNames('exit'),\n doneClassName = _this$getClassNames5.doneClassName;\n\n _this.removeClasses(node, 'exit');\n\n addClass(node, doneClassName);\n\n if (_this.props.onExited) {\n _this.props.onExited(node);\n }\n };\n\n _this.getClassNames = function (type) {\n var classNames = _this.props.classNames;\n var isStringClassNames = typeof classNames === 'string';\n var prefix = isStringClassNames && classNames ? classNames + '-' : '';\n var className = isStringClassNames ? prefix + type : classNames[type];\n var activeClassName = isStringClassNames ? className + '-active' : classNames[type + 'Active'];\n var doneClassName = isStringClassNames ? className + '-done' : classNames[type + 'Done'];\n return {\n className: className,\n activeClassName: activeClassName,\n doneClassName: doneClassName\n };\n };\n\n return _this;\n }\n\n var _proto = CSSTransition.prototype;\n\n _proto.removeClasses = function removeClasses(node, type) {\n var _this$getClassNames6 = this.getClassNames(type),\n className = _this$getClassNames6.className,\n activeClassName = _this$getClassNames6.activeClassName,\n doneClassName = _this$getClassNames6.doneClassName;\n\n className && removeClass(node, className);\n activeClassName && removeClass(node, activeClassName);\n doneClassName && removeClass(node, doneClassName);\n };\n\n _proto.reflowAndAddClass = function reflowAndAddClass(node, className) {\n // This is for to force a repaint,\n // which is necessary in order to transition styles when adding a class name.\n if (className) {\n /* eslint-disable no-unused-expressions */\n node && node.scrollTop;\n /* eslint-enable no-unused-expressions */\n\n addClass(node, className);\n }\n };\n\n _proto.render = function render() {\n var props = _extends({}, this.props);\n\n delete props.classNames;\n return _react.default.createElement(_Transition.default, _extends({}, props, {\n onEnter: this.onEnter,\n onEntered: this.onEntered,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }));\n };\n\n return CSSTransition;\n}(_react.default.Component);\n\nCSSTransition.defaultProps = {\n classNames: ''\n};\nCSSTransition.propTypes = process.env.NODE_ENV !== \"production\" ? _extends({}, _Transition.default.propTypes, {\n /**\n * The animation classNames applied to the component as it enters, exits or\n * has finished the transition. A single name can be provided and it will be\n * suffixed for each stage: e.g.\n *\n * `classNames=\"fade\"` applies `fade-enter`, `fade-enter-active`,\n * `fade-enter-done`, `fade-exit`, `fade-exit-active`, `fade-exit-done`,\n * `fade-appear`, `fade-appear-active`, and `fade-appear-done`.\n *\n * **Note**: `fade-appear-done` and `fade-enter-done` will _both_ be applied.\n * This allows you to define different behavior for when appearing is done and\n * when regular entering is done, using selectors like\n * `.fade-enter-done:not(.fade-appear-done)`. For example, you could apply an\n * epic entrance animation when element first appears in the DOM using\n * [Animate.css](https://daneden.github.io/animate.css/). Otherwise you can\n * simply use `fade-enter-done` for defining both cases.\n *\n * Each individual classNames can also be specified independently like:\n *\n * ```js\n * classNames={{\n * appear: 'my-appear',\n * appearActive: 'my-active-appear',\n * appearDone: 'my-done-appear',\n * enter: 'my-enter',\n * enterActive: 'my-active-enter',\n * enterDone: 'my-done-enter',\n * exit: 'my-exit',\n * exitActive: 'my-active-exit',\n * exitDone: 'my-done-exit',\n * }}\n * ```\n *\n * If you want to set these classes using CSS Modules:\n *\n * ```js\n * import styles from './styles.css';\n * ```\n *\n * you might want to use camelCase in your CSS file, that way could simply\n * spread them instead of listing them one by one:\n *\n * ```js\n * classNames={{ ...styles }}\n * ```\n *\n * @type {string | {\n * appear?: string,\n * appearActive?: string,\n * appearDone?: string,\n * enter?: string,\n * enterActive?: string,\n * enterDone?: string,\n * exit?: string,\n * exitActive?: string,\n * exitDone?: string,\n * }}\n */\n classNames: _PropTypes.classNamesShape,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is\n * applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEnter: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter-active' or\n * 'appear-active' class is applied.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'enter' or\n * 'appear' classes are **removed** and the `done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntered: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' class is\n * applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExit: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit-active' is applied.\n *\n * @type Function(node: HtmlElement)\n */\n onExiting: PropTypes.func,\n\n /**\n * A `<Transition>` callback fired immediately after the 'exit' classes\n * are **removed** and the `exit-done` class is added to the DOM node.\n *\n * @type Function(node: HtmlElement)\n */\n onExited: PropTypes.func\n}) : {};\nvar _default = CSSTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/CSSTransition.js\n// module id = 50\n// module chunks = 0 1","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nexports.__esModule = true;\nexports.default = addClass;\n\nvar _hasClass = _interopRequireDefault(require(\"./hasClass\"));\n\nfunction addClass(element, className) {\n if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);\n}\n\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dom-helpers/class/addClass.js\n// module id = 51\n// module chunks = 0 1","function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n \"default\": obj\n };\n}\n\nmodule.exports = _interopRequireDefault;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/@babel/runtime/helpers/interopRequireDefault.js\n// module id = 52\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = hasClass;\n\nfunction hasClass(element, className) {\n if (element.classList) return !!className && element.classList.contains(className);else return (\" \" + (element.className.baseVal || element.className) + \" \").indexOf(\" \" + className + \" \") !== -1;\n}\n\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dom-helpers/class/hasClass.js\n// module id = 53\n// module chunks = 0 1","'use strict';\n\nfunction replaceClassName(origClass, classToRemove) {\n return origClass.replace(new RegExp('(^|\\\\s)' + classToRemove + '(?:\\\\s|$)', 'g'), '$1').replace(/\\s+/g, ' ').replace(/^\\s*|\\s*$/g, '');\n}\n\nmodule.exports = function removeClass(element, className) {\n if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dom-helpers/class/removeClass.js\n// module id = 54\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.default = void 0;\n\nvar _propTypes = _interopRequireDefault(require(\"prop-types\"));\n\nvar _react = _interopRequireDefault(require(\"react\"));\n\nvar _reactDom = require(\"react-dom\");\n\nvar _TransitionGroup = _interopRequireDefault(require(\"./TransitionGroup\"));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * The `<ReplaceTransition>` component is a specialized `Transition` component\n * that animates between two children.\n *\n * ```jsx\n * <ReplaceTransition in>\n * <Fade><div>I appear first</div></Fade>\n * <Fade><div>I replace the above</div></Fade>\n * </ReplaceTransition>\n * ```\n */\nvar ReplaceTransition =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReplaceTransition, _React$Component);\n\n function ReplaceTransition() {\n var _this;\n\n for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {\n _args[_key] = arguments[_key];\n }\n\n _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;\n\n _this.handleEnter = function () {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n return _this.handleLifecycle('onEnter', 0, args);\n };\n\n _this.handleEntering = function () {\n for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n return _this.handleLifecycle('onEntering', 0, args);\n };\n\n _this.handleEntered = function () {\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n\n return _this.handleLifecycle('onEntered', 0, args);\n };\n\n _this.handleExit = function () {\n for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n args[_key5] = arguments[_key5];\n }\n\n return _this.handleLifecycle('onExit', 1, args);\n };\n\n _this.handleExiting = function () {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n\n return _this.handleLifecycle('onExiting', 1, args);\n };\n\n _this.handleExited = function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n return _this.handleLifecycle('onExited', 1, args);\n };\n\n return _this;\n }\n\n var _proto = ReplaceTransition.prototype;\n\n _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {\n var _child$props;\n\n var children = this.props.children;\n\n var child = _react.default.Children.toArray(children)[idx];\n\n if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);\n if (this.props[handler]) this.props[handler]((0, _reactDom.findDOMNode)(this));\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n inProp = _this$props.in,\n props = _objectWithoutPropertiesLoose(_this$props, [\"children\", \"in\"]);\n\n var _React$Children$toArr = _react.default.Children.toArray(children),\n first = _React$Children$toArr[0],\n second = _React$Children$toArr[1];\n\n delete props.onEnter;\n delete props.onEntering;\n delete props.onEntered;\n delete props.onExit;\n delete props.onExiting;\n delete props.onExited;\n return _react.default.createElement(_TransitionGroup.default, props, inProp ? _react.default.cloneElement(first, {\n key: 'first',\n onEnter: this.handleEnter,\n onEntering: this.handleEntering,\n onEntered: this.handleEntered\n }) : _react.default.cloneElement(second, {\n key: 'second',\n onEnter: this.handleExit,\n onEntering: this.handleExiting,\n onEntered: this.handleExited\n }));\n };\n\n return ReplaceTransition;\n}(_react.default.Component);\n\nReplaceTransition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n in: _propTypes.default.bool.isRequired,\n children: function children(props, propName) {\n if (_react.default.Children.count(props[propName]) !== 2) return new Error(\"\\\"\" + propName + \"\\\" must be exactly two transition components.\");\n return null;\n }\n} : {};\nvar _default = ReplaceTransition;\nexports.default = _default;\nmodule.exports = exports[\"default\"];\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/ReplaceTransition.js\n// module id = 55\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\nexports.getChildMapping = getChildMapping;\nexports.mergeChildMappings = mergeChildMappings;\nexports.getInitialChildMapping = getInitialChildMapping;\nexports.getNextChildMapping = getNextChildMapping;\n\nvar _react = require(\"react\");\n\n/**\n * Given `this.props.children`, return an object mapping key to child.\n *\n * @param {*} children `this.props.children`\n * @return {object} Mapping of key to child\n */\nfunction getChildMapping(children, mapFn) {\n var mapper = function mapper(child) {\n return mapFn && (0, _react.isValidElement)(child) ? mapFn(child) : child;\n };\n\n var result = Object.create(null);\n if (children) _react.Children.map(children, function (c) {\n return c;\n }).forEach(function (child) {\n // run the map function here instead so that the key is the computed one\n result[child.key] = mapper(child);\n });\n return result;\n}\n/**\n * When you're adding or removing children some may be added or removed in the\n * same render pass. We want to show *both* since we want to simultaneously\n * animate elements in and out. This function takes a previous set of keys\n * and a new set of keys and merges them with its best guess of the correct\n * ordering. In the future we may expose some of the utilities in\n * ReactMultiChild to make this easy, but for now React itself does not\n * directly have this concept of the union of prevChildren and nextChildren\n * so we implement it here.\n *\n * @param {object} prev prev children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @param {object} next next children as returned from\n * `ReactTransitionChildMapping.getChildMapping()`.\n * @return {object} a key set that contains all keys in `prev` and all keys\n * in `next` in a reasonable order.\n */\n\n\nfunction mergeChildMappings(prev, next) {\n prev = prev || {};\n next = next || {};\n\n function getValueForKey(key) {\n return key in next ? next[key] : prev[key];\n } // For each key of `next`, the list of keys to insert before that key in\n // the combined list\n\n\n var nextKeysPending = Object.create(null);\n var pendingKeys = [];\n\n for (var prevKey in prev) {\n if (prevKey in next) {\n if (pendingKeys.length) {\n nextKeysPending[prevKey] = pendingKeys;\n pendingKeys = [];\n }\n } else {\n pendingKeys.push(prevKey);\n }\n }\n\n var i;\n var childMapping = {};\n\n for (var nextKey in next) {\n if (nextKeysPending[nextKey]) {\n for (i = 0; i < nextKeysPending[nextKey].length; i++) {\n var pendingNextKey = nextKeysPending[nextKey][i];\n childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);\n }\n }\n\n childMapping[nextKey] = getValueForKey(nextKey);\n } // Finally, add the keys which didn't appear before any key in `next`\n\n\n for (i = 0; i < pendingKeys.length; i++) {\n childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);\n }\n\n return childMapping;\n}\n\nfunction getProp(child, prop, props) {\n return props[prop] != null ? props[prop] : child.props[prop];\n}\n\nfunction getInitialChildMapping(props, onExited) {\n return getChildMapping(props.children, function (child) {\n return (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n appear: getProp(child, 'appear', props),\n enter: getProp(child, 'enter', props),\n exit: getProp(child, 'exit', props)\n });\n });\n}\n\nfunction getNextChildMapping(nextProps, prevChildMapping, onExited) {\n var nextChildMapping = getChildMapping(nextProps.children);\n var children = mergeChildMappings(prevChildMapping, nextChildMapping);\n Object.keys(children).forEach(function (key) {\n var child = children[key];\n if (!(0, _react.isValidElement)(child)) return;\n var hasPrev = key in prevChildMapping;\n var hasNext = key in nextChildMapping;\n var prevChild = prevChildMapping[key];\n var isLeaving = (0, _react.isValidElement)(prevChild) && !prevChild.props.in; // item is new (entering)\n\n if (hasNext && (!hasPrev || isLeaving)) {\n // console.log('entering', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: true,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n } else if (!hasNext && hasPrev && !isLeaving) {\n // item is old (exiting)\n // console.log('leaving', key)\n children[key] = (0, _react.cloneElement)(child, {\n in: false\n });\n } else if (hasNext && hasPrev && (0, _react.isValidElement)(prevChild)) {\n // item hasn't changed transition states\n // copy over the last transition props;\n // console.log('unchanged', key)\n children[key] = (0, _react.cloneElement)(child, {\n onExited: onExited.bind(null, child),\n in: prevChild.props.in,\n exit: getProp(child, 'exit', nextProps),\n enter: getProp(child, 'enter', nextProps)\n });\n }\n });\n return children;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/react-transition-group/utils/ChildMapping.js\n// module id = 56\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/get-iterator.js\n// module id = 57\n// module chunks = 0 1","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 58\n// module chunks = 0 1","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_cof.js\n// module id = 59\n// module chunks = 0 1","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_defined.js\n// module id = 60\n// module chunks = 0 1","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-primitive.js\n// module id = 61\n// module chunks = 0 1","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-create.js\n// module id = 62\n// module chunks = 0 1","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-integer.js\n// module id = 63\n// module chunks = 0 1","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared-key.js\n// module id = 64\n// module chunks = 0 1","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared.js\n// module id = 65\n// module chunks = 0 1","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = 66\n// module chunks = 0 1","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = 67\n// module chunks = 0 1","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = 68\n// module chunks = 0 1","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-ext.js\n// module id = 69\n// module chunks = 0 1","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-define.js\n// module id = 70\n// module chunks = 0 1","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-define.js\n// module id = 71\n// module chunks = 0 1","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ctx.js\n// module id = 72\n// module chunks = 0 1","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = 73\n// module chunks = 0 1","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_dom-create.js\n// module id = 74\n// module chunks = 0 1","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine.js\n// module id = 75\n// module chunks = 0 1","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = 76\n// module chunks = 0 1","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 77\n// module chunks = 0 1","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-object.js\n// module id = 78\n// module chunks = 0 1","// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = require('./_cof');\nvar TAG = require('./_wks')('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_classof.js\n// module id = 79\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _isIterable2 = require(\"../core-js/is-iterable\");\n\nvar _isIterable3 = _interopRequireDefault(_isIterable2);\n\nvar _getIterator2 = require(\"../core-js/get-iterator\");\n\nvar _getIterator3 = _interopRequireDefault(_getIterator2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = (0, _getIterator3.default)(arr), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if ((0, _isIterable3.default)(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/slicedToArray.js\n// module id = 80\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/entries\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/entries.js\n// module id = 81\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = 82\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = 83\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _defineProperty = require(\"../core-js/object/define-property\");\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n (0, _defineProperty2.default)(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/createClass.js\n// module id = 84\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 85\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/typeof.js\n// module id = 86\n// module chunks = 0 1","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gops.js\n// module id = 87\n// module chunks = 0 1","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 88\n// module chunks = 0 1","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 89\n// module chunks = 0 1","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/inherits.js\n// module id = 90\n// module chunks = 0 1","/**\n * Import blocks\n */\n\nimport \"./simple-sitemap\";\nimport \"./simple-sitemap-group\";\n\n\n// WEBPACK FOOTER //\n// src/blocks/index.js","// BLOCK DEPENDENCIES\r\n\r\n// Import chart components/objects\r\n//import attributes from './components/attributes';\r\n//import BarChart from './components/bar-chart';\r\n//import InspectorPanel from './components/inspector-panel';\r\n//import IsSelected from './components/is-selected';\r\n//import BlockAlignToolbar from '../_shared-components/block-align-toolbar';\r\n\r\n// Import libraries and functionality\r\n//import classnames from 'classnames';\r\n\r\n// Import styles and media assets\r\n//import customIcon from './components/icon';\r\n//import './styles/style.scss';\r\n//import './styles/editor.scss';\r\n\r\nimport Select from 'react-select';\r\nimport { SitemapCheckboxControl } from '../_components/checkbox';\r\n\r\n// Import core block libraries\r\nconst { __ } = wp.i18n;\r\nconst { InspectorControls } = wp.blockEditor;\r\nconst {\r\n\tPanelBody,\r\n\tPanelRow,\r\n\tServerSideRender,\r\n\tTextControl,\r\n\tRadioControl,\r\n\tSelectControl\r\n} = wp.components;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { Fragment } = wp.element;\r\n\r\n/**\r\n * Register block\r\n */\r\nexport default registerBlockType(\r\n\t'wpgoplugins/simple-sitemap-block',\r\n\t{\r\n\t\ttitle: 'Simple Sitemap',\r\n\t\ticon: 'editor-ul',\r\n\t\tcategory: 'simple-sitemap',\r\n\t\tattributes: {\r\n\t\t\trender_tab: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tgutenberg_block: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t},\r\n\t\t\torderby: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'title'\r\n\t\t\t},\r\n\t\t\torder: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'asc'\r\n\t\t\t},\r\n\t\t\tblock_post_types: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: '[{ \"value\": \"page\", \"label\": \"Page\" }]',\r\n\t\t\t},\r\n\t\t\tpage_depth: {\r\n\t\t\t\ttype: 'number',\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\tshow_excerpt: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tshow_label: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\tlinks: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tedit: props => {\r\n\t\t\tconst { attributes: { show_excerpt, show_label, links, page_depth, nofollow, image, list_icon, max_width, responsive_breakpoint, sitemap_container_margin, sitemap_item_line_height, tab_color, tab_header_bg, post_type_label_padding, post_type_label_font_size, render_tab, block_post_types, exclude, include, order, orderby }, className, setAttributes, isSelected, attributes } = props;\r\n\r\n\t\t\t//const defaultValue = JSON.parse(props.attributes.block_post_types);\r\n\t\t\t//console.log(defaultValue);\r\n\t\t\t//console.log(typeof props.attributes.block_post_types, props.attributes.block_post_types);\r\n\t\t\t//console.log(JSON.parse(props.attributes.block_post_types));\r\n\r\n\t\t\tfunction updateToggleTabs(isChecked) {\r\n\t\t\t\tsetAttributes({ render_tab: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateExcerpt(isChecked) {\r\n\t\t\t\tsetAttributes({ show_excerpt: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateShowLabel(isChecked) {\r\n\t\t\t\tsetAttributes({ show_label: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateLinks(isChecked) {\r\n\t\t\t\tsetAttributes({ links: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\treturn [\r\n\t\t\t\t<InspectorControls>\r\n\t\t\t\t\t<PanelBody title={__('General Settings', 'simple-sitemap')}>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<label style={{ marginBottom: '-14px' }} class=\"components-base-control__label\" >Select post types to display</label>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<Select\r\n\t\t\t\t\t\t\t\tlabel=\"Title\"\r\n\t\t\t\t\t\t\t\tdefaultValue={JSON.parse(props.attributes.block_post_types)}\r\n\t\t\t\t\t\t\t\tisMulti\r\n\t\t\t\t\t\t\t\tonChange={(value) => {\r\n\t\t\t\t\t\t\t\t\treturn props.setAttributes({ block_post_types: JSON.stringify(value) });\r\n\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ value: 'post', label: 'Post' },\r\n\t\t\t\t\t\t\t\t\t{ value: 'page', label: 'Page' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<p style={{ marginTop: '-20px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' }}>List <a href=\"https://wpgoplugins.com/plugins/simple-sitemap-pro/#post-types\" target=\"_blank\">more</a> post types</p>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap order mb20\">\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Orderby\"\r\n\t\t\t\t\t\t\t\tvalue={props.attributes.orderby}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Title', value: 'title' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Date', value: 'date' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'ID', value: 'ID' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Author', value: 'author' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Name', value: 'name' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Modified', value: 'modified' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { props.setAttributes({ orderby: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Order\"\r\n\t\t\t\t\t\t\t\tvalue={props.attributes.order}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Ascending', value: 'asc' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Descending', value: 'desc' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { props.setAttributes({ order: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_excerpt} label=\"Show excerpt\" updateCheckbox={updateExcerpt} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_label} label=\"Show post type label\" updateCheckbox={updateShowLabel} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={links} label=\"Enable sitemap links\" updateCheckbox={updateLinks} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t\t<PanelBody title={__('Tab Settings', 'simple-sitemap')} initialOpen={false}>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={render_tab} label=\"Enable tabs\" updateCheckbox={updateToggleTabs} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t\t<PanelBody title={__('Page Settings', 'simple-sitemap')} initialOpen={false}>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<p>Affects sitemap pages only.</p>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<TextControl\r\n\t\t\t\t\t\t\t\ttype=\"number\"\r\n\t\t\t\t\t\t\t\tlabel=\"Page indentation\"\r\n\t\t\t\t\t\t\t\tmin=\"0\"\r\n\t\t\t\t\t\t\t\tmax=\"5\"\r\n\t\t\t\t\t\t\t\thelp=\"Leave at zero for auto-depth\"\r\n\t\t\t\t\t\t\t\tvalue={page_depth}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { setAttributes({ page_depth: value }); }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t</InspectorControls>,\r\n\t\t\t\t<ServerSideRender\r\n\t\t\t\t\tblock=\"wpgoplugins/simple-sitemap-block\"\r\n\t\t\t\t\tattributes={props.attributes}\r\n\t\t\t\t/>\r\n\t\t\t];\r\n\t\t},\r\n\t\tsave: function () {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n);\n\n\n// WEBPACK FOOTER //\n// src/blocks/simple-sitemap/index.js","const {\r\n CheckboxControl\r\n} = wp.components;\r\n\r\nexport const SitemapCheckboxControl = (props) => {\r\n\r\n const { help, disabled, label, updateCheckbox, value } = props;\r\n\r\n return (\r\n <CheckboxControl\r\n help={help}\r\n disabled={disabled}\r\n label={label}\r\n checked={value}\r\n onChange={isChecked => updateCheckbox(isChecked)}\r\n />\r\n )\r\n};\n\n\n// WEBPACK FOOTER //\n// src/blocks/_components/checkbox.js","// BLOCK DEPENDENCIES\r\n\r\n// Import chart components/objects\r\n//import attributes from './components/attributes';\r\n//import BarChart from './components/bar-chart';\r\n//import InspectorPanel from './components/inspector-panel';\r\n//import IsSelected from './components/is-selected';\r\n//import BlockAlignToolbar from '../_shared-components/block-align-toolbar';\r\n\r\n// Import libraries and functionality\r\n//import classnames from 'classnames';\r\n\r\n// Import styles and media assets\r\n//import customIcon from './components/icon';\r\n//import './styles/style.scss';\r\n//import './styles/editor.scss';\r\n\r\nimport { SelectCptTaxonomy } from '../_components/select-cpt-taxonomy';\r\nimport { SitemapCheckboxControl } from '../_components/checkbox';\r\n\r\n//import Select from 'react-select';\r\n\r\n// Import core block libraries\r\nconst { __ } = wp.i18n;\r\nconst { InspectorControls } = wp.blockEditor;\r\nconst {\r\n\tPanelBody,\r\n\tPanelRow,\r\n\tServerSideRender,\r\n\tTextControl,\r\n\tRadioControl,\r\n\tSelectControl,\r\n\tColorPicker\r\n} = wp.components;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { Fragment } = wp.element;\r\n\r\n/**\r\n * Register block\r\n */\r\nexport default registerBlockType(\r\n\t'wpgoplugins/simple-sitemap-group-block',\r\n\t{\r\n\t\ttitle: 'Simple Sitemap Group',\r\n\t\ticon: 'networking',\r\n\t\tcategory: 'simple-sitemap',\r\n\t\tattributes: {\r\n\t\t\tshow_excerpt: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: false,\r\n\t\t\t},\r\n\t\t\tshow_label: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t},\r\n\t\t\tlinks: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t},\r\n\t\t\torderby: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'title'\r\n\t\t\t},\r\n\t\t\torder: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'asc'\r\n\t\t\t},\r\n\t\t\tblock_taxonomy: {\r\n\t\t\t\ttype: 'string',\r\n\t\t\t\tdefault: 'category',\r\n\t\t\t},\r\n\t\t\tgutenberg_block: {\r\n\t\t\t\ttype: 'boolean',\r\n\t\t\t\tdefault: true,\r\n\t\t\t}\r\n\t\t},\r\n\t\tedit: props => {\r\n\r\n\t\t\tconst { attributes: { show_excerpt, show_label, links, block_taxonomy, order, orderby }, className, setAttributes, isSelected, attributes } = props;\r\n\r\n\t\t\tfunction updateShowExcerpt(isChecked) {\r\n\t\t\t\tsetAttributes({ show_excerpt: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateShowLabel(isChecked) {\r\n\t\t\t\tsetAttributes({ show_label: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\tfunction updateLinks(isChecked) {\r\n\t\t\t\tsetAttributes({ links: isChecked });\r\n\t\t\t}\r\n\r\n\t\t\treturn [\r\n\t\t\t\t<InspectorControls>\r\n\t\t\t\t\t<PanelBody title={__('General Settings', 'simple-sitemap')}>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<label style={{ marginBottom: '-12px', maxWidth: '100%' }} class=\"components-base-control__label\" >Select post taxonomy</label>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap\">\r\n\t\t\t\t\t\t\t<SelectCptTaxonomy setAttributes={setAttributes} multi={false} block_taxonomy={block_taxonomy} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow>\r\n\t\t\t\t\t\t\t<p style={{ marginTop: '-24px', fontSize: '13px', fontStyle: 'italic', marginLeft: '2px' }}>List <a href=\"https://wpgoplugins.com/plugins/simple-sitemap-pro/#taxonomies-for-any-post-type\" target=\"_blank\">taxonomies</a> for any post type</p>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap order-label\">\r\n\t\t\t\t\t\t\t<label style={{ marginBottom: '-12px', maxWidth: '100%' }} class=\"components-base-control__label\" >Post ordering</label>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap order mb20\">\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Orderby\"\r\n\t\t\t\t\t\t\t\tvalue={orderby}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Title', value: 'title' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Date', value: 'date' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'ID', value: 'ID' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Author', value: 'author' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Name', value: 'name' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Modified', value: 'modified' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { setAttributes({ orderby: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t<SelectControl\r\n\t\t\t\t\t\t\t\tlabel=\"Order\"\r\n\t\t\t\t\t\t\t\tvalue={order}\r\n\t\t\t\t\t\t\t\toptions={[\r\n\t\t\t\t\t\t\t\t\t{ label: 'Ascending', value: 'asc' },\r\n\t\t\t\t\t\t\t\t\t{ label: 'Descending', value: 'desc' }\r\n\t\t\t\t\t\t\t\t]}\r\n\t\t\t\t\t\t\t\tonChange={(value) => { setAttributes({ order: value }) }}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_excerpt} label=\"Display post excerpt\" updateCheckbox={updateShowExcerpt} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={show_label} label=\"Display post type label\" updateCheckbox={updateShowLabel} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t\t<PanelRow className=\"simple-sitemap general-chk\">\r\n\t\t\t\t\t\t\t<SitemapCheckboxControl value={links} label=\"Display sitemap links\" updateCheckbox={updateLinks} />\r\n\t\t\t\t\t\t</PanelRow>\r\n\t\t\t\t\t</PanelBody>\r\n\t\t\t\t</InspectorControls>,\r\n\t\t\t\t<ServerSideRender\r\n\t\t\t\t\tblock=\"wpgoplugins/simple-sitemap-group-block\"\r\n\t\t\t\t\tattributes={attributes}\r\n\t\t\t\t/>\r\n\t\t\t];\r\n\t\t},\r\n\t\tsave: function () {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}\r\n);\n\n\n// WEBPACK FOOTER //\n// src/blocks/simple-sitemap-group/index.js","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/get-iterator.js\n// module id = 100\n// module chunks = 0 1","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 101\n// module chunks = 0 1","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 102\n// module chunks = 0 1","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 103\n// module chunks = 0 1","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iobject.js\n// module id = 104\n// module chunks = 0 1","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 105\n// module chunks = 0 1","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 106\n// module chunks = 0 1","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 107\n// module chunks = 0 1","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 108\n// module chunks = 0 1","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-length.js\n// module id = 109\n// module chunks = 0 1","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 110\n// module chunks = 0 1","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 111\n// module chunks = 0 1","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 112\n// module chunks = 0 1","var anObject = require('./_an-object');\nvar get = require('./core.get-iterator-method');\nmodule.exports = require('./_core').getIterator = function (it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function') throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator.js\n// module id = 113\n// module chunks = 0 1","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.get-iterator-method.js\n// module id = 114\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/is-iterable.js\n// module id = 115\n// module chunks = 0 1","require('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/is-iterable.js\n// module id = 116\n// module chunks = 0 1","var classof = require('./_classof');\nvar ITERATOR = require('./_wks')('iterator');\nvar Iterators = require('./_iterators');\nmodule.exports = require('./_core').isIterable = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/core.is-iterable.js\n// module id = 117\n// module chunks = 0 1","require('../../modules/es7.object.entries');\nmodule.exports = require('../../modules/_core').Object.entries;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/entries.js\n// module id = 118\n// module chunks = 0 1","// https://github.com/tc39/proposal-object-values-entries\nvar $export = require('./_export');\nvar $entries = require('./_object-to-array')(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it) {\n return $entries(it);\n }\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.object.entries.js\n// module id = 119\n// module chunks = 0 1","var getKeys = require('./_object-keys');\nvar toIObject = require('./_to-iobject');\nvar isEnum = require('./_object-pie').f;\nmodule.exports = function (isEntries) {\n return function (it) {\n var O = toIObject(it);\n var keys = getKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) if (isEnum.call(O, key = keys[i++])) {\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-to-array.js\n// module id = 120\n// module chunks = 0 1","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = 121\n// module chunks = 0 1","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = 122\n// module chunks = 0 1","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 123\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/define-property.js\n// module id = 124\n// module chunks = 0 1","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 125\n// module chunks = 0 1","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 126\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 127\n// module chunks = 0 1","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 128\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 129\n// module chunks = 0 1","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 130\n// module chunks = 0 1","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function';\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n require('./_object-gops').f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 131\n// module chunks = 0 1","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 132\n// module chunks = 0 1","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 133\n// module chunks = 0 1","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 134\n// module chunks = 0 1","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 135\n// module chunks = 0 1","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 137\n// module chunks = 0 1","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 138\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = 139\n// module chunks = 0 1","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = 140\n// module chunks = 0 1","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 141\n// module chunks = 0 1","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-proto.js\n// module id = 142\n// module chunks = 0 1","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/create.js\n// module id = 143\n// module chunks = 0 1","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/create.js\n// module id = 144\n// module chunks = 0 1","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.create.js\n// module id = 145\n// module chunks = 0 1","// Import core block libraries\r\nconst { __ } = wp.i18n;\r\nconst { InspectorControls } = wp.blockEditor;\r\nconst {\r\n PanelBody,\r\n PanelRow,\r\n ServerSideRender,\r\n TextControl,\r\n RadioControl,\r\n SelectControl\r\n} = wp.components;\r\nconst { registerBlockType } = wp.blocks;\r\nconst { Component, Fragment } = wp.element;\r\n\r\nexport class SelectCptTaxonomy extends Component {\r\n\r\n constructor(props) {\r\n super(); // or super(props); ??\r\n\r\n this.state = {\r\n types: [],\r\n taxonomies: [],\r\n taxonomy_select_disabled_status: true,\r\n taxonomy_select_disabled_help: '',\r\n wrapperClass: ''\r\n };\r\n this.props = props;\r\n }\r\n\r\n // get post types to populate select box\r\n componentDidMount() {\r\n\r\n // render dropdowns\r\n this.fetchTaxonomies(null); // null is important here\r\n }\r\n\r\n // set the taxonomy dropdown options\r\n fetchTaxonomies(newCPT) {\r\n\r\n const { setAttributes, block_post_type, block_taxonomy } = this.props;\r\n const taxonomy_url = 'simple-sitemap/v1/post-type-taxonomies/post';\r\n\r\n wp.apiFetch({ path: taxonomy_url, method: 'GET' }).then(\r\n (data) => {\r\n\r\n let msg = '';\r\n let disabled_status = false;\r\n let wrapperClass = '';\r\n var taxonomies = [];\r\n let tax_flag = true;\r\n\r\n if (data.length === 0) {\r\n msg = 'No taxonomies found for this post type';\r\n disabled_status = true;\r\n wrapperClass = 'disabled';\r\n setAttributes({ block_taxonomy: '' });\r\n } else {\r\n const entries = Object.entries(data);\r\n for (const [key, value] of entries) {\r\n const tmp = {\r\n value: key,\r\n label: value\r\n };\r\n taxonomies.push(tmp);\r\n\r\n // use attribute value?\r\n if(tmp.value === block_taxonomy) {\r\n tax_flag = false;\r\n }\r\n }\r\n // update attribute with first found taxonomy unless current taxonomy attr. is found in taxonomy array\r\n\r\n // only update tax attr. if current value not found in updated taxonomies array in which case just set to first taxonomy in array\r\n if(tax_flag) {\r\n setAttributes({ block_taxonomy: taxonomies[0].value });\r\n }\r\n }\r\n\r\n this.setState({\r\n taxonomy_select_disabled_status: disabled_status,\r\n taxonomy_select_disabled_help: msg,\r\n taxonomies: taxonomies,\r\n wrapperClass: wrapperClass\r\n });\r\n return data;\r\n },\r\n (err) => {\r\n return err;\r\n }\r\n );\r\n }\r\n\r\n updateTaxonomyValues(val) {\r\n const { setAttributes } = this.props;\r\n setAttributes({ block_taxonomy: val });\r\n }\r\n\r\n render() {\r\n const { block_taxonomy } = this.props;\r\n\r\n return (\r\n <div className={this.state.wrapperClass}>\r\n <SelectControl\r\n value={block_taxonomy}\r\n options={this.state.taxonomies}\r\n onChange={(val) => this.updateTaxonomyValues(val)}\r\n disabled={this.state.taxonomy_select_disabled_status}\r\n />\r\n </div>\r\n );\r\n }\r\n}\n\n\n// WEBPACK FOOTER //\n// src/blocks/_components/select-cpt-taxonomy.js"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACvLA;AACA;;;;;;;ACDA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;;;;;;;;ACFA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACprKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AChmBA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/MA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;;;;;;;ACJA;;;;;;;ACAA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3CA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACtgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AClOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC9kBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC/DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC1EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC3QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;AC3WA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACrJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACrJA;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AClBA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxCA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACnBA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;AClDA;;;;;;ACAA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACpBA;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AChCA;AAAA;AAAA;AAAA;;;;AAIA;;;;;;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AANA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;AAGA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAjCA;AAsCA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;AADA;AAcA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAQA;AAAA;AAAA;AAXA;AAaA;AACA;AACA;AACA;AAIA;AAAA;AAAA;AAPA;AAdA;AAwBA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAnDA;AAuDA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AADA;AADA;AAKA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AAAA;AAPA;AADA;AAJA;AA7DA;AA+EA;AACA;AAFA;AAKA;AACA;AACA;AACA;AAzJA;;;;;;;ACtCA;AAAA;AACA;AACA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AACA;AAAA;AAAA;AALA;AAQA;;;;;;;ACjBA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AASA;AAPA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;;;;AAGA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAIA;AACA;AACA;AAFA;AAzBA;AA8BA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AADA;AAGA;AAAA;AAAA;AACA;AACA;AACA;AACA;AAQA;AAAA;AAAA;AAXA;AAaA;AACA;AACA;AACA;AAIA;AAAA;AAAA;AAPA;AAdA;AAwBA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AAGA;AAAA;AAAA;AACA;AADA;AA3CA;AADA;AAkDA;AACA;AAFA;AAKA;AACA;AACA;AACA;AA5GA;;;;;;;;;AC1CA;AACA;AACA;;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACjCA;;;;;;;ACAA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;;;;;;;;ACHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACtBA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACPA;;;;;;ACAA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACfA;AACA;;;;;;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACTA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;;;;;;;ACFA;;;;;;ACAA;AACA;AACA;;;;;;;ACFA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACzOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACdA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;AClBA;;;;;;;ACAA;;;;;;;ACAA;;;;;;ACAA;AACA;;;;;;;ACDA;AACA;AACA;;;;;;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACxBA;;;;;;ACAA;AACA;AACA;AACA;AACA;;;;;;;ACJA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACFA;AACA;AACA;AAQA;AANA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AAAA;AACA;AACA;AAAA;AACA;AAAA;AACA;AAFA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AALA;AAOA;AAVA;AAWA;AACA;AACA;AACA;AACA;AAjBA;AAAA;AAAA;AACA;AAiBA;AACA;AACA;AACA;AACA;AACA;AAvBA;AAAA;AAAA;AAuBA;AACA;AADA;AAAA;AAAA;AAAA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA;AAAA;AAAA;AACA;AADA;AAEA;AAAA;AACA;AADA;AACA;AADA;AAAA;AACA;AAAA;AACA;AACA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAJA;AAMA;AACA;AAEA;AACA;AAEA;AA5EA;AAAA;AAAA;AA8EA;AACA;AACA;AACA;AAjFA;AAAA;AAAA;AAmFA;AACA;AADA;AACA;AACA;AACA;AACA;AAAA;AACA;AACA;AACA;AACA;AAAA;AAAA;AACA;AAJA;AADA;AASA;AAhGA;AACA;AADA;AAAA;;;A","sourceRoot":""}
|
classes/bootstrap.php
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Bootstrap plugin
|
4 |
+
*/
|
5 |
+
|
6 |
+
class WPGO_Simple_Sitemap_BootStrap {
|
7 |
+
|
8 |
+
protected $module_roots;
|
9 |
+
|
10 |
+
/* Main class constructor. */
|
11 |
+
public function __construct($module_roots) {
|
12 |
+
|
13 |
+
$this->module_roots = $module_roots;
|
14 |
+
$this->load_supported_features();
|
15 |
+
}
|
16 |
+
|
17 |
+
/* Load plugin features. */
|
18 |
+
public function load_supported_features() {
|
19 |
+
|
20 |
+
$root = $this->module_roots['dir'];
|
21 |
+
|
22 |
+
// enqueue plugin scripts
|
23 |
+
require_once( $root . 'classes/enqueue-scripts.php' );
|
24 |
+
new WPGO_Simple_Sitemap_Enqueue_Scripts($this->module_roots);
|
25 |
+
|
26 |
+
// plugin docs/settings page
|
27 |
+
require_once( $root . 'classes/settings.php' );
|
28 |
+
new WPGO_Simple_Sitemap_Settings($this->module_roots);
|
29 |
+
|
30 |
+
// sitemap shortcodes
|
31 |
+
require_once( $root . 'classes/shortcodes/shortcodes.php' );
|
32 |
+
new WPGO_Simple_Sitemap_Shortcodes($this->module_roots);
|
33 |
+
|
34 |
+
// localize plugin
|
35 |
+
require_once( $root . 'shared/localize.php' );
|
36 |
+
new WPGO_Simple_Sitemap_Localize($this->module_roots);
|
37 |
+
|
38 |
+
// links on the main plugin index page
|
39 |
+
require_once( $root . 'shared/links.php' );
|
40 |
+
new WPGO_Simple_Sitemap_Links($this->module_roots);
|
41 |
+
|
42 |
+
// register endpoints
|
43 |
+
require_once( $root . 'shared/rest-api-endpoints.php' );
|
44 |
+
new WPGO_Custom_Sitemap_Endpoints($this->module_roots);
|
45 |
+
|
46 |
+
// plugin hooks
|
47 |
+
require_once( $root . 'shared/hooks.php' );
|
48 |
+
|
49 |
+
// walker class to render hierarchical pages
|
50 |
+
require_once( $root . 'shared/class-wpgo-walker-page.php' );
|
51 |
+
}
|
52 |
+
|
53 |
+
} /* End class definition */
|
classes/enqueue-scripts.php
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Enqueue plugin scripts
|
4 |
+
*/
|
5 |
+
|
6 |
+
class WPGO_Simple_Sitemap_Enqueue_Scripts {
|
7 |
+
|
8 |
+
protected $module_roots;
|
9 |
+
|
10 |
+
/* Main class constructor. */
|
11 |
+
public function __construct($module_roots) {
|
12 |
+
|
13 |
+
$this->module_roots = $module_roots;
|
14 |
+
|
15 |
+
add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_admin_scripts' ) );
|
16 |
+
add_action( 'init', array( &$this, 'block_init' ) );
|
17 |
+
add_action( 'enqueue_block_assets', array( &$this, 'enqueue_assets' ) );
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Enqueue front end and editor JavaScript and CSS assets.
|
22 |
+
*/
|
23 |
+
public function enqueue_assets() {
|
24 |
+
|
25 |
+
/* if (
|
26 |
+
has_block( 'wpgoplugins/simple-sitemap-block' ) ||
|
27 |
+
has_block( 'wpgoplugins/simple-sitemap-group-block' )
|
28 |
+
) {
|
29 |
+
wp_enqueue_style( 'simple-sitemap-css', plugins_url( 'assets/css/simple-sitemap.css', $this->module_roots['file'] ) );
|
30 |
+
//wp_enqueue_script( 'simple-sitemap-js', plugins_url( 'assets/js/simple-sitemap.js', $this->module_roots['file'] ), array('jquery') );
|
31 |
+
} */
|
32 |
+
|
33 |
+
// only enqueue scripts on pages containing sitemap blocks
|
34 |
+
if (
|
35 |
+
has_blocks() && (
|
36 |
+
has_block( 'wpgoplugins/simple-sitemap-block' ) ||
|
37 |
+
has_block( 'wpgoplugins/simple-sitemap-group-block' )
|
38 |
+
) ) {
|
39 |
+
wp_enqueue_style( 'simple-sitemap-css', plugins_url( 'assets/css/simple-sitemap.css', $this->module_roots['file'] ) );
|
40 |
+
//wp_enqueue_script( 'simple-sitemap-js', plugins_url( 'assets/js/simple-sitemap.js', $this->module_roots['file'] ), array('jquery') );
|
41 |
+
} elseif (
|
42 |
+
!has_blocks() ||
|
43 |
+
!(
|
44 |
+
has_block( 'wpgoplugins/simple-sitemap-block' ) ||
|
45 |
+
has_block( 'wpgoplugins/simple-sitemap-group-block' )
|
46 |
+
) ) {
|
47 |
+
// Add scripts to the editor if no blocks, or no sitemap blocks, have been added. Otherwise when a sitemap block is added the sitemap scripts won't have been enqueued yet.
|
48 |
+
wp_enqueue_style( 'simple-sitemap-css', plugins_url( 'assets/css/simple-sitemap.css', $this->module_roots['file'] ) );
|
49 |
+
//wp_enqueue_script( 'simple-sitemap-js', plugins_url( 'assets/js/simple-sitemap.js', $this->module_roots['file'] ), array('jquery') );
|
50 |
+
}
|
51 |
+
}
|
52 |
+
|
53 |
+
/* Scripts just for the plugin settings page. */
|
54 |
+
public function enqueue_admin_scripts($hook) {
|
55 |
+
|
56 |
+
if($hook != 'toplevel_page_simple-sitemap-menu') {
|
57 |
+
return;
|
58 |
+
}
|
59 |
+
|
60 |
+
wp_enqueue_style( 'simple-sitemap-settings-css', plugins_url('assets/css/simple-sitemap-admin.css', $this->module_roots['file']) );
|
61 |
+
wp_enqueue_script( 'simple-sitemap-settings-js', plugins_url('assets/js/simple-sitemap-admin.js', $this->module_roots['file']) );
|
62 |
+
}
|
63 |
+
|
64 |
+
/**
|
65 |
+
* Register our blocks.
|
66 |
+
*/
|
67 |
+
public function block_init() {
|
68 |
+
|
69 |
+
// only register block if gutenberg enabled
|
70 |
+
if( function_exists( 'register_block_type' ) ) {
|
71 |
+
|
72 |
+
// Register our block editor script.
|
73 |
+
wp_register_script(
|
74 |
+
'simple-sitemap-block',
|
75 |
+
plugins_url( 'block_assets/js/blocks.editor.js', $this->module_roots['file'] ),
|
76 |
+
array( 'wp-blocks', 'wp-element', 'wp-components', 'wp-editor' )
|
77 |
+
);
|
78 |
+
|
79 |
+
// Register our block, and explicitly define the attributes we accept.
|
80 |
+
register_block_type( 'wpgoplugins/simple-sitemap-block', array(
|
81 |
+
'attributes' => array(
|
82 |
+
'render_tab' => [
|
83 |
+
'type' => 'boolean',
|
84 |
+
'default' => 'false'
|
85 |
+
],
|
86 |
+
'gutenberg_block' => array(
|
87 |
+
'type' => 'boolean',
|
88 |
+
'default' => true,
|
89 |
+
),
|
90 |
+
'orderby' => array(
|
91 |
+
'type' => 'string',
|
92 |
+
'default' => 'title'
|
93 |
+
),
|
94 |
+
'order' => array(
|
95 |
+
'type' => 'string',
|
96 |
+
'default' => 'asc'
|
97 |
+
),
|
98 |
+
'block_post_types' => [
|
99 |
+
'type' => 'string',
|
100 |
+
'default' => '[{ "value": "page", "label": "Pages" }]'
|
101 |
+
],
|
102 |
+
'page_depth' => [
|
103 |
+
'type' => 'number',
|
104 |
+
'default' => 0
|
105 |
+
],
|
106 |
+
'show_excerpt' => [
|
107 |
+
'type' => 'boolean',
|
108 |
+
'default' => false
|
109 |
+
],
|
110 |
+
'show_label' => [
|
111 |
+
'type' => 'boolean',
|
112 |
+
'default' => true
|
113 |
+
],
|
114 |
+
'links' => [
|
115 |
+
'type' => 'boolean',
|
116 |
+
'default' => true
|
117 |
+
]
|
118 |
+
),
|
119 |
+
'editor_script' => 'simple-sitemap-block', // The script name we gave in the wp_register_script() call.
|
120 |
+
'render_callback' => array( 'WPGO_Simple_Sitemap_Shortcode', 'render' ),
|
121 |
+
) );
|
122 |
+
|
123 |
+
// Register our block, and explicitly define the attributes we accept.
|
124 |
+
register_block_type( 'wpgoplugins/simple-sitemap-group-block', array(
|
125 |
+
'attributes' => array(
|
126 |
+
'show_excerpt' => [
|
127 |
+
'type' => 'boolean',
|
128 |
+
'default' => false
|
129 |
+
],
|
130 |
+
'show_label' => [
|
131 |
+
'type' => 'boolean',
|
132 |
+
'default' => true
|
133 |
+
],
|
134 |
+
'links' => [
|
135 |
+
'type' => 'boolean',
|
136 |
+
'default' => true
|
137 |
+
],
|
138 |
+
'orderby' => array(
|
139 |
+
'type' => 'string',
|
140 |
+
'default' => 'title'
|
141 |
+
),
|
142 |
+
'order' => array(
|
143 |
+
'type' => 'string',
|
144 |
+
'default' => 'asc'
|
145 |
+
),
|
146 |
+
'visibility' => array(
|
147 |
+
'type' => 'boolean',
|
148 |
+
'default' => true
|
149 |
+
),
|
150 |
+
'block_taxonomy' => [
|
151 |
+
'type' => 'string',
|
152 |
+
'default' => 'category'
|
153 |
+
],
|
154 |
+
'gutenberg_block' => array(
|
155 |
+
'type' => 'boolean',
|
156 |
+
'default' => true
|
157 |
+
)
|
158 |
+
),
|
159 |
+
'editor_script' => 'simple-sitemap-block', // The script name we gave in the wp_register_script() call.
|
160 |
+
'render_callback' => array( 'WPGO_Simple_Sitemap_Group_Shortcode', 'render' ),
|
161 |
+
) );
|
162 |
+
|
163 |
+
// Register our block, and explicitly define the attributes we accept.
|
164 |
+
// register_block_type( 'wpgoplugins/simple-sitemap-group-block', array(
|
165 |
+
// 'attributes' => array(
|
166 |
+
// 'gutenberg_block' => array(
|
167 |
+
// 'type' => 'boolean',
|
168 |
+
// 'default' => true
|
169 |
+
// )
|
170 |
+
// 'block_taxonomy' => [
|
171 |
+
// 'type' => 'string',
|
172 |
+
// 'default' => 'category'
|
173 |
+
// ],
|
174 |
+
// 'orderby' => array(
|
175 |
+
// 'type' => 'string',
|
176 |
+
// 'default' => 'title'
|
177 |
+
// ),
|
178 |
+
// 'order' => array(
|
179 |
+
// 'type' => 'string',
|
180 |
+
// 'default' => 'asc'
|
181 |
+
// ),
|
182 |
+
// 'show_excerpt' => [
|
183 |
+
// 'type' => 'boolean',
|
184 |
+
// 'default' => false
|
185 |
+
// ],
|
186 |
+
// 'show_label' => [
|
187 |
+
// 'type' => 'boolean',
|
188 |
+
// 'default' => true
|
189 |
+
// ],
|
190 |
+
// 'links' => [
|
191 |
+
// 'type' => 'boolean',
|
192 |
+
// 'default' => true
|
193 |
+
// ]
|
194 |
+
// ),
|
195 |
+
// 'editor_script' => 'simple-sitemap-block', // The script name we gave in the wp_register_script() call.
|
196 |
+
// 'render_callback' => array( 'WPGO_Simple_Sitemap_Group_Shortcode', 'render' ),
|
197 |
+
// ) );
|
198 |
+
}
|
199 |
+
}
|
200 |
+
|
201 |
+
} /* End class definition */
|
classes/settings.php
ADDED
@@ -0,0 +1,412 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Plugin options class.
|
4 |
+
*/
|
5 |
+
|
6 |
+
class WPGO_Simple_Sitemap_Settings {
|
7 |
+
|
8 |
+
protected $module_roots;
|
9 |
+
|
10 |
+
/* Main class constructor. */
|
11 |
+
public function __construct($module_roots) {
|
12 |
+
|
13 |
+
$this->module_roots = $module_roots;
|
14 |
+
|
15 |
+
add_action( 'admin_init', array( &$this, 'register_plugin_settings' ) );
|
16 |
+
add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
|
17 |
+
add_filter( 'simple_sitemap_defaults', array( &$this, 'add_defaults' ) );
|
18 |
+
}
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Register plugin options with Settings API.
|
22 |
+
*
|
23 |
+
*/
|
24 |
+
public function register_plugin_settings() {
|
25 |
+
|
26 |
+
/* Register plugin options settings for all tabs. */
|
27 |
+
register_setting( 'simple_sitemap_options_group', 'simple_sitemap_options', array( $this, 'sanitize_plugin_options' ) );
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Register plugin options page, and enqueue scripts/styles.
|
32 |
+
*
|
33 |
+
* @since 0.1.0
|
34 |
+
*/
|
35 |
+
public function add_options_page() {
|
36 |
+
|
37 |
+
add_menu_page(
|
38 |
+
__( 'Simple Sitemap Settings Page', 'simple-sitemap' ),
|
39 |
+
__( 'Simple Sitemap', 'simple-sitemap' ),
|
40 |
+
'manage_options',
|
41 |
+
'simple-sitemap-menu',
|
42 |
+
array( &$this, 'render' ),
|
43 |
+
'dashicons-pressthis',
|
44 |
+
82
|
45 |
+
);
|
46 |
+
}
|
47 |
+
|
48 |
+
/* Define default option settings. */
|
49 |
+
public function add_defaults($defaults) {
|
50 |
+
|
51 |
+
$defaults["txtar_sitemap_script"] = "";
|
52 |
+
$defaults["chk_parent_page_link"] = "0";
|
53 |
+
$defaults["txt_exclude_parent_pages"] = "";
|
54 |
+
$defaults["default_on_checkboxes"]["chk_parent_page_link"] = "0";
|
55 |
+
|
56 |
+
return $defaults;
|
57 |
+
}
|
58 |
+
|
59 |
+
/*
|
60 |
+
* Sanitize plugin options.
|
61 |
+
*
|
62 |
+
* Get rid of the local license key status option when adding a new one
|
63 |
+
*
|
64 |
+
*/
|
65 |
+
public function sanitize_plugin_options( $input ) {
|
66 |
+
|
67 |
+
// strip html from textboxes
|
68 |
+
$input['txtar_sitemap_script'] = wp_filter_nohtml_kses( $input['txtar_sitemap_script'] );
|
69 |
+
$input['txt_exclude_parent_pages'] = wp_filter_nohtml_kses( $input['txt_exclude_parent_pages'] );
|
70 |
+
|
71 |
+
/* Sanitize plugin options via this filter hook. */
|
72 |
+
// this allows you to sanitize options via another class
|
73 |
+
//return WPGO_Simple_Sitemap_Hooks::wpgo_sanitize_plugin_options( $input );
|
74 |
+
return $input;
|
75 |
+
}
|
76 |
+
|
77 |
+
/**
|
78 |
+
* Display plugin options page.
|
79 |
+
*
|
80 |
+
* @since 0.1.0
|
81 |
+
*/
|
82 |
+
public function render() {
|
83 |
+
$freemius_upgrade_url = admin_url() . "admin.php?page=simple-sitemap-menu-pricing";
|
84 |
+
$pro_attribute = '<span class="pro" title="Shortcode attribute available in Simple Sitemap Pro"><a href="' . $freemius_upgrade_url . '">PRO</a></span>';
|
85 |
+
?>
|
86 |
+
<div class="wrap">
|
87 |
+
|
88 |
+
<h2 style="float:left;"><?php _e( 'Welcome to Simple Sitemap!', 'simple-sitemap' ); ?></h2>
|
89 |
+
<div style="float:right;margin-top:5px;padding:10px 12px;"><a style="text-decoration:none;" title="Check out some of our other plugins" alt="WPGO Plugins Site" href="https://wpgoplugins.com/" target="_blank">wpgoplugins.com</a></div>
|
90 |
+
|
91 |
+
<div style="clear:both;"></div>
|
92 |
+
|
93 |
+
<?php
|
94 |
+
// Check to see if user clicked on the reset options button
|
95 |
+
if ( isset( $_POST['reset_options'] ) ) :
|
96 |
+
|
97 |
+
// Reset plugin defaults
|
98 |
+
update_option( 'simple_sitemap_options', self::get_default_plugin_options() );
|
99 |
+
|
100 |
+
// Display update notice here
|
101 |
+
?>
|
102 |
+
<div style="margin:20px 0 10px;">
|
103 |
+
<p><strong><?php echo 'Settings reset.'; ?></strong></p><button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
|
104 |
+
</div>
|
105 |
+
<?php
|
106 |
+
|
107 |
+
endif;
|
108 |
+
?>
|
109 |
+
|
110 |
+
<div style="margin:20px 0 10px;font-size:14px;line-height:1.4em;">What type of sitemap will you create today? There are just so many different types of sitemap to choose from. That's why we recommend checking out the <a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">live demo</a> page to start with to see all the different types of sitemap available!</div>
|
111 |
+
|
112 |
+
<div><a class="plugin-btn" href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">Launch Sitemap Demo</a></div>
|
113 |
+
|
114 |
+
<h2 style="margin:35px 0 0 0;">Sitemap Settings</h2>
|
115 |
+
|
116 |
+
<div class="ss-box" style="margin-top:20px;">
|
117 |
+
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Plugin Settings</h4><button id="settings-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
118 |
+
|
119 |
+
<div style="margin:15px;" id="settings-wrap">
|
120 |
+
|
121 |
+
<!-- Start Main Form -->
|
122 |
+
<form id="plugin-options-form" method="post" action="options.php">
|
123 |
+
<?php
|
124 |
+
$options = self::get_plugin_options();
|
125 |
+
settings_fields( 'simple_sitemap_options_group' );
|
126 |
+
?>
|
127 |
+
|
128 |
+
<div class="simple-sitemap-pro-tab">
|
129 |
+
<table class="form-table">
|
130 |
+
|
131 |
+
<tr valign="top">
|
132 |
+
<td colspan="2" style="padding:0;">
|
133 |
+
<div>
|
134 |
+
|
135 |
+
<label><input name="simple_sitemap_options[chk_parent_page_link]" type="checkbox" value="1" <?php if ( isset( $options['chk_parent_page_link'] ) ) { checked( '1', $options['chk_parent_page_link'] ); } ?>> Remove parent page links?</label><br><br>
|
136 |
+
|
137 |
+
<input type="text" class="exclude regular-text code" name="simple_sitemap_options[txt_exclude_parent_pages]" value="<?php echo $options['txt_exclude_parent_pages']; ?>">
|
138 |
+
|
139 |
+
<p class="description">Enter comma separated list of parent page IDs to remove specific links. Leave blank to remove ALL parent page links.</p>
|
140 |
+
<div>
|
141 |
+
</td>
|
142 |
+
</tr>
|
143 |
+
|
144 |
+
<tr valign="top" style="display:none;">
|
145 |
+
<th scope="row">Advanced Configuration</th>
|
146 |
+
<td>
|
147 |
+
<textarea name="simple_sitemap_options[txtar_sitemap_script]" rows="7" cols="50" type='textarea'><?php echo $options['txtar_sitemap_script']; ?></textarea>
|
148 |
+
<p class="description">Add script into the box above to output an advanced sitemap.</p>
|
149 |
+
</td>
|
150 |
+
</tr>
|
151 |
+
</table>
|
152 |
+
</div>
|
153 |
+
|
154 |
+
<div class="support-tab">
|
155 |
+
<?php do_settings_sections( 'simple-sitemap-menu' ); ?>
|
156 |
+
</div>
|
157 |
+
|
158 |
+
<?php submit_button(); ?>
|
159 |
+
|
160 |
+
</form>
|
161 |
+
<!-- main form closing tag -->
|
162 |
+
|
163 |
+
<form action="<?php echo self::currURL(); // current page url ?>" method="post" id="simple-sitemap-reset-form" style="display:inline;">
|
164 |
+
<span id="simple-sitemap-reset"><a href="#">Reset plugin options</a><input type="hidden" name="reset_options" value="true"></span>
|
165 |
+
</form>
|
166 |
+
</div>
|
167 |
+
</div>
|
168 |
+
|
169 |
+
<h2 style="margin:35px 0 0 0;">Sitemap Blocks <span style="font-style:italic;color: red;">*NEW*</span></h2>
|
170 |
+
|
171 |
+
<div class="ss-box" style="margin-top:20px;">
|
172 |
+
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Blocks</h4><button id="blocks-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
173 |
+
|
174 |
+
<div id="blocks-wrap" style="margin:10px;">
|
175 |
+
<p>I'm pleased to announce that Simple Sitemap plugin now includes support for <a href="https://wordpress.org/gutenberg/" target="_blank">blocks</a>! This means you can now easily add a sitemap visually directly inside the WordPress editor. No more swapping back and forth between the editor and front end to preview the sitemap.</p>
|
176 |
+
|
177 |
+
<p>There are two sitemap blocks available. One to insert a standard sitemap, and the other to display a list of posts grouped by taxonomy. These two blocks are a direct replacement for the following shortcodes.</p>
|
178 |
+
|
179 |
+
<ul>
|
180 |
+
<li><code>[simple-sitemap]</code></li>
|
181 |
+
<li><code>[simple-sitemap-group]</code></li>
|
182 |
+
</ul>
|
183 |
+
|
184 |
+
All shortcode attributes are now supported inside the editor via a specially built user interface.
|
185 |
+
|
186 |
+
<div style="margin-top:20px;text-align:center;"><img style="max-width:550px;" src="<?php echo $this->module_roots['pdir']; ?>assets/images/simple-sitemap-block.png" /></div>
|
187 |
+
|
188 |
+
<div>
|
189 |
+
<h4>Usage Instructions:</h4>
|
190 |
+
<ol>
|
191 |
+
<li>Inside the new editor click the plus icon to insert a new block.</li>
|
192 |
+
<li>In the popup window search for 'sitemap' or scroll down until you see the Simple Sitemap blocks section, and expand it.</li>
|
193 |
+
<li>Click on the particular sitemap block icon you want to insert.</li>
|
194 |
+
<li>Once the block has been added to the editor you can access block settings in the inspector panel to the right.</li>
|
195 |
+
<li>Make sure to save your changes and then view the sitemap on the front end!</li>
|
196 |
+
</ol>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
|
201 |
+
<h2 style="margin:35px 0 0 0;">Sitemap Shortcodes</h2>
|
202 |
+
|
203 |
+
<div class="ss-box" style="margin-top:20px;">
|
204 |
+
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Shortcodes</h4><button id="shortcodes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
205 |
+
|
206 |
+
<div id="shortcodes-wrap">
|
207 |
+
|
208 |
+
<p>Click on the shortcodes below to view the full documentation for each shortcode. We now recommend using sitemap blocks inside the new WordPress editor rather than shortcodes.</p>
|
209 |
+
|
210 |
+
<p style="margin:15px 0 0 0;"><code><a class="code-link" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap" target="_blank">[simple-sitemap]</a></code> <?php printf( __( 'Displays a list of posts for one or more post types.', 'simple-sitemap' ) ); ?></p>
|
211 |
+
|
212 |
+
<p style="margin:15px 0 0 0;"><code><a class="code-link" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap-group" target="_blank">[simple-sitemap-group]</a></code> <?php printf( __( 'Displays a list of posts grouped by category, OR tags.', 'simple-sitemap' ) ); ?></p>
|
213 |
+
|
214 |
+
<p style="margin:15px 0 0 0;"><code><a class="code-link" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap-tax" target="_blank">[simple-sitemap-tax]</a></code> <?php echo $pro_attribute; ?> <?php printf( __( 'Displays a list of taxonomy terms for any registered taxonomy (e.g. categories).', 'simple-sitemap' ) ); ?></p>
|
215 |
+
|
216 |
+
<p style="margin:15px 0 0 0;"><code><a class="code-link" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap-menu" target="_blank">[simple-sitemap-menu]</a></code> <?php echo $pro_attribute; ?> <?php printf( __( 'Displays a sitemap based on a nav menu.', 'simple-sitemap' ) ); ?></p>
|
217 |
+
|
218 |
+
<p style="margin:15px 0 30px 0;"><code><a class="code-link" href="https://wpgoplugins.com/document/simple-sitemap-pro-documentation/#simple-sitemap-child" target="_blank">[simple-sitemap-child]</a></code> <?php echo $pro_attribute; ?> <?php printf( __( 'Displays a list of child pages for a specific parent page.', 'simple-sitemap' ) ); ?></p>
|
219 |
+
</div>
|
220 |
+
</div>
|
221 |
+
|
222 |
+
<div class="ss-box">
|
223 |
+
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Shortcode Attributes & Default Values</h4><button id="attributes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
224 |
+
<div id="attributes-wrap">
|
225 |
+
<p>Note: Default values are always used for missing shortcode attributes. i.e. Override only the values you want to change.</p>
|
226 |
+
<p style="margin:20px 0 0 0;"><code><b>[simple-sitemap ... ]</b></code></p>
|
227 |
+
<ul class="shortcode-attributes">
|
228 |
+
<li><code>page_depth="0"</code> - For the 'page' post type allow the indentation depth to be specified.</li>
|
229 |
+
<li><code>title_tag=""</code> - Tag used to wrap each sitemap item in a specified tag.</li>
|
230 |
+
<li><code>post_type_tag="h2"</code> - Tag used to display the post type label.</li>
|
231 |
+
<li><code>orderby="title"</code> - Value to sort posts by (title, date, author etc.). See the full list <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">here</a>.</li>
|
232 |
+
<li><code>order="asc"</code> - List posts for each post type in ascending, or descending order.</li>
|
233 |
+
<li><code>show_excerpt="true"</code> - Optionally show post excerpt (if defined) under each sitemap item.</li>
|
234 |
+
<li><code>excerpt_tag=""</code> - Tag used to wrap the post excerpt text.</li>
|
235 |
+
<li><code>show_label="true"</code> - Optionally show post type label above the sitemap list of posts.</li>
|
236 |
+
<li><code>links="true"</code> - Show sitemap items as links or plain text.</li>
|
237 |
+
<li><code>container_tag="ul"</code> - List type tag, ordered, or unordered.</li>
|
238 |
+
<li><code>types="page"</code> <?php echo $pro_attribute; ?> - List posts or pages (or both) in the order entered. e.g. <code>types="post, page"</code></li>
|
239 |
+
<li><code>include=""</code> <?php echo $pro_attribute; ?> - Comma separated list of post IDs to INCLUDE in the sitemap only. Other posts will be ignored.</li>
|
240 |
+
<li><code>exclude=""</code> <?php echo $pro_attribute; ?> - Comma separated list of post IDs to exclude from the sitemap.</li>
|
241 |
+
<li><code>render=""</code> <?php echo $pro_attribute; ?> - Set to "tab" to display posts in a tabbed layout!</li>
|
242 |
+
<li><code>image="false"</code> <?php echo $pro_attribute; ?> - Optionally show the post featured image (if defined) next to each sitemap item.</li>
|
243 |
+
<li><code>list_icon="true"</code> <?php echo $pro_attribute; ?> - Optionally display HTML bullet icons.</li>
|
244 |
+
<li><code>separator="false"</code> <?php echo $pro_attribute; ?> - Optionally render separator lines inbetween sitemap items.</li>
|
245 |
+
<li><code>horizontal="false"</code> <?php echo $pro_attribute; ?> - Set to "true" to display sitemap items in a flat horizontal list. Great for adding a sitemap to the footer!</li>
|
246 |
+
<li><code>horizontal_separator=", "</code> <?php echo $pro_attribute; ?> - The character(s) used to separate sitemap items. Use with the 'horizontal' attribute.</li>
|
247 |
+
<li><code>nofollow="0"</code> <?php echo $pro_attribute; ?> - Set to "1" to make sitemap links <a href="https://en.wikipedia.org/wiki/Nofollow" target="_blank">nofollow</a>.</li>
|
248 |
+
<li><code>numposts="-1"</code> <?php echo $pro_attribute; ?> - Limit the number of posts outputted in the sitemap.</li>
|
249 |
+
<li><code>visibility="true"</code> <?php echo $pro_attribute; ?> - Control whether private posts/pages are displayed in the sitemap.</li>
|
250 |
+
</ul>
|
251 |
+
|
252 |
+
<p style="margin:30px 0 0 0;"><code><b>[simple-sitemap-group ... ]</b></code></p>
|
253 |
+
|
254 |
+
<ul class="shortcode-attributes">
|
255 |
+
<li><code>tax="category"</code> - List posts grouped by categories OR tags ('post_tag').</li>
|
256 |
+
<li><code>title_tag=""</code> - Tag used to wrap each sitemap item in a specified tag.</li>
|
257 |
+
<li><code>show_excerpt="true"</code> - Optionally show post excerpt (if defined) under each sitemap item.</li>
|
258 |
+
<li><code>excerpt_tag=""</code> - Tag used to wrap the post excerpt text.</li>
|
259 |
+
<li><code>links="true"</code> - Show sitemap items as links or plain text.</li>
|
260 |
+
<li><code>orderby="title"</code> - Value to sort posts by (title, date, author etc.). See the full list <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">here</a>.</li>
|
261 |
+
<li><code>order="asc"</code> - List posts for each post type in ascending, or descending order.</li>
|
262 |
+
<li><code>post_type_tag="h2"</code> - Tag used to display the post type label.</li>
|
263 |
+
<li><code>show_label="true"</code> - Optionally show post type label above the sitemap list of posts.</li>
|
264 |
+
<!-- <li><code>page_depth="0"</code> - For the 'page' post type allow the indentation depth to be specified.</li> -->
|
265 |
+
<li><code>container_tag="ul"</code> - List type tag, ordered, or unordered.</li>
|
266 |
+
<li><code>type="post"</code> <?php echo $pro_attribute; ?> - List posts grouped by taxonomy from ANY post type.</li>
|
267 |
+
<li><code>exclude=""</code> <?php echo $pro_attribute; ?> - Comma separated list of post IDs to exclude from the sitemap.</li>
|
268 |
+
<li><code>term_orderby="title"</code> <?php echo $pro_attribute; ?> - Order post taxonomy term labels by title etc.</li>
|
269 |
+
<li><code>term_order="asc"</code> <?php echo $pro_attribute; ?> - List taxonomy term labels in ascending, or descending order.</li>
|
270 |
+
<li><code>separator="false"</code> <?php echo $pro_attribute; ?> - Optionally render separator lines inbetween sitemap items.</li>
|
271 |
+
<li><code>image="false"</code> <?php echo $pro_attribute; ?> - Optionally show the post featured image (if defined) next to each sitemap item.</li>
|
272 |
+
<li><code>list_icon="true"</code> <?php echo $pro_attribute; ?> - Optionally display HTML bullet icons.</li>
|
273 |
+
<li><code>include_terms=""</code> <?php echo $pro_attribute; ?> - Comma separated list of taxonomy terms to include.</li>
|
274 |
+
<li><code>exclude_terms=""</code> <?php echo $pro_attribute; ?> - Comma separated list of taxonomy terms to exclude.</li>
|
275 |
+
<li><code>visibility="true"</code> <?php echo $pro_attribute; ?> - Control whether private posts/pages are displayed in the sitemap.</li>
|
276 |
+
<li><code>numposts="-1"</code> <?php echo $pro_attribute; ?> - Limit the number of posts outputted in the sitemap.</li>
|
277 |
+
<li><code>horizontal="false"</code> <?php echo $pro_attribute; ?> - Set to "true" to display sitemap items in a flat horizontal list. Great for adding a sitemap to the footer!</li>
|
278 |
+
<li><code>horizontal_separator=", "</code> <?php echo $pro_attribute; ?> - The character(s) used to separate sitemap items. Use with the 'horizontal' attribute.</li>
|
279 |
+
<li><code>nofollow="0"</code> <?php echo $pro_attribute; ?> - Set to "1" to make sitemap links <a href="https://en.wikipedia.org/wiki/Nofollow" target="_blank">nofollow</a>.</li>
|
280 |
+
</ul>
|
281 |
+
</div>
|
282 |
+
</div>
|
283 |
+
|
284 |
+
<div style="margin-top:25px;"></div>
|
285 |
+
|
286 |
+
<table class="form-table">
|
287 |
+
|
288 |
+
<tr valign="top">
|
289 |
+
<th scope="row">Like the plugin?</th>
|
290 |
+
<td>
|
291 |
+
<p>Then why not try <a href="<?php echo $freemius_upgrade_url; ?>">Simple Sitemap Pro</a> to access powerful additional features. Try risk free today with our <span style="font-weight: bold;">100% money back guarantee!</span></p>
|
292 |
+
<div><a class="plugin-btn" href="<?php echo $freemius_upgrade_url; ?>">Upgrade to Pro</a></div>
|
293 |
+
</td>
|
294 |
+
</tr>
|
295 |
+
|
296 |
+
<tr valign="top">
|
297 |
+
<th scope="row">Help support this plugin</th>
|
298 |
+
<td>
|
299 |
+
<div style="float:left;"><a style="margin-right:10px;line-height:0;display:block;" href="<?php echo $freemius_upgrade_url; ?>"><img style="box-shadow:0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);width:75px;border-radius:2px;border:2px white solid;" src="<?php echo $this->module_roots['pdir']; ?>assets/images/david.png"></a></div>
|
300 |
+
<p style="margin-top:0;">Hi there, I'm David. I spend a lot of time developing FREE WordPress plugins like this one. If you like Simple Sitemap and use it on your website please consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC" target="_blank">donation</a>, or purchase the <a href="<?php echo $freemius_upgrade_url; ?>">pro version</a>, to help fund continued development (and keep Dexter in doggy biscuits!).</p>
|
301 |
+
</td>
|
302 |
+
</tr>
|
303 |
+
|
304 |
+
<tr valign="top">
|
305 |
+
<th scope="row">Try our other top plugins!</th>
|
306 |
+
<td>
|
307 |
+
<table class="other-plugins-tbl">
|
308 |
+
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/flexible-faqs/" target="_blank"><img src="<?php echo $this->module_roots['pdir']; ?>assets/images/flexible-faq-thumb.png"></a></td></tr>
|
309 |
+
<tr><td class="plugin-text-link"><div><h3><a href="https://wpgoplugins.com/plugins/flexible-faqs/" target="_blank">Flexible FAQs</a></h3></div></td></tr>
|
310 |
+
</table>
|
311 |
+
<table class="other-plugins-tbl">
|
312 |
+
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/content-censor/" target="_blank"><img src="<?php echo $this->module_roots['pdir']; ?>assets/images/content-censor-thumb.png"></a></td></tr>
|
313 |
+
<tr><td class="plugin-text-link"><div><h3><a href="https://wpgoplugins.com/plugins/content-censor/" target="_blank">Content Censor</a></h3></div></td></tr>
|
314 |
+
</table>
|
315 |
+
<table class="other-plugins-tbl">
|
316 |
+
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/seo-media-manager/" target="_blank"><img src="<?php echo $this->module_roots['pdir']; ?>assets/images/seo-media-manager-thumb.png"></a></td></tr>
|
317 |
+
<tr><td class="plugin-text-link"><div><h3><a href="https://wpgoplugins.com/plugins/seo-media-manager/" target="_blank">SEO Media Manager</a></h3></div></td></tr>
|
318 |
+
</table>
|
319 |
+
</td>
|
320 |
+
</tr>
|
321 |
+
|
322 |
+
<tr valign="top">
|
323 |
+
<th scope="row">Read all about it!</th>
|
324 |
+
<td>
|
325 |
+
<p>Subscribe to our newsletter for news and updates about the latest development work. Be the first to find out about future projects and exclusive promotions.</p>
|
326 |
+
<div><a class="plugin-btn" target="_blank" href="http://eepurl.com/bXZmmD">Sign Me Up!</a></div>
|
327 |
+
</td>
|
328 |
+
</tr>
|
329 |
+
|
330 |
+
<tr valign="top">
|
331 |
+
<th scope="row">Keep in touch...</th>
|
332 |
+
<td>
|
333 |
+
<div><p style="margin-bottom:10px;">Come and say hello. I'd love to hear from you!</p>
|
334 |
+
<span><a class="social-link" href="http://www.twitter.com/dgwyer" title="Follow us on Twitter" target="_blank"><img src="<?php echo $this->module_roots['pdir']; ?>assets/images/twitter.png" /></a></span>
|
335 |
+
<span><a class="social-link" href="https://www.facebook.com/wpgoplugins/" title="Our Facebook page" target="_blank"><img src="<?php echo $this->module_roots['pdir']; ?>assets/images/facebook.png" /></a></span>
|
336 |
+
<span><a class="social-link" href="https://www.youtube.com/channel/UCWzjTLWoyMgtIfpDgJavrTg" title="View our YouTube channel" target="_blank"><img src="<?php echo $this->module_roots['pdir']; ?>assets/images/yt.png" /></a></span>
|
337 |
+
<span><a style="text-decoration:none;" title="Need help with ANY aspect of WordPress? We're here to help!" href="https://wpgoplugins.com/need-help-with-wordpress/" target="_blank"><span style="margin-left:-2px;color:#d41515;font-size:39px;line-height:32px;width:39px;height:39px;" class="dashicons dashicons-sos"></span></a></span>
|
338 |
+
</div>
|
339 |
+
</td>
|
340 |
+
</tr>
|
341 |
+
|
342 |
+
<tr><td colspan="2" style="padding:0;"><div style="margin-bottom:20px;margin-top:15px;">Please <a href="https://wpgoplugins.com/contact" target="_blank">report</a> any plugin issues, or suggest additional features. <span style="font-weight:bold;">All feedback welcome!</span></div>
|
343 |
+
</td></tr>
|
344 |
+
|
345 |
+
</table>
|
346 |
+
|
347 |
+
</div>
|
348 |
+
<?php
|
349 |
+
}
|
350 |
+
|
351 |
+
/**
|
352 |
+
* Get URL of current page.
|
353 |
+
*
|
354 |
+
* @since 0.1.0
|
355 |
+
*/
|
356 |
+
public static function currURL() {
|
357 |
+
|
358 |
+
return (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ?
|
359 |
+
"https" : "http") . "://" . $_SERVER['HTTP_HOST'] .
|
360 |
+
$_SERVER['REQUEST_URI'];
|
361 |
+
}
|
362 |
+
|
363 |
+
/**
|
364 |
+
* Get plugin option default settings.
|
365 |
+
*
|
366 |
+
* @since 0.1.0
|
367 |
+
*/
|
368 |
+
public static function get_default_plugin_options() {
|
369 |
+
|
370 |
+
$defaults = array();
|
371 |
+
|
372 |
+
// setup an array to store list of checkboxes that have a checkbox default set to 1
|
373 |
+
$defaults["default_on_checkboxes"] = array();
|
374 |
+
|
375 |
+
/* Add plugin specific default settings via this filter hook. */
|
376 |
+
return WPGO_Simple_Sitemap_Hooks::simple_sitemap_defaults($defaults);
|
377 |
+
}
|
378 |
+
|
379 |
+
/**
|
380 |
+
* Get current plugin options.
|
381 |
+
*
|
382 |
+
* Merges plugin options with the defaults to ensure any gaps are filled.
|
383 |
+
* i.e. when adding new options.
|
384 |
+
*
|
385 |
+
*/
|
386 |
+
public static function get_plugin_options() {
|
387 |
+
|
388 |
+
$options = get_option( 'simple_sitemap_options' );
|
389 |
+
$defaults = self::get_default_plugin_options();
|
390 |
+
|
391 |
+
// store the OFF checkboxes array
|
392 |
+
$default_on_checkboxes_arr = $defaults["default_on_checkboxes"];
|
393 |
+
|
394 |
+
// remove the OFF checkboxes array from the main defaults array
|
395 |
+
unset($defaults["default_on_checkboxes"]);
|
396 |
+
|
397 |
+
if( is_array($options) ) {
|
398 |
+
// merge OFF checkboxes into main options array to add entries for empty checkboxes
|
399 |
+
$options = array_merge( $default_on_checkboxes_arr, $options );
|
400 |
+
}
|
401 |
+
|
402 |
+
return wp_parse_args(
|
403 |
+
$options,
|
404 |
+
$defaults
|
405 |
+
);
|
406 |
+
|
407 |
+
//return wp_parse_args(
|
408 |
+
// get_option( 'simple_sitemap_options' ),
|
409 |
+
// self::get_default_plugin_options()
|
410 |
+
//);
|
411 |
+
}
|
412 |
+
}
|
classes/shortcodes/shortcodes.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Bootstrap class for the sitemap shortcodes
|
4 |
+
*/
|
5 |
+
|
6 |
+
class WPGO_Simple_Sitemap_Shortcodes {
|
7 |
+
|
8 |
+
protected $module_roots;
|
9 |
+
|
10 |
+
/* Main class constructor. */
|
11 |
+
public function __construct($module_roots) {
|
12 |
+
|
13 |
+
$this->module_roots = $module_roots;
|
14 |
+
$this->load_shortcodes();
|
15 |
+
|
16 |
+
// Allow shortcodes to be used in widgets (the callbacks are WordPress core functions)
|
17 |
+
add_filter( 'widget_text', 'shortcode_unautop' );
|
18 |
+
add_filter( 'widget_text', 'do_shortcode' );
|
19 |
+
}
|
20 |
+
|
21 |
+
/* Load shortcodes. */
|
22 |
+
public function load_shortcodes() {
|
23 |
+
|
24 |
+
$root = $this->module_roots['dir'];
|
25 |
+
|
26 |
+
require_once( $root . 'shared/shortcodes_utility.php' );
|
27 |
+
|
28 |
+
// [simple-sitemap] shortcode
|
29 |
+
require_once( $root . 'classes/shortcodes/simple-sitemap-shortcode.php' );
|
30 |
+
new WPGO_Simple_Sitemap_Shortcode($this->module_roots);
|
31 |
+
|
32 |
+
// [simple-sitemap-group] shortcode
|
33 |
+
require_once( $root . 'classes/shortcodes/simple-sitemap-group-shortcode.php' );
|
34 |
+
new WPGO_Simple_Sitemap_Group_Shortcode($this->module_roots);
|
35 |
+
}
|
36 |
+
|
37 |
+
} /* End class definition */
|
classes/shortcodes/simple-sitemap-group-shortcode.php
CHANGED
@@ -1,200 +1,252 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
*/
|
5 |
|
6 |
class WPGO_Simple_Sitemap_Group_Shortcode {
|
7 |
|
8 |
-
|
|
|
9 |
|
10 |
-
/* Main class constructor. */
|
11 |
-
public function __construct($module_roots) {
|
12 |
-
|
13 |
-
$this->module_roots = $module_roots;
|
14 |
add_shortcode( 'simple-sitemap-group', array( &$this, 'render' ) );
|
|
|
15 |
}
|
16 |
|
17 |
/* Shortcode function. */
|
18 |
-
public function render($
|
19 |
|
20 |
/* Get attributes from the shortcode. */
|
21 |
-
$
|
22 |
-
'
|
23 |
-
'
|
24 |
-
'
|
25 |
-
'
|
|
|
26 |
'show_excerpt' => 'false',
|
27 |
-
'title_tag' => '',
|
28 |
-
'excerpt_tag' => 'div',
|
29 |
-
'post_type_tag' => 'h2',
|
30 |
'show_label' => 'true',
|
31 |
'links' => 'true',
|
32 |
-
|
33 |
-
'
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
// escape tag names
|
39 |
-
$
|
40 |
-
$
|
41 |
-
$
|
42 |
-
$
|
43 |
-
$
|
44 |
-
|
45 |
-
$
|
46 |
-
$post_type_tag = tag_escape( $atts['post_type_tag'] );
|
47 |
-
$show_label = esc_attr( $atts['show_label'] );
|
48 |
-
$links = esc_attr( $atts['links'] );
|
49 |
-
//$page_depth = esc_attr( intval( $atts['page_depth'] ) );
|
50 |
-
$order = esc_attr( $atts['order'] );
|
51 |
-
$orderby = esc_attr( $atts['orderby'] );
|
52 |
-
$exclude = esc_attr( $atts['exclude'] );
|
53 |
-
$post_type = 'post';
|
54 |
|
55 |
// Format attributes as necessary
|
56 |
|
57 |
-
//
|
58 |
-
$
|
59 |
-
if(!in_array($container_tag, $allowed_container_tags)) {
|
60 |
-
$container_tag = 'ul';
|
61 |
-
}
|
62 |
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
'public' => true
|
69 |
-
);
|
70 |
-
$registered_post_types = get_post_types($args);
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
//print_r($post_types);
|
75 |
-
//print_r($exclude);
|
76 |
-
//echo "</pre>";
|
77 |
|
78 |
-
|
|
|
|
|
79 |
|
80 |
-
//
|
81 |
-
|
|
|
|
|
|
|
82 |
|
83 |
-
|
84 |
-
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
echo '<' . $post_type_tag . '>' . esc_html($post_type_name) . '</' . $post_type_tag . '>';
|
91 |
-
}
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
);
|
97 |
-
$terms = get_terms( $tax, $term_attr );
|
98 |
|
99 |
-
|
|
|
100 |
|
101 |
-
|
102 |
-
|
|
|
|
|
|
|
|
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
|
|
|
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
$title_close = '</' . $title_tag . '>';
|
113 |
-
}
|
114 |
-
else {
|
115 |
-
$title_open = $title_close = '';
|
116 |
-
}
|
117 |
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
'taxonomy' => $tax,
|
127 |
-
'field' => 'slug',
|
128 |
-
'terms' => $term
|
129 |
-
)
|
130 |
-
)
|
131 |
-
);
|
132 |
|
133 |
-
|
134 |
|
135 |
-
|
136 |
-
|
137 |
|
138 |
-
|
139 |
|
140 |
-
|
|
|
141 |
|
142 |
-
|
143 |
-
|
|
|
|
|
144 |
|
145 |
-
|
146 |
-
|
|
|
|
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
} else {
|
152 |
-
$title = $title_open . esc_html($title_text) . $title_close;
|
153 |
-
}
|
154 |
-
}
|
155 |
-
else {
|
156 |
-
if ( $links == 'true' ) {
|
157 |
-
$title = $title_open . '<a href="' . esc_url(get_permalink()) . '">' . '(no title)' . '</a>' . $title_close;
|
158 |
-
} else {
|
159 |
-
$title = $title_open . '(no title)' . $title_close;
|
160 |
-
}
|
161 |
-
}
|
162 |
|
163 |
-
|
164 |
-
|
|
|
|
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
echo $title;
|
169 |
-
echo $excerpt;
|
170 |
-
echo '</li>';
|
171 |
|
172 |
-
|
173 |
|
174 |
-
|
|
|
|
|
175 |
|
176 |
-
|
177 |
-
|
|
|
178 |
|
179 |
-
|
180 |
|
181 |
-
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
}
|
185 |
}
|
186 |
else {
|
187 |
echo "No posts found.";
|
188 |
}
|
189 |
|
190 |
-
//
|
191 |
-
|
192 |
-
//
|
|
|
193 |
|
194 |
$sitemap = ob_get_contents();
|
195 |
ob_end_clean();
|
196 |
|
197 |
-
|
198 |
-
|
|
|
199 |
|
200 |
-
|
|
|
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Class for the [simple-sitemap-group] shortcode
|
4 |
*/
|
5 |
|
6 |
class WPGO_Simple_Sitemap_Group_Shortcode {
|
7 |
|
8 |
+
/* Main class constructor. */
|
9 |
+
public function __construct() {
|
10 |
|
|
|
|
|
|
|
|
|
11 |
add_shortcode( 'simple-sitemap-group', array( &$this, 'render' ) );
|
12 |
+
add_shortcode( 'ssg', array( &$this, 'render' ) );
|
13 |
}
|
14 |
|
15 |
/* Shortcode function. */
|
16 |
+
public function render($attr) {
|
17 |
|
18 |
/* Get attributes from the shortcode. */
|
19 |
+
$args = shortcode_atts( array(
|
20 |
+
'id' => uniqid(), // unique identifier to avoid conflicts if using multiple sitemaps on the same page. e.g. 5d026c6168954
|
21 |
+
'type' => 'post', // post type
|
22 |
+
'tax' => 'category', // single taxonomy that must be associated with the 'type' attribute
|
23 |
+
'orderby' => 'title',
|
24 |
+
'order' => 'asc',
|
25 |
'show_excerpt' => 'false',
|
|
|
|
|
|
|
26 |
'show_label' => 'true',
|
27 |
'links' => 'true',
|
28 |
+
|
29 |
+
// following attributes don't have block support yet
|
30 |
+
|
31 |
+
// delete from free plugin
|
32 |
+
'image' => 'false',
|
33 |
+
'list_icon' => 'true',
|
34 |
+
'nofollow' => 0,
|
35 |
+
'visibility' => 'true',
|
36 |
+
'include_terms' => '',
|
37 |
+
'exclude_terms' => '',
|
38 |
+
//'exclude' => '', // posts
|
39 |
+
//'include' => '', // posts
|
40 |
+
'taxonomy_links' => 'false',
|
41 |
+
'term_orderby' => 'name',
|
42 |
+
'term_order' => 'asc',
|
43 |
+
'num_posts' => -1,
|
44 |
+
'separator' => 'false',
|
45 |
+
'title_tag' => '',
|
46 |
+
'excerpt_tag' => 'div',
|
47 |
+
'post_type_tag' => 'h3',
|
48 |
+
'container_tag' => 'ul',
|
49 |
+
'term_tag' => 'h3',
|
50 |
+
'render' => '', // used to add css classes not tabs
|
51 |
+
'parent_page_link' => '1', // undocumented - is this used anymore, or only plugin settings version?
|
52 |
+
'shortcode_type' => 'group', // undocumented
|
53 |
+
|
54 |
+
// attributes below are only relevant to sitemap block
|
55 |
+
'gutenberg_block' => false,
|
56 |
+
'block_post_type' => '',
|
57 |
+
'block_taxonomy' => '',
|
58 |
+
'post_type_label_font_size' => '1em',
|
59 |
+
'sitemap_item_line_height' => '',
|
60 |
+
'sitemap_container_margin' => '1em 0 0 0'
|
61 |
+
), $attr );
|
62 |
+
|
63 |
+
// defaults
|
64 |
+
$args['type'] = 'post';
|
65 |
+
$args['block_post_type'] = $args['type'];
|
66 |
+
$args['image'] = 'false';
|
67 |
+
$args['list_icon'] = 'true';
|
68 |
+
$args['nofollow'] = 0;
|
69 |
+
$args['visibility'] = 'true';
|
70 |
+
$args['include_terms'] = '';
|
71 |
+
$args['exclude_terms'] = '';
|
72 |
+
//$args['exclude'] = ''; // posts
|
73 |
+
//$args['include'] = ''; // posts
|
74 |
+
$args['taxonomy_links'] = 'false';
|
75 |
+
$args['term_orderby'] = 'name';
|
76 |
+
$args['term_order'] = 'asc';
|
77 |
+
$args['num_posts'] = -1;
|
78 |
+
$args['separator'] = 'false';
|
79 |
+
$args['title_tag'] = '';
|
80 |
+
$args['excerpt_tag'] = 'div';
|
81 |
+
$args['post_type_tag'] = 'h3';
|
82 |
+
$args['container_tag'] = 'ul';
|
83 |
+
$args['term_tag'] = 'h3';
|
84 |
+
$args['render'] = ''; // used to add css classes not tabs
|
85 |
+
$args['parent_page_link'] = '1'; // undocumented - is this used anymore, or only plugin settings version?
|
86 |
+
$args['shortcode_type'] = 'group'; // undocumented
|
87 |
|
88 |
// escape tag names
|
89 |
+
$args['container_tag'] = tag_escape( $args['container_tag'] );
|
90 |
+
$args['title_tag'] = tag_escape( $args['title_tag'] );
|
91 |
+
$args['excerpt_tag'] = tag_escape( $args['excerpt_tag'] );
|
92 |
+
$args['post_type_tag'] = tag_escape( $args['post_type_tag'] );
|
93 |
+
$args['term_tag'] = tag_escape( $args['term_tag'] );
|
94 |
+
|
95 |
+
$block_err = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
// Format attributes as necessary
|
98 |
|
99 |
+
// if we are rendering a block then parse block attributes
|
100 |
+
if($args['gutenberg_block'] === true) {
|
|
|
|
|
|
|
101 |
|
102 |
+
if(empty($args['block_taxonomy'])) {
|
103 |
+
$block_err = '<h5 style="line-height:1.25em;">Please select a post type that supports taxonomies.</h5>';
|
104 |
+
} else {
|
105 |
+
$args['type'] = $args['block_post_type'];
|
106 |
+
$args['tax'] = $args['block_taxonomy'];
|
107 |
+
}
|
108 |
|
109 |
+
// sanitize post_type_label_font_size
|
110 |
+
$args['post_type_label_font_size'] = sanitize_text_field($args['post_type_label_font_size']);
|
|
|
|
|
|
|
111 |
|
112 |
+
// sanitize sitemap_item_line_height
|
113 |
+
$args['sitemap_item_line_height'] = sanitize_text_field($args['sitemap_item_line_height']);
|
|
|
|
|
|
|
114 |
|
115 |
+
// sanitize sitemap_container_margin
|
116 |
+
$args['sitemap_container_margin'] = sanitize_text_field($args['sitemap_container_margin']);
|
117 |
+
}
|
118 |
|
119 |
+
// force 'ul' or 'ol' to be used as the container tag
|
120 |
+
$allowed_container_tags = array('ul', 'ol');
|
121 |
+
if(!in_array($args['container_tag'], $allowed_container_tags)) {
|
122 |
+
$args['container_tag'] = 'ul';
|
123 |
+
}
|
124 |
|
125 |
+
$container_format_class = ($args['list_icon'] == "true") ? '' : ' hide-icon';
|
126 |
+
$render_class = empty($args['render']) ? '' : ' ' . sanitize_html_class( $args['render'] );
|
127 |
|
128 |
+
// check post type is valid
|
129 |
+
$registered_post_types = get_post_types();
|
130 |
+
if( !array_key_exists( $args['type'], $registered_post_types ) )
|
131 |
+
return '<h5 style="line-height:1.25em;">Post type \'' . $args['type'] . '\' not recognized.</h5>';
|
|
|
|
|
132 |
|
133 |
+
// ******************
|
134 |
+
// ** OUTPUT START **
|
135 |
+
// ******************
|
|
|
|
|
136 |
|
137 |
+
// Start output caching (so that existing content in the [simple-sitemap] post doesn't get shoved to the bottom of the post
|
138 |
+
ob_start();
|
139 |
|
140 |
+
if($block_err) {
|
141 |
+
return $block_err;
|
142 |
+
}
|
143 |
+
|
144 |
+
// output styles
|
145 |
+
$container = '.simple-sitemap-container-' . $args['id']; // applies styles to tabbed AND normal sitemap
|
146 |
|
147 |
+
echo '<style type="text/css">';
|
148 |
+
if(!empty($args['sitemap_item_line_height']) ) {
|
149 |
+
echo $container . ' .sitemap-item { line-height: ' . $args['sitemap_item_line_height'] . '; } ';
|
150 |
+
}
|
151 |
+
echo $container . ' { margin: ' . $args['sitemap_container_margin'] . '; } ';
|
152 |
+
echo '</style>';
|
153 |
|
154 |
+
$sitemap_id = ' simple-sitemap-container-' . $args['id'];
|
155 |
+
$container_classes = 'simple-sitemap-container' . $sitemap_id. $render_class . $container_format_class;
|
156 |
+
echo '<div class="' . esc_attr($container_classes) . '">';
|
|
|
|
|
|
|
|
|
|
|
157 |
|
158 |
+
// set opening and closing title tag
|
159 |
+
if( !empty($args['title_tag']) ) {
|
160 |
+
$args['title_open'] = '<' . $args['title_tag'] . '>';
|
161 |
+
$args['title_close'] = '</' . $args['title_tag'] . '>';
|
162 |
+
}
|
163 |
+
else {
|
164 |
+
$args['title_open'] = $args['title_close'] = '';
|
165 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
|
167 |
+
$post_type_label = WPGO_Shortcode_Utility::get_post_type_label($args['show_label'], $args['type'], $args['post_type_tag'], '');
|
168 |
|
169 |
+
$list_item_wrapper_class = 'simple-sitemap-wrap' . $render_class;
|
170 |
+
echo $post_type_label;
|
171 |
|
172 |
+
$taxonomy_arr = get_object_taxonomies( $args['type'] );
|
173 |
|
174 |
+
// sort via specified taxonomy
|
175 |
+
if ( !empty($args['tax']) && in_array( $args['tax'], $taxonomy_arr ) ) {
|
176 |
|
177 |
+
$term_attr = array(
|
178 |
+
'orderby' => $args['term_orderby'],
|
179 |
+
'order' => $args['term_order']
|
180 |
+
);
|
181 |
|
182 |
+
// get array of taxonomy terms to include/exclude
|
183 |
+
if( !empty($args['exclude_terms']) ) {
|
184 |
+
$exclude_terms = array_map('trim', explode( ',', $args['exclude_terms'] ));
|
185 |
+
}
|
186 |
|
187 |
+
if( !empty($args['include_terms']) ) {
|
188 |
+
$include_terms = array_map('trim', explode( ',', $args['include_terms'] ));
|
189 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
+
// echo "<pre>";
|
192 |
+
// print_r($include_terms);
|
193 |
+
// print_r($exclude_terms);
|
194 |
+
// echo "</pre>";
|
195 |
|
196 |
+
$terms = get_terms( $args['tax'], $term_attr );
|
197 |
+
foreach ( $terms as $term ) {
|
|
|
|
|
|
|
198 |
|
199 |
+
$tmp = $term->name; //strtolower($term->name);
|
200 |
|
201 |
+
if( !empty($include_terms) && !in_array($tmp, $include_terms) ) {
|
202 |
+
continue; // skip to next loop iteration if the current term is to be included
|
203 |
+
}
|
204 |
|
205 |
+
if( !empty($exclude_terms) && in_array($tmp, $exclude_terms) ) {
|
206 |
+
continue; // skip to next loop iteration if the current term is to be excluded
|
207 |
+
}
|
208 |
|
209 |
+
echo '<div class="' . esc_attr($list_item_wrapper_class) . ' ' . esc_attr(strtolower($term->slug)) . '">';
|
210 |
|
211 |
+
$args['tax_query'] = array(
|
212 |
+
array(
|
213 |
+
'taxonomy' => $args['tax'],
|
214 |
+
'field' => 'slug',
|
215 |
+
'terms' => $term ),
|
216 |
+
);
|
217 |
|
218 |
+
$termName = $term->name;
|
219 |
+
if( $args['taxonomy_links'] == 'true' ) {
|
220 |
+
$termLink = get_term_link($term->slug, $args['tax']);
|
221 |
+
|
222 |
+
// get_term_link() returns WP_Error object if term empty
|
223 |
+
if( !is_wp_error( $termLink ) ) {
|
224 |
+
$termName = '<a href="' . $termLink . '">' . $term->name . '</a>';
|
225 |
+
echo '<' . $args['term_tag'] . '>' . $termName . '</' . $args['term_tag'] . '>';
|
226 |
+
}
|
227 |
+
} else {
|
228 |
+
echo '<' . $args['term_tag'] . ' class="term-tag">' . $termName . '</' . $args['term_tag'] . '>';
|
229 |
+
}
|
230 |
+
$query_args = WPGO_Shortcode_Utility::get_query_args($args, $args['type']);
|
231 |
+
WPGO_Shortcode_Utility::render_list_items($args, $args['type'], $query_args);
|
232 |
}
|
233 |
}
|
234 |
else {
|
235 |
echo "No posts found.";
|
236 |
}
|
237 |
|
238 |
+
echo '</div>'; // .simple-sitemap-container
|
239 |
+
|
240 |
+
// @todo check we still need this
|
241 |
+
echo '<br style="clear: both;">'; // make sure content after the sitemap is rendered properly if taken out
|
242 |
|
243 |
$sitemap = ob_get_contents();
|
244 |
ob_end_clean();
|
245 |
|
246 |
+
// ****************
|
247 |
+
// ** OUTPUT END **
|
248 |
+
// ****************
|
249 |
|
250 |
+
return $sitemap;
|
251 |
+
}
|
252 |
+
}
|
classes/shortcodes/simple-sitemap-shortcode.php
CHANGED
@@ -1,256 +1,261 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
*
|
4 |
*/
|
5 |
|
6 |
class WPGO_Simple_Sitemap_Shortcode {
|
7 |
|
8 |
protected $module_roots;
|
9 |
|
10 |
-
|
11 |
-
|
12 |
|
13 |
$this->module_roots = $module_roots;
|
14 |
-
add_shortcode( 'simple-sitemap', array( &$this, 'render' ) );
|
15 |
|
16 |
-
|
17 |
-
add_filter( 'widget_text', 'shortcode_unautop' );
|
18 |
-
add_filter( 'widget_text', 'do_shortcode' );
|
19 |
}
|
20 |
|
21 |
-
|
22 |
-
public function render($atts) {
|
23 |
|
24 |
/* Get attributes from the shortcode. */
|
25 |
-
$
|
|
|
|
|
26 |
'types' => 'page',
|
27 |
-
'
|
|
|
|
|
28 |
'show_excerpt' => 'false',
|
29 |
-
'
|
|
|
|
|
|
|
30 |
'title_tag' => '',
|
31 |
-
'post_type_tag' => '
|
|
|
32 |
'excerpt_tag' => 'div',
|
33 |
-
'
|
34 |
-
'
|
35 |
-
|
36 |
-
'
|
37 |
-
'
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
// Format attributes as necessary
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
// force 'ul' or 'ol' to be used as the container tag
|
58 |
$allowed_container_tags = array('ul', 'ol');
|
59 |
-
if(!in_array($container_tag, $allowed_container_tags)) {
|
60 |
-
$container_tag = 'ul';
|
61 |
}
|
62 |
|
63 |
-
//
|
64 |
-
|
65 |
-
//print_r($post_types);
|
66 |
-
//print_r($exclude);
|
67 |
-
//print_r($container_tag);
|
68 |
-
//echo "</pre>";
|
69 |
|
70 |
-
|
71 |
-
$
|
72 |
-
$exclude = array_map( 'trim', explode( ',', $exclude) );
|
73 |
|
74 |
-
//
|
75 |
-
|
76 |
-
|
77 |
-
);
|
78 |
-
$registered_post_types = get_post_types($args);
|
79 |
|
80 |
-
// Start output
|
81 |
ob_start();
|
82 |
|
83 |
-
|
|
|
|
|
84 |
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
break;
|
91 |
-
}
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
$title_close = '</' . $title_tag . '>';
|
97 |
-
}
|
98 |
-
else {
|
99 |
-
$title_open = $title_close = '';
|
100 |
-
}
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
$post_type_obj = get_post_type_object( $post_type );
|
105 |
-
$post_type_name = $post_type_obj->labels->name;
|
106 |
-
echo '<' . $post_type_tag . '>' . esc_html($post_type_name) . '</' . $post_type_tag . '>';
|
107 |
-
}
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
'order' => $order,
|
113 |
-
'orderby' => $orderby,
|
114 |
-
'post__not_in' => $exclude
|
115 |
-
);
|
116 |
-
|
117 |
-
// use custom rendering for 'page' post type to properly render sub pages
|
118 |
-
if( $post_type == 'page' ) {
|
119 |
-
$arr = array(
|
120 |
-
'title_tag' => $title_tag,
|
121 |
-
'links' => $links,
|
122 |
-
'title_open' => $title_open,
|
123 |
-
'title_close' => $title_close,
|
124 |
-
'page_depth' => $page_depth,
|
125 |
-
'exclude' => $exclude
|
126 |
-
);
|
127 |
-
echo '<' . $container_tag . ' class="' . esc_attr($container_class) . '">';
|
128 |
-
$this->list_pages($arr, $query_args);
|
129 |
-
echo '</' . $container_tag . '>';
|
130 |
-
continue;
|
131 |
-
}
|
132 |
|
133 |
-
|
134 |
-
|
135 |
|
136 |
-
|
|
|
137 |
|
138 |
-
|
139 |
|
140 |
-
|
141 |
-
|
142 |
|
143 |
-
|
144 |
-
|
145 |
|
146 |
-
|
147 |
-
if ( $links == 'true' ) {
|
148 |
-
$title = $title_open . '<a href="' . esc_url(get_permalink()) . '">' . esc_html($title_text) . '</a>' . $title_close;
|
149 |
-
} else {
|
150 |
-
$title = $title_open . esc_html($title_text) . $title_close;
|
151 |
-
}
|
152 |
-
}
|
153 |
-
else {
|
154 |
-
if ( $links == 'true' ) {
|
155 |
-
$title = $title_open . '<a href="' . esc_url(get_permalink()) . '">' . '(no title)' . '</a>' . $title_close;
|
156 |
-
} else {
|
157 |
-
$title = $title_open . '(no title)' . $title_close;
|
158 |
-
}
|
159 |
-
}
|
160 |
|
161 |
-
|
162 |
-
|
163 |
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
echo $excerpt;
|
168 |
-
echo '</li>';
|
169 |
|
170 |
-
|
|
|
171 |
|
172 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
173 |
|
174 |
-
|
175 |
-
wp_reset_postdata();
|
176 |
|
177 |
-
|
|
|
|
|
|
|
|
|
|
|
178 |
|
179 |
-
|
|
|
|
|
180 |
|
181 |
-
|
|
|
182 |
|
183 |
endforeach;
|
184 |
|
185 |
-
//
|
186 |
-
//
|
187 |
-
// ***********
|
188 |
|
189 |
-
|
190 |
-
ob_end_clean();
|
191 |
|
192 |
-
|
193 |
-
|
194 |
|
195 |
-
|
196 |
-
|
197 |
-
$map_args = array(
|
198 |
-
'title' => 'post_title',
|
199 |
-
'date' => 'post_date',
|
200 |
-
'author' => 'post_author',
|
201 |
-
'modified' => 'post_modified'
|
202 |
-
);
|
203 |
-
|
204 |
-
// modify the query args for get_pages() if necessary
|
205 |
-
$orderby = array_key_exists( $query_args['orderby'], $map_args ) ? $map_args[$query_args['orderby']] : $query_args['orderby'];
|
206 |
-
|
207 |
-
$r = array(
|
208 |
-
'depth' => $arr['page_depth'],
|
209 |
-
'show_date' => '',
|
210 |
-
'date_format' => get_option( 'date_format' ),
|
211 |
-
'child_of' => 0,
|
212 |
-
'exclude' => $arr['exclude'],
|
213 |
-
'echo' => 1,
|
214 |
-
'authors' => '',
|
215 |
-
'sort_column' => $orderby,
|
216 |
-
'sort_order' => $query_args['order'],
|
217 |
-
'link_before' => '',
|
218 |
-
'link_after' => '',
|
219 |
-
'item_spacing' => '',
|
220 |
-
//'walker' => '',
|
221 |
-
);
|
222 |
-
|
223 |
-
$output = '';
|
224 |
-
$current_page = 0;
|
225 |
-
$r['exclude'] = preg_replace( '/[^0-9,]/', '', $r['exclude'] ); // sanitize, mostly to keep spaces out
|
226 |
-
|
227 |
-
// Query pages.
|
228 |
-
$r['hierarchical'] = 0;
|
229 |
-
$pages = get_pages( $r );
|
230 |
-
|
231 |
-
if ( ! empty( $pages ) ) {
|
232 |
-
global $wp_query;
|
233 |
-
if ( is_page() || is_attachment() || $wp_query->is_posts_page ) {
|
234 |
-
$current_page = get_queried_object_id();
|
235 |
-
} elseif ( is_singular() ) {
|
236 |
-
$queried_object = get_queried_object();
|
237 |
-
if ( is_post_type_hierarchical( $queried_object->post_type ) ) {
|
238 |
-
$current_page = $queried_object->ID;
|
239 |
-
}
|
240 |
-
}
|
241 |
-
|
242 |
-
$output .= walk_page_tree( $pages, $r['depth'], $current_page, $r );
|
243 |
-
}
|
244 |
|
245 |
-
//
|
246 |
-
|
247 |
-
|
248 |
|
249 |
-
|
250 |
-
echo $output;
|
251 |
-
} else {
|
252 |
-
return $output;
|
253 |
-
}
|
254 |
}
|
255 |
-
|
256 |
-
} /* End class definition */
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Class for the [simple-sitemap] shortcode
|
4 |
*/
|
5 |
|
6 |
class WPGO_Simple_Sitemap_Shortcode {
|
7 |
|
8 |
protected $module_roots;
|
9 |
|
10 |
+
/* Main class constructor. */
|
11 |
+
public function __construct($module_roots) {
|
12 |
|
13 |
$this->module_roots = $module_roots;
|
|
|
14 |
|
15 |
+
add_shortcode( 'simple-sitemap', array( 'WPGO_Simple_Sitemap_Shortcode', 'render' ) );
|
|
|
|
|
16 |
}
|
17 |
|
18 |
+
public static function render($attr) {
|
|
|
19 |
|
20 |
/* Get attributes from the shortcode. */
|
21 |
+
$args = shortcode_atts( array(
|
22 |
+
'id' => uniqid(), // unique identifier to avoid conflicts if using multiple sitemaps on the same page. e.g. 5d026c6168954
|
23 |
+
'render' => '',
|
24 |
'types' => 'page',
|
25 |
+
'orderby' => 'title',
|
26 |
+
'order' => 'asc',
|
27 |
+
'page_depth' => 0,
|
28 |
'show_excerpt' => 'false',
|
29 |
+
'show_label' => 'true',
|
30 |
+
'links' => 'true',
|
31 |
+
|
32 |
+
// following attributes don't have block support yet
|
33 |
'title_tag' => '',
|
34 |
+
'post_type_tag' => 'h3',
|
35 |
+
'container_tag' => 'ul',
|
36 |
'excerpt_tag' => 'div',
|
37 |
+
'shortcode_type' => 'normal', // only used internally?
|
38 |
+
'parent_page_link' => '1', // is this used anymore
|
39 |
+
// attributes below are only relevant to sitemap block
|
40 |
+
'gutenberg_block' => false,
|
41 |
+
'block_post_types' => '',
|
42 |
+
'render_tab' => false,
|
43 |
+
'post_type_label_font_size' => '1em',
|
44 |
+
'sitemap_item_line_height' => '',
|
45 |
+
'sitemap_container_margin' => '1em 0 0 0',
|
46 |
+
'responsive_breakpoint' => '500px',
|
47 |
+
'max_width' => '',
|
48 |
+
'post_type_label_padding' => '10px 20px',
|
49 |
+
'tab_header_bg' => '#de5737',
|
50 |
+
'tab_color' => '#ffffff',
|
51 |
+
// delete from free plugin
|
52 |
+
'include' => '',
|
53 |
+
'exclude' => '',
|
54 |
+
'image' => 'false',
|
55 |
+
'list_icon' => 'true',
|
56 |
+
'nofollow' => 'false',
|
57 |
+
'visibility' => 'true',
|
58 |
+
'horizontal' => 'false', // great for adding to footer
|
59 |
+
'horizontal_separator' => ', ',
|
60 |
+
'num_posts' => -1,
|
61 |
+
'separator' => 'false'
|
62 |
+
), $attr );
|
63 |
+
|
64 |
+
// defaults
|
65 |
+
$args['title_tag'] = '';
|
66 |
+
$args['post_type_tag'] = 'h3';
|
67 |
+
$args['container_tag'] = 'ul';
|
68 |
+
$args['excerpt_tag'] = 'div';
|
69 |
+
$args['post_type_label_font_size'] = '1em';
|
70 |
+
$args['sitemap_item_line_height'] = '';
|
71 |
+
$args['sitemap_container_margin'] = '1em 0 0 0';
|
72 |
+
$args['responsive_breakpoint'] = '500px';
|
73 |
+
$args['max_width'] = '';
|
74 |
+
$args['post_type_label_padding'] = '10px 20px';
|
75 |
+
$args['tab_header_bg'] = '#de5737';
|
76 |
+
$args['tab_color'] = '#ffffff';
|
77 |
+
$args['include'] = '';
|
78 |
+
$args['exclude'] = '';
|
79 |
+
$args['image'] = 'false';
|
80 |
+
$args['list_icon'] = 'true';
|
81 |
+
$args['nofollow'] = 'false';
|
82 |
+
$args['visibility'] = 'true';
|
83 |
+
$args['horizontal'] = 'false';
|
84 |
+
$args['horizontal_separator'] = ', ';
|
85 |
+
$args['num_posts'] = -1;
|
86 |
+
$args['separator'] = 'false';
|
87 |
+
|
88 |
+
// escape tag names
|
89 |
+
$args['container_tag'] = tag_escape( $args['container_tag'] );
|
90 |
+
$args['title_tag'] = tag_escape( $args['title_tag'] );
|
91 |
+
$args['excerpt_tag'] = tag_escape( $args['excerpt_tag'] );
|
92 |
+
$args['post_type_tag'] = tag_escape( $args['post_type_tag'] );
|
93 |
+
|
94 |
+
$block_err = '';
|
95 |
|
96 |
// Format attributes as necessary
|
97 |
|
98 |
+
// if we are rendering a block then parse block attributes
|
99 |
+
if($args['gutenberg_block'] === true) {
|
100 |
+
|
101 |
+
// setup block types coming from block
|
102 |
+
$args['types'] = '';
|
103 |
+
$block_cpts = json_decode($args['block_post_types']);
|
104 |
+
if(empty($block_cpts)) {
|
105 |
+
$block_err = '<h5>Please select one or more post types in the sitemap inspector panel.</h5>';
|
106 |
+
} else {
|
107 |
+
foreach($block_cpts as $cpt) {
|
108 |
+
$args['types'] .= $cpt->value . ', ';
|
109 |
+
}
|
110 |
+
}
|
111 |
+
|
112 |
+
// enable tabs depending on block settings
|
113 |
+
if( $args['render_tab'] === true ) {
|
114 |
+
$args['render'] = 'tab';
|
115 |
+
}
|
116 |
+
|
117 |
+
// sanitize post_type_label_font_size
|
118 |
+
$args['post_type_label_font_size'] = sanitize_text_field($args['post_type_label_font_size']);
|
119 |
+
|
120 |
+
// sanitize sitemap_item_line_height
|
121 |
+
$args['sitemap_item_line_height'] = sanitize_text_field($args['sitemap_item_line_height']);
|
122 |
+
|
123 |
+
// sanitize sitemap_container_margin
|
124 |
+
$args['sitemap_container_margin'] = sanitize_text_field($args['sitemap_container_margin']);
|
125 |
+
|
126 |
+
// sanitize post_type_label_padding
|
127 |
+
$args['post_type_label_padding'] = sanitize_text_field($args['post_type_label_padding']);
|
128 |
+
|
129 |
+
// sanitize responsive_breakpoint
|
130 |
+
$args['responsive_breakpoint'] = sanitize_text_field($args['responsive_breakpoint']);
|
131 |
+
|
132 |
+
// sanitize max_width
|
133 |
+
$args['max_width'] = sanitize_text_field($args['max_width']);
|
134 |
+
|
135 |
+
// sanitize color picker hex values
|
136 |
+
$args['tab_header_bg'] = sanitize_hex_color($args['tab_header_bg']);
|
137 |
+
$args['tab_color'] = sanitize_hex_color($args['tab_color']);
|
138 |
+
}
|
139 |
+
|
140 |
// force 'ul' or 'ol' to be used as the container tag
|
141 |
$allowed_container_tags = array('ul', 'ol');
|
142 |
+
if(!in_array($args['container_tag'], $allowed_container_tags)) {
|
143 |
+
$args['container_tag'] = 'ul';
|
144 |
}
|
145 |
|
146 |
+
// validate numeric values
|
147 |
+
$args['page_depth'] = intval( $args['page_depth'] );
|
|
|
|
|
|
|
|
|
148 |
|
149 |
+
$container_format_class = ($args['list_icon'] == "true") ? '' : ' hide-icon';
|
150 |
+
$render_class = empty($args['render']) ? ' tab-disabled' : ' tab-enabled';
|
|
|
151 |
|
152 |
+
// ******************
|
153 |
+
// ** OUTPUT START **
|
154 |
+
// ******************
|
|
|
|
|
155 |
|
156 |
+
// Start output buffering (so that existing content in the [simple-sitemap] post doesn't get shoved to the bottom of the post
|
157 |
ob_start();
|
158 |
|
159 |
+
if($block_err) {
|
160 |
+
return $block_err;
|
161 |
+
}
|
162 |
|
163 |
+
// output styles
|
164 |
+
$container = '.simple-sitemap-container-' . $args['id']; // applies styles to tabbed AND normal sitemap
|
165 |
+
$container_tab = $container . '.tab-enabled'; // applies styles ONLY to tabbed sitemap
|
166 |
+
echo '<style type="text/css">';
|
167 |
+
echo $container_tab . ' .panel { border-top: 4px solid ' . $args['tab_header_bg'] . '; } ';
|
168 |
+
echo $container_tab . ' input:checked + label { background-color: ' . $args['tab_header_bg'] . '; } ';
|
169 |
+
echo $container_tab . ' input:checked + label > * { color: ' . $args['tab_color'] . '; } ';
|
170 |
+
echo $container_tab . ' { max-width: ' . $args['max_width'] . '; }';
|
171 |
+
if(!empty($args['sitemap_item_line_height']) ) {
|
172 |
+
echo $container . ' .sitemap-item { line-height: ' . $args['sitemap_item_line_height'] . '; } ';
|
173 |
+
}
|
174 |
+
echo $container . ' { margin: ' . $args['sitemap_container_margin'] . '; } ';
|
175 |
+
echo '</style>';
|
176 |
|
177 |
+
$post_types = array_map( 'trim', explode( ',', $args['types'] ) ); // convert comma separated string to array
|
178 |
+
$registered_post_types = get_post_types();
|
|
|
|
|
179 |
|
180 |
+
$sitemap_id = ' simple-sitemap-container-' . $args['id'];
|
181 |
+
$container_classes = 'simple-sitemap-container' . $sitemap_id . $render_class . $container_format_class;
|
182 |
+
echo '<div class="' . esc_attr($container_classes) . '">';
|
|
|
|
|
|
|
|
|
|
|
183 |
|
184 |
+
// conditionally output tab headers
|
185 |
+
if( $args['render'] == 'tab' ):
|
|
|
|
|
|
|
|
|
186 |
|
187 |
+
// create tab headers
|
188 |
+
$header_tab_index = 1; // initialize to 1
|
189 |
+
foreach( $post_types as $post_type ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
|
191 |
+
if( !array_key_exists( $post_type, $registered_post_types ) )
|
192 |
+
break; // bail if post type isn't valid
|
193 |
|
194 |
+
$checked = $header_tab_index === 1 ? 'checked' : '';
|
195 |
+
$post_type_label = WPGO_Shortcode_Utility::get_post_type_label($args['show_label'], $post_type, $args['post_type_tag'], '');
|
196 |
|
197 |
+
$post_type_label_styles = WPGO_Shortcode_Utility::get_post_type_label_styles($args['post_type_label_padding']);
|
198 |
|
199 |
+
echo '<input type="radio" name="tab-' . $args['id'] . '" id="simple-sitemap-tab-' . $header_tab_index . '-' . $args['id'] . '" ' . $checked . '>
|
200 |
+
<label' . $post_type_label_styles . ' for="simple-sitemap-tab-' . $header_tab_index . '-' . $args['id'] . '">' . $post_type_label . '</label>';
|
201 |
|
202 |
+
$header_tab_index++;
|
203 |
+
}
|
204 |
|
205 |
+
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
207 |
+
// tab panel wrapper - open
|
208 |
+
if( $args['render'] == 'tab' ) { echo '<div class="simple-sitemap-content">'; }
|
209 |
|
210 |
+
// conditionally create tab panels
|
211 |
+
$header_tab_index = 1; // reset to 1
|
212 |
+
foreach( $post_types as $post_type ) :
|
|
|
|
|
213 |
|
214 |
+
if( !array_key_exists( $post_type, $registered_post_types ) )
|
215 |
+
break; // bail if post type isn't valid
|
216 |
|
217 |
+
// set opening and closing title tag
|
218 |
+
if( !empty($args['title_tag']) ) {
|
219 |
+
$args['title_open'] = '<' . $args['title_tag'] . '>';
|
220 |
+
$args['title_close'] = '</' . $args['title_tag'] . '>';
|
221 |
+
}
|
222 |
+
else {
|
223 |
+
$args['title_open'] = $args['title_close'] = '';
|
224 |
+
}
|
225 |
|
226 |
+
$post_type_label = WPGO_Shortcode_Utility::get_post_type_label($args['show_label'], $post_type, $args['post_type_tag'], '');
|
|
|
227 |
|
228 |
+
// tab panel wrapper - open
|
229 |
+
if( $args['render'] == 'tab' ) {
|
230 |
+
$list_item_wrapper_class = 'simple-sitemap-wrap simple-sitemap-tab-' . $header_tab_index . ' panel';
|
231 |
+
} else {
|
232 |
+
$list_item_wrapper_class = 'simple-sitemap-wrap';
|
233 |
+
}
|
234 |
|
235 |
+
$header_tab_index++;
|
236 |
+
echo '<div class="' . esc_attr($list_item_wrapper_class) . '">';
|
237 |
+
if( $args['render'] != 'tab' ) echo $post_type_label;
|
238 |
|
239 |
+
$query_args = WPGO_Shortcode_Utility::get_query_args($args, $post_type);
|
240 |
+
WPGO_Shortcode_Utility::render_list_items($args, $post_type, $query_args);
|
241 |
|
242 |
endforeach;
|
243 |
|
244 |
+
// tab panel wrapper - close
|
245 |
+
if( $args['render'] == 'tab' ) { echo '</div>'; } // .simple-sitemap-content
|
|
|
246 |
|
247 |
+
echo '</div>'; // .simple-sitemap-container
|
|
|
248 |
|
249 |
+
// @todo check we still need this
|
250 |
+
echo '<br style="clear: both;">'; // make sure content after the sitemap is rendered properly if taken out
|
251 |
|
252 |
+
$sitemap = ob_get_contents();
|
253 |
+
ob_end_clean();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
|
255 |
+
// ****************
|
256 |
+
// ** OUTPUT END **
|
257 |
+
// ****************
|
258 |
|
259 |
+
return $sitemap;
|
|
|
|
|
|
|
|
|
260 |
}
|
261 |
+
}
|
|
classes/simple-sitemap-settings.php
DELETED
@@ -1,217 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
* Plugins options page
|
4 |
-
*/
|
5 |
-
|
6 |
-
class WPGO_Simple_Sitemap_Settings {
|
7 |
-
|
8 |
-
protected $module_roots;
|
9 |
-
|
10 |
-
/* Main class constructor. */
|
11 |
-
public function __construct($module_roots) {
|
12 |
-
|
13 |
-
$this->module_roots = $module_roots;
|
14 |
-
|
15 |
-
add_action( 'admin_init', array( &$this, 'init' ) );
|
16 |
-
add_action( 'admin_menu', array( &$this, 'add_options_page' ) );
|
17 |
-
}
|
18 |
-
|
19 |
-
/* Init plugin options to white list our options. */
|
20 |
-
public function init() {
|
21 |
-
register_setting( 'wpss_plugin_options', 'wpss_options', array( &$this, 'validate_options' ) );
|
22 |
-
}
|
23 |
-
|
24 |
-
/* Sanitize and validate input. Accepts an array, return a sanitized array. */
|
25 |
-
public function validate_options( $input ) {
|
26 |
-
// Strip html from textboxes
|
27 |
-
// e.g. $input['textbox'] = wp_filter_nohtml_kses($input['textbox']);
|
28 |
-
//$input['txt_page_ids'] = sanitize_text_field( $input['txt_page_ids'] );
|
29 |
-
|
30 |
-
return $input;
|
31 |
-
}
|
32 |
-
|
33 |
-
/* Add menu page. */
|
34 |
-
public function add_options_page() {
|
35 |
-
add_options_page( __( 'Simple Sitemap Settings Page', 'simple-sitemap' ), __( 'Simple Sitemap', 'simple-sitemap' ), 'manage_options', __FILE__, array( &$this, 'render_form' ) );
|
36 |
-
}
|
37 |
-
|
38 |
-
/* Draw the menu page itself. */
|
39 |
-
public function render_form() {
|
40 |
-
?>
|
41 |
-
<div class="wrap">
|
42 |
-
|
43 |
-
<h2 style="float:left;"><?php _e( 'Welcome to Simple Sitemap!', 'simple-sitemap' ); ?></h2>
|
44 |
-
<div style="float:right;margin-top:5px;padding:10px 12px;"><a style="text-decoration:none;" title="Check out some of our other plugins" alt="WPGO Plugins Site" href="https://wpgoplugins.com/" target="_blank">wpgoplugins.com</a></div>
|
45 |
-
|
46 |
-
<div style="clear:both;"></div>
|
47 |
-
|
48 |
-
<div style="margin:20px 0 10px;font-size:14px;line-height:1.4em;">What type of sitemap will you create today? There are just so many different types of sitemap to choose from. That's why we recommend checking out the <a href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">live demo</a> page to start with to see all the different types of sitemap available!</div>
|
49 |
-
|
50 |
-
<div><a class="plugin-btn" href="http://demo.wpgothemes.com/flexr/simple-sitemap-pro-demo/" target="_blank">Launch Sitemap Demo</a></div>
|
51 |
-
|
52 |
-
<h2 style="margin:25px 0 0 0;">Sitemap Shortcodes & Attributes</h2>
|
53 |
-
<div class="ss-box" style="margin-top:30px;">
|
54 |
-
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Available Shortcodes</h4><button id="shortcodes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
55 |
-
|
56 |
-
<div id="shortcodes-wrap">
|
57 |
-
<p style="margin:15px 0 0 0;"><code>[simple-sitemap]</code> <?php printf( __( 'Display a list of posts for one or more post types.<br><br>', 'simple-sitemap' ) ); ?>
|
58 |
-
</p>
|
59 |
-
<p style="margin:0;"><code>[simple-sitemap-group]</code> <?php printf( __( 'Display a list of posts grouped category, OR tags.<br><br>', 'simple-sitemap' ) ); ?>
|
60 |
-
</p>
|
61 |
-
|
62 |
-
<p style="margin:0;"><code>[simple-sitemap-menu]</code> <span class="pro" title="Shortcode available in Simple Sitemap Pro"><a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">PRO</a></span> <?php printf( __( 'Displays a sitemap based on a nav menu.<br><br>', 'simple-sitemap' ) ); ?>
|
63 |
-
</p>
|
64 |
-
|
65 |
-
<p style="margin:0;"><code>[simple-sitemap-tax]</code> <span class="pro" title="Shortcode available in Simple Sitemap Pro"><a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">PRO</a></span> <?php printf( __( 'Display a list of post categories (or ANY other registered taxonomies) with various options available such as post count.<br><br>', 'simple-sitemap' ) ); ?>
|
66 |
-
</p>
|
67 |
-
|
68 |
-
<p style="margin:0 0 40px 0;"><code>[simple-sitemap-child]</code> <span class="pro" title="Shortcode available in Simple Sitemap Pro"><a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">PRO</a></span> <?php printf( __( 'Display a list of child pages for a specific parent page.', 'simple-sitemap' ) ); ?>
|
69 |
-
</p>
|
70 |
-
</div>
|
71 |
-
</div>
|
72 |
-
|
73 |
-
<?php $pro_attribute = '<span class="pro" title="Shortcode attribute available in Simple Sitemap Pro"><a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">PRO</a></span>'; ?>
|
74 |
-
|
75 |
-
<div class="ss-box">
|
76 |
-
<h4 style="margin-top:5px;display:inline-block;margin-bottom:10px;">Shortcode Attributes & Default Values</h4><button id="attributes-btn" class="button">Expand <span style="vertical-align:sub;width:16px;height:16px;font-size:16px;" class="dashicons dashicons-arrow-down-alt2"></span></button>
|
77 |
-
<div id="attributes-wrap">
|
78 |
-
<p>Note: Default values are always used for missing shortcode attributes. i.e. Override only the values you want to change.</p>
|
79 |
-
<p style="margin:20px 0 0 0;"><code><b>[simple-sitemap ... ]</b></code></p>
|
80 |
-
<ul class="shortcode-attributes">
|
81 |
-
<li><code>types="page"</code> - List of posts for each post type specified, in the order entered.</li>
|
82 |
-
<li><code>page_depth="0"</code> - For the 'page' post type allow the indentation depth to be specified.</li>
|
83 |
-
<li><code>title_tag=""</code> - Tag used to wrap each sitemap item in a specified tag.</li>
|
84 |
-
<li><code>post_type_tag="h2"</code> - Tag used to display the post type label.</li>
|
85 |
-
<li><code>orderby="title"</code> - Value to sort posts by (title, date, author etc.). See the full list <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">here</a>.</li>
|
86 |
-
<li><code>order="asc"</code> - List posts for each post type in ascending, or descending order.</li>
|
87 |
-
<li><code>show_excerpt="true"</code> - Optionally show post excerpt (if defined) under each sitemap item.</li>
|
88 |
-
<li><code>excerpt_tag=""</code> - Tag used to wrap the post excerpt text.</li>
|
89 |
-
<li><code>exclude=""</code> - Comma separated list of post IDs to exclude from the sitemap.</li>
|
90 |
-
<li><code>show_label="true"</code> - Optionally show post type label above the sitemap list of posts.</li>
|
91 |
-
<li><code>links="true"</code> - Show sitemap items as links or plain text.</li>
|
92 |
-
<li><code>container_tag="ul"</code> - List type tag, ordered, or unordered.</li>
|
93 |
-
<li><code>include=""</code> <?php echo $pro_attribute; ?> - Comma separated list of post IDs to INCLUDE in the sitemap only. Other posts will be ignored.</li>
|
94 |
-
<li><code>render=""</code> <?php echo $pro_attribute; ?> - Set to "tab" to display posts in a tabbed layout!</li>
|
95 |
-
<li><code>image="false"</code> <?php echo $pro_attribute; ?> - Optionally show the post featured image (if defined) next to each sitemap item.</li>
|
96 |
-
<li><code>list_icon="true"</code> <?php echo $pro_attribute; ?> - Optionally display HTML bullet icons.</li>
|
97 |
-
<li><code>separator="false"</code> <?php echo $pro_attribute; ?> - Optionally render separator lines inbetween sitemap items.</li>
|
98 |
-
<li><code>id="1"</code> <?php echo $pro_attribute; ?> - If multiple tabbed sitemaps displayed this attribute is useful to avoid CSS id conflicts.</li>
|
99 |
-
<li><code>horizontal="false"</code> <?php echo $pro_attribute; ?> - Set to "true" to display sitemap items in a flat horizontal list. Great for adding a sitemap to the footer!</li>
|
100 |
-
<li><code>horizontal_separator=", "</code> <?php echo $pro_attribute; ?> - The character(s) used to separate sitemap items. Use with the 'horizontal' attribute.</li>
|
101 |
-
<li><code>nofollow="0"</code> <?php echo $pro_attribute; ?> - Set to "1" to make sitemap links <a href="https://en.wikipedia.org/wiki/Nofollow" target="_blank">nofollow</a>.</li>
|
102 |
-
<li><code>numposts="-1"</code> <?php echo $pro_attribute; ?> - Limit the number of posts outputted in the sitemap.</li>
|
103 |
-
<li><code>visibility="all"</code> <?php echo $pro_attribute; ?> - Control whether private posts/pages are displayed in the sitemap.</li>
|
104 |
-
</ul>
|
105 |
-
|
106 |
-
<p style="margin:30px 0 0 0;"><code><b>[simple-sitemap-group ... ]</b></code></p>
|
107 |
-
|
108 |
-
<ul class="shortcode-attributes">
|
109 |
-
<li><code>tax="category"</code> - List posts grouped by categories OR tags ('post_tag').</li>
|
110 |
-
<li><code>title_tag=""</code> - Tag used to wrap each sitemap item in a specified tag.</li>
|
111 |
-
<li><code>show_excerpt="true"</code> - Optionally show post excerpt (if defined) under each sitemap item.</li>
|
112 |
-
<li><code>excerpt_tag=""</code> - Tag used to wrap the post excerpt text.</li>
|
113 |
-
<li><code>links="true"</code> - Show sitemap items as links or plain text.</li>
|
114 |
-
<li><code>orderby="title"</code> - Value to sort posts by (title, date, author etc.). See the full list <a href="https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">here</a>.</li>
|
115 |
-
<li><code>order="asc"</code> - List posts for each post type in ascending, or descending order.</li>
|
116 |
-
<li><code>term_orderby="title"</code> - Order post taxonomy term labels by title etc.</li>
|
117 |
-
<li><code>term_order="asc"</code> - List taxonomy term labels in ascending, or descending order.</li>
|
118 |
-
<li><code>exclude=""</code> - Comma separated list of post IDs to exclude from the sitemap.</li>
|
119 |
-
<li><code>post_type_tag="h2"</code> - Tag used to display the post type label.</li>
|
120 |
-
<li><code>show_label="true"</code> - Optionally show post type label above the sitemap list of posts.</li>
|
121 |
-
<li><code>page_depth="0"</code> - For the 'page' post type allow the indentation depth to be specified.</li>
|
122 |
-
<li><code>container_tag="ul"</code> - List type tag, ordered, or unordered.</li>
|
123 |
-
<li><code>type="post"</code> <?php echo $pro_attribute; ?> - List posts grouped by taxonomy from ANY post type.</li>
|
124 |
-
<li><code>separator="false"</code> <?php echo $pro_attribute; ?> - Optionally render separator lines inbetween sitemap items.</li>
|
125 |
-
<li><code>image="false"</code> <?php echo $pro_attribute; ?> - Optionally show the post featured image (if defined) next to each sitemap item.</li>
|
126 |
-
<li><code>list_icon="true"</code> <?php echo $pro_attribute; ?> - Optionally display HTML bullet icons.</li>
|
127 |
-
<li><code>include_terms=""</code> <?php echo $pro_attribute; ?> - Comma separated list of taxonomy terms to include.</li>
|
128 |
-
<li><code>exclude_terms=""</code> <?php echo $pro_attribute; ?> - Comma separated list of taxonomy terms to exclude.</li>
|
129 |
-
<li><code>visibility="all"</code> <?php echo $pro_attribute; ?> - Control whether private posts/pages are displayed in the sitemap.</li>
|
130 |
-
<li><code>id="1"</code> <?php echo $pro_attribute; ?> - If multiple tabbed sitemaps displayed this attribute is useful to avoid CSS id conflicts.</li>
|
131 |
-
<li><code>numposts="-1"</code> <?php echo $pro_attribute; ?> - Limit the number of posts outputted in the sitemap.</li>
|
132 |
-
<li><code>render=""</code> <?php echo $pro_attribute; ?> - Set to "tab" to display posts in a tabbed layout!</li>
|
133 |
-
<li><code>horizontal="false"</code> <?php echo $pro_attribute; ?> - Set to "true" to display sitemap items in a flat horizontal list. Great for adding a sitemap to the footer!</li>
|
134 |
-
<li><code>horizontal_separator=", "</code> <?php echo $pro_attribute; ?> - The character(s) used to separate sitemap items. Use with the 'horizontal' attribute.</li>
|
135 |
-
<li><code>nofollow="0"</code> <?php echo $pro_attribute; ?> - Set to "1" to make sitemap links <a href="https://en.wikipedia.org/wiki/Nofollow" target="_blank">nofollow</a>.</li>
|
136 |
-
</ul>
|
137 |
-
|
138 |
-
<br><hr><br><?php printf( __( 'The following (public) registered post types are available: ', 'simple-sitemap' ) ); ?>
|
139 |
-
<?php
|
140 |
-
$post_type_args = array(
|
141 |
-
'public' => true
|
142 |
-
);
|
143 |
-
$registered_post_types = get_post_types($post_type_args);
|
144 |
-
$registered_post_types_str = implode(', ', $registered_post_types);
|
145 |
-
echo '<code>"' . $registered_post_types_str . '"</code>';
|
146 |
-
?><br><br>
|
147 |
-
</div>
|
148 |
-
</div>
|
149 |
-
|
150 |
-
<div style="margin-top:15px;"></div>
|
151 |
-
|
152 |
-
<table class="form-table">
|
153 |
-
|
154 |
-
<tr valign="top">
|
155 |
-
<th scope="row">Like the plugin?</th>
|
156 |
-
<td>
|
157 |
-
<p>Then why not try <a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">Simple Sitemap Pro</a> to access powerful additional features. Try risk free today with our <span style="font-weight: bold;">100% money back guarantee!</span></p>
|
158 |
-
<div><a class="plugin-btn" target="_blank" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/">Upgrade to Pro</a></div>
|
159 |
-
</td>
|
160 |
-
</tr>
|
161 |
-
|
162 |
-
<tr valign="top">
|
163 |
-
<th scope="row">Help support this plugin</th>
|
164 |
-
<td>
|
165 |
-
<div style="float:left;"><a style="margin-right:10px;line-height:0;display:block;" href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank"><img style="box-shadow:0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);width:75px;border-radius:2px;border:2px white solid;" src="<?php echo plugins_url(); ?>/simple-sitemap/images/david.png"></a></div>
|
166 |
-
<p style="margin-top:0;">Hi there, I'm David. I spend a lot of time developing FREE WordPress plugins like this one. If you like Simple Sitemap and use it on your website please consider making a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=FBAG4ZHA4TTUC" target="_blank">donation</a>, or purchase the <a href="https://wpgoplugins.com/plugins/simple-sitemap-pro/" target="_blank">pro version</a>, to help fund continued development (and to keep Dexter in doggy biscuits!).</p>
|
167 |
-
</td>
|
168 |
-
</tr>
|
169 |
-
|
170 |
-
<tr valign="top">
|
171 |
-
<th scope="row">Try our other top plugins!</th>
|
172 |
-
<td>
|
173 |
-
<table class="other-plugins-tbl">
|
174 |
-
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/flexible-faqs/" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/flexible-faq-thumb.png"></a></td></tr>
|
175 |
-
<tr><td class="plugin-text-link"><div><h3><a href="https://wpgoplugins.com/plugins/flexible-faqs/" target="_blank">Flexible FAQs</a></h3></div></td></tr>
|
176 |
-
</table>
|
177 |
-
<table class="other-plugins-tbl">
|
178 |
-
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/content-censor/" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/content-censor-thumb.png"></a></td></tr>
|
179 |
-
<tr><td class="plugin-text-link"><div><h3><a href="https://wpgoplugins.com/plugins/content-censor/" target="_blank">Content Censor</a></h3></div></td></tr>
|
180 |
-
</table>
|
181 |
-
<table class="other-plugins-tbl">
|
182 |
-
<tr><td><a class="plugin-image-link" href="https://wpgoplugins.com/plugins/seo-media-manager/" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/seo-media-manager-thumb.png"></a></td></tr>
|
183 |
-
<tr><td class="plugin-text-link"><div><h3><a href="https://wpgoplugins.com/plugins/seo-media-manager/" target="_blank">SEO Media Manager</a></h3></div></td></tr>
|
184 |
-
</table>
|
185 |
-
</td>
|
186 |
-
</tr>
|
187 |
-
|
188 |
-
<tr valign="top">
|
189 |
-
<th scope="row">Read all about it!</th>
|
190 |
-
<td>
|
191 |
-
<p>Subscribe to our newsletter for news and updates about the latest development work. Be the first to find out about future projects and exclusive promotions.</p>
|
192 |
-
<div><a class="plugin-btn" target="_blank" href="http://eepurl.com/bXZmmD">Sign Me Up!</a></div>
|
193 |
-
</td>
|
194 |
-
</tr>
|
195 |
-
|
196 |
-
<tr valign="top">
|
197 |
-
<th scope="row">Keep in touch...</th>
|
198 |
-
<td>
|
199 |
-
<div><p style="margin-bottom:10px;">Come and say hello. I'd love to hear from you!</p>
|
200 |
-
<span><a class="social-link" href="http://www.twitter.com/dgwyer" title="Follow us on Twitter" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/twitter.png" /></a></span>
|
201 |
-
<span><a class="social-link" href="https://www.facebook.com/wpgoplugins/" title="Our Facebook page" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/facebook.png" /></a></span>
|
202 |
-
<span><a class="social-link" href="https://www.youtube.com/channel/UCWzjTLWoyMgtIfpDgJavrTg" title="View our YouTube channel" target="_blank"><img src="<?php echo plugins_url(); ?>/simple-sitemap/images/yt.png" /></a></span>
|
203 |
-
<span><a style="text-decoration:none;" title="Need help with ANY aspect of WordPress? We're here to help!" href="https://wpgoplugins.com/need-help-with-wordpress/" target="_blank"><span style="margin-left:-2px;color:#d41515;font-size:39px;line-height:32px;width:39px;height:39px;" class="dashicons dashicons-sos"></span></a></span>
|
204 |
-
</div>
|
205 |
-
</td>
|
206 |
-
</tr>
|
207 |
-
|
208 |
-
<tr><td colspan="2" style="padding:0;"><div style="margin-bottom:20px;margin-top:15px;">Please <a href="https://wpgoplugins.com/contact" target="_blank">report</a> any plugin issues, or suggest additional features. <span style="font-weight:bold;">All feedback welcome!</span></div>
|
209 |
-
</td></tr>
|
210 |
-
|
211 |
-
</table>
|
212 |
-
|
213 |
-
</div>
|
214 |
-
<?php
|
215 |
-
}
|
216 |
-
|
217 |
-
} /* End class definition */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/simple-sitemap-admin.css
DELETED
@@ -1,203 +0,0 @@
|
|
1 |
-
/* Admin settings page styles. */
|
2 |
-
|
3 |
-
.wrap a, .wrap a:visited {
|
4 |
-
color: #388d8c;
|
5 |
-
}
|
6 |
-
.wrap a:hover {
|
7 |
-
color: #59afad;
|
8 |
-
}
|
9 |
-
|
10 |
-
.wrap .plugin-btn {
|
11 |
-
display: inline-block;
|
12 |
-
padding: 7px 7px;
|
13 |
-
margin: 15px 0 0 0;
|
14 |
-
font-size: 16px;
|
15 |
-
background: #279a97bf;
|
16 |
-
border: 2px #237976a1 solid;
|
17 |
-
border-radius: 2px;
|
18 |
-
color: #fff;
|
19 |
-
text-decoration: none;
|
20 |
-
}
|
21 |
-
.wrap .plugin-btn:hover, .wrap .plugin-btn:visited {
|
22 |
-
color: #fff;
|
23 |
-
}
|
24 |
-
|
25 |
-
.pro {
|
26 |
-
background: #f5d53e;
|
27 |
-
margin: 0 0 0 0;
|
28 |
-
padding: 1px 3px;
|
29 |
-
font-weight: bold;
|
30 |
-
border-radius: 2px;
|
31 |
-
font-size: 10px;
|
32 |
-
color: #151515;
|
33 |
-
}
|
34 |
-
|
35 |
-
.wrap .pro a {
|
36 |
-
color: #151515;
|
37 |
-
text-decoration: none;
|
38 |
-
}
|
39 |
-
|
40 |
-
.shortcode-attributes {
|
41 |
-
list-style-type:disc;
|
42 |
-
}
|
43 |
-
|
44 |
-
.shortcode-attributes li {
|
45 |
-
margin-left: 25px;
|
46 |
-
}
|
47 |
-
|
48 |
-
.ss-box {
|
49 |
-
background:#fff;
|
50 |
-
border: 1px dashed #ccc;
|
51 |
-
font-size: 13px;
|
52 |
-
margin: 20px 0 10px 0;
|
53 |
-
padding: 10px 10px 5px 10px;
|
54 |
-
}
|
55 |
-
|
56 |
-
#shortcodes-wrap, #attributes-wrap {
|
57 |
-
display: none;
|
58 |
-
}
|
59 |
-
|
60 |
-
.social-link {
|
61 |
-
display: inline-block;
|
62 |
-
line-height: 0;
|
63 |
-
}
|
64 |
-
|
65 |
-
#attributes-btn, #shortcodes-btn {
|
66 |
-
margin-left: 20px;
|
67 |
-
}
|
68 |
-
|
69 |
-
/* Other wpgoplugins.com styles */
|
70 |
-
|
71 |
-
.other-plugins-tbl {
|
72 |
-
display: inline-table;
|
73 |
-
}
|
74 |
-
|
75 |
-
.plugin-image-link {
|
76 |
-
line-height: 0;
|
77 |
-
display: block;
|
78 |
-
width: 144px;
|
79 |
-
}
|
80 |
-
|
81 |
-
.wrap .plugin-text-link {
|
82 |
-
padding: 0;
|
83 |
-
width: 144px;
|
84 |
-
}
|
85 |
-
|
86 |
-
.plugin-text-link div {
|
87 |
-
text-align: center;
|
88 |
-
margin: 0;
|
89 |
-
}
|
90 |
-
|
91 |
-
.plugin-text-link h3 {
|
92 |
-
margin: 0;
|
93 |
-
font-size: 15px;
|
94 |
-
margin-top: -5px;
|
95 |
-
}
|
96 |
-
|
97 |
-
.plugin-text-link a {
|
98 |
-
text-decoration: none;
|
99 |
-
}
|
100 |
-
|
101 |
-
.other-plugins-tbl img {
|
102 |
-
box-shadow: 0 10px 16px 0 rgba(0,0,0,0.1), 0 6px 20px 0 rgba(0,0,0,0.19);
|
103 |
-
width: 140px;
|
104 |
-
border-radius: 5px;
|
105 |
-
border: 1px #fff solid;
|
106 |
-
}
|
107 |
-
|
108 |
-
/* Sitemap gallery */
|
109 |
-
|
110 |
-
/* Can remove most of these styles now? */
|
111 |
-
|
112 |
-
/* SIMPLE SITEMAP PRO DEMO STYLES */
|
113 |
-
|
114 |
-
#ssp-demo-wrap {
|
115 |
-
display:flex;
|
116 |
-
margin:5px 0 15px 0;
|
117 |
-
}
|
118 |
-
|
119 |
-
#ssp-demo-description {
|
120 |
-
padding-left: 20px;
|
121 |
-
margin: 20px 0 20px 20px;
|
122 |
-
border-left: 2px solid rgba(39, 154, 151, 0.6);
|
123 |
-
}
|
124 |
-
|
125 |
-
#ssp-demo-description p {
|
126 |
-
margin: 10px 0 0 0;
|
127 |
-
}
|
128 |
-
|
129 |
-
#ssp-demo-btn-wrap {
|
130 |
-
align-self:center;
|
131 |
-
}
|
132 |
-
|
133 |
-
#ssp-btn {
|
134 |
-
width: 225px;
|
135 |
-
/* replace with this when better supported: width: fit-content; */
|
136 |
-
font-size: 18px;
|
137 |
-
background: rgba(39, 154, 151, 0.75);
|
138 |
-
border: 2px rgba(35, 121, 118, 0.63) solid;
|
139 |
-
border-radius: 2px;
|
140 |
-
}
|
141 |
-
|
142 |
-
#ssp-btn:hover {
|
143 |
-
background: #279a97;
|
144 |
-
}
|
145 |
-
|
146 |
-
#ssp-demo-gallery {
|
147 |
-
width: 100%;
|
148 |
-
display: flex;
|
149 |
-
flex-wrap: wrap;
|
150 |
-
/*margin-top: 25px;*/
|
151 |
-
}
|
152 |
-
|
153 |
-
#ssp-demo-gallery > div {
|
154 |
-
width: calc(33.33% - 30px);
|
155 |
-
padding: 10px;
|
156 |
-
margin: 5px 5px;
|
157 |
-
text-align: center;
|
158 |
-
}
|
159 |
-
|
160 |
-
#ssp-demo-gallery > div img {
|
161 |
-
border: 2px rgba(102, 180, 177, 0.5) solid;
|
162 |
-
max-width: 230px;
|
163 |
-
height: auto;
|
164 |
-
}
|
165 |
-
|
166 |
-
#ssp-demo-gallery > div:hover h5 {
|
167 |
-
text-decoration: underline;
|
168 |
-
}
|
169 |
-
|
170 |
-
#ssp-demo-gallery > div h5 {
|
171 |
-
font-size: 18px;
|
172 |
-
margin-bottom: 8px;
|
173 |
-
}
|
174 |
-
|
175 |
-
#ssp-demo-gallery > div h5 a {
|
176 |
-
color: #3c8f8c;
|
177 |
-
text-decoration: none;
|
178 |
-
}
|
179 |
-
|
180 |
-
#ssp-demo-gallery div > a {
|
181 |
-
display: inline-block;
|
182 |
-
line-height: 0;
|
183 |
-
}
|
184 |
-
|
185 |
-
@media only screen and (max-width: 800px) {
|
186 |
-
#ssp-demo-wrap {
|
187 |
-
display: block;
|
188 |
-
margin: 15px 0 15px 0;
|
189 |
-
}
|
190 |
-
#ssp-demo-description {
|
191 |
-
margin: 20px 0 30px 0px;
|
192 |
-
}
|
193 |
-
#ssp-demo-gallery > div {
|
194 |
-
width: calc(50% - 30px);
|
195 |
-
}
|
196 |
-
}
|
197 |
-
|
198 |
-
@media only screen and (max-width: 550px) {
|
199 |
-
#ssp-demo-gallery > div {
|
200 |
-
width: 100%;
|
201 |
-
padding: 0x;
|
202 |
-
}
|
203 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/simple-sitemap.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
/* Styles for sitemap on front end. Only added to pages with sitemap shortcode on */
|
|
freemius/LICENSE.txt
ADDED
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GNU GENERAL PUBLIC LICENSE
|
2 |
+
Version 3, 29 June 2007
|
3 |
+
|
4 |
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5 |
+
Everyone is permitted to copy and distribute verbatim copies
|
6 |
+
of this license document, but changing it is not allowed.
|
7 |
+
|
8 |
+
Preamble
|
9 |
+
|
10 |
+
The GNU General Public License is a free, copyleft license for
|
11 |
+
software and other kinds of works.
|
12 |
+
|
13 |
+
The licenses for most software and other practical works are designed
|
14 |
+
to take away your freedom to share and change the works. By contrast,
|
15 |
+
the GNU General Public License is intended to guarantee your freedom to
|
16 |
+
share and change all versions of a program--to make sure it remains free
|
17 |
+
software for all its users. We, the Free Software Foundation, use the
|
18 |
+
GNU General Public License for most of our software; it applies also to
|
19 |
+
any other work released this way by its authors. You can apply it to
|
20 |
+
your programs, too.
|
21 |
+
|
22 |
+
When we speak of free software, we are referring to freedom, not
|
23 |
+
price. Our General Public Licenses are designed to make sure that you
|
24 |
+
have the freedom to distribute copies of free software (and charge for
|
25 |
+
them if you wish), that you receive source code or can get it if you
|
26 |
+
want it, that you can change the software or use pieces of it in new
|
27 |
+
free programs, and that you know you can do these things.
|
28 |
+
|
29 |
+
To protect your rights, we need to prevent others from denying you
|
30 |
+
these rights or asking you to surrender the rights. Therefore, you have
|
31 |
+
certain responsibilities if you distribute copies of the software, or if
|
32 |
+
you modify it: responsibilities to respect the freedom of others.
|
33 |
+
|
34 |
+
For example, if you distribute copies of such a program, whether
|
35 |
+
gratis or for a fee, you must pass on to the recipients the same
|
36 |
+
freedoms that you received. You must make sure that they, too, receive
|
37 |
+
or can get the source code. And you must show them these terms so they
|
38 |
+
know their rights.
|
39 |
+
|
40 |
+
Developers that use the GNU GPL protect your rights with two steps:
|
41 |
+
(1) assert copyright on the software, and (2) offer you this License
|
42 |
+
giving you legal permission to copy, distribute and/or modify it.
|
43 |
+
|
44 |
+
For the developers' and authors' protection, the GPL clearly explains
|
45 |
+
that there is no warranty for this free software. For both users' and
|
46 |
+
authors' sake, the GPL requires that modified versions be marked as
|
47 |
+
changed, so that their problems will not be attributed erroneously to
|
48 |
+
authors of previous versions.
|
49 |
+
|
50 |
+
Some devices are designed to deny users access to install or run
|
51 |
+
modified versions of the software inside them, although the manufacturer
|
52 |
+
can do so. This is fundamentally incompatible with the aim of
|
53 |
+
protecting users' freedom to change the software. The systematic
|
54 |
+
pattern of such abuse occurs in the area of products for individuals to
|
55 |
+
use, which is precisely where it is most unacceptable. Therefore, we
|
56 |
+
have designed this version of the GPL to prohibit the practice for those
|
57 |
+
products. If such problems arise substantially in other domains, we
|
58 |
+
stand ready to extend this provision to those domains in future versions
|
59 |
+
of the GPL, as needed to protect the freedom of users.
|
60 |
+
|
61 |
+
Finally, every program is threatened constantly by software patents.
|
62 |
+
States should not allow patents to restrict development and use of
|
63 |
+
software on general-purpose computers, but in those that do, we wish to
|
64 |
+
avoid the special danger that patents applied to a free program could
|
65 |
+
make it effectively proprietary. To prevent this, the GPL assures that
|
66 |
+
patents cannot be used to render the program non-free.
|
67 |
+
|
68 |
+
The precise terms and conditions for copying, distribution and
|
69 |
+
modification follow.
|
70 |
+
|
71 |
+
TERMS AND CONDITIONS
|
72 |
+
|
73 |
+
0. Definitions.
|
74 |
+
|
75 |
+
"This License" refers to version 3 of the GNU General Public License.
|
76 |
+
|
77 |
+
"Copyright" also means copyright-like laws that apply to other kinds of
|
78 |
+
works, such as semiconductor masks.
|
79 |
+
|
80 |
+
"The Program" refers to any copyrightable work licensed under this
|
81 |
+
License. Each licensee is addressed as "you". "Licensees" and
|
82 |
+
"recipients" may be individuals or organizations.
|
83 |
+
|
84 |
+
To "modify" a work means to copy from or adapt all or part of the work
|
85 |
+
in a fashion requiring copyright permission, other than the making of an
|
86 |
+
exact copy. The resulting work is called a "modified version" of the
|
87 |
+
earlier work or a work "based on" the earlier work.
|
88 |
+
|
89 |
+
A "covered work" means either the unmodified Program or a work based
|
90 |
+
on the Program.
|
91 |
+
|
92 |
+
To "propagate" a work means to do anything with it that, without
|
93 |
+
permission, would make you directly or secondarily liable for
|
94 |
+
infringement under applicable copyright law, except executing it on a
|
95 |
+
computer or modifying a private copy. Propagation includes copying,
|
96 |
+
distribution (with or without modification), making available to the
|
97 |
+
public, and in some countries other activities as well.
|
98 |
+
|
99 |
+
To "convey" a work means any kind of propagation that enables other
|
100 |
+
parties to make or receive copies. Mere interaction with a user through
|
101 |
+
a computer network, with no transfer of a copy, is not conveying.
|
102 |
+
|
103 |
+
An interactive user interface displays "Appropriate Legal Notices"
|
104 |
+
to the extent that it includes a convenient and prominently visible
|
105 |
+
feature that (1) displays an appropriate copyright notice, and (2)
|
106 |
+
tells the user that there is no warranty for the work (except to the
|
107 |
+
extent that warranties are provided), that licensees may convey the
|
108 |
+
work under this License, and how to view a copy of this License. If
|
109 |
+
the interface presents a list of user commands or options, such as a
|
110 |
+
menu, a prominent item in the list meets this criterion.
|
111 |
+
|
112 |
+
1. Source Code.
|
113 |
+
|
114 |
+
The "source code" for a work means the preferred form of the work
|
115 |
+
for making modifications to it. "Object code" means any non-source
|
116 |
+
form of a work.
|
117 |
+
|
118 |
+
A "Standard Interface" means an interface that either is an official
|
119 |
+
standard defined by a recognized standards body, or, in the case of
|
120 |
+
interfaces specified for a particular programming language, one that
|
121 |
+
is widely used among developers working in that language.
|
122 |
+
|
123 |
+
The "System Libraries" of an executable work include anything, other
|
124 |
+
than the work as a whole, that (a) is included in the normal form of
|
125 |
+
packaging a Major Component, but which is not part of that Major
|
126 |
+
Component, and (b) serves only to enable use of the work with that
|
127 |
+
Major Component, or to implement a Standard Interface for which an
|
128 |
+
implementation is available to the public in source code form. A
|
129 |
+
"Major Component", in this context, means a major essential component
|
130 |
+
(kernel, window system, and so on) of the specific operating system
|
131 |
+
(if any) on which the executable work runs, or a compiler used to
|
132 |
+
produce the work, or an object code interpreter used to run it.
|
133 |
+
|
134 |
+
The "Corresponding Source" for a work in object code form means all
|
135 |
+
the source code needed to generate, install, and (for an executable
|
136 |
+
work) run the object code and to modify the work, including scripts to
|
137 |
+
control those activities. However, it does not include the work's
|
138 |
+
System Libraries, or general-purpose tools or generally available free
|
139 |
+
programs which are used unmodified in performing those activities but
|
140 |
+
which are not part of the work. For example, Corresponding Source
|
141 |
+
includes interface definition files associated with source files for
|
142 |
+
the work, and the source code for shared libraries and dynamically
|
143 |
+
linked subprograms that the work is specifically designed to require,
|
144 |
+
such as by intimate data communication or control flow between those
|
145 |
+
subprograms and other parts of the work.
|
146 |
+
|
147 |
+
The Corresponding Source need not include anything that users
|
148 |
+
can regenerate automatically from other parts of the Corresponding
|
149 |
+
Source.
|
150 |
+
|
151 |
+
The Corresponding Source for a work in source code form is that
|
152 |
+
same work.
|
153 |
+
|
154 |
+
2. Basic Permissions.
|
155 |
+
|
156 |
+
All rights granted under this License are granted for the term of
|
157 |
+
copyright on the Program, and are irrevocable provided the stated
|
158 |
+
conditions are met. This License explicitly affirms your unlimited
|
159 |
+
permission to run the unmodified Program. The output from running a
|
160 |
+
covered work is covered by this License only if the output, given its
|
161 |
+
content, constitutes a covered work. This License acknowledges your
|
162 |
+
rights of fair use or other equivalent, as provided by copyright law.
|
163 |
+
|
164 |
+
You may make, run and propagate covered works that you do not
|
165 |
+
convey, without conditions so long as your license otherwise remains
|
166 |
+
in force. You may convey covered works to others for the sole purpose
|
167 |
+
of having them make modifications exclusively for you, or provide you
|
168 |
+
with facilities for running those works, provided that you comply with
|
169 |
+
the terms of this License in conveying all material for which you do
|
170 |
+
not control copyright. Those thus making or running the covered works
|
171 |
+
for you must do so exclusively on your behalf, under your direction
|
172 |
+
and control, on terms that prohibit them from making any copies of
|
173 |
+
your copyrighted material outside their relationship with you.
|
174 |
+
|
175 |
+
Conveying under any other circumstances is permitted solely under
|
176 |
+
the conditions stated below. Sublicensing is not allowed; section 10
|
177 |
+
makes it unnecessary.
|
178 |
+
|
179 |
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
180 |
+
|
181 |
+
No covered work shall be deemed part of an effective technological
|
182 |
+
measure under any applicable law fulfilling obligations under article
|
183 |
+
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
184 |
+
similar laws prohibiting or restricting circumvention of such
|
185 |
+
measures.
|
186 |
+
|
187 |
+
When you convey a covered work, you waive any legal power to forbid
|
188 |
+
circumvention of technological measures to the extent such circumvention
|
189 |
+
is effected by exercising rights under this License with respect to
|
190 |
+
the covered work, and you disclaim any intention to limit operation or
|
191 |
+
modification of the work as a means of enforcing, against the work's
|
192 |
+
users, your or third parties' legal rights to forbid circumvention of
|
193 |
+
technological measures.
|
194 |
+
|
195 |
+
4. Conveying Verbatim Copies.
|
196 |
+
|
197 |
+
You may convey verbatim copies of the Program's source code as you
|
198 |
+
receive it, in any medium, provided that you conspicuously and
|
199 |
+
appropriately publish on each copy an appropriate copyright notice;
|
200 |
+
keep intact all notices stating that this License and any
|
201 |
+
non-permissive terms added in accord with section 7 apply to the code;
|
202 |
+
keep intact all notices of the absence of any warranty; and give all
|
203 |
+
recipients a copy of this License along with the Program.
|
204 |
+
|
205 |
+
You may charge any price or no price for each copy that you convey,
|
206 |
+
and you may offer support or warranty protection for a fee.
|
207 |
+
|
208 |
+
5. Conveying Modified Source Versions.
|
209 |
+
|
210 |
+
You may convey a work based on the Program, or the modifications to
|
211 |
+
produce it from the Program, in the form of source code under the
|
212 |
+
terms of section 4, provided that you also meet all of these conditions:
|
213 |
+
|
214 |
+
a) The work must carry prominent notices stating that you modified
|
215 |
+
it, and giving a relevant date.
|
216 |
+
|
217 |
+
b) The work must carry prominent notices stating that it is
|
218 |
+
released under this License and any conditions added under section
|
219 |
+
7. This requirement modifies the requirement in section 4 to
|
220 |
+
"keep intact all notices".
|
221 |
+
|
222 |
+
c) You must license the entire work, as a whole, under this
|
223 |
+
License to anyone who comes into possession of a copy. This
|
224 |
+
License will therefore apply, along with any applicable section 7
|
225 |
+
additional terms, to the whole of the work, and all its parts,
|
226 |
+
regardless of how they are packaged. This License gives no
|
227 |
+
permission to license the work in any other way, but it does not
|
228 |
+
invalidate such permission if you have separately received it.
|
229 |
+
|
230 |
+
d) If the work has interactive user interfaces, each must display
|
231 |
+
Appropriate Legal Notices; however, if the Program has interactive
|
232 |
+
interfaces that do not display Appropriate Legal Notices, your
|
233 |
+
work need not make them do so.
|
234 |
+
|
235 |
+
A compilation of a covered work with other separate and independent
|
236 |
+
works, which are not by their nature extensions of the covered work,
|
237 |
+
and which are not combined with it such as to form a larger program,
|
238 |
+
in or on a volume of a storage or distribution medium, is called an
|
239 |
+
"aggregate" if the compilation and its resulting copyright are not
|
240 |
+
used to limit the access or legal rights of the compilation's users
|
241 |
+
beyond what the individual works permit. Inclusion of a covered work
|
242 |
+
in an aggregate does not cause this License to apply to the other
|
243 |
+
parts of the aggregate.
|
244 |
+
|
245 |
+
6. Conveying Non-Source Forms.
|
246 |
+
|
247 |
+
You may convey a covered work in object code form under the terms
|
248 |
+
of sections 4 and 5, provided that you also convey the
|
249 |
+
machine-readable Corresponding Source under the terms of this License,
|
250 |
+
in one of these ways:
|
251 |
+
|
252 |
+
a) Convey the object code in, or embodied in, a physical product
|
253 |
+
(including a physical distribution medium), accompanied by the
|
254 |
+
Corresponding Source fixed on a durable physical medium
|
255 |
+
customarily used for software interchange.
|
256 |
+
|
257 |
+
b) Convey the object code in, or embodied in, a physical product
|
258 |
+
(including a physical distribution medium), accompanied by a
|
259 |
+
written offer, valid for at least three years and valid for as
|
260 |
+
long as you offer spare parts or customer support for that product
|
261 |
+
model, to give anyone who possesses the object code either (1) a
|
262 |
+
copy of the Corresponding Source for all the software in the
|
263 |
+
product that is covered by this License, on a durable physical
|
264 |
+
medium customarily used for software interchange, for a price no
|
265 |
+
more than your reasonable cost of physically performing this
|
266 |
+
conveying of source, or (2) access to copy the
|
267 |
+
Corresponding Source from a network server at no charge.
|
268 |
+
|
269 |
+
c) Convey individual copies of the object code with a copy of the
|
270 |
+
written offer to provide the Corresponding Source. This
|
271 |
+
alternative is allowed only occasionally and noncommercially, and
|
272 |
+
only if you received the object code with such an offer, in accord
|
273 |
+
with subsection 6b.
|
274 |
+
|
275 |
+
d) Convey the object code by offering access from a designated
|
276 |
+
place (gratis or for a charge), and offer equivalent access to the
|
277 |
+
Corresponding Source in the same way through the same place at no
|
278 |
+
further charge. You need not require recipients to copy the
|
279 |
+
Corresponding Source along with the object code. If the place to
|
280 |
+
copy the object code is a network server, the Corresponding Source
|
281 |
+
may be on a different server (operated by you or a third party)
|
282 |
+
that supports equivalent copying facilities, provided you maintain
|
283 |
+
clear directions next to the object code saying where to find the
|
284 |
+
Corresponding Source. Regardless of what server hosts the
|
285 |
+
Corresponding Source, you remain obligated to ensure that it is
|
286 |
+
available for as long as needed to satisfy these requirements.
|
287 |
+
|
288 |
+
e) Convey the object code using peer-to-peer transmission, provided
|
289 |
+
you inform other peers where the object code and Corresponding
|
290 |
+
Source of the work are being offered to the general public at no
|
291 |
+
charge under subsection 6d.
|
292 |
+
|
293 |
+
A separable portion of the object code, whose source code is excluded
|
294 |
+
from the Corresponding Source as a System Library, need not be
|
295 |
+
included in conveying the object code work.
|
296 |
+
|
297 |
+
A "User Product" is either (1) a "consumer product", which means any
|
298 |
+
tangible personal property which is normally used for personal, family,
|
299 |
+
or household purposes, or (2) anything designed or sold for incorporation
|
300 |
+
into a dwelling. In determining whether a product is a consumer product,
|
301 |
+
doubtful cases shall be resolved in favor of coverage. For a particular
|
302 |
+
product received by a particular user, "normally used" refers to a
|
303 |
+
typical or common use of that class of product, regardless of the status
|
304 |
+
of the particular user or of the way in which the particular user
|
305 |
+
actually uses, or expects or is expected to use, the product. A product
|
306 |
+
is a consumer product regardless of whether the product has substantial
|
307 |
+
commercial, industrial or non-consumer uses, unless such uses represent
|
308 |
+
the only significant mode of use of the product.
|
309 |
+
|
310 |
+
"Installation Information" for a User Product means any methods,
|
311 |
+
procedures, authorization keys, or other information required to install
|
312 |
+
and execute modified versions of a covered work in that User Product from
|
313 |
+
a modified version of its Corresponding Source. The information must
|
314 |
+
suffice to ensure that the continued functioning of the modified object
|
315 |
+
code is in no case prevented or interfered with solely because
|
316 |
+
modification has been made.
|
317 |
+
|
318 |
+
If you convey an object code work under this section in, or with, or
|
319 |
+
specifically for use in, a User Product, and the conveying occurs as
|
320 |
+
part of a transaction in which the right of possession and use of the
|
321 |
+
User Product is transferred to the recipient in perpetuity or for a
|
322 |
+
fixed term (regardless of how the transaction is characterized), the
|
323 |
+
Corresponding Source conveyed under this section must be accompanied
|
324 |
+
by the Installation Information. But this requirement does not apply
|
325 |
+
if neither you nor any third party retains the ability to install
|
326 |
+
modified object code on the User Product (for example, the work has
|
327 |
+
been installed in ROM).
|
328 |
+
|
329 |
+
The requirement to provide Installation Information does not include a
|
330 |
+
requirement to continue to provide support service, warranty, or updates
|
331 |
+
for a work that has been modified or installed by the recipient, or for
|
332 |
+
the User Product in which it has been modified or installed. Access to a
|
333 |
+
network may be denied when the modification itself materially and
|
334 |
+
adversely affects the operation of the network or violates the rules and
|
335 |
+
protocols for communication across the network.
|
336 |
+
|
337 |
+
Corresponding Source conveyed, and Installation Information provided,
|
338 |
+
in accord with this section must be in a format that is publicly
|
339 |
+
documented (and with an implementation available to the public in
|
340 |
+
source code form), and must require no special password or key for
|
341 |
+
unpacking, reading or copying.
|
342 |
+
|
343 |
+
7. Additional Terms.
|
344 |
+
|
345 |
+
"Additional permissions" are terms that supplement the terms of this
|
346 |
+
License by making exceptions from one or more of its conditions.
|
347 |
+
Additional permissions that are applicable to the entire Program shall
|
348 |
+
be treated as though they were included in this License, to the extent
|
349 |
+
that they are valid under applicable law. If additional permissions
|
350 |
+
apply only to part of the Program, that part may be used separately
|
351 |
+
under those permissions, but the entire Program remains governed by
|
352 |
+
this License without regard to the additional permissions.
|
353 |
+
|
354 |
+
When you convey a copy of a covered work, you may at your option
|
355 |
+
remove any additional permissions from that copy, or from any part of
|
356 |
+
it. (Additional permissions may be written to require their own
|
357 |
+
removal in certain cases when you modify the work.) You may place
|
358 |
+
additional permissions on material, added by you to a covered work,
|
359 |
+
for which you have or can give appropriate copyright permission.
|
360 |
+
|
361 |
+
Notwithstanding any other provision of this License, for material you
|
362 |
+
add to a covered work, you may (if authorized by the copyright holders of
|
363 |
+
that material) supplement the terms of this License with terms:
|
364 |
+
|
365 |
+
a) Disclaiming warranty or limiting liability differently from the
|
366 |
+
terms of sections 15 and 16 of this License; or
|
367 |
+
|
368 |
+
b) Requiring preservation of specified reasonable legal notices or
|
369 |
+
author attributions in that material or in the Appropriate Legal
|
370 |
+
Notices displayed by works containing it; or
|
371 |
+
|
372 |
+
c) Prohibiting misrepresentation of the origin of that material, or
|
373 |
+
requiring that modified versions of such material be marked in
|
374 |
+
reasonable ways as different from the original version; or
|
375 |
+
|
376 |
+
d) Limiting the use for publicity purposes of names of licensors or
|
377 |
+
authors of the material; or
|
378 |
+
|
379 |
+
e) Declining to grant rights under trademark law for use of some
|
380 |
+
trade names, trademarks, or service marks; or
|
381 |
+
|
382 |
+
f) Requiring indemnification of licensors and authors of that
|
383 |
+
material by anyone who conveys the material (or modified versions of
|
384 |
+
it) with contractual assumptions of liability to the recipient, for
|
385 |
+
any liability that these contractual assumptions directly impose on
|
386 |
+
those licensors and authors.
|
387 |
+
|
388 |
+
All other non-permissive additional terms are considered "further
|
389 |
+
restrictions" within the meaning of section 10. If the Program as you
|
390 |
+
received it, or any part of it, contains a notice stating that it is
|
391 |
+
governed by this License along with a term that is a further
|
392 |
+
restriction, you may remove that term. If a license document contains
|
393 |
+
a further restriction but permits relicensing or conveying under this
|
394 |
+
License, you may add to a covered work material governed by the terms
|
395 |
+
of that license document, provided that the further restriction does
|
396 |
+
not survive such relicensing or conveying.
|
397 |
+
|
398 |
+
If you add terms to a covered work in accord with this section, you
|
399 |
+
must place, in the relevant source files, a statement of the
|
400 |
+
additional terms that apply to those files, or a notice indicating
|
401 |
+
where to find the applicable terms.
|
402 |
+
|
403 |
+
Additional terms, permissive or non-permissive, may be stated in the
|
404 |
+
form of a separately written license, or stated as exceptions;
|
405 |
+
the above requirements apply either way.
|
406 |
+
|
407 |
+
8. Termination.
|
408 |
+
|
409 |
+
You may not propagate or modify a covered work except as expressly
|
410 |
+
provided under this License. Any attempt otherwise to propagate or
|
411 |
+
modify it is void, and will automatically terminate your rights under
|
412 |
+
this License (including any patent licenses granted under the third
|
413 |
+
paragraph of section 11).
|
414 |
+
|
415 |
+
However, if you cease all violation of this License, then your
|
416 |
+
license from a particular copyright holder is reinstated (a)
|
417 |
+
provisionally, unless and until the copyright holder explicitly and
|
418 |
+
finally terminates your license, and (b) permanently, if the copyright
|
419 |
+
holder fails to notify you of the violation by some reasonable means
|
420 |
+
prior to 60 days after the cessation.
|
421 |
+
|
422 |
+
Moreover, your license from a particular copyright holder is
|
423 |
+
reinstated permanently if the copyright holder notifies you of the
|
424 |
+
violation by some reasonable means, this is the first time you have
|
425 |
+
received notice of violation of this License (for any work) from that
|
426 |
+
copyright holder, and you cure the violation prior to 30 days after
|
427 |
+
your receipt of the notice.
|
428 |
+
|
429 |
+
Termination of your rights under this section does not terminate the
|
430 |
+
licenses of parties who have received copies or rights from you under
|
431 |
+
this License. If your rights have been terminated and not permanently
|
432 |
+
reinstated, you do not qualify to receive new licenses for the same
|
433 |
+
material under section 10.
|
434 |
+
|
435 |
+
9. Acceptance Not Required for Having Copies.
|
436 |
+
|
437 |
+
You are not required to accept this License in order to receive or
|
438 |
+
run a copy of the Program. Ancillary propagation of a covered work
|
439 |
+
occurring solely as a consequence of using peer-to-peer transmission
|
440 |
+
to receive a copy likewise does not require acceptance. However,
|
441 |
+
nothing other than this License grants you permission to propagate or
|
442 |
+
modify any covered work. These actions infringe copyright if you do
|
443 |
+
not accept this License. Therefore, by modifying or propagating a
|
444 |
+
covered work, you indicate your acceptance of this License to do so.
|
445 |
+
|
446 |
+
10. Automatic Licensing of Downstream Recipients.
|
447 |
+
|
448 |
+
Each time you convey a covered work, the recipient automatically
|
449 |
+
receives a license from the original licensors, to run, modify and
|
450 |
+
propagate that work, subject to this License. You are not responsible
|
451 |
+
for enforcing compliance by third parties with this License.
|
452 |
+
|
453 |
+
An "entity transaction" is a transaction transferring control of an
|
454 |
+
organization, or substantially all assets of one, or subdividing an
|
455 |
+
organization, or merging organizations. If propagation of a covered
|
456 |
+
work results from an entity transaction, each party to that
|
457 |
+
transaction who receives a copy of the work also receives whatever
|
458 |
+
licenses to the work the party's predecessor in interest had or could
|
459 |
+
give under the previous paragraph, plus a right to possession of the
|
460 |
+
Corresponding Source of the work from the predecessor in interest, if
|
461 |
+
the predecessor has it or can get it with reasonable efforts.
|
462 |
+
|
463 |
+
You may not impose any further restrictions on the exercise of the
|
464 |
+
rights granted or affirmed under this License. For example, you may
|
465 |
+
not impose a license fee, royalty, or other charge for exercise of
|
466 |
+
rights granted under this License, and you may not initiate litigation
|
467 |
+
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
468 |
+
any patent claim is infringed by making, using, selling, offering for
|
469 |
+
sale, or importing the Program or any portion of it.
|
470 |
+
|
471 |
+
11. Patents.
|
472 |
+
|
473 |
+
A "contributor" is a copyright holder who authorizes use under this
|
474 |
+
License of the Program or a work on which the Program is based. The
|
475 |
+
work thus licensed is called the contributor's "contributor version".
|
476 |
+
|
477 |
+
A contributor's "essential patent claims" are all patent claims
|
478 |
+
owned or controlled by the contributor, whether already acquired or
|
479 |
+
hereafter acquired, that would be infringed by some manner, permitted
|
480 |
+
by this License, of making, using, or selling its contributor version,
|
481 |
+
but do not include claims that would be infringed only as a
|
482 |
+
consequence of further modification of the contributor version. For
|
483 |
+
purposes of this definition, "control" includes the right to grant
|
484 |
+
patent sublicenses in a manner consistent with the requirements of
|
485 |
+
this License.
|
486 |
+
|
487 |
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
488 |
+
patent license under the contributor's essential patent claims, to
|
489 |
+
make, use, sell, offer for sale, import and otherwise run, modify and
|
490 |
+
propagate the contents of its contributor version.
|
491 |
+
|
492 |
+
In the following three paragraphs, a "patent license" is any express
|
493 |
+
agreement or commitment, however denominated, not to enforce a patent
|
494 |
+
(such as an express permission to practice a patent or covenant not to
|
495 |
+
sue for patent infringement). To "grant" such a patent license to a
|
496 |
+
party means to make such an agreement or commitment not to enforce a
|
497 |
+
patent against the party.
|
498 |
+
|
499 |
+
If you convey a covered work, knowingly relying on a patent license,
|
500 |
+
and the Corresponding Source of the work is not available for anyone
|
501 |
+
to copy, free of charge and under the terms of this License, through a
|
502 |
+
publicly available network server or other readily accessible means,
|
503 |
+
then you must either (1) cause the Corresponding Source to be so
|
504 |
+
available, or (2) arrange to deprive yourself of the benefit of the
|
505 |
+
patent license for this particular work, or (3) arrange, in a manner
|
506 |
+
consistent with the requirements of this License, to extend the patent
|
507 |
+
license to downstream recipients. "Knowingly relying" means you have
|
508 |
+
actual knowledge that, but for the patent license, your conveying the
|
509 |
+
covered work in a country, or your recipient's use of the covered work
|
510 |
+
in a country, would infringe one or more identifiable patents in that
|
511 |
+
country that you have reason to believe are valid.
|
512 |
+
|
513 |
+
If, pursuant to or in connection with a single transaction or
|
514 |
+
arrangement, you convey, or propagate by procuring conveyance of, a
|
515 |
+
covered work, and grant a patent license to some of the parties
|
516 |
+
receiving the covered work authorizing them to use, propagate, modify
|
517 |
+
or convey a specific copy of the covered work, then the patent license
|
518 |
+
you grant is automatically extended to all recipients of the covered
|
519 |
+
work and works based on it.
|
520 |
+
|
521 |
+
A patent license is "discriminatory" if it does not include within
|
522 |
+
the scope of its coverage, prohibits the exercise of, or is
|
523 |
+
conditioned on the non-exercise of one or more of the rights that are
|
524 |
+
specifically granted under this License. You may not convey a covered
|
525 |
+
work if you are a party to an arrangement with a third party that is
|
526 |
+
in the business of distributing software, under which you make payment
|
527 |
+
to the third party based on the extent of your activity of conveying
|
528 |
+
the work, and under which the third party grants, to any of the
|
529 |
+
parties who would receive the covered work from you, a discriminatory
|
530 |
+
patent license (a) in connection with copies of the covered work
|
531 |
+
conveyed by you (or copies made from those copies), or (b) primarily
|
532 |
+
for and in connection with specific products or compilations that
|
533 |
+
contain the covered work, unless you entered into that arrangement,
|
534 |
+
or that patent license was granted, prior to 28 March 2007.
|
535 |
+
|
536 |
+
Nothing in this License shall be construed as excluding or limiting
|
537 |
+
any implied license or other defenses to infringement that may
|
538 |
+
otherwise be available to you under applicable patent law.
|
539 |
+
|
540 |
+
12. No Surrender of Others' Freedom.
|
541 |
+
|
542 |
+
If conditions are imposed on you (whether by court order, agreement or
|
543 |
+
otherwise) that contradict the conditions of this License, they do not
|
544 |
+
excuse you from the conditions of this License. If you cannot convey a
|
545 |
+
covered work so as to satisfy simultaneously your obligations under this
|
546 |
+
License and any other pertinent obligations, then as a consequence you may
|
547 |
+
not convey it at all. For example, if you agree to terms that obligate you
|
548 |
+
to collect a royalty for further conveying from those to whom you convey
|
549 |
+
the Program, the only way you could satisfy both those terms and this
|
550 |
+
License would be to refrain entirely from conveying the Program.
|
551 |
+
|
552 |
+
13. Use with the GNU Affero General Public License.
|
553 |
+
|
554 |
+
Notwithstanding any other provision of this License, you have
|
555 |
+
permission to link or combine any covered work with a work licensed
|
556 |
+
under version 3 of the GNU Affero General Public License into a single
|
557 |
+
combined work, and to convey the resulting work. The terms of this
|
558 |
+
License will continue to apply to the part which is the covered work,
|
559 |
+
but the special requirements of the GNU Affero General Public License,
|
560 |
+
section 13, concerning interaction through a network will apply to the
|
561 |
+
combination as such.
|
562 |
+
|
563 |
+
14. Revised Versions of this License.
|
564 |
+
|
565 |
+
The Free Software Foundation may publish revised and/or new versions of
|
566 |
+
the GNU General Public License from time to time. Such new versions will
|
567 |
+
be similar in spirit to the present version, but may differ in detail to
|
568 |
+
address new problems or concerns.
|
569 |
+
|
570 |
+
Each version is given a distinguishing version number. If the
|
571 |
+
Program specifies that a certain numbered version of the GNU General
|
572 |
+
Public License "or any later version" applies to it, you have the
|
573 |
+
option of following the terms and conditions either of that numbered
|
574 |
+
version or of any later version published by the Free Software
|
575 |
+
Foundation. If the Program does not specify a version number of the
|
576 |
+
GNU General Public License, you may choose any version ever published
|
577 |
+
by the Free Software Foundation.
|
578 |
+
|
579 |
+
If the Program specifies that a proxy can decide which future
|
580 |
+
versions of the GNU General Public License can be used, that proxy's
|
581 |
+
public statement of acceptance of a version permanently authorizes you
|
582 |
+
to choose that version for the Program.
|
583 |
+
|
584 |
+
Later license versions may give you additional or different
|
585 |
+
permissions. However, no additional obligations are imposed on any
|
586 |
+
author or copyright holder as a result of your choosing to follow a
|
587 |
+
later version.
|
588 |
+
|
589 |
+
15. Disclaimer of Warranty.
|
590 |
+
|
591 |
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
592 |
+
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
593 |
+
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
594 |
+
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
595 |
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
596 |
+
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
597 |
+
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
598 |
+
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
599 |
+
|
600 |
+
16. Limitation of Liability.
|
601 |
+
|
602 |
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
603 |
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
604 |
+
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
605 |
+
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
606 |
+
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
607 |
+
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
608 |
+
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
609 |
+
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
610 |
+
SUCH DAMAGES.
|
611 |
+
|
612 |
+
17. Interpretation of Sections 15 and 16.
|
613 |
+
|
614 |
+
If the disclaimer of warranty and limitation of liability provided
|
615 |
+
above cannot be given local legal effect according to their terms,
|
616 |
+
reviewing courts shall apply local law that most closely approximates
|
617 |
+
an absolute waiver of all civil liability in connection with the
|
618 |
+
Program, unless a warranty or assumption of liability accompanies a
|
619 |
+
copy of the Program in return for a fee.
|
620 |
+
|
621 |
+
END OF TERMS AND CONDITIONS
|
622 |
+
|
623 |
+
How to Apply These Terms to Your New Programs
|
624 |
+
|
625 |
+
If you develop a new program, and you want it to be of the greatest
|
626 |
+
possible use to the public, the best way to achieve this is to make it
|
627 |
+
free software which everyone can redistribute and change under these terms.
|
628 |
+
|
629 |
+
To do so, attach the following notices to the program. It is safest
|
630 |
+
to attach them to the start of each source file to most effectively
|
631 |
+
state the exclusion of warranty; and each file should have at least
|
632 |
+
the "copyright" line and a pointer to where the full notice is found.
|
633 |
+
|
634 |
+
{one line to give the program's name and a brief idea of what it does.}
|
635 |
+
Copyright (C) {year} {name of author}
|
636 |
+
|
637 |
+
This program is free software: you can redistribute it and/or modify
|
638 |
+
it under the terms of the GNU General Public License as published by
|
639 |
+
the Free Software Foundation, either version 3 of the License, or
|
640 |
+
(at your option) any later version.
|
641 |
+
|
642 |
+
This program is distributed in the hope that it will be useful,
|
643 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
644 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
645 |
+
GNU General Public License for more details.
|
646 |
+
|
647 |
+
You should have received a copy of the GNU General Public License
|
648 |
+
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
649 |
+
|
650 |
+
Also add information on how to contact you by electronic and paper mail.
|
651 |
+
|
652 |
+
If the program does terminal interaction, make it output a short
|
653 |
+
notice like this when it starts in an interactive mode:
|
654 |
+
|
655 |
+
{project} Copyright (C) {year} {fullname}
|
656 |
+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
657 |
+
This is free software, and you are welcome to redistribute it
|
658 |
+
under certain conditions; type `show c' for details.
|
659 |
+
|
660 |
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
661 |
+
parts of the General Public License. Of course, your program's commands
|
662 |
+
might be different; for a GUI interface, you would use an "about box".
|
663 |
+
|
664 |
+
You should also get your employer (if you work as a programmer) or school,
|
665 |
+
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
666 |
+
For more information on this, and how to apply and follow the GNU GPL, see
|
667 |
+
<http://www.gnu.org/licenses/>.
|
668 |
+
|
669 |
+
The GNU General Public License does not permit incorporating your program
|
670 |
+
into proprietary programs. If your program is a subroutine library, you
|
671 |
+
may consider it more useful to permit linking proprietary applications with
|
672 |
+
the library. If this is what you want to do, use the GNU Lesser General
|
673 |
+
Public License instead of this License. But first, please read
|
674 |
+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
freemius/assets/css/admin/account.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
label.fs-tag,span.fs-tag{background:#ffba00;color:#fff;display:inline-block;border-radius:3px;padding:5px;font-size:11px;line-height:11px;vertical-align:baseline}label.fs-tag.fs-warn,span.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-info,span.fs-tag.fs-info{background:#00a0d2}label.fs-tag.fs-success,span.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error,span.fs-tag.fs-error{background:#dc3232}#fs_account .postbox,#fs_account .widefat{max-width:700px}#fs_account h3{font-size:1.3em;padding:12px 15px;margin:0 0 12px 0;line-height:1.4;border-bottom:1px solid #F1F1F1}#fs_account h3 .dashicons{width:26px;height:26px;font-size:1.3em}#fs_account i.dashicons{font-size:1.2em;height:1.2em;width:1.2em}#fs_account .dashicons{vertical-align:middle}#fs_account .fs-header-actions{position:absolute;top:17px;right:15px;font-size:0.9em}#fs_account .fs-header-actions ul{margin:0}#fs_account .fs-header-actions li{float:left}#fs_account .fs-header-actions li form{display:inline-block}#fs_account .fs-header-actions li a{text-decoration:none}#fs_account_details .button-group{float:right}.rtl #fs_account .fs-header-actions{left:15px;right:auto}.fs-key-value-table{width:100%}.fs-key-value-table form{display:inline-block}.fs-key-value-table tr td:first-child{text-align:right}.fs-key-value-table tr td:first-child nobr{font-weight:bold}.fs-key-value-table tr td:first-child form{display:block}.fs-key-value-table tr td.fs-right{text-align:right}.fs-key-value-table tr.fs-odd{background:#ebebeb}.fs-key-value-table td,.fs-key-value-table th{padding:10px}.fs-key-value-table code{line-height:28px}.fs-key-value-table var,.fs-key-value-table code,.fs-key-value-table input[type="text"]{color:#0073AA;font-size:16px;background:none}.fs-key-value-table input[type="text"]{width:100%;font-weight:bold}.fs-field-beta_program label{margin-left:7px}label.fs-tag{background:#ffba00;color:#fff;display:inline-block;border-radius:3px;padding:5px;font-size:11px;line-height:11px;vertical-align:baseline}label.fs-tag.fs-warn{background:#ffba00}label.fs-tag.fs-success{background:#46b450}label.fs-tag.fs-error{background:#dc3232}#fs_sites .fs-scrollable-table .fs-table-body{max-height:200px;overflow:auto;border:1px solid #e5e5e5}#fs_sites .fs-scrollable-table .fs-table-body>table.widefat{border:none !important}#fs_sites .fs-scrollable-table .fs-main-column{w
|