Version Description
Download this release
Release Info
Developer | smackcoders |
Plugin | Ultimate CSV Importer |
Version | 6.0.2 |
Comparing to | |
See all releases |
Code changes from version 6.0.1 to 6.0.2
- MediaHandling.php +19 -56
- Readme.txt +129 -121
- assets/js/admin.js +1 -1
- assets/vendors~js/admin.js +6 -12
MediaHandling.php
CHANGED
@@ -188,6 +188,7 @@ class MediaHandling{
|
|
188 |
}
|
189 |
|
190 |
$attachment_title = sanitize_file_name( pathinfo( $fimg_name, PATHINFO_FILENAME ) );
|
|
|
191 |
$dir = wp_upload_dir();
|
192 |
$dirname = date('Y') . '/' . date('m');
|
193 |
$uploaddir_paths = $dir ['basedir'] . '/' . $dirname ;
|
@@ -201,13 +202,30 @@ class MediaHandling{
|
|
201 |
if ($uploaddir_paths != "" && $uploaddir_paths) {
|
202 |
$uploaddir_path = $uploaddir_paths . "/" . $fimg_name;
|
203 |
}
|
204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
if($file_type['ext'] == 'jpeg'){
|
206 |
$response = wp_remote_get($f_img, array( 'timeout' => 30));
|
207 |
}else{
|
208 |
$response = wp_remote_get($f_img, array( 'timeout' => 10));
|
209 |
}
|
210 |
$rawdata = wp_remote_retrieve_body($response);
|
|
|
211 |
$http_code = wp_remote_retrieve_response_code($response);
|
212 |
if($http_code == 404){
|
213 |
return null;
|
@@ -285,61 +303,6 @@ class MediaHandling{
|
|
285 |
return $attach_id;
|
286 |
}
|
287 |
|
288 |
-
public function image_import($data_array){
|
289 |
-
if(isset($data_array['alt_text'])) {
|
290 |
-
$alttext ['_wp_attachment_image_alt'] = $data_array['alt_text'];
|
291 |
-
}
|
292 |
-
if(preg_match("http", $data_array['featured_image'])) {
|
293 |
-
$f_img = $data_array['featured_image'];
|
294 |
-
}
|
295 |
-
else{
|
296 |
-
$media_dir = wp_get_upload_dir();
|
297 |
-
$names = glob($media_dir['path'].'/'.'*.*');
|
298 |
-
$f_img = $data_array['featured_image'];
|
299 |
-
foreach($names as $values){
|
300 |
-
if (strpos($values, $f_img) !== false) {
|
301 |
-
$f_img = $media_dir['url'].'/'.$f_img;
|
302 |
-
}
|
303 |
-
}
|
304 |
-
}
|
305 |
-
$image_name = pathinfo($f_img);
|
306 |
-
$fimg_name = $image_name['basename'];
|
307 |
-
$attachment_title = sanitize_file_name( pathinfo( $fimg_name, PATHINFO_FILENAME ) );
|
308 |
-
$file_type = wp_check_filetype( $fimg_name, null );
|
309 |
-
$dir = wp_upload_dir();
|
310 |
-
$dirname = date('Y') . '/' . date('m');
|
311 |
-
$uploaddir_paths = $dir ['basedir'] . '/' . $dirname ;
|
312 |
-
$uploaddir_url = $dir ['baseurl'] . '/' . $dirname;
|
313 |
-
$f_img = str_replace(" ","%20",$f_img);
|
314 |
-
if ($uploaddir_paths != "" && $uploaddir_paths) {
|
315 |
-
$uploaddir_path = $uploaddir_paths . "/" . $fimg_name;
|
316 |
-
}
|
317 |
-
if(empty($file_type['type'])){
|
318 |
-
$file_type['type'] = 'image/jpeg';
|
319 |
-
}
|
320 |
-
$post_info = array(
|
321 |
-
'guid' => $uploaddir_url . "/" . $fimg_name,
|
322 |
-
'post_mime_type' => $file_type['type'],
|
323 |
-
'post_title' => $attachment_title,
|
324 |
-
'post_content' => '',
|
325 |
-
'post_status' => 'inherit',
|
326 |
-
);
|
327 |
-
unset( $post_info['ID'] );
|
328 |
-
$attach_id = wp_insert_attachment( $post_info,$uploaddir_path );
|
329 |
-
$attach_data = wp_generate_attachment_metadata( $attach_id, $uploaddir_path );
|
330 |
-
wp_update_attachment_metadata( $attach_id, $attach_data );
|
331 |
-
wp_update_post(array(
|
332 |
-
'ID' => $attach_id,
|
333 |
-
'post_title' => $data_array['file_name'],
|
334 |
-
'post_content' => $data_array['description'],
|
335 |
-
'post_excerpt' => $data_array['caption']
|
336 |
-
));
|
337 |
-
if($attach_id != null && isset($alttext['_wp_attachment_image_alt'])){
|
338 |
-
update_post_meta($attach_id, '_wp_attachment_image_alt', $alttext['_wp_attachment_image_alt']);
|
339 |
-
}
|
340 |
-
return $attach_id;
|
341 |
-
}
|
342 |
-
|
343 |
|
344 |
function overwrite($post_id , $img_url){
|
345 |
|
188 |
}
|
189 |
|
190 |
$attachment_title = sanitize_file_name( pathinfo( $fimg_name, PATHINFO_FILENAME ) );
|
191 |
+
$file_type = wp_check_filetype( $fimg_name, null );
|
192 |
$dir = wp_upload_dir();
|
193 |
$dirname = date('Y') . '/' . date('m');
|
194 |
$uploaddir_paths = $dir ['basedir'] . '/' . $dirname ;
|
202 |
if ($uploaddir_paths != "" && $uploaddir_paths) {
|
203 |
$uploaddir_path = $uploaddir_paths . "/" . $fimg_name;
|
204 |
}
|
205 |
+
if (strstr($f_img, 'https://drive.google.com')){
|
206 |
+
$page_content = file_get_contents($f_img);
|
207 |
+
$dom_obj = new \DOMDocument();
|
208 |
+
$dom_obj->loadHTML($page_content);
|
209 |
+
$meta_val = null;
|
210 |
+
foreach($dom_obj->getElementsByTagName('meta') as $meta) {
|
211 |
+
if($meta->getAttribute('property')=='og:image'){
|
212 |
+
$meta_val = $meta->getAttribute('content');
|
213 |
+
}
|
214 |
+
}
|
215 |
+
$ch = curl_init($meta_val);
|
216 |
+
curl_setopt($ch, CURLOPT_HEADER, 0);
|
217 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
218 |
+
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
|
219 |
+
$rawdata=curl_exec ($ch);
|
220 |
+
}
|
221 |
+
else{
|
222 |
if($file_type['ext'] == 'jpeg'){
|
223 |
$response = wp_remote_get($f_img, array( 'timeout' => 30));
|
224 |
}else{
|
225 |
$response = wp_remote_get($f_img, array( 'timeout' => 10));
|
226 |
}
|
227 |
$rawdata = wp_remote_retrieve_body($response);
|
228 |
+
}
|
229 |
$http_code = wp_remote_retrieve_response_code($response);
|
230 |
if($http_code == 404){
|
231 |
return null;
|
303 |
return $attach_id;
|
304 |
}
|
305 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
306 |
|
307 |
function overwrite($post_id , $img_url){
|
308 |
|
Readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
=== Import Export
|
2 |
Contributors: smackcoders, smacksupport
|
3 |
Requires at least: 4.5
|
4 |
Tested up to: 5.2.2
|
5 |
-
Stable tag: 6.0.
|
6 |
-
Version: 6.0.
|
7 |
Requires PHP: 5.2.4
|
8 |
Author: smackcoders
|
9 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
@@ -23,7 +23,7 @@ There are 3 simple steps to follow,
|
|
23 |
2. Relate or map your CSV fields with WP fields using drag and drop or simple left/right pick list method.
|
24 |
3. Click import once done.
|
25 |
|
26 |
-
[youtube https://www.youtube.com/watch?v=
|
27 |
|
28 |
There are more features bundled to make even complicated post data import simplified.
|
29 |
|
@@ -148,12 +148,18 @@ Import to WordPress done in different methods based on content source type, plat
|
|
148 |
2. CSV methods allow any users with basic excel or any spreadsheet knowledge can audit, change, edit or update the data visually in bulk before importing. So painful manual works avoided and time saved. Also, CSV file is the most preferred method for any offline programs.
|
149 |
|
150 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
= 6.0.1 =
|
152 |
* Added: Upload support for txt file
|
153 |
* Improved: UI Improvements - process image for in send button in support page
|
154 |
* Improved: UI - Show export tab by default. If user have not installed the exporter plugin, It contains the download link.
|
155 |
* Improved: UI - In plugins page inside csv importer. If a plugin is installed show it as already installed.
|
156 |
-
* Fixed: Timer not stopping after import issue.
|
157 |
* Modified: Changed video url in documentation. In settings changed “file_uploads” and “allow_url_fopen” to “on” instead of 1.
|
158 |
|
159 |
= 6.0 =
|
@@ -161,7 +167,7 @@ Import to WordPress done in different methods based on content source type, plat
|
|
161 |
* Added: Header Manipulation fields can now hold static text content along with any CSV header content.
|
162 |
* Added: Media upload section to import Image from computer.
|
163 |
* Added: progress bar for desktop upload.
|
164 |
-
* Fixed: WordPress core custom fields issue.
|
165 |
|
166 |
= 5.6.2 =
|
167 |
* Added: support for remote url without extensions
|
@@ -174,16 +180,16 @@ Import to WordPress done in different methods based on content source type, plat
|
|
174 |
= 5.3.6 =
|
175 |
* Added: Compatibility for WordPress 4.9.8
|
176 |
* Added: Import Post parent import with Post Title
|
177 |
-
* Fixed: Post export redirection issue.
|
178 |
-
* Fixed: Post slug import in drag and drop method.
|
179 |
= 5.3.5 =
|
180 |
* Added: Support for serialized data import.
|
181 |
* Added: Compatibility for WordPress 4.9.6
|
182 |
* Improved: Usability and user interface.
|
183 |
-
* Fixed: Insertion of hyperlinks in WYSIWYG editor in drag and drop mapping.
|
184 |
= 5.3.4 =
|
185 |
* Improved: Notifications in mapping
|
186 |
-
* Fixed: Export menu issue.
|
187 |
= 5.3.3 =
|
188 |
* Added: Compatibility for WordPress 4.9
|
189 |
* Moved: User import as add-on.
|
@@ -194,36 +200,36 @@ Import to WordPress done in different methods based on content source type, plat
|
|
194 |
* Removed: Export
|
195 |
= 5.3.1 =
|
196 |
* Modified: Hide the filter based on Condition.
|
197 |
-
* Fixed: data loss when page refresh (export).
|
198 |
-
* Fixed: warning during Upload.
|
199 |
-
* Fixed: user export above 1000 records.
|
200 |
-
* Fixed: Custom Field Suite issue.
|
201 |
-
* Fixed: Forced quotes issue.
|
202 |
= 5.3 =
|
203 |
* Added: Prevent loss of mapping data
|
204 |
* Added: Custom field group plugin support
|
205 |
* Added: Maintenance mode
|
206 |
* Added: Inclusion feature
|
207 |
* Updated: Exclude selection as include selection in export module
|
208 |
-
* Fixed: User import
|
209 |
-
* Fixed: Delimiter issue
|
210 |
-
* Fixed: Advance mapping issues
|
211 |
-
* Fixed: Post status in Mapping
|
212 |
-
* Fixed: Featured image in Mapping
|
213 |
-
* Fixed: Post comment in Mapping
|
214 |
-
* Fixed: Export page radio button based on plugin activation
|
215 |
-
* Fixed: Comment Export
|
216 |
-
* Fixed: Text changes
|
217 |
= 5.2 =
|
218 |
* Added: Advance mapping view with Drag and Drop support.
|
219 |
* Added: Ultimate member plugin support for Users Import.
|
220 |
-
* Fixed: Issue with Post format.
|
221 |
-
* Fixed: Month order in dashboard charts.
|
222 |
* Added: Latest version support on All in One SEO 2.3.12.1.
|
223 |
* Added: Compatibility for WordPress 4.7.3.
|
224 |
= 5.1.1 =
|
225 |
-
* Fixed: Broken when SCRIPT_DEBUG is true. [Solved](https://wordpress.org/support/topic/broken-when-script_debug-is-true/).
|
226 |
-
* Fixed: Issue in duplicate handling to skip the duplicate records.
|
227 |
* Added: Missing font "glyphicons-halflings-regular.woff2".
|
228 |
* Removed: Unwanted console warnings.
|
229 |
* Added: Compatibility for WordPress 4.7.2.
|
@@ -235,23 +241,23 @@ Import to WordPress done in different methods based on content source type, plat
|
|
235 |
* Added: Duplicate handling feature to skip the duplicate records.
|
236 |
* Added: Canonical URL support in All in One SEO data import.
|
237 |
* Improved: CSV export performance.
|
238 |
-
* Fixed: All custom fields in WP installation adding to a Post. [Solved](https://wordpress.org/support/topic/version-5-03-issues).
|
239 |
-
* Fixed: Mixing up of Custom taxonomies while assigning a term to Post. [Solved](https://wordpress.org/support/topic/version-5-03-issues).
|
240 |
-
* Fixed: Adding unwanted data before and after post content. [Solved](https://wordpress.org/support/topic/version-5-03-issues).
|
241 |
-
* Fixed: Issue with Post Category & Tags export.
|
242 |
-
* Fixed: Missing up of SEO fields in mapping section.
|
243 |
-
* Fixed: Issue in exporting All in one SEO fields.
|
244 |
-
* Fixed: Issue in assigning page template (wp_page_template).
|
245 |
* Removed: Warnings in migration script.
|
246 |
= 5.0.3 =
|
247 |
* Added: Support for traditional Chinese characters.
|
248 |
-
* Fixed: Author/Editor menu visibility issue
|
249 |
-
* Fixed: [Assigning categories to post issue](https://wordpress.org/support/topic/ultimate-csv-importer-v5-adds-all-posts-to-uncategorized/)
|
250 |
-
* Fixed: [Import with Chinese character](https://wordpress.org/support/topic/unable-to-import-posts-with-chinese-characters/)
|
251 |
= 5.0.2 =
|
252 |
* Added: Compatibility from PHP 5.3.
|
253 |
= 5.0.1 =
|
254 |
-
* Fixed: WP Customer Reviews import feature.
|
255 |
= 5.0 =
|
256 |
* Added: Compatibility for WordPress 4.7 and PHP 7.
|
257 |
* Added: Option to replace imported CSV file value with static and dynamic value.
|
@@ -262,133 +268,133 @@ Import to WordPress done in different methods based on content source type, plat
|
|
262 |
* Improved: High-speed import with enhanced UI.
|
263 |
* Improved: User role import with capability value or role name in CSV
|
264 |
= 3.11.1 =
|
265 |
-
* Fixed: Browse button disappears in 3.11.0 https://wordpress.org/support/topic/browse-button-disappears-in-3110
|
266 |
= 3.11.0 =
|
267 |
* Added: Compatibility for WordPress 4.5.3.
|
268 |
* Added: menu_order field Import for Custom Post Type.
|
269 |
* Added: [Support for comma and pipeline separation in multi category & taxonomies import](https://wordpress.org/support/topic/importing-a-taxonomy-field?replies=4).
|
270 |
* Added: Compatibility to export WooCommerce fields with WooCommerce version 2.6.1.
|
271 |
* Updated: Help links of Product page & Live Demo.
|
272 |
-
* Fixed: Issues in Taxonomies, Categories & Tags export.
|
273 |
-
* Fixed: Issue in export by status filter.
|
274 |
= 3.10.0 =
|
275 |
* Improvements: Can export any number of records from WordPress site.
|
276 |
-
* Fixed: Issue in ACF relationship field export.
|
277 |
= 3.9.4 =
|
278 |
* Improvements: Duplicate image handling. Option to skip or rename image as image_name-number if image name is same as existing media image name.
|
279 |
= 3.9.3 =
|
280 |
* Added: Compatibility for WordPress 4.5
|
281 |
-
* Fixed: Environment issue with custom port id in MAMP.
|
282 |
= 3.9.2 =
|
283 |
* Modified: CSVParser Engine with SmackCSVParser, a high-speed robust parser.
|
284 |
= 3.9.1 =
|
285 |
* Added: Post parent now supports for post title and post name.
|
286 |
-
* Fixed: jQuery conflicts.
|
287 |
= 3.9 =
|
288 |
* Added: PHP 7 compatibility.
|
289 |
* Added: Support for all postdate formats.
|
290 |
-
* Fixed: Featured image and Inline image naming issues.
|
291 |
-
* Fixed: Auto mapping issues in Custom Fields and SEO Fields.
|
292 |
= 3.8.8 =
|
293 |
* Added: Localize script for multi-language support.
|
294 |
* Added: WordPress 4.4.1 compatibility.
|
295 |
* Improved: Code cleanups with WordPress standards.
|
296 |
-
* Fixed: Vulnerability security issue.
|
297 |
-
* Fixed: Export issue.
|
298 |
-
* Fixed: Custom Taxonomy import issue.
|
299 |
-
* Fixed: User mail notification on new user imports.
|
300 |
-
* Fixed: Category & Tag import issue in eShop module.
|
301 |
* Removed: Mod security check.
|
302 |
= 3.8.6 =
|
303 |
* Added: Compatibility for WordPress 4.4.
|
304 |
* Modified: Support page UI.
|
305 |
-
* Fixed: Postdate issue.
|
306 |
-
* Fixed: Custom Post Type listing issue.
|
307 |
= 3.8.5 =
|
308 |
* Added: Restriction to view the image without password for protected status content.
|
309 |
* Modified: Settings page UI.
|
310 |
-
* Fixed: post_status mandatory validation issue.
|
311 |
-
* Fixed: SEO Fields mapping issue.
|
312 |
-
* Fixed: Known issues in export.
|
313 |
-
* Fixed: Mandatory validation issues.
|
314 |
-
* Fixed: Console TypeError issue.
|
315 |
= 3.8.4 =
|
316 |
* Modified: Changed the Dashboard view.
|
317 |
= 3.8.3 =
|
318 |
* Added : Text domain for language translation system.
|
319 |
-
* Fixed
|
320 |
= 3.8.2 =
|
321 |
* Added : Compatibility for WordPress 4.3.1.
|
322 |
* Added : Grouped core custom field in mapping section.
|
323 |
* Added : Image import with spaces in image name.
|
324 |
-
* Fixed
|
325 |
-
* Fixed
|
326 |
= 3.8.1 =
|
327 |
* Added : Compatibility for WordPress 4.2.3 and 4.2.4.
|
328 |
* Added : Export by specific date and author option in comments.
|
329 |
-
* Fixed
|
330 |
-
* Fixed
|
331 |
* Removed : ../../../../../../wp-load.php and replaced with WordPress Ajax call.
|
332 |
* Removed : Direct usage of wp-content.
|
333 |
= 3.8 =
|
334 |
* Added : Multi language support (fr_FR,es_ES,nl_NL).
|
335 |
* Added : Inline image handling with short code along with image attributes.
|
336 |
* Added: Any delimiter support for CSV export.
|
337 |
-
* Fixed: Warnings and bugs Fixes
|
338 |
= 3.7.4 =
|
339 |
* Added : WordPress 4.2.2 compatibility.
|
340 |
-
* Fixed
|
341 |
= 3.7.3 =
|
342 |
-
* Fixed: Vulnerability security issue.
|
343 |
= 3.7.2 =
|
344 |
* Added: WordPress 4.2 and 4.2.1 compatibility.
|
345 |
-
* Fixed: Blank page issue conflicts.
|
346 |
= 3.7.1 =
|
347 |
* Added: Security fix for curl.
|
348 |
* Added: Security fix for session status.
|
349 |
= 3.7 =
|
350 |
-
* Fixed: Featured image hot link issue.
|
351 |
= 3.6.78 =
|
352 |
* Added: Hot security fix in readfile.php.
|
353 |
= 3.6.77 =
|
354 |
* Added: WordPress 4.1.1 compatibility.
|
355 |
* Improved: Inline image import feature.
|
356 |
* Added recursive method to assign the image.
|
357 |
-
* Fixed: Featured image naming issue. [Solved](https://wordpress.org/support/topic/problem-in-import-with-the-image-name)
|
358 |
* Removed: Warnings.
|
359 |
= 3.6.76 =
|
360 |
* Improved: Post Format.
|
361 |
-
* Fixed: Export eShop content issue.
|
362 |
-
* Fixed: Import with image name issue.
|
363 |
-
* Fixed: Groups plugin conflict.
|
364 |
= 3.6.75 =
|
365 |
* Added: Terminate & Continue option in import.
|
366 |
* Improved: Log section.
|
367 |
-
* Fixed: Web View & Admin View issue.
|
368 |
-
* Fixed: Security issue in export module.
|
369 |
= 3.6.74 =
|
370 |
-
* Fixed: Security issue.
|
371 |
= 3.6.73 =
|
372 |
* Added: WordPress 4.0 compatibility.
|
373 |
* Added: https format support for all WP instances.
|
374 |
* Added: Warning to guide user to create uploads directory with writable permissions.
|
375 |
* Improved: Security and performance tab under settings module.
|
376 |
-
* Fixed: Featured image-handling issues.
|
377 |
-
* Fixed: Multisite compatibility issue.
|
378 |
-
* Fixed: All console warnings.
|
379 |
* Removed: Post Content field mandatory option.
|
380 |
= 3.6.72 =
|
381 |
* Added: Debug mode enable/disable options.
|
382 |
* Modified: Menu order changes.
|
383 |
= 3.6.71 =
|
384 |
-
* Fixed: Minor bugs.
|
385 |
= 3.6.7 =
|
386 |
* Added: Export features for all missing modules.
|
387 |
-
* Fixed: All console warnings and reported logs.
|
388 |
= 3.6.6 =
|
389 |
-
* Fixed: Dashboard chart issue in multisite.
|
390 |
* Modified: UI to improve usability.
|
391 |
-
* Fixed: Groups plugin conflicts.
|
392 |
= 3.6.5 =
|
393 |
* Added: Inline image support with advanced media handling.
|
394 |
* Added: PDO check.
|
@@ -396,17 +402,17 @@ Import to WordPress done in different methods based on content source type, plat
|
|
396 |
* Added: WordPress 4.0 compatibility.
|
397 |
* Added: Advanced export features with filter options.
|
398 |
* Improved: Advanced log section.
|
399 |
-
* Fixed: jQuery issues.
|
400 |
= 3.6.3 =
|
401 |
* Added: eShop import support.
|
402 |
* Added: WordPress 3.9.2 compatibility.
|
403 |
-
* Fixed: Conflicts with other plugins.
|
404 |
= 3.6.2 =
|
405 |
-
* Fixed: Hot security issue.
|
406 |
= 3.6.1 =
|
407 |
-
* Fixed: Multi-site support issue.
|
408 |
-
* Fixed: Duplicate import issue.
|
409 |
-
* Fixed: Security issue.
|
410 |
= 3.6 =
|
411 |
* Added: Interactive graphs and charts in plugin dashboard.
|
412 |
* Added: Admin dashboard widgets.
|
@@ -418,14 +424,14 @@ Import to WordPress done in different methods based on content source type, plat
|
|
418 |
* Added: post_format attribute support.
|
419 |
* Added: page_template attribute.
|
420 |
* Added: update_post_meta for duplicate meta issue
|
421 |
-
* Fixed: TypeError issue in jQuery.
|
422 |
= 3.5.4 =
|
423 |
* Added: All in One SEO Pack import support.
|
424 |
* Added: WordPress 3.9.1 compatibility.
|
425 |
= 3.5.3 =
|
426 |
* Added: Compatibility for WordPress 3.9.
|
427 |
* Added: Export feature for Posts, Page, Custom Post.
|
428 |
-
* Fixed: Reported bugs
|
429 |
* Removed: all warnings.
|
430 |
= 3.5.2 =
|
431 |
* Import posts with author names as numerical apart from User ID
|
@@ -434,12 +440,12 @@ Import to WordPress done in different methods based on content source type, plat
|
|
434 |
* Option to cancel any partial import at middle
|
435 |
* Improved image handling even special characters in URL
|
436 |
* Import can handle image URLs without any extensions
|
437 |
-
* User reported bugs
|
438 |
= 3.5.1 =
|
439 |
* User reported issue fixes
|
440 |
* Activation and other plugin conflict issue solved like Jet pack
|
441 |
-
* Admin UI freezing issues - screen option, Help links issues
|
442 |
-
* WYSIWYG editor UI issue
|
443 |
= 3.5.0 =
|
444 |
* Combined major release version of 3.5 and 3.4
|
445 |
* Improved MVC structure.
|
@@ -468,21 +474,21 @@ Import to WordPress done in different methods based on content source type, plat
|
|
468 |
* Added: WordPress 3.6.1 compatibility added.
|
469 |
* Added: Mapping UI improved with on select dynamic update feature
|
470 |
* Added: Help content added
|
471 |
-
* Fixed: Post slug issue
|
472 |
= 3.2.1 =
|
473 |
* Improved: Performance improvements on SQL and CSV parsing
|
474 |
-
* Fixed: Plugin deactivation issue
|
475 |
-
* Fixed: Links in the cells makes problems with the "quote"
|
476 |
-
* Fixed: Loading content from more than one column
|
477 |
-
* Fixed: Custom Post type issues
|
478 |
= 3.2.0 =
|
479 |
* Improved: User interface improvements
|
480 |
* Improved:WordPress 3.6 compatibility added, Much Improved UI.
|
481 |
-
* Fixed: Featured image issues
|
482 |
= 3.1.0 =
|
483 |
* Improved: Much Improved Featured Image feature
|
484 |
-
* Fixed: Image URL for featured image issues
|
485 |
-
* Fixed: PHP 5.4 upgrade fix
|
486 |
= 3.0.0 =
|
487 |
* Added: Category in numeric are restricted and skipped to Uncategorized
|
488 |
* Added: Protected status password inclusion as {password}.
|
@@ -493,15 +499,15 @@ Import to WordPress done in different methods based on content source type, plat
|
|
493 |
* Improved: Any Date format supported now
|
494 |
* Improved: Future scheduling and status improved
|
495 |
* Improved: Can apply post status for individual post via CSV itself
|
496 |
-
* Improved: Featured image handling improved and
|
497 |
* Improved: Duplicate check options improved for both title and content option.
|
498 |
-
* Improved: Post author issue
|
499 |
* Improved: Wrong user id or name are automatically assigned under admin
|
500 |
* Improved: Multi category and tags improved
|
501 |
-
* Fixed: Custom Field mapping and import
|
502 |
-
* Fixed: Overall Status option improved and issue
|
503 |
-
* Fixed: Password field
|
504 |
-
* Fixed: Status as in CSV option improved and
|
505 |
= 2.7.0 =
|
506 |
* Added: Added more post status options
|
507 |
* Added: Publish, Sticky, Private, Draft and Pending Status for whole import
|
@@ -517,23 +523,23 @@ Import to WordPress done in different methods based on content source type, plat
|
|
517 |
* Improved: Mapping Fields
|
518 |
* Improved: Field tags are formatted to support auto mapping option (next milestone)
|
519 |
* Improved: Listed custom fields with prefix as CF: Name for easy identification.
|
520 |
-
* Fixed: Date format conflict at import
|
521 |
= 2.6.0 =
|
522 |
-
* Fixed: Major Bug
|
523 |
-
* Fixed: Added UTF-8 support.
|
524 |
-
* Fixed: Fixed
|
525 |
= 2.5.0 =
|
526 |
-
* Major issues
|
527 |
= 2.0.1 =
|
528 |
* Update to WordPress-3.5 compatibility.
|
529 |
= 2.0.0 =
|
530 |
-
* WPDEBUG errors
|
531 |
= 1.1.1 =
|
532 |
* Renamed the mapping field attachment as featured_image and category as post_category.
|
533 |
= 1.1.0 =
|
534 |
* Added featured image import feature along with post/page/custom post.
|
535 |
= 1.0.2 =
|
536 |
-
* Bug
|
537 |
* Added validation for the duplicate field mapping.
|
538 |
= 1.0.1 =
|
539 |
* Added features to import multiple tags and categories with different delimiters.
|
@@ -541,8 +547,10 @@ Import to WordPress done in different methods based on content source type, plat
|
|
541 |
* Initial release version. Tested and found works well without any issues.
|
542 |
|
543 |
== Upgrade Notice ==
|
544 |
-
= 6.0 =
|
545 |
-
* Upgrade now
|
|
|
|
|
546 |
= 6.0 =
|
547 |
* Upgrade now for overall improvements changes.
|
548 |
= 5.6.2 =
|
@@ -608,7 +616,7 @@ Import to WordPress done in different methods based on content source type, plat
|
|
608 |
= 3.8.2 =
|
609 |
* Upgrade now for more improvements.
|
610 |
= 3.8.1 =
|
611 |
-
* Upgrade now for ABSPATH used in all files and also
|
612 |
= 3.8 =
|
613 |
* Upgrade now for Multi language support and bug fixes
|
614 |
= 3.7.4 =
|
@@ -684,7 +692,7 @@ Import to WordPress done in different methods based on content source type, plat
|
|
684 |
= 2.7.0 =
|
685 |
* Major improvements and feature changes.
|
686 |
= 2.6.0 =
|
687 |
-
* Bug
|
688 |
= 2.5.0 =
|
689 |
* Duplicate detection added.
|
690 |
* Added more information in success message.
|
@@ -693,7 +701,7 @@ Import to WordPress done in different methods based on content source type, plat
|
|
693 |
* WordPress-3.5 compatibility.
|
694 |
= 2.0.0 =
|
695 |
* Major Bug fix and need to upgraded.
|
696 |
-
* WPDEBUG error
|
697 |
* CSV import folder changed to WP native uploads folder.
|
698 |
= 1.1.1 =
|
699 |
* Minor correction and fix applied.
|
@@ -704,4 +712,4 @@ Import to WordPress done in different methods based on content source type, plat
|
|
704 |
= 1.0.1 =
|
705 |
* Added features to import multiple tags and categories with different delimiters.
|
706 |
= 1.0.0 =
|
707 |
-
* Initial release of plugin.
|
1 |
+
=== Import & Export WordPress Data to CSV ===
|
2 |
Contributors: smackcoders, smacksupport
|
3 |
Requires at least: 4.5
|
4 |
Tested up to: 5.2.2
|
5 |
+
Stable tag: 6.0.2
|
6 |
+
Version: 6.0.2
|
7 |
Requires PHP: 5.2.4
|
8 |
Author: smackcoders
|
9 |
Author URI: http://profiles.wordpress.org/smackcoders/
|
23 |
2. Relate or map your CSV fields with WP fields using drag and drop or simple left/right pick list method.
|
24 |
3. Click import once done.
|
25 |
|
26 |
+
[youtube https://www.youtube.com/watch?v=yg9Z6yJqRfo&feature=youtu.be]
|
27 |
|
28 |
There are more features bundled to make even complicated post data import simplified.
|
29 |
|
148 |
2. CSV methods allow any users with basic excel or any spreadsheet knowledge can audit, change, edit or update the data visually in bulk before importing. So painful manual works avoided and time saved. Also, CSV file is the most preferred method for any offline programs.
|
149 |
|
150 |
== Changelog ==
|
151 |
+
= 6.0.2 =
|
152 |
+
* Fixed: posts import struck in first record
|
153 |
+
* Added: support for image import through google drive
|
154 |
+
* Fixed: CPT-UI with product category import issue
|
155 |
+
* Fixed: minor issues & warnings
|
156 |
+
|
157 |
= 6.0.1 =
|
158 |
* Added: Upload support for txt file
|
159 |
* Improved: UI Improvements - process image for in send button in support page
|
160 |
* Improved: UI - Show export tab by default. If user have not installed the exporter plugin, It contains the download link.
|
161 |
* Improved: UI - In plugins page inside csv importer. If a plugin is installed show it as already installed.
|
162 |
+
* Fixed: : Timer not stopping after import issue.
|
163 |
* Modified: Changed video url in documentation. In settings changed “file_uploads” and “allow_url_fopen” to “on” instead of 1.
|
164 |
|
165 |
= 6.0 =
|
167 |
* Added: Header Manipulation fields can now hold static text content along with any CSV header content.
|
168 |
* Added: Media upload section to import Image from computer.
|
169 |
* Added: progress bar for desktop upload.
|
170 |
+
* Fixed: : WordPress core custom fields issue.
|
171 |
|
172 |
= 5.6.2 =
|
173 |
* Added: support for remote url without extensions
|
180 |
= 5.3.6 =
|
181 |
* Added: Compatibility for WordPress 4.9.8
|
182 |
* Added: Import Post parent import with Post Title
|
183 |
+
* Fixed: : Post export redirection issue.
|
184 |
+
* Fixed: : Post slug import in drag and drop method.
|
185 |
= 5.3.5 =
|
186 |
* Added: Support for serialized data import.
|
187 |
* Added: Compatibility for WordPress 4.9.6
|
188 |
* Improved: Usability and user interface.
|
189 |
+
* Fixed: : Insertion of hyperlinks in WYSIWYG editor in drag and drop mapping.
|
190 |
= 5.3.4 =
|
191 |
* Improved: Notifications in mapping
|
192 |
+
* Fixed: : Export menu issue.
|
193 |
= 5.3.3 =
|
194 |
* Added: Compatibility for WordPress 4.9
|
195 |
* Moved: User import as add-on.
|
200 |
* Removed: Export
|
201 |
= 5.3.1 =
|
202 |
* Modified: Hide the filter based on Condition.
|
203 |
+
* Fixed: : data loss when page refresh (export).
|
204 |
+
* Fixed: : warning during Upload.
|
205 |
+
* Fixed: : user export above 1000 records.
|
206 |
+
* Fixed: : Custom Field Suite issue.
|
207 |
+
* Fixed: : Forced quotes issue.
|
208 |
= 5.3 =
|
209 |
* Added: Prevent loss of mapping data
|
210 |
* Added: Custom field group plugin support
|
211 |
* Added: Maintenance mode
|
212 |
* Added: Inclusion feature
|
213 |
* Updated: Exclude selection as include selection in export module
|
214 |
+
* Fixed: : User import
|
215 |
+
* Fixed: : Delimiter issue
|
216 |
+
* Fixed: : Advance mapping issues
|
217 |
+
* Fixed: : Post status in Mapping
|
218 |
+
* Fixed: : Featured image in Mapping
|
219 |
+
* Fixed: : Post comment in Mapping
|
220 |
+
* Fixed: : Export page radio button based on plugin activation
|
221 |
+
* Fixed: : Comment Export
|
222 |
+
* Fixed: : Text changes
|
223 |
= 5.2 =
|
224 |
* Added: Advance mapping view with Drag and Drop support.
|
225 |
* Added: Ultimate member plugin support for Users Import.
|
226 |
+
* Fixed: : Issue with Post format.
|
227 |
+
* Fixed: : Month order in dashboard charts.
|
228 |
* Added: Latest version support on All in One SEO 2.3.12.1.
|
229 |
* Added: Compatibility for WordPress 4.7.3.
|
230 |
= 5.1.1 =
|
231 |
+
* Fixed: : Broken when SCRIPT_DEBUG is true. [Solved](https://wordpress.org/support/topic/broken-when-script_debug-is-true/).
|
232 |
+
* Fixed: : Issue in duplicate handling to skip the duplicate records.
|
233 |
* Added: Missing font "glyphicons-halflings-regular.woff2".
|
234 |
* Removed: Unwanted console warnings.
|
235 |
* Added: Compatibility for WordPress 4.7.2.
|
241 |
* Added: Duplicate handling feature to skip the duplicate records.
|
242 |
* Added: Canonical URL support in All in One SEO data import.
|
243 |
* Improved: CSV export performance.
|
244 |
+
* Fixed: : All custom fields in WP installation adding to a Post. [Solved](https://wordpress.org/support/topic/version-5-03-issues).
|
245 |
+
* Fixed: : Mixing up of Custom taxonomies while assigning a term to Post. [Solved](https://wordpress.org/support/topic/version-5-03-issues).
|
246 |
+
* Fixed: : Adding unwanted data before and after post content. [Solved](https://wordpress.org/support/topic/version-5-03-issues).
|
247 |
+
* Fixed: : Issue with Post Category & Tags export.
|
248 |
+
* Fixed: : Missing up of SEO fields in mapping section.
|
249 |
+
* Fixed: : Issue in exporting All in one SEO fields.
|
250 |
+
* Fixed: : Issue in assigning page template (wp_page_template).
|
251 |
* Removed: Warnings in migration script.
|
252 |
= 5.0.3 =
|
253 |
* Added: Support for traditional Chinese characters.
|
254 |
+
* Fixed: : Author/Editor menu visibility issue
|
255 |
+
* Fixed: : [Assigning categories to post issue](https://wordpress.org/support/topic/ultimate-csv-importer-v5-adds-all-posts-to-uncategorized/)
|
256 |
+
* Fixed: : [Import with Chinese character](https://wordpress.org/support/topic/unable-to-import-posts-with-chinese-characters/)
|
257 |
= 5.0.2 =
|
258 |
* Added: Compatibility from PHP 5.3.
|
259 |
= 5.0.1 =
|
260 |
+
* Fixed: : WP Customer Reviews import feature.
|
261 |
= 5.0 =
|
262 |
* Added: Compatibility for WordPress 4.7 and PHP 7.
|
263 |
* Added: Option to replace imported CSV file value with static and dynamic value.
|
268 |
* Improved: High-speed import with enhanced UI.
|
269 |
* Improved: User role import with capability value or role name in CSV
|
270 |
= 3.11.1 =
|
271 |
+
* Fixed: : Browse button disappears in 3.11.0 https://wordpress.org/support/topic/browse-button-disappears-in-3110
|
272 |
= 3.11.0 =
|
273 |
* Added: Compatibility for WordPress 4.5.3.
|
274 |
* Added: menu_order field Import for Custom Post Type.
|
275 |
* Added: [Support for comma and pipeline separation in multi category & taxonomies import](https://wordpress.org/support/topic/importing-a-taxonomy-field?replies=4).
|
276 |
* Added: Compatibility to export WooCommerce fields with WooCommerce version 2.6.1.
|
277 |
* Updated: Help links of Product page & Live Demo.
|
278 |
+
* Fixed: : Issues in Taxonomies, Categories & Tags export.
|
279 |
+
* Fixed: : Issue in export by status filter.
|
280 |
= 3.10.0 =
|
281 |
* Improvements: Can export any number of records from WordPress site.
|
282 |
+
* Fixed: : Issue in ACF relationship field export.
|
283 |
= 3.9.4 =
|
284 |
* Improvements: Duplicate image handling. Option to skip or rename image as image_name-number if image name is same as existing media image name.
|
285 |
= 3.9.3 =
|
286 |
* Added: Compatibility for WordPress 4.5
|
287 |
+
* Fixed: : Environment issue with custom port id in MAMP.
|
288 |
= 3.9.2 =
|
289 |
* Modified: CSVParser Engine with SmackCSVParser, a high-speed robust parser.
|
290 |
= 3.9.1 =
|
291 |
* Added: Post parent now supports for post title and post name.
|
292 |
+
* Fixed: : jQuery conflicts.
|
293 |
= 3.9 =
|
294 |
* Added: PHP 7 compatibility.
|
295 |
* Added: Support for all postdate formats.
|
296 |
+
* Fixed: : Featured image and Inline image naming issues.
|
297 |
+
* Fixed: : Auto mapping issues in Custom Fields and SEO Fields.
|
298 |
= 3.8.8 =
|
299 |
* Added: Localize script for multi-language support.
|
300 |
* Added: WordPress 4.4.1 compatibility.
|
301 |
* Improved: Code cleanups with WordPress standards.
|
302 |
+
* Fixed: : Vulnerability security issue.
|
303 |
+
* Fixed: : Export issue.
|
304 |
+
* Fixed: : Custom Taxonomy import issue.
|
305 |
+
* Fixed: : User mail notification on new user imports.
|
306 |
+
* Fixed: : Category & Tag import issue in eShop module.
|
307 |
* Removed: Mod security check.
|
308 |
= 3.8.6 =
|
309 |
* Added: Compatibility for WordPress 4.4.
|
310 |
* Modified: Support page UI.
|
311 |
+
* Fixed: : Postdate issue.
|
312 |
+
* Fixed: : Custom Post Type listing issue.
|
313 |
= 3.8.5 =
|
314 |
* Added: Restriction to view the image without password for protected status content.
|
315 |
* Modified: Settings page UI.
|
316 |
+
* Fixed: : post_status mandatory validation issue.
|
317 |
+
* Fixed: : SEO Fields mapping issue.
|
318 |
+
* Fixed: : Known issues in export.
|
319 |
+
* Fixed: : Mandatory validation issues.
|
320 |
+
* Fixed: : Console TypeError issue.
|
321 |
= 3.8.4 =
|
322 |
* Modified: Changed the Dashboard view.
|
323 |
= 3.8.3 =
|
324 |
* Added : Text domain for language translation system.
|
325 |
+
* Fixed: : Detect duplicate issue.
|
326 |
= 3.8.2 =
|
327 |
* Added : Compatibility for WordPress 4.3.1.
|
328 |
* Added : Grouped core custom field in mapping section.
|
329 |
* Added : Image import with spaces in image name.
|
330 |
+
* Fixed: : Module entry count in dashboard issue.
|
331 |
+
* Fixed: : Duplication of image in media gallery.
|
332 |
= 3.8.1 =
|
333 |
* Added : Compatibility for WordPress 4.2.3 and 4.2.4.
|
334 |
* Added : Export by specific date and author option in comments.
|
335 |
+
* Fixed: : warnings triggered in console.
|
336 |
+
* Fixed: : XSS vulnerability.
|
337 |
* Removed : ../../../../../../wp-load.php and replaced with WordPress Ajax call.
|
338 |
* Removed : Direct usage of wp-content.
|
339 |
= 3.8 =
|
340 |
* Added : Multi language support (fr_FR,es_ES,nl_NL).
|
341 |
* Added : Inline image handling with short code along with image attributes.
|
342 |
* Added: Any delimiter support for CSV export.
|
343 |
+
* Fixed: : Warnings and bugs Fixes
|
344 |
= 3.7.4 =
|
345 |
* Added : WordPress 4.2.2 compatibility.
|
346 |
+
* Fixed: : Allow Editor/Author to import.(Multisite also).
|
347 |
= 3.7.3 =
|
348 |
+
* Fixed: : Vulnerability security issue.
|
349 |
= 3.7.2 =
|
350 |
* Added: WordPress 4.2 and 4.2.1 compatibility.
|
351 |
+
* Fixed: : Blank page issue conflicts.
|
352 |
= 3.7.1 =
|
353 |
* Added: Security fix for curl.
|
354 |
* Added: Security fix for session status.
|
355 |
= 3.7 =
|
356 |
+
* Fixed: : Featured image hot link issue.
|
357 |
= 3.6.78 =
|
358 |
* Added: Hot security fix in readfile.php.
|
359 |
= 3.6.77 =
|
360 |
* Added: WordPress 4.1.1 compatibility.
|
361 |
* Improved: Inline image import feature.
|
362 |
* Added recursive method to assign the image.
|
363 |
+
* Fixed: : Featured image naming issue. [Solved](https://wordpress.org/support/topic/problem-in-import-with-the-image-name)
|
364 |
* Removed: Warnings.
|
365 |
= 3.6.76 =
|
366 |
* Improved: Post Format.
|
367 |
+
* Fixed: : Export eShop content issue.
|
368 |
+
* Fixed: : Import with image name issue.
|
369 |
+
* Fixed: : Groups plugin conflict.
|
370 |
= 3.6.75 =
|
371 |
* Added: Terminate & Continue option in import.
|
372 |
* Improved: Log section.
|
373 |
+
* Fixed: : Web View & Admin View issue.
|
374 |
+
* Fixed: : Security issue in export module.
|
375 |
= 3.6.74 =
|
376 |
+
* Fixed: : Security issue.
|
377 |
= 3.6.73 =
|
378 |
* Added: WordPress 4.0 compatibility.
|
379 |
* Added: https format support for all WP instances.
|
380 |
* Added: Warning to guide user to create uploads directory with writable permissions.
|
381 |
* Improved: Security and performance tab under settings module.
|
382 |
+
* Fixed: : Featured image-handling issues.
|
383 |
+
* Fixed: : Multisite compatibility issue.
|
384 |
+
* Fixed: : All console warnings.
|
385 |
* Removed: Post Content field mandatory option.
|
386 |
= 3.6.72 =
|
387 |
* Added: Debug mode enable/disable options.
|
388 |
* Modified: Menu order changes.
|
389 |
= 3.6.71 =
|
390 |
+
* Fixed: : Minor bugs.
|
391 |
= 3.6.7 =
|
392 |
* Added: Export features for all missing modules.
|
393 |
+
* Fixed: : All console warnings and reported logs.
|
394 |
= 3.6.6 =
|
395 |
+
* Fixed: : Dashboard chart issue in multisite.
|
396 |
* Modified: UI to improve usability.
|
397 |
+
* Fixed: : Groups plugin conflicts.
|
398 |
= 3.6.5 =
|
399 |
* Added: Inline image support with advanced media handling.
|
400 |
* Added: PDO check.
|
402 |
* Added: WordPress 4.0 compatibility.
|
403 |
* Added: Advanced export features with filter options.
|
404 |
* Improved: Advanced log section.
|
405 |
+
* Fixed: : jQuery issues.
|
406 |
= 3.6.3 =
|
407 |
* Added: eShop import support.
|
408 |
* Added: WordPress 3.9.2 compatibility.
|
409 |
+
* Fixed: : Conflicts with other plugins.
|
410 |
= 3.6.2 =
|
411 |
+
* Fixed: : Hot security issue.
|
412 |
= 3.6.1 =
|
413 |
+
* Fixed: : Multi-site support issue.
|
414 |
+
* Fixed: : Duplicate import issue.
|
415 |
+
* Fixed: : Security issue.
|
416 |
= 3.6 =
|
417 |
* Added: Interactive graphs and charts in plugin dashboard.
|
418 |
* Added: Admin dashboard widgets.
|
424 |
* Added: post_format attribute support.
|
425 |
* Added: page_template attribute.
|
426 |
* Added: update_post_meta for duplicate meta issue
|
427 |
+
* Fixed: : TypeError issue in jQuery.
|
428 |
= 3.5.4 =
|
429 |
* Added: All in One SEO Pack import support.
|
430 |
* Added: WordPress 3.9.1 compatibility.
|
431 |
= 3.5.3 =
|
432 |
* Added: Compatibility for WordPress 3.9.
|
433 |
* Added: Export feature for Posts, Page, Custom Post.
|
434 |
+
* Fixed: : Reported bugs
|
435 |
* Removed: all warnings.
|
436 |
= 3.5.2 =
|
437 |
* Import posts with author names as numerical apart from User ID
|
440 |
* Option to cancel any partial import at middle
|
441 |
* Improved image handling even special characters in URL
|
442 |
* Import can handle image URLs without any extensions
|
443 |
+
* User reported bugs Fixed:
|
444 |
= 3.5.1 =
|
445 |
* User reported issue fixes
|
446 |
* Activation and other plugin conflict issue solved like Jet pack
|
447 |
+
* Admin UI freezing issues - screen option, Help links issues Fixed: .
|
448 |
+
* WYSIWYG editor UI issue Fixed: .
|
449 |
= 3.5.0 =
|
450 |
* Combined major release version of 3.5 and 3.4
|
451 |
* Improved MVC structure.
|
474 |
* Added: WordPress 3.6.1 compatibility added.
|
475 |
* Added: Mapping UI improved with on select dynamic update feature
|
476 |
* Added: Help content added
|
477 |
+
* Fixed: : Post slug issue Fixed: and tested for 3.6 and 3.6.1
|
478 |
= 3.2.1 =
|
479 |
* Improved: Performance improvements on SQL and CSV parsing
|
480 |
+
* Fixed: : Plugin deactivation issue Fixed: and updated the code.
|
481 |
+
* Fixed: : Links in the cells makes problems with the "quote"
|
482 |
+
* Fixed: : Loading content from more than one column
|
483 |
+
* Fixed: : Custom Post type issues Fixed:
|
484 |
= 3.2.0 =
|
485 |
* Improved: User interface improvements
|
486 |
* Improved:WordPress 3.6 compatibility added, Much Improved UI.
|
487 |
+
* Fixed: : Featured image issues Fixed: for WordPress-3.6.
|
488 |
= 3.1.0 =
|
489 |
* Improved: Much Improved Featured Image feature
|
490 |
+
* Fixed: : Image URL for featured image issues Fixed:
|
491 |
+
* Fixed: : PHP 5.4 upgrade fix
|
492 |
= 3.0.0 =
|
493 |
* Added: Category in numeric are restricted and skipped to Uncategorized
|
494 |
* Added: Protected status password inclusion as {password}.
|
499 |
* Improved: Any Date format supported now
|
500 |
* Improved: Future scheduling and status improved
|
501 |
* Improved: Can apply post status for individual post via CSV itself
|
502 |
+
* Improved: Featured image handling improved and Fixed: . More improvement are scheduled.
|
503 |
* Improved: Duplicate check options improved for both title and content option.
|
504 |
+
* Improved: Post author issue Fixed: and improved
|
505 |
* Improved: Wrong user id or name are automatically assigned under admin
|
506 |
* Improved: Multi category and tags improved
|
507 |
+
* Fixed: : Custom Field mapping and import Fixed:
|
508 |
+
* Fixed: : Overall Status option improved and issue Fixed:
|
509 |
+
* Fixed: : Password field Fixed: for Protected
|
510 |
+
* Fixed: : Status as in CSV option improved and Fixed:
|
511 |
= 2.7.0 =
|
512 |
* Added: Added more post status options
|
513 |
* Added: Publish, Sticky, Private, Draft and Pending Status for whole import
|
523 |
* Improved: Mapping Fields
|
524 |
* Improved: Field tags are formatted to support auto mapping option (next milestone)
|
525 |
* Improved: Listed custom fields with prefix as CF: Name for easy identification.
|
526 |
+
* Fixed: : Date format conflict at import Fixed: .
|
527 |
= 2.6.0 =
|
528 |
+
* Fixed: : Major Bug Fixed:
|
529 |
+
* Fixed: : Added UTF-8 support.
|
530 |
+
* Fixed: : Fixed: HTML tag conflicts.
|
531 |
= 2.5.0 =
|
532 |
+
* Major issues Fixed: and updated to WordPress-3.5.1 compatibility.
|
533 |
= 2.0.1 =
|
534 |
* Update to WordPress-3.5 compatibility.
|
535 |
= 2.0.0 =
|
536 |
+
* WPDEBUG errors Fixed: . CSV import folder changed to WP native uploads folder.
|
537 |
= 1.1.1 =
|
538 |
* Renamed the mapping field attachment as featured_image and category as post_category.
|
539 |
= 1.1.0 =
|
540 |
* Added featured image import feature along with post/page/custom post.
|
541 |
= 1.0.2 =
|
542 |
+
* Bug Fixed: to recognize the trimmed trailing space in the CSV file
|
543 |
* Added validation for the duplicate field mapping.
|
544 |
= 1.0.1 =
|
545 |
* Added features to import multiple tags and categories with different delimiters.
|
547 |
* Initial release version. Tested and found works well without any issues.
|
548 |
|
549 |
== Upgrade Notice ==
|
550 |
+
= 6.0.2 =
|
551 |
+
* Upgrade now added feature/improvements and known issue fixes
|
552 |
+
= 6.0.1 =
|
553 |
+
* Upgrade now for more improvements and known issue fixes
|
554 |
= 6.0 =
|
555 |
* Upgrade now for overall improvements changes.
|
556 |
= 5.6.2 =
|
616 |
= 3.8.2 =
|
617 |
* Upgrade now for more improvements.
|
618 |
= 3.8.1 =
|
619 |
+
* Upgrade now for ABSPATH used in all files and also Fixed: all the warnings,bugs.
|
620 |
= 3.8 =
|
621 |
* Upgrade now for Multi language support and bug fixes
|
622 |
= 3.7.4 =
|
692 |
= 2.7.0 =
|
693 |
* Major improvements and feature changes.
|
694 |
= 2.6.0 =
|
695 |
+
* Bug Fixed: and should upgrade.
|
696 |
= 2.5.0 =
|
697 |
* Duplicate detection added.
|
698 |
* Added more information in success message.
|
701 |
* WordPress-3.5 compatibility.
|
702 |
= 2.0.0 =
|
703 |
* Major Bug fix and need to upgraded.
|
704 |
+
* WPDEBUG error Fixed: .
|
705 |
* CSV import folder changed to WP native uploads folder.
|
706 |
= 1.1.1 =
|
707 |
* Minor correction and fix applied.
|
712 |
= 1.0.1 =
|
713 |
* Added features to import multiple tags and categories with different delimiters.
|
714 |
= 1.0.0 =
|
715 |
+
* Initial release of plugin.
|
assets/js/admin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){function t(t){for(var s,i,l=t[0],r=t[1],c=t[2],d=0,u=[];d<l.length;d++)i=l[d],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&u.push(n[i][0]),n[i]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);for(m&&m(t);u.length;)u.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var e,t=0;t<o.length;t++){for(var a=o[t],s=!0,l=1;l<a.length;l++){var r=a[l];0!==n[r]&&(s=!1)}s&&(o.splice(t--,1),e=i(i.s=a[0]))}return e}var s={},n={0:0},o=[];function i(t){if(s[t])return s[t].exports;var a=s[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=s,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(a,s,function(t){return e[t]}.bind(null,s));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var l=window.webpackJsonp=window.webpackJsonp||[],r=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var m=r;o.push([424,1]),a()}({333:function(e,t,a){var s={"./af":113,"./af.js":113,"./ar":114,"./ar-dz":115,"./ar-dz.js":115,"./ar-kw":116,"./ar-kw.js":116,"./ar-ly":117,"./ar-ly.js":117,"./ar-ma":118,"./ar-ma.js":118,"./ar-sa":119,"./ar-sa.js":119,"./ar-tn":120,"./ar-tn.js":120,"./ar.js":114,"./az":121,"./az.js":121,"./be":122,"./be.js":122,"./bg":123,"./bg.js":123,"./bm":124,"./bm.js":124,"./bn":125,"./bn.js":125,"./bo":126,"./bo.js":126,"./br":127,"./br.js":127,"./bs":128,"./bs.js":128,"./ca":129,"./ca.js":129,"./cs":130,"./cs.js":130,"./cv":131,"./cv.js":131,"./cy":132,"./cy.js":132,"./da":133,"./da.js":133,"./de":134,"./de-at":135,"./de-at.js":135,"./de-ch":136,"./de-ch.js":136,"./de.js":134,"./dv":137,"./dv.js":137,"./el":138,"./el.js":138,"./en-SG":139,"./en-SG.js":139,"./en-au":140,"./en-au.js":140,"./en-ca":141,"./en-ca.js":141,"./en-gb":142,"./en-gb.js":142,"./en-ie":143,"./en-ie.js":143,"./en-il":144,"./en-il.js":144,"./en-nz":145,"./en-nz.js":145,"./eo":146,"./eo.js":146,"./es":147,"./es-do":148,"./es-do.js":148,"./es-us":149,"./es-us.js":149,"./es.js":147,"./et":150,"./et.js":150,"./eu":151,"./eu.js":151,"./fa":152,"./fa.js":152,"./fi":153,"./fi.js":153,"./fo":154,"./fo.js":154,"./fr":155,"./fr-ca":156,"./fr-ca.js":156,"./fr-ch":157,"./fr-ch.js":157,"./fr.js":155,"./fy":158,"./fy.js":158,"./ga":159,"./ga.js":159,"./gd":160,"./gd.js":160,"./gl":161,"./gl.js":161,"./gom-latn":162,"./gom-latn.js":162,"./gu":163,"./gu.js":163,"./he":164,"./he.js":164,"./hi":165,"./hi.js":165,"./hr":166,"./hr.js":166,"./hu":167,"./hu.js":167,"./hy-am":168,"./hy-am.js":168,"./id":169,"./id.js":169,"./is":170,"./is.js":170,"./it":171,"./it-ch":172,"./it-ch.js":172,"./it.js":171,"./ja":173,"./ja.js":173,"./jv":174,"./jv.js":174,"./ka":175,"./ka.js":175,"./kk":176,"./kk.js":176,"./km":177,"./km.js":177,"./kn":178,"./kn.js":178,"./ko":179,"./ko.js":179,"./ku":180,"./ku.js":180,"./ky":181,"./ky.js":181,"./lb":182,"./lb.js":182,"./lo":183,"./lo.js":183,"./lt":184,"./lt.js":184,"./lv":185,"./lv.js":185,"./me":186,"./me.js":186,"./mi":187,"./mi.js":187,"./mk":188,"./mk.js":188,"./ml":189,"./ml.js":189,"./mn":190,"./mn.js":190,"./mr":191,"./mr.js":191,"./ms":192,"./ms-my":193,"./ms-my.js":193,"./ms.js":192,"./mt":194,"./mt.js":194,"./my":195,"./my.js":195,"./nb":196,"./nb.js":196,"./ne":197,"./ne.js":197,"./nl":198,"./nl-be":199,"./nl-be.js":199,"./nl.js":198,"./nn":200,"./nn.js":200,"./pa-in":201,"./pa-in.js":201,"./pl":202,"./pl.js":202,"./pt":203,"./pt-br":204,"./pt-br.js":204,"./pt.js":203,"./ro":205,"./ro.js":205,"./ru":206,"./ru.js":206,"./sd":207,"./sd.js":207,"./se":208,"./se.js":208,"./si":209,"./si.js":209,"./sk":210,"./sk.js":210,"./sl":211,"./sl.js":211,"./sq":212,"./sq.js":212,"./sr":213,"./sr-cyrl":214,"./sr-cyrl.js":214,"./sr.js":213,"./ss":215,"./ss.js":215,"./sv":216,"./sv.js":216,"./sw":217,"./sw.js":217,"./ta":218,"./ta.js":218,"./te":219,"./te.js":219,"./tet":220,"./tet.js":220,"./tg":221,"./tg.js":221,"./th":222,"./th.js":222,"./tl-ph":223,"./tl-ph.js":223,"./tlh":224,"./tlh.js":224,"./tr":225,"./tr.js":225,"./tzl":226,"./tzl.js":226,"./tzm":227,"./tzm-latn":228,"./tzm-latn.js":228,"./tzm.js":227,"./ug-cn":229,"./ug-cn.js":229,"./uk":230,"./uk.js":230,"./ur":231,"./ur.js":231,"./uz":232,"./uz-latn":233,"./uz-latn.js":233,"./uz.js":232,"./vi":234,"./vi.js":234,"./x-pseudo":235,"./x-pseudo.js":235,"./yo":236,"./yo.js":236,"./zh-cn":237,"./zh-cn.js":237,"./zh-hk":238,"./zh-hk.js":238,"./zh-tw":239,"./zh-tw.js":239};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=o,e.exports=n,n.id=333},424:function(e,t,a){"use strict";a.r(t);var s=a(0),n=a.n(s),o=a(35),i=a.n(o),l=a(7),r=a.n(l),c=a(8),m=a.n(c),d=a(9),u=a.n(d),p=a(10),h=a.n(p),g=a(11),f=a.n(g),v=a(4),E=a.n(v),b=a(12),x=a.n(b),y=a(6),S=a.n(y),N=a(1),w=a.n(N),C=n.a.createContext(),k=a(90),F=a(13),T=a.n(F),M=a(14);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?D(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):D(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var P=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{loading:!1,zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:""}),a}var a;return f()(t,e),m()(t,[{key:"onFilePondProcess",value:function(e,a,s,n,o,i,l){var r=new FormData;r.append("csvFile",a,a.name),r.append("action","get_desktop");var c=new XMLHttpRequest;return c.open("POST",ajaxurl),c.upload.onprogress=function(e){i(e.lengthComputable,e.loaded,e.total)},c.onload=function(){if(c.status>=200&&c.status<300){n(JSON.parse(c.responseText));var e=JSON.parse(c.responseText);t.filePondResponse=e,t.filePondResponse.success?t.showRecord=!0:(t.showRecord=!1,M.toast.error(t.filePondResponse.message))}else o("oh no")},c.send(r),{abort:function(){c.abort(),l()}}}},{key:"onProcessFile",value:function(){if(console.log("checkDesk",t.filePondResponse),"csv"===t.filePondResponse.file_type||"txt"===t.filePondResponse.file_type)return this.context.setCSVInfo(_({},this.context.csvInfo,{hashKey:t.filePondResponse.hashkey,templateName:t.filePondResponse.filename.slice(0,-4),selectedtype:t.filePondResponse.selectedtype,fileName:t.filePondResponse.filename,connectionType:"desktop",postTypes:t.filePondResponse.posttype,fileSize:t.filePondResponse.file_size,fileType:"csv"})),void this.context.setShowComponent("csv-info");if("zip"===t.filePondResponse.file_type){for(var e=0;e<t.filePondResponse.info.length;e++)this.state.zipCsvFileName.push(t.filePondResponse.info[e].name),this.state.zipCsvUrls.push(t.filePondResponse.info[e].path);return this.context.setCSVInfo(_({},this.context.csvInfo,{connectionType:"desktop"})),void this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},function(){document.getElementById("desk-csv-open").click()})}}},{key:"onRemoveFile",value:function(){}},{key:"sendFileUrl",value:(a=x()(E.a.mark(function e(){var a,s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","get_csv_url"),a.set("url",this.context.selectedFileUrl),this.setState({loading:!0}),e.prev=4,e.next=7,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:if(s=e.sent,console.log("Filetype",s),!s||!s.data){e.next=15;break}if(200!=s.status||!s.data.success){e.next=15;break}return this.context.setCSVInfo(_({},this.context.csvInfo,(n={hashKey:s.data.hashkey,templateName:t.filePondResponse.filename.slice(0,-4),selectedtype:s.data.selectedtype},w()(n,"templateName","From-url"),w()(n,"postTypes",s.data.posttype),w()(n,"fileName",s.data.filename),w()(n,"fileType",s.data.file_type),w()(n,"fileSize",s.data.file_size),n))),document.getElementById("desk-csv-close").click(),this.context.setShowComponent("csv-info"),e.abrupt("return");case 15:console.log("data not found"),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(4),console.log(e.t0),console.log("request failed");case 22:case"end":return e.stop()}},e,this,[[4,18]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{class:"col-md-9 ".concat(t.showRecord&&this.state.showImportRecord?"min":"")},n.a.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},n.a.createElement("div",{className:"tab-pane fade show active",id:"v-pills-home",role:"tabpanel","aria-labelledby":"v-pills-home-tab"},n.a.createElement(k.FilePond,{acceptedFileTypes:["text/csv/xml"].zip,allowMultiple:!1,maxFiles:1,server:{process:this.onFilePondProcess.bind(this)},onprocessfile:this.onProcessFile.bind(this),onremovefile:this.onRemoveFile.bind(this)}))),n.a.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open","data-toggle":"modal","data-target":"#upload_csv"},this.context.language.UploadedCSVFileLists),n.a.createElement("div",{id:"upload_csv",className:"modal fade payment_modal",role:"dialog"},n.a.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},n.a.createElement("div",{className:"modal-content"},n.a.createElement("div",{className:"modal-header"},n.a.createElement("button",{type:"button",id:"desk-csv-close",className:"close","data-dismiss":"modal"},"×")),n.a.createElement("div",{className:"modal-body my-2"},n.a.createElement("ul",null,this.state.zipCsvFileName.map(function(t,a){return n.a.createElement("li",null,n.a.createElement("div",{className:"form-check form-check-inline"},n.a.createElement("label",{class:"form-check-label"},n.a.createElement("input",{className:"form-check-input",onClick:function(t){t.target.checked&&e.context.setSelectedFileUrl(e.state.zipCsvUrls[a])},type:"radio",name:"post-item",id:""})," ",t)))})),n.a.createElement("div",{className:"float-right"},n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:this.sendFileUrl.bind(this),value:"Choose CSV File"})))))))}}]),t}(s.Component);w()(P,"contextType",C);var I=function(e){var t=[];if(e)for(var a=0;a<e.length;a++){var s=e[a];if(console.log(s),1==Object.keys(s).length)t.push(s);else for(var n in s){var o={};s[n],o[n]=s[n],t.push(o)}}return console.log(t),t},A={core_fields:{languageName:"WordPressCoreFields",name:"WordPress Core Fields",resultKey:"CORE",Users_MandatoryFields:["user_login","user_email"]},terms_and_taxonomies:{languageName:"TermsandTaxonomies",name:"Terms and Taxonomies",resultKey:"TERMS"},wordpress_custom_fields:{languageName:"WordPressCustomFields",name:"WordPress Custom Fields",resultKey:"CORECUSTFIELDS"},acf_pro_fields:{languageName:"ACFProFields",name:"ACF PRO Fields",resultKey:"ACF"},acf_fields:{languageName:"ACFProFields",name:"ACF PRO Fields",resultKey:"ACF"},acf_group_fields:{languageName:"ACFGroupFields",name:"ACF Group Fields",resultKey:"GF"},acf_repeater_fields:{languageName:"ACFRepeaterFields",name:"ACF Repeater Fields",resultKey:"RF"},types_fields:{languageName:"TypesCustomFields",name:"Types Custom Fields",resultKey:"TYPES"},pods_fields:{languageName:"PodsFields",name:"Pods Fields",resultKey:"PODS"},custom_fields_suite_fields:{languageName:"CustomFieldSuite",name:"Custom Field Suite",resultKey:"CFS"},all_in_one_seo_fields:{languageName:"AllInOneSeoFields",name:"All In One Seo Fields",resultKey:"AIOSEO"},yoast_seo_fields:{languageName:"YoastSeoFields",name:"Yoast Seo Fields",resultKey:"YOASTSEO"},billing_and_shipping_information:{languageName:"BillingAndShippingInformation",name:"Billing And Shipping Information",resultKey:"BSI"},custom_fields_wp_members:{languageName:"CustomFieldsWPMemberFields",name:"Custom Fields WP Member Fields",resultKey:"WPMEMBERS"},product_meta_fields:{languageName:"ProductMetaFields",name:"WooCommerce Product Meta Fields",resultKey:"ECOMMETA"},order_meta_fields:{languageName:"OrderMetaFields",name:"WooCommerce Order Meta Fields",resultKey:"ORDERMETA"},coupon_meta_fields:{languageName:"CouponMetaFields",name:"WooCommerce Coupon Meta Fields",resultKey:"COUPONMETA"},refund_meta_fields:{languageName:"RefundMetaFields",name:"Refund Meta Fields",resultKey:"REFUNDMETA"},wp_ecom_custom_fields:{languageName:"WPECommerceCustomFields",name:"WP ECommerce Custom Fields",resultKey:"WPECOMMETA"},events_manager_fields:{languageName:"EventsManagerFields",name:"Events Manager Fields",resultKey:"EVENTS"},nextgen_gallery_fields:{languageName:"NextGENGalleryFields",name:"Next GEN Gallery Fields",resultKey:"NEXTGEN"},wpml_fields:{languageName:"WPMLFields",name:"WPML Fields",resultKey:"WPML"},cmb2_fields:{languageName:"CMB2CustomFields",name:"CMB2 Custom Fields",resultKey:"CMB2"}},O=function(e){return A[e]},R=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{loading:!1,checkSimilarity:!0,customFields:[],mediaZipFileNames:[],mediaUploadData:{zipFileName:"",data:[]}}),w()(S()(a),"formulaIconOnClick",function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-sum")).classList.contains("active")){var a=document.getElementById("".concat(e,"-").concat(t,"-manipulative-screen"));a.classList.contains("active")?a.classList.remove("active"):a.classList.add("active")}else M.toast.info("Please choose Header Manipulation in the drop down")}),w()(S()(a),"sumIconOnClick",function(e,t){var a=document.getElementById("".concat(e,"-").concat(t,"-csv-icon-plus"));if(console.log("sumClick",a),a.classList.contains("active")){var s=document.getElementById("".concat(e,"-").concat(t,"-static-manipulative-screen"));s.classList.contains("active")?s.classList.remove("active"):s.classList.add("active")}else M.toast.info("Please choose Header Manipulation in the drop down")}),a}var a,s;return f()(t,e),m()(t,[{key:"isSimilar",value:function(e,t,a){if(this.context.mappingResult){var s=O(e).resultKey;if(this.context.mappingResult[s]&&this.context.mappingResult[s][t]===a)return!0}return!(t.toLowerCase()!==a.toLowerCase()||!this.state.checkSimilarity)&&(this.onMappingSelect(e,t,a,!1),!0)}},{key:"onMappingSelect",value:function(e,t,a){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=O(e).resultKey,i=this.context.mappingResult[o];if(-1!=n){var l=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-sum")),r=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-plus"));"Header Manipulation"===a?(l.classList.add("active"),r.classList.add("active")):(l.classList.remove("active"),r.classList.remove("active"))}if("--select--"===a||"Header Manipulation"===a)return i?void(this.context.mappingResult[o][t]&&(delete this.context.mappingResult[o][t],this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult))):void 0;i?s?(console.log("weew"),this.context.mappingResult[o][t]=a):(console.log("weew1"),this.context.mappingResult[o][t]||(this.context.mappingResult[o][t]=a)):(this.context.mappingResult[o]={},this.context.mappingResult[o][t]=a),this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult),console.log(this.context.mappingResult)}},{key:"isHeaderManipulation",value:function(e,t,a){var s=O(e).resultKey;return!(!this.context.mappingResult[s]||!this.context.mappingResult[s][t]||function(e,t){if(e&&t)for(var a=0;a<e.length;a++)if(e[a]===t)return!0;return!1}(this.context.csvFields,this.context.mappingResult[s][t]))&&(console.log("activating icon "+e,a),setInterval(function(){var t=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-sum")),s=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-plus"));t&&!t.classList.contains("active")&&t.classList.add("active"),s&&!s.classList.contains("active")&&s.classList.add("active")},500),!0)}},{key:"getFieldValueFromResult",value:function(e,t){"featured_image"==t&&console.log("For Header Manipulation");var a=O(e).resultKey;return this.context.mappingResult[a]&&this.context.mappingResult[a][t]?("featured_image"==t&&console.log(this.context.mappingResult[a][t]),this.context.mappingResult[a][t]):("featured_image"==t&&console.log("Empty"),"")}},{key:"getFieldValueFromCustomFields",value:function(e){var t=this.state.customFields[e];if(t)return t.value}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueSelect",value:function(e,t){var a=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-sum")),s=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-plus"));if("Header Manipulation"===e)return a.classList.add("active"),s.classList.add("active"),this.state.customFields[t].value="",void this.setState({customFields:this.state.customFields});this.state.customFields[t].value="--select--"===e?"":e,a.classList.remove("active"),s.classList.remove("active")}},{key:"onCustomFieldValueChange",value:function(e,t){this.state.customFields[t].value=e,this.setState({customFields:this.state.customFields})}},{key:"onZipProcess",value:function(e,t,a,s,n,o,i){var l=new FormData;l.append("zipFile",t,t.name),l.append("action","zip_upload");var r=new XMLHttpRequest;return r.open("POST",ajaxurl),r.upload.onprogress=function(e){o(e.lengthComputable,e.loaded,e.total)},r.onload=function(){var e=this;if(r.status>=200&&r.status<300){s(JSON.parse(r.responseText));var t=JSON.parse(r.responseText);if(t.success)if(null==t.filename)M.toast.info("There is no image files in the uploaded zip file");else{console.log("Checking Media Reposnse",t),this.setState({mediaZipFileNames:t.filename}),document.getElementById("upload-zip-open").click();for(var a=[],o=t.filename.length,i=0;i<o;i++)a.push({filename:t.filename[i],size:t.size[i]});this.state.mediaUploadData.zipFileName=t.zip_file_name,this.state.mediaUploadData.data=a,this.setState({mediaUploadData:this.state.mediaUploadData},function(){console.log("meidaUpload",e.state.mediaUploadData)})}else M.toast.error(t.message)}else n("oh no")}.bind(this),r.send(l),{abort:function(){r.abort(),i()}}}},{key:"deleteImage",value:(s=x()(E.a.mark(function e(t,a){var s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new FormData).set("action","delete_image"),s.set("image",t),e.prev=3,e.next=6,T()({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&(this.state.mediaUploadData.data.splice(a,1),this.setState({mediaZipFileNames:this.state.mediaZipFileNames})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.log(e.t0);case 13:case"end":return e.stop()}},e,this,[[3,10]])})),function(e,t){return s.apply(this,arguments)})},{key:"checkMandatory",value:function(){var e=["language_code","translated_post_title","translated_taxonomy_title","user_login","user_email"];console.log("mandatory field 1");for(var t=0;t<this.context.allPluginFields.length;t++){var a=this.context.allPluginFields[t];for(var s in console.log("mandatory field 2"),a){var n=a[s];if(console.log("mandatory field 3"),console.log(n),n)for(var o=0;o<n.length;o++)if(e.includes(n[o].name)&&!this.checkKeyExistInMapping(n[o].name))return console.log("returning false"),!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var a in this.context.mappingResult){if(this.context.mappingResult[a])Object.keys(this.context.mappingResult[a]).includes(e)&&this.context.mappingResult[a][e]&&(t=!0)}return!!t||(M.toast.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.customFields)for(t=0;t<this.state.customFields.length;t++)a=this.state.customFields[t],s=a.name.trim(),a.value&&s&&(this.context.mappingResult.CORECUSTFIELDS?this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value:(this.context.mappingResult.CORECUSTFIELDS={},this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value));if(this.checkMandatory()){e.next=3;break}return e.abrupt("return");case 3:return this.context.setMappingType("mapping-section"),(n=new FormData).set("action","saveMappedFields"),n.set("HashKey",this.context.csvInfo.hashKey),n.set("Types",this.context.csvInfo.selectedtype),n.set("MappedFields",JSON.stringify(this.context.mappingResult)),n.set("MappingType","mapping-section"),this.setState({loading:!0}),e.prev=11,e.next=14,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:o=e.sent,console.log("mappingCheck",o),o&&o.data&&(200==o.status&&o.data.success?(this.setState({loading:!1}),"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?this.context.setShowComponent("import-config"):this.context.setShowComponent("media-handling")):this.setState({loading:!1})),console.log("Mapping response",o.data),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(11),console.log(e.t0),this.setState({loading:!1});case 24:case"end":return e.stop()}},e,this,[[11,20]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"container",id:"mapping-accordion"},n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:""},n.a.createElement("div",{className:"col-md-6 offset-md-3"},n.a.createElement("ul",{className:"mapping-switcher"},n.a.createElement("li",{className:"active",onClick:function(){e.context.setShowComponent("mapping-section")}},this.context.language.ADVANCEDMODE),n.a.createElement("li",{onClick:function(){e.context.setShowComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"mt50"}),this.context.allPluginFields.map(function(t,a){var s=Object.keys(t)[0];if(!O(s))return n.a.createElement("div",null,"This ",s," support not implemented ");var o=!1;return s||(o=!0),t[s]||Array.isArray(t[s])||(o=!0,"wordpress_custom_fields"===s)?o?void 0:n.a.createElement("div",null,n.a.createElement("div",{className:"card csv-importer-panel "},n.a.createElement("h1",{className:"card-header main-heading ".concat(0==a?"active":""),id:s,onClick:function(){toggle_func(s)}},e.context.language[O(s).languageName]," ",n.a.createElement("span",{className:"csv-icon-angle-down float-right"})),n.a.createElement("div",{className:"card-body",id:"".concat(s,"-body"),style:{display:0==a?"block":"none"}},n.a.createElement("table",{className:"table table-mapping"},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,e.context.language.WPFIELDS),n.a.createElement("th",null,e.context.language.CSVHEADER),n.a.createElement("th",null,e.context.language.Action))),n.a.createElement("tbody",null,t[s].map(function(t,a){return n.a.createElement("tr",null,n.a.createElement("td",null,n.a.createElement("label",{className:"wpfields"},t.label),n.a.createElement("label",{className:"sub-text"},"[",e.context.language.Name,": ",t.name,"] ")),n.a.createElement("td",null,n.a.createElement("select",{className:"select form-control w-75",onChange:function(n){e.onMappingSelect.bind(e)(s,t.name,n.target.value,!0,a)}},n.a.createElement("optgroup",{label:O(s).name},n.a.createElement("option",null,"--select--"),e.context.csvFields.map(function(a){return n.a.createElement("option",{selected:e.isSimilar(s,t.name,a)},a)}),n.a.createElement("option",{selected:e.isHeaderManipulation(s,t.name,a)},"Header Manipulation")))),n.a.createElement("td",{className:"action"},n.a.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"Static"},n.a.createElement("i",{id:"".concat(s,"-").concat(a,"-csv-icon-plus"),className:"csv-icon-plus-square",onClick:function(){e.sumIconOnClick(s,a)}}),n.a.createElement("div",{id:"".concat(s,"-").concat(a,"-static-manipulative-screen"),className:"manipulation-screen"},n.a.createElement("div",{className:"close",onClick:function(){e.sumIconOnClick(s,a)}},"×"),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"form-group"},n.a.createElement("textarea",{onChange:function(a){e.onMappingSelect.bind(e)(s,t.name,a.target.value)},value:e.getFieldValueFromResult(s,t.name),className:"form-control"})),n.a.createElement("div",{className:"csv-hint"},n.a.createElement("b",null,e.context.language.HINT," :")," Specify the CSV header to be added in between the curley braces(",").",n.a.createElement("div",{className:"d-block"},n.a.createElement("b",null,e.context.language.Example," : ")," ","{post_title}"," ")))),n.a.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"Formula"},n.a.createElement("i",{id:"".concat(s,"-").concat(a,"-csv-icon-sum"),className:"csv-icon-sum",onClick:function(t){e.formulaIconOnClick(s,a)}}),n.a.createElement("div",{id:"".concat(s,"-").concat(a,"-manipulative-screen"),className:"manipulation-screen"},n.a.createElement("span",{className:"close",onClick:function(){e.formulaIconOnClick(s,a)}},"×"),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"form-group"},n.a.createElement("textarea",{onChange:function(a){e.onMappingSelect.bind(e)(s,t.name,a.target.value)},value:e.getFieldValueFromResult(s,t.name),class:"form-control"})),n.a.createElement("div",{className:"csv-hint"},n.a.createElement("b",null,e.context.language.HIN," :")," Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",n.a.createElement("div",{class:"d-block"},n.a.createElement("b",null,e.context.language.Example," :")," ","MATH ({product_quantity}/{discount_price})"," "))))))})))))):n.a.createElement("div",{className:"card csv-importer-panel "},n.a.createElement("h1",{className:"card-header main-heading bg-white pro-tag"},e.context.language[O(s).languageName]," "))}),n.a.createElement("div",{class:"col-md-12 mt40 p0"},n.a.createElement("div",{class:"float-left"},n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},"Back")),n.a.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:n.a.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.context.language.Continue))),n.a.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"upload-zip-open","data-toggle":"modal","data-target":"#upload_media"}),n.a.createElement("div",{id:"upload_media",className:"modal fade payment_modal active",role:"dialog"},n.a.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},n.a.createElement("div",{className:"modal-content"},n.a.createElement("div",{className:"modal-header border border-0"},n.a.createElement("h1",{className:"main-heading text-center py-1 m-auto"},this.state.mediaUploadData.zipFileName),n.a.createElement("button",{type:"button",className:"close ml0","data-dismiss":"modal"},"×")),n.a.createElement("div",{className:"modal-body my-2"},n.a.createElement("table",{className:"table table-striped"},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,this.context.language.Name),n.a.createElement("th",null,this.context.language.Size),n.a.createElement("th",{class:"text-center"},this.context.language.Action))),n.a.createElement("tbody",null,this.state.mediaUploadData.data.map(function(t,a){return n.a.createElement("tr",null,n.a.createElement("td",null,t.filename),n.a.createElement("td",null,t.size),n.a.createElement("td",null,n.a.createElement("a",{className:"action-icon",onClick:function(s){e.deleteImage(t.filename,a)},"data-toggle":"tooltip",title:"Delete"},n.a.createElement("i",{className:"csv-icon-trash-2"}))))}))))))))}}]),t}(s.Component);w()(R,"contextType",C);var j=a(92),L=a(91),U=a.n(L),W=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,initialRowSize:1,totalCsvRows:"",csvInformation:[],currentMode:"draganddrop",customFields:[]},a.csvInformation=[],a.handleScroll=a.handleScroll.bind(S()(a)),a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.getCsvFields(this.state.initialRowSize),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll)}},{key:"handleScroll",value:function(e){var t=document.getElementById("mapping-sidebar"),a=document.getElementById("mapping-accordion").offsetHeight-300;window.scrollY>200?(t.classList.add("mapping-sidebar-fixed"),window.scrollY>a?t.classList.add("fixed-bottom-position"):t.classList.remove("fixed-bottom-position")):t.classList.remove("mapping-sidebar-fixed")}},{key:"getCsvFields",value:(s=x()(E.a.mark(function e(t){var a,s,n,o,i;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new FormData,this.context.isXML?a.set("action","get_parse_xml"):a.set("action","displayCSV"),a.set("row",t),a.set("HashKey",this.context.csvInfo.hashKey),this.setState({loading:!0}),e.prev=5,e.next=8,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(s=e.sent,console.log(s),s&&s.data&&200==s.status&&s.data.success){for(n=[],o=[],this.csvInformation=[],i=0;i<s.data.Headers.length;i++)n.push(s.data.Headers[i]),o.push(s.data.Values[i]);for(i=0;i<s.data.Headers.length;i++)this.csvInformation.push({csvHeaders:s.data.Headers[i],csvValues:s.data.Values[i]});this.setState({totalCsvRows:s.data.total_rows,loading:!1})}e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0),console.log("request failed");case 17:case"end":return e.stop()}},e,this,[[5,13]])})),function(e){return s.apply(this,arguments)})},{key:"onMappingSelect",value:function(e,t,a){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];console.log(a),console.log("{".concat(a,"}"));var n=O(e).resultKey,o=this.context.mappingResult[n];o?s?this.context.mappingResult[n][t]=a:this.context.mappingResult[n][t]?this.context.mappingResult[n][t]+=a:this.context.mappingResult[n][t]=a:(this.context.mappingResult[n]={},this.context.mappingResult[n][t]=a),this.forceUpdate(),console.log(this.context.mappingResult)}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueChange",value:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a?this.state.customFields[t].value=e:this.state.customFields[t].value+=e,this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){console.log(e),this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"checkMandatory",value:function(){var e=["language_code","translated_post_title","translated_taxonomy_title","user_login","user_email"];console.log("mandatory field 1");for(var t=0;t<this.context.allPluginFields.length;t++){var a=this.context.allPluginFields[t];for(var s in console.log("mandatory field 2"),a){var n=a[s];if(console.log("mandatory field 3"),console.log(n),n)for(var o=0;o<n.length;o++)if(e.includes(n[o].name)&&!this.checkKeyExistInMapping(n[o].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var a in this.context.mappingResult){if(this.context.mappingResult[a])Object.keys(this.context.mappingResult[a]).includes(e)&&this.context.mappingResult[a][e]&&(t=!0)}return!!t||(M.toast.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("sending mapping"),this.state.customFields)for(t=0;t<this.state.customFields.length;t++)a=this.state.customFields[t],s=a.name.trim(),a.value&&s&&(this.context.mappingResult.CORECUSTFIELDS?this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value:(this.context.mappingResult.CORECUSTFIELDS={},this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value));if(this.checkMandatory()){e.next=4;break}return e.abrupt("return");case 4:return this.context.setMappingType("dragdrop-section"),(n=new FormData).set("action","saveMappedFields"),n.set("HashKey",this.context.csvInfo.hashKey),n.set("Types",this.context.csvInfo.selectedtype),n.set("MappedFields",JSON.stringify(this.context.mappingResult)),n.set("MappingType","dragdrop-section"),e.prev=11,e.next=14,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:o=e.sent,this.setState({loading:!0}),o&&o.data&&(200==o.status&&o.data.success?(this.setState({loading:!1}),"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?this.context.setShowComponent("import-config"):this.context.setShowComponent("media-handling")):this.setState({loading:!1})),console.log("Mapping response",o.data),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(11),console.log(e.t0),this.setState({loading:!1});case 24:case"end":return e.stop()}},e,this,[[11,20]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,a=(t.initialRowSize,t.totalCsvRows);return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"col-md-6 offset-md-3"},n.a.createElement("ul",{className:"mapping-switcher"},n.a.createElement("li",{onClick:function(){e.context.setShowComponent("mapping-section")}},this.context.language.ADVANCEDMODE),n.a.createElement("li",{className:"active",onClick:function(){e.context.setShowComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"row container-fluid ",style:{maxWidth:"1400px",margin:"auto"}},n.a.createElement("div",{id:"mapping-accordion",className:"col-md-8"},n.a.createElement("div",{className:"mt50"}),this.context.allPluginFields.map(function(t,a){console.log("index",a);var s=Object.keys(t)[0];if(!O(s))return n.a.createElement("div",null," ","This ",s," support not implemented"," ");var o=!1;return s||(o=!0),t[s]||Array.isArray(t[s])||(o=!0,"wordpress_custom_fields"===s)?o?void 0:n.a.createElement("div",{className:"card csv-importer-panel"},n.a.createElement("h1",{className:"card-header main-heading ".concat(0==a?"active":""),id:s,onClick:function(){toggle_func(s)}},e.context.language[O(s).languageName]," ",n.a.createElement("span",{className:"csv-icon-angle-down float-right"})),n.a.createElement("div",{className:"card-body",id:"".concat(s,"-body"),style:{display:0==a?"block":"none"},"data-display":e.state.display},t[s].map(function(t,a){return n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,t.label),n.a.createElement(j.Droppable,{types:["csvheader"],onDrop:function(a){e.onMappingSelect.bind(e)(s,t.name,"{".concat(a.csvheader,"}"),!1)}},n.a.createElement("input",{value:function(){var a=O(s).resultKey;if(e.context.mappingResult[a])return e.context.mappingResult[a][t.name]}(),type:"text",name:"",id:t.name+"_text",className:"form-control",onChange:function(a){e.onMappingSelect.bind(e)(s,t.name,a.target.value)}})))}))):n.a.createElement("div",{className:"card csv-importer-panel "},n.a.createElement("h1",{className:"card-header main-heading bg-white pro-tag"},e.context.language[O(s).languageName]," "))}),n.a.createElement("div",{className:"mt40"},n.a.createElement("div",{className:"col-md-12 mt40 p0"},n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{className:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},"Back")),n.a.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:n.a.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.context.language.Continue)),n.a.createElement("div",{className:"clearfix"})))),n.a.createElement("div",{className:"col-md-4 "},n.a.createElement("div",{className:"mapping-sidebar",id:"mapping-sidebar"},n.a.createElement("table",{className:"mapping-sidebar-title"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{className:"mapping-sidebar-arrow"},n.a.createElement("span",{className:"csv-icon-chevron-with-circle-left",onClick:function(t){e.state.initialRowSize--,e.state.initialRowSize>=1?e.getCsvFields(e.state.initialRowSize):e.state.initialRowSize++}})),n.a.createElement("td",{className:"mapping-sidebar-textbox-section"},n.a.createElement("strong",null,n.a.createElement("input",{id:"current_row",value:this.state.initialRowSize,type:"text",pattern:"[0-9]*",onChange:function(t){parseInt(t.target.value)>e.state.totalCsvRows?e.setState({initialRowSize:e.state.totalCsvRows},function(){e.getCsvFields(e.state.initialRowSize)}):(e.setState({initialRowSize:t.target.value}),e.getCsvFields(e.state.initialRowSize))}}))," ",n.a.createElement("span",{className:"mapping-textbox-out-of"},"of",n.a.createElement("strong",null," ",a))),n.a.createElement("td",{className:"mapping-sidebar-arrow"},n.a.createElement("span",{className:"csv-icon-chevron-with-circle-right",onClick:function(t){e.state.initialRowSize++,e.state.initialRowSize<=e.state.totalCsvRows?e.getCsvFields(e.state.initialRowSize):e.state.initialRowSize--}}))))),n.a.createElement("div",{className:"uci_mapping"},n.a.createElement("table",{className:"table table-bordered",cellspacing:"10"},this.state.loading||0==this.csvInformation.length?n.a.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.csvInformation.map(function(e,t){return n.a.createElement("tr",null,n.a.createElement("td",{style:{width:"40%"},className:"text-primary font-weight-bold"},n.a.createElement(j.Draggable,{type:"csvheader",data:e.csvHeaders},e.csvHeaders)),n.a.createElement("td",null,e.csvValues))})))))))}}]),t}(s.Component);function H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?H(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):H(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}w()(W,"contextType",C);var B=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{loading:!1}),a}var a;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setCSVInfo(z({},this.context.csvInfo,{replaceExistingItem:"Insert"}))}},{key:"sendConfiguration",value:(a=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),console.log("HashKey",this.context.csvInfo.hashKey,"Types",this.context.csvInfo.selectedtype,"Mode",this.context.csvInfo.replaceExistingItem),this.setState({loading:!0}),e.prev=7,e.next=10,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:a=e.sent,console.log("csvinfo",a),a&&a.data&&200==a.status&&a.data.success&&(this.setState({loading:!1}),!0===a.data.show_template?(this.context.setIsTemplate(!0),console.log("Template",a.data),this.context.setSaveTemplateData(a.data.info),this.context.setShowComponent("save-template")):(console.log("Config",a.data),this.context.setCsvFields(a.data.csv_fields),s=I(a.data.fields),this.context.setAllPluginFields(s),"xml"===this.context.csvInfo.fileType?this.context.setShowComponent("dragdrop-section"):this.context.setShowComponent("mapping-section"))),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(7),console.log(e.t0),console.log("request failed");case 19:case"end":return e.stop()}},e,this,[[7,15]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"csv-importer-panel mt20 container"},n.a.createElement("div",{className:"file-info-container clearfix"},n.a.createElement("div",{className:"csvinfo"},n.a.createElement("h3",{className:"file-name"},this.context.csvInfo.fileName," -"," ",n.a.createElement("span",{className:"size"},this.context.csvInfo.fileSize)),n.a.createElement("div",{class:"d-flex justify-content-center mt40"},n.a.createElement("div",{className:"form-check form-check-inline form-group"},n.a.createElement("input",{className:"form-check-input ",onClick:function(){e.context.setCSVInfo(z({},e.context.csvInfo,{replaceExistingItem:"Insert"}))},type:"radio",id:"insertRad",name:"post-item",value:"Insert",checked:"Insert"===this.context.csvInfo.replaceExistingItem})," ",n.a.createElement("label",{for:"insertRad",class:"form-check-label"},"New Item")),n.a.createElement("div",{className:"form-check form-check-inline form-group",style:{opacity:.6}},n.a.createElement("input",{className:"form-check-input",onClick:function(){M.toast.info("Please Upgrade to PRO for this Feature")},type:"radio",id:"updateRad",name:"post-item",value:"Update",checked:"Update"===this.context.csvInfo.replaceExistingItem})," ",n.a.createElement("label",{for:"updateRad",className:"form-check-label"},"Existing Items"))),n.a.createElement("div",{className:"d-flex justify-content-center mt40"},n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,"Import each record as"),n.a.createElement("div",null,n.a.createElement("select",{value:this.context.csvInfo.selectedtype,className:"select form-control",onChange:function(t){e.context.setCSVInfo(z({},e.context.csvInfo,{selectedtype:t.target.value}))},name:"",id:""},n.a.createElement("optgroup",{label:"PostType"},this.context.csvInfo.postTypes.map(function(e){return n.a.createElement("option",{value:e},e)}))))))),n.a.createElement("div",{class:"col-md-12 mt40 p0"},n.a.createElement("div",{class:"float-left"},n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},"Back")),n.a.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:this.sendConfiguration.bind(this),value:"Continue"})))))}}]),t}(s.Component);w()(B,"contextType",C);var V=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{mediaHandlingEnabled:!1}),a}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update")}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"card-body"},n.a.createElement("h5",null,this.context.language.MediaHandling),n.a.createElement("div",{className:"col-md-12 row mt30 justify-content-center"},n.a.createElement("label",{className:"align-self-center"},this.context.language.Downloadexternalimagestoyourmedia),n.a.createElement("div",{className:"form-group fieldset ml30"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",name:"media-handle",id:"media-handle",onClick:function(e){M.toast.info("Please upgrade to PRO for Advanced Media Handling.")},checked:this.state.mediaHandlingEnabled}),n.a.createElement("label",{className:"switch-ios",for:"media-handle"},n.a.createElement("i",null)))),n.a.createElement("div",{className:"media-fields ".concat(this.state.mediaHandlingEnabled?"active":"")},n.a.createElement("div",{className:"col-md-12 mt20"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.ImageHandling),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-image-existing"}),n.a.createElement("label",{for:"media-image-existing"},this.context.language.Usemediaimagesifalreadyavailable)),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-image-overwrite"}),n.a.createElement("label",{for:"media-image-overwrite"},this.context.language.Doyouwanttooverwritetheexistingimages)),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-new-image"}),n.a.createElement("label",{for:"media-new-image"},"Always create as new image")))),n.a.createElement("div",{className:"col-md-12 mt50"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.ImageSizes),n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{className:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"thumbnail",name:"thumbnail"}),n.a.createElement("label",{for:"thumbnail"},this.context.language.Thumbnail)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{className:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"medium",name:"medium"}),n.a.createElement("label",{for:"medium"},this.context.language.Medium)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{class:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"mediumlarge",name:"mediumLarge"}),n.a.createElement("label",{for:"mediumlarge"},this.context.language.MediumLarge)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{class:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"large",name:"large"}),n.a.createElement("label",{for:"large"},this.context.language.Large)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{className:"form-group custom-size"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"custom",name:"custom"}),n.a.createElement("label",{for:"custom"},this.context.language.Custom))))))),n.a.createElement("div",{className:"col-md-12 mt50"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.MediaSEOAdvancedOptions),n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageTitle," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageTitle"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageCaption," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageCaption"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e,t){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageAltText," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageAltText"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e,t){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageDescription," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageDescription"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.Changeimagefilenameto," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageFileName"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e){return n.a.createElement("option",{value:e},e)}))))))),n.a.createElement("div",{className:"form-group mt30"},n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back)),n.a.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:n.a.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.context.setShowComponent("import-config")}},this.context.language.Continue))))))}}]),t}(s.Component);w()(V,"contextType",C);var K=V,G=a(63),q=(a(112),a(2),function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,updateFieldsList:[],enableSchedule:!1,showOnSchedule:"none",hiddenOnSchedule:"block",displayDuplicate:!1,updateField:""},a.handleDateChange=a.handleDateChange.bind(S()(a)),a.handleChange=a.handleChange.bind(S()(a)),a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.getUpdateFields()}},{key:"setEnableSchedule",value:function(e){var t=this;this.setState({enableSchedule:e},function(){t.state.enableSchedule?t.setState({showOnSchedule:"block",hiddenOnSchedule:"none"}):t.setState({showOnSchedule:"none",hiddenOnSchedule:"block"})})}},{key:"importConfiguration",value:(o=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.displayDuplicate||""!=this.state.updateField){e.next=3;break}return M.toast.error("Please Select field to Handle Duplicate"),e.abrupt("return");case 3:return this.context.setShowComponent("import-process"),(t=new FormData).set("action","StartImport"),a="",a=this.context.rollBackMode?"true":"false",t.set("HashKey",this.context.csvInfo.hashKey),t.set("Check",this.state.updateField),t.set("RollBack",a),this.context.setShowImportLog(!0),this.context.setImportLogDataLink("".concat(window.wpr_object.logfielpath,"/").concat(this.context.csvInfo.hashKey,"/").concat(this.context.csvInfo.hashKey,".html")),this.setState({loading:!0}),e.prev=14,e.next=17,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 17:s=e.sent,this.setState({loading:!1}),200==s.status&&s.data.success,e.next=26;break;case 22:e.prev=22,e.t0=e.catch(14),console.log("Error while running import"),console.log(e.t0);case 26:case"end":return e.stop()}},e,this,[[14,22]])})),function(){return o.apply(this,arguments)})},{key:"getUpdateFields",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","updatefields"),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),this.setState({loading:!0}),e.prev=5,e.next=8,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:a=e.sent,this.setState({loading:!1}),a&&a.data&&200==a.status&&this.setState({updateFieldsList:a.data.update_fields}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0);case 16:case"end":return e.stop()}},e,this,[[5,13]])})),function(){return s.apply(this,arguments)})},{key:"updateMaintenanceMode",value:(a=x()(E.a.mark(function e(t){var a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t),(a=new FormData).set("action","settings_options"),a.set("option","enable_main_mode"),a.set("value",t),e.next=7,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:s=e.sent,console.log(s),this.context.setMaintenanceMode(t);case 10:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"handleChange",value:function(e){var t=this;this.setState(w()({},e.target.name,e.target.value),function(){console.log("state",t.state)})}},{key:"handleDateChange",value:function(e){this.setState({selectedDate:e})}},{key:"render",value:function(){var e=this,t=this.state,a=t.updateField;t.selectedUTC,t.selectedDate,t.scheduleTime,t.scheduleFrequency;return n.a.createElement("div",{id:"import-configuration",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30"},n.a.createElement("div",{className:"row export"},n.a.createElement("h1",{className:"main-heading pr15 pl15 mb20 col-md-12"},"Import configuration Section"),n.a.createElement("div",{style:{display:this.state.hiddenOnSchedule},className:"advanced-filter col-md-12"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"import_configuration_maintenance_mode",checked:this.context.maintenanceMode,onClick:function(t){e.updateMaintenanceMode(t.target.checked)}}),n.a.createElement("label",{for:"import_configuration_maintenance_mode"},"Do you want to SWITCH ON Maintenance mode while import ?"))),n.a.createElement("div",{className:"advanced-filter col-md-12"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"import_configuration_duplicate_handle",className:"",onChange:function(t){e.setState({displayDuplicate:t.target.checked})},checked:this.state.displayDuplicate}),n.a.createElement("label",{for:"import_configuration_duplicate_handle"},"Do you want to handle the duplicate on existing records ?")),n.a.createElement("div",{className:"row mt20 col-md-6",style:{display:this.state.displayDuplicate?"block":"none"}},n.a.createElement("div",{className:"form-group col"},"Insert"===this.context.csvInfo.replaceExistingItem?n.a.createElement("label",null,this.context.language.Mentionthefieldswhichyouwanttohandleduplicates):"Update"===this.context.csvInfo.replaceExistingItem?n.a.createElement("label",null,this.context.language.Updaterecordsbasedon):"",n.a.createElement("select",{className:"select form-control",name:"updateField",value:a,onChange:this.handleChange},n.a.createElement("option",{value:""},"Select Field"),0!=this.state.updateFieldsList.length?this.state.updateFieldsList.map(function(e,t){return n.a.createElement("option",{value:e},e)}):void 0)))),n.a.createElement("div",{className:"advanced-filter col-md-12",style:{opacity:.6}},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"import_configuration_schedule_import",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Schedule you Import")}}),n.a.createElement("label",{for:"import_configuration_schedule_import"},this.context.language.DoyouwanttoSchedulethisImport))),n.a.createElement("div",{className:"form-group col-md-12 mt30"},n.a.createElement("div",{className:"float-left"},"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back):n.a.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("media-handling")}},this.context.language.Back)),n.a.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:n.a.createElement(n.a.Fragment,null,n.a.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.importConfiguration()}},this.context.language.Import)))))))}}]),t}(s.Component));w()(q,"contextType",C);var Y=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!0,check:"",fileName:"",processingRecords:"",remainingRecords:"",totalRecords:"",fileSize:"",process:"",remainingTime:"00:00:00",stopWatch:"00:00:00",progWidth:"0",importStatus:"Processing",enableDownload:!1,controlImportProcess:!0,rollBackProgress:!1},a.message=[],a.status=[],a.verify=[],a.tag=[],a.categories=[],a.loopCount=0,a.remainingTime=0,a.stopSeconds=0,a.stopMinutes=0,a.stopHours=0,a.onUnload=a.onUnload.bind(S()(a)),a.progressWidth,a}var a,s,o,i;return f()(t,e),m()(t,[{key:"onUnload",value:(i=x()(E.a.mark(function e(t){var a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","ImportStop"),a.set("Stop","false"),e.next=5,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:e.sent,t.returnValue="Hellooww";case 7:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.refreshIntervalId=setInterval(function(){this.getProgress.bind(this)(),this.state.loading&&this.state.controlImportProcess&&this.stopWatch()}.bind(this),1e3),window.addEventListener("beforeunload",this.onUnload)}},{key:"getProgress",value:(o=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","GetProgress"),t.set("HashKey",this.context.csvInfo.hashKey),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(200==(a=e.sent).status&&a.data.success){for(this.message=[],this.status=[],this.verify=[],this.tag=[],this.categories=[],s=0;s<a.data.Info.length;s++)this.message.push(a.data.Info[s].message),this.status.push(a.data.Info[s].status),this.verify.push(a.data.Info[s].verify),this.tag.push(a.data.Info[s].tags),this.categories.push(a.data.Info[s].categories);this.setState({fileName:a.data.file_name}),this.setState({fileSize:a.data.filesize}),this.setState({processingRecords:a.data.processing_records}),this.setState({remainingRecords:a.data.remaining_records}),this.setState({totalRecords:a.data.total_records}),this.setState({loading:a.data.progress}),this.setState({importStatus:a.data.status}),this.loopCount=this.loopCount+1,a.data.processing_records>2&&(this.remainingTime=this.loopCount/a.data.processing_records*a.data.remaining_records,this.secondsToHms(this.remainingTime)),this.loadProgress(a.data)}case 7:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"loadProgress",value:function(e){e.processing_records!==e.total_records?this.progressWidth=e.processing_records/e.total_records*100:e.progress||(this.progressWidth=e.processing_records/e.total_records*100),this.progressWidth=Math.round(this.progressWidth),this.progressWidth>.9&&this.setState({progWidth:this.progressWidth})}},{key:"secondsToHms",value:function(e){e=Number(e);var t=Math.floor(e/3600),a=Math.floor(e%3600/60),s=Math.floor(e%3600%60);t.toString().length<2&&(t="0"+t),a.toString().length<2&&(a="0"+a),s.toString().length<2&&(s="0"+s);var n=t+":"+a+":"+s;this.setState({remainingTime:n})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"accessImportProcess",value:(s=x()(E.a.mark(function e(t){var a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.target.value,console.log("on button clicked",a),s="","Pause"===a?(this.setState({controlImportProcess:!1}),s="false",clearInterval(this.refreshIntervalId)):(this.setState({controlImportProcess:!0}),s="true"),(n=new FormData).set("action","ImportState"),n.set("State",s),n.set("HashKey",this.context.csvInfo.hashKey),e.next=10,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:o=e.sent,console.log("On pause and resume",o.status),200==o.status&&o.data.import_state&&(o.data.import_state?this.setState({loading:!1}):this.setState({loading:!0}),this.refreshIntervalId=setInterval(function(){this.getProgress.bind(this)(),this.state.loading&&this.state.controlImportProcess&&this.stopWatch()}.bind(this),1e3));case 13:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"startRollBackMode",value:(a=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({rollBackProgress:!0}),(t=new FormData).set("action","rollback_now"),t.set("HashKey",this.context.csvInfo.hashKey),e.next=6,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:a=e.sent,this.setState({rollBackProgress:!1}),(s=a.data).success?(this.context.setRollBackMode(!1),M.toast.success(s.message)):M.toast.error(s.message);case 10:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t={width:this.state.progWidth+"%"};!this.state.loading&&this.context.showImportLog;return n.a.createElement("div",{className:"wp-ultimate-csv-importer"},n.a.createElement("div",{className:" container"},n.a.createElement("div",{className:"importer-log"},n.a.createElement("div",{className:"card csv-importer-panel mt40 col-md-12"},n.a.createElement("div",{className:"card-body"},n.a.createElement("h4",{className:"text-center"},"Import ",this.state.importStatus),n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"mt30 "},"Completed"===this.state.importStatus?n.a.createElement(n.a.Fragment,null,n.a.createElement("input",{type:"button",className:"smack-btn btn-default",value:"Close",onClick:function(t){e.context.setShowComponent("upload-dashboard"),window.location.reload()}}),this.context.rollBackMode?n.a.createElement(n.a.Fragment,null,n.a.createElement("input",{type:"button",className:"ml20 smack-btn smack-btn-danger",value:"RoleBack Now",onClick:function(t){e.startRollBackMode()}})," "," ",this.state.rollBackProgress?n.a.createElement("div",{className:"btn ajax-loader loading",style:{marginLeft:"25px",marginRight:"0",bottom:"5px",padding:"0"}}):""," "):void 0):this.state.controlImportProcess?n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-warning",value:"Pause",onClick:this.accessImportProcess.bind(this)}):n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",value:"Resume",onClick:this.accessImportProcess.bind(this)}))),n.a.createElement("table",{className:"table mt40"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{className:"text-left"},this.context.language.FileName,":"," ",n.a.createElement("span",null,this.state.fileName)),n.a.createElement("td",{className:"text-right"},this.context.language.FileSize,":"," ",n.a.createElement("span",null,this.state.fileSize))),n.a.createElement("tr",null,n.a.createElement("td",{className:"text-left"},this.context.language.Process,":"," ",n.a.createElement("span",null,this.context.csvInfo.replaceExistingItem)),n.a.createElement("td",{className:"text-right"},this.context.language.Totalnoofrecords,":"," ",n.a.createElement("span",null,this.state.totalRecords))),n.a.createElement("tr",null,n.a.createElement("td",{className:"text-left"},n.a.createElement("span",{className:"font-weight-normal text-success"}," ",this.context.language.CurrentProcessingRecord,":"," ",n.a.createElement("span",null,this.state.processingRecords))),n.a.createElement("td",{className:"text-right"},n.a.createElement("span",{className:"font-weight-normal text-danger"},this.context.language.RemainingRecord,":"," ",n.a.createElement("span",null,this.state.remainingRecords)))))),n.a.createElement("div",{className:"card-body px-3"},n.a.createElement("div",{className:"importing-details"},n.a.createElement("div",{className:"progress-status"},"Processing"===this.state.importStatus?"In Progress":""),n.a.createElement("div",{className:"import-progress"},n.a.createElement("div",{className:"progress-loading"},this.state.progWidth+"%"," "," ",this.context.language.Completed),n.a.createElement("div",{className:"progress-timing"},n.a.createElement("i",{className:"csv-icon-schedule"})," "," ",this.context.language.TimeElapsed,":"," ",n.a.createElement("span",null," "," ",this.state.stopWatch,"/"," "),this.state.remainingTime,"(",this.context.language.approximate,")"))),n.a.createElement("div",{className:"progress mt5 mb40"},n.a.createElement("div",{className:"progress-bar",style:t,role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),n.a.createElement("div",{className:"d-flex justify-content-center"},n.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"smack-btn smack-btn-primary",href:this.context.importLogDataLink},n.a.createElement("i",{className:"csv-icon-download-cloud mr10"})," ",this.context.language.DownloadLog))))))),n.a.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#displayLogText",id:"triggerLog"}),n.a.createElement("div",{id:"displayLogText",className:"modal fade",role:"dialog"},n.a.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},n.a.createElement("div",{className:"modal-content"},n.a.createElement("div",{className:"modal-header"},n.a.createElement("h1",{class:"main-heading"},"Import Log for ",this.state.fileName),n.a.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),n.a.createElement("div",{className:"modal-body my-2"},n.a.createElement("div",{id:"showLogText"}))))))}}]),t}(s.Component);w()(Y,"contextType",C);var J=Y,Z=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1},a}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement("div",{className:"col-md-9",style:{height:"300px"}},n.a.createElement("div",{className:"row justify-content-center h-100"},n.a.createElement("div",{className:"align-self-center upgrade-to-pro text-center"},n.a.createElement("img",{src:"".concat(window.wpr_object.imagePath,"upgrade-to-pro.png")}),n.a.createElement("p",null,"This feature is available in"," ",n.a.createElement("a",{target:"_blank",className:"csv-link",href:"https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_free&utm_medium=wordpress"},"WP Ultimate CSV Importer"," ")," ","Premium Version"),n.a.createElement("a",{target:"_blank",href:"https://www.smackcoders.com/contact-us.html?utm_source=plugin&utm_campaign=csv_importer_free&utm_medium=wordpress",className:"smack-btn btn-default "},"Contact us for Presale Enquiry"))))}}]),t}(s.Component),X=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update")}},{key:"render",value:function(){return"upload-dashboard"===this.context.showComponent?n.a.createElement(Q,null):"csv-info"===this.context.showComponent?n.a.createElement(B,null):"mapping-section"===this.context.showComponent?n.a.createElement(R,{fromEditTemplate:!1}):"dragdrop-section"===this.context.showComponent?n.a.createElement(W,{fromEditTemplate:!1}):"media-handling"===this.context.showComponent?n.a.createElement(K,null):"import-config"===this.context.showComponent?n.a.createElement(q,null):"import-process"===this.context.showComponent?n.a.createElement(J,null):void 0}}]),t}(s.Component);w()(X,"contextType",C);var Q=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{selectedId:"v-pills-home-tab"}),a}return f()(t,e),m()(t,[{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"csv-importer-panel row mt20"},n.a.createElement("div",{className:"col-md-3 px-0"},n.a.createElement("div",{className:"nav flex-column nav-pills file-choosen-tab",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},n.a.createElement("a",{className:"nav-link active",id:"v-pills-home-tab",onClick:function(t){e.setState({selectedId:t.target.id}),console.log(t.target.id)},"data-toggle":"pill",href:"#v-pills-home",role:"tab","aria-controls":"v-pills-home","aria-selected":"false"},n.a.createElement("i",{className:"csv-icon-upload-cloud"}),this.context.language.UploadfromDesktop),n.a.createElement("a",{className:"nav-link pro-tag",id:"v-pills-profile-tab",onClick:function(t){e.setState({selectedId:t.target.id}),console.log(t.target.id)},"data-toggle":"pill",href:"#v-pills-profile",role:"tab","aria-controls":"v-pills-profile","aria-selected":"true"},n.a.createElement("i",{className:"csv-icon-upload3"}),this.context.language.UploadfromFTPSFTP),n.a.createElement("a",{className:"nav-link pro-tag",id:"v-pills-messages-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-messages",role:"tab","aria-controls":"v-pills-messages","aria-selected":"false"},n.a.createElement("i",{className:"csv-icon-link"}),this.context.language.UploadfromURL),n.a.createElement("a",{className:"nav-link pro-tag",id:"v-pills-settings-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-settings",role:"tab","aria-controls":"v-pills-settings","aria-selected":"false"},n.a.createElement("i",{className:"csv-icon-server"}),this.context.language.ChoosFileintheServer))),"v-pills-home-tab"==this.state.selectedId?n.a.createElement(P,{uploadoptions:this}):"v-pills-profile-tab"==this.state.selectedId||"v-pills-messages-tab"==this.state.selectedId||"v-pills-settings-tab"==this.state.selectedId?n.a.createElement(Z,null):void 0))}}]),t}(s.Component);w()(Q,"contextType",C);var $=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,logs:[],downloadLogLink:""},a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.displayLogs(),this.context.setSelectedTabOnCookies("manager")}},{key:"displayLogs",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","display_log"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),200==a.status&&(this.setState({loading:!1}),a.data.success&&(this.setState({logs:a.data.info}),console.log(this.state.logs)));case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"downloadLog",value:(a=x()(E.a.mark(function e(t,a){var s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new FormData).set("action","download_log"),s.set("filename",t),s.set("revision",a),e.next=6,T()({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,console.log(n),n.data.success?(console.log(n.data.log_link),this.setState({downloadLogLink:n.data.log_link}),document.getElementById("downloadFile").click()):M.toast.error("Log Doesn't Exists");case 9:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t={padding:"20px 0 10px 0"};return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane5 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-12 mt20"},n.a.createElement("h1",{className:"main-heading"},"Log Info"),n.a.createElement("table",{className:"table log-manager"},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,this.context.language.FileName),n.a.createElement("th",null,this.context.language.Module),n.a.createElement("th",null,this.context.language.Inserted),n.a.createElement("th",null,this.context.language.Updated),n.a.createElement("th",null,this.context.language.Skipped),n.a.createElement("th",{className:"text-center"},this.context.language.Download))),n.a.createElement("tbody",null,this.state.loading?n.a.createElement("tr",null,n.a.createElement("td",{colspan:"6"},n.a.createElement("div",{className:"loader loader-1 mt15"}))):0!==this.state.logs.length?this.state.logs.map(function(a,s){return n.a.createElement("tr",{style:t},n.a.createElement("td",null,a.filename," ",n.a.createElement("br",null),n.a.createElement("b",null,e.context.language.Revision,": ")," ",a.revision),n.a.createElement("td",null,a.module),n.a.createElement("td",null,a.inserted),n.a.createElement("td",null,a.updated),n.a.createElement("td",null,a.skipped),n.a.createElement("td",{className:"text-center"},n.a.createElement("div",{className:"download-icon"},n.a.createElement("a",{className:"action-icon text-success text-bold",onClick:function(){e.downloadLog(a.filename,a.revision)},"data-tip":"Download"},n.a.createElement("i",{className:"csv-icon-download-cloud"}))),n.a.createElement(U.a,{effect:"solid"})))}):n.a.createElement("tr",null,n.a.createElement("td",{colspan:"6"},n.a.createElement("span",{className:"text-danger"},this.context.language.NoLogRecordFound))))),n.a.createElement("a",{id:"downloadFile",className:"hidden",href:this.state.downloadLogLink,download:!0},this.context.language.Download)))))}}]),t}(s.Component);w()($,"contextType",C);var ee=$,te=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={fileManagerTabActive:"",templatesTabActive:"",logManagerTabActive:"active",showTemplateEditMapping:!1},a}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("manager")}},{key:"showManagerOptions",value:function(){var e=this;return n.a.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3"},n.a.createElement("ul",{className:"setting-tab"},n.a.createElement("li",{"data-setting":"setting-tabpane5",className:"setting-tab-list ".concat(this.state.logManagerTabActive),onClick:function(t){e.setState({logManagerTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-layers","aria-hidden":"true"}),this.context.language.LogManager),n.a.createElement("li",{"data-setting":"setting-tabpane1",className:"setting-tab-list pro-tag ".concat(this.state.fileManagerTabActive),onClick:function(t){e.setState({fileManagerTabActive:"active",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-hard-drive1","aria-hidden":"true"}),this.context.language.FileManager),n.a.createElement("li",{"data-setting":"setting-tabpane4",className:"setting-tab-list pro-tag ".concat(this.state.templatesTabActive),onClick:function(t){e.setState({templatesTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",logManagerTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-layout","aria-hidden":"true"}),this.context.language.Templates)))}},{key:"render",value:function(){return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"row"},this.showManagerOptions(),"active"===this.state.fileManagerTabActive?n.a.createElement(Z,null):"active"===this.state.templatesTabActive?n.a.createElement(Z,null):"active"===this.state.logManagerTabActive?n.a.createElement(ee,null):n.a.createElement("div",null,this.context.language.NotSelectedAnyTab)))))}}]),t}(s.Component);w()(te,"contextType",C);var ae=te;function se(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function ne(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?se(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var oe=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={customPostType:[],taxonomies:[],moduleRecordCount:"0 Data",customPostOption:"",taxonomiesOption:""},a.moduleName="",a.getModuleData=a.getModuleData.bind(S()(a)),a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.getPostTypes(),this.getTaxonomies()}},{key:"getPostTypes",value:(o=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_post_types"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),200==a.status&&(this.setState({loading:!1}),this.setState({customPostType:a.data.custom_post_type}));case 8:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"getTaxonomies",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_taxonomies"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),200==a.status&&(this.setState({loading:!1}),this.setState({taxonomies:a.data.taxonomies}));case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getModuleData",value:(a=x()(E.a.mark(function e(t){var a,s,n,o,i=arguments;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>1&&void 0!==i[1]&&i[1],console.log(t.target.id),s=t.target.id,a&&(s=t.target.name,t.target.id),"Taxonomies"!==s&&"CustomPosts"!==s||!a?this.context.setExportInfo(ne({},this.context.exportInfo,{moduleName:s})):(console.log("Checking Option",t.target.value),this.context.setExportInfo(ne({},this.context.exportInfo,{optionalType:t.target.value,moduleName:s}))),(n=new FormData).set("action","total_records"),n.set("module",s),"Taxonomies"!==s&&"CustomPosts"!==s||!a||n.set("optionalType",t.target.value),this.setState({loading:!0}),e.prev=10,e.next=13,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 13:200===(o=e.sent).status&&(console.log("count",o),this.setState({loading:!1}),""!=s?this.setState({moduleRecordCount:o.data+" "+s}):this.setState({moduleRecordCount:o.data+" Data"}),o.data>0?document.getElementById("exportbtn").disabled=!1:document.getElementById("exportbtn").disabled=!0),console.log(this.context.exportInfo),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),console.log(e.t0);case 21:case"end":return e.stop()}},e,this,[[10,18]])})),function(e){return a.apply(this,arguments)})},{key:"getExportOption",value:function(){""!=this.context.exportInfo.exportModule?this.context.setShowExport("export-filter"):M.toast.error("Select any module to export")}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},this.context.activateExporter?n.a.createElement("div",{className:"row export"},n.a.createElement("h1",{class:"main-heading pr15 pl15 col-md-12 mt20 mb30"},this.context.language.Selectyourmoduletoexportthedata," ",n.a.createElement("div",{className:"float-right"},this.state.loading?n.a.createElement("div",{className:"btn ajax-loader loading",style:{marginTop:"-5px",marginRight:"-25px"}}):""," ",n.a.createElement("span",{className:"exportData"},this.state.moduleRecordCount," Found"))),n.a.createElement("div",{className:"export-section col-md-6"},n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Posts",onClick:this.getModuleData}),n.a.createElement("label",{for:"Posts"},"Posts")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Pages",onClick:this.getModuleData}),n.a.createElement("label",{for:"Pages"},"Pages")),n.a.createElement("div",{className:"form-group row ml0"},n.a.createElement("div",{className:"col-md-4 pl0"},n.a.createElement("input",{type:"radio",name:"export",id:"CustomPosts",onClick:this.getModuleData}),n.a.createElement("label",{for:"CustomPosts"},"Custom Posts")),n.a.createElement("div",{className:"col-md-8",style:{display:"CustomPosts"===this.context.exportInfo.moduleName?"block":"none"}},n.a.createElement("select",w()({className:"select form-control",id:"customPostOption",name:"CustomPosts",onChange:function(t){e.setState({customPostOption:t.target.value}),e.getModuleData(t,!0)}},"id",""),n.a.createElement("option",{value:""},"-select-"),this.state.customPostType.map(function(e,t){return n.a.createElement("option",{value:e},e)})))),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Tags",onClick:this.getModuleData}),n.a.createElement("label",{for:"Tags"},"Tags")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Categories",onClick:this.getModuleData}),n.a.createElement("label",{for:"Categories"},"Categories")),n.a.createElement("div",{className:"form-group row ml0"},n.a.createElement("div",{className:"col-md-4 pl0"},n.a.createElement("input",{type:"radio",name:"export",id:"Taxonomies",onClick:this.getModuleData}),n.a.createElement("label",{for:"Taxonomies"},"Taxonomies")),n.a.createElement("div",{className:"col-md-8",style:{display:"Taxonomies"===this.context.exportInfo.moduleName?"block":"none"}},n.a.createElement("select",w()({className:"select form-control",id:"taxonomiesOption",name:"Taxonomies",onChange:function(t){e.setState({taxonomiesOption:t.target.value}),e.getModuleData(t,!0)}},"id",""),n.a.createElement("option",{value:""},"-select-"),this.state.taxonomies.map(function(e,t){return n.a.createElement("option",{value:e},e)})))),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Users",onClick:this.getModuleData}),n.a.createElement("label",{for:"Users"},"Users"))),n.a.createElement("div",{className:"export-section offset-md-1 col-md-5"},n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Comments",onClick:this.getModuleData}),n.a.createElement("label",{for:"Comments"},"Comments")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"CustomerReviews",onClick:this.getModuleData}),n.a.createElement("label",{for:"CustomerReviews"},"Customer Reviews")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Eshop",onClick:this.getModuleData}),n.a.createElement("label",{for:"Eshop"},"Eshop")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"WPeCommerce",onClick:this.getModuleData}),n.a.createElement("label",{for:"WPeCommerce"},"Wp-Commerce")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"WooCommerce",onClick:this.getModuleData}),n.a.createElement("label",{for:"WooCommerce"},"Woo-Commerce")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Marketpress",onClick:this.getModuleData}),n.a.createElement("label",{for:"Marketpress"},"Marketpress"))),n.a.createElement("div",{className:"col-md-12"},n.a.createElement("div",{className:"float-right"},n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",id:"exportbtn",onClick:function(t){e.getExportOption()},value:this.context.language.Continue})))):n.a.createElement("div",{className:"d-flex justify-content-center align-items-center",style:{minHeight:"300px"}},n.a.createElement("div",{className:"text-center"},n.a.createElement("h5",{style:{color:"#2D3748"},className:"col-md-8 offset-md-2 mb30"},"Please install the Ultimate Exporter to export all your WordPress data as CSV."),n.a.createElement("a",{href:"https://wordpress.org/plugins/wp-ultimate-exporter/",className:"smack-btn smack-btn-secondary",target:"_blank"},"Click here to install")))))}}]),t}(s.Component);function ie(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function le(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ie(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ie(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}w()(oe,"contextType",C);var re=a(2),ce=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,exportName:"",exportType:"csv",authorList:[],startDate:new Date,endDate:new Date,conditions:{specific_period:{is_check:!1},specific_authors:{is_check:!1,author:""}},enableSchedule:!1,offset:0,exportProgress:"0",totalExportRecord:0,stopWatch:"00:00:00",activeDowloadTab:!1,exportSuccess:!1,showDownloadBtn:!1,exportedFileUrl:""},a.stopSeconds=0,a.stopMinutes=0,a.stopHours=0,a.handleChangeStart=a.handleChangeStart.bind(S()(a)),a.handleChangeEnd=a.handleChangeEnd.bind(S()(a)),a.onInputChange=a.onInputChange.bind(S()(a)),a}var a,s;return f()(t,e),m()(t,[{key:"onInputChange",value:function(e){var t=this;this.setState(w()({},e.target.name,e.target.value),function(){console.log("state",t.state)})}},{key:"handleChangeStart",value:function(e){this.setState({startDate:e})}},{key:"handleChangeEnd",value:function(e){this.setState({endDate:e})}},{key:"componentDidMount",value:function(){this.getAuthors(),setInterval(function(){!this.state.exportSuccess&&this.state.activeDowloadTab&&this.stopWatch()}.bind(this),1e3)}},{key:"getAuthors",value:(s=x()(E.a.mark(function e(){var t,a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_authors"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(a=e.sent,this.setState({loading:!1}),200==a.status){for(s=a.data.user_id.length,n=[],o=0;o<s;o++)n.push({user_id:a.data.user_id[o],user_name:a.data.user_name[o]});this.setState({authorList:n})}case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"handleCheck",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";a&&(this.state.conditions[e.target.name].is_check=e.target.checked,this.setState({conditions:this.state.conditions},function(){console.log(t.state.conditions)})),a||s||this.setState(w()({},e.target.name,e.target.checked)),s&&(e.target.checked?this.state.eventExclusion.exclusion_headers.header[n]=!0:delete this.state.eventExclusion.exclusion_headers.header[n],this.setState(le({},this.state.eventExclusion,{eventExclusion:this.state.eventExclusion}),function(){console.log(t.state.eventExclusion)}))}},{key:"handleChange",value:function(e){var t=this;console.log(e.target.value);var a=e.target.id;"specific_authors"===a&&(this.state.conditions.specific_authors.author=e.target.value),"specific_status"===a&&(this.state.conditions.specific_status.status=e.target.value),"delimiter"===a&&(this.state.conditions.delimiter.delimiter=e.target.value),"other_delimiter"===a&&(this.state.conditions.delimiter.optional_delimiter=e.target.value),this.setState(le({},this.state.conditions,{conditions:this.state.conditions}),function(){console.log(t.state.conditions)})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"exportConfiguration",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o,i,l,r;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.state.conditions).specific_period.from=re(this.state.startDate).format("YYYY-MM-DD"),t.specific_period.to=re(this.state.endDate).format("YYYY-MM-DD"),console.log("conditions",t),console.log("fileName",this.state.exportName),console.log("exp_type",this.state.exportType),console.log("export_mode","normal"),""!=document.getElementById("export-file-name").value){e.next=11;break}return M.toast.error("Please Type Export File Name"),document.getElementById("export-file-name").focus(),e.abrupt("return");case 11:return this.setState({activeDowloadTab:!0}),(a=new FormData).set("action","parse_data"),a.set("module",this.context.exportInfo.moduleName),"Taxonomies"!==(s=this.context.exportInfo.moduleName)&&"CustomPosts"!==s||a.set("optionalType",this.context.exportInfo.optionalType),a.set("fileName",this.state.exportName),a.set("exp_type",this.state.exportType),a.set("conditions",JSON.stringify(t)),a.set("export_mode","normal"),a.set("offset",this.state.offset),this.setState({loading:!0}),e.next=25,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 25:n=e.sent,o=n.data,console.log("Export Result",n.data),200==n.status&&(i=n.data.new_offset,(l=n.data.total_row_count)<i?this.setState({offset:l}):this.setState({offset:n.data.new_offset}),this.setState({exportSuccess:n.data.success,totalExportRecord:o.total_row_count}),r=o.new_offset/o.total_row_count*100,(r=Math.round(r))>.9&&this.setState({exportProgress:r}),r>=100&&this.setState({exportProgress:"100"}),n.data.success?this.setState({exportedFileUrl:n.data.exported_file,showDownloadBtn:!0}):this.exportConfiguration());case 29:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,a=(t.showSplitRecord,t.conditions),s=t.exportName,o=(t.exportType,t.authorList),i={width:this.state.exportProgress+"%"},l={display:this.state.showDownloadBtn?"block":"none"},r={opacity:.6};return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-none":"d-block")},n.a.createElement("div",{className:"row export"},n.a.createElement("h1",{className:"main-heading pr15 pl15 mb20 mt20 col-md-12"},this.context.language.Toexportdatabasedonthefilters),n.a.createElement("div",{className:"col-md-12"},n.a.createElement("div",{className:"form-group col-md-5 row export_file_name"},n.a.createElement("label",null,this.context.language.ExportFileName),n.a.createElement("input",{type:"text",className:"form-control",id:"export-file-name",value:s,onChange:function(t){e.setState({exportName:t.target.value})}}),n.a.createElement("span",{className:"export_file_type"},".",this.state.exportType)),n.a.createElement("hr",null),n.a.createElement("h3",{className:"main-heading"},this.context.language.AdvancedFilters),n.a.createElement("div",{className:"advanced-filter"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"specific_period",id:"export_specific_period",onClick:function(t){e.handleCheck(t,!0)}}),n.a.createElement("label",{for:"export_specific_period"},this.context.language.Exportdataforthespecificperiod)),n.a.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:a.specific_period.is_check?"block":"none"}},n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"form-group col-md-5"},n.a.createElement("label",{for:""},this.context.language.StartFrom),n.a.createElement(G.a,{className:"form-control",selected:this.state.startDate,onChange:this.handleChangeStart}),n.a.createElement("i",{className:"csv-icon-calendar2 input-icon"})),n.a.createElement("div",{className:"form-group col-md-5"},n.a.createElement("label",{for:""},this.context.language.EndTo," "),n.a.createElement(G.a,{className:"form-control",selected:this.state.endDate,onChange:this.handleChangeEnd}),n.a.createElement("i",{className:"csv-icon-calendar2 input-icon"}))))),n.a.createElement("div",{className:"advanced-filter"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"specific_authors",id:"export_specific_author",onClick:function(t){e.handleCheck(t,!0)}}),n.a.createElement("label",{for:"export_specific_author"},this.context.language.Exportdatabyspecificauthors)),n.a.createElement("div",{className:"row mt20 bg-gray-section",style:{display:a.specific_authors.is_check?"block":"none"}},n.a.createElement("div",{className:"form-group col-md-5"},n.a.createElement("label",{className:"advanced"},this.context.language.Authors),n.a.createElement("select",{className:"select form-control",id:"specific_authors",value:a.specific_authors.author,onChange:function(t){e.handleChange(t)}},n.a.createElement("option",{value:""},"Select Author"),o.map(function(e){return n.a.createElement("option",{value:e.user_id},e.user_name)}))))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"specific_status",id:"export_specific_status",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export data with the specific status")}}),n.a.createElement("label",{for:"export_specific_status"},this.context.language.Exportdatawiththespecificstatus))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"delimiter",id:"export_auto_delimiter",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export data with auto delimiters")}}),n.a.createElement("label",{for:"export_auto_delimiter"},this.context.language.Exportdatawithautodelimiters))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",name:"setInclusions",id:"export_specific_inclusion",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export data based on specific Inclusions ")}}),n.a.createElement("label",{for:"export_specific_inclusion",className:""},this.context.language.ExportdatabasedonspecificInclusions))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"export_this_schedule",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export Schedule")}}),n.a.createElement("label",{for:"export_this_schedule"},this.context.language.DoyouwanttoSchedulethisExport))),n.a.createElement("div",{className:"form-group mt30 clearfix"},n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowExport("export-module")}},this.context.language.Back)),n.a.createElement("div",{className:"float-right"},n.a.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.exportConfiguration()}},this.context.language.Export)))))),n.a.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-block":"d-none")},n.a.createElement("div",{className:"card-body"},n.a.createElement("div",{className:"importing-details"},n.a.createElement("div",{className:"progress-status"},this.state.exportSuccess&&this.state.exportProgress>"99"?"In Progress":""),n.a.createElement("div",{className:"import-progress"},n.a.createElement("div",{className:"progress-loading"},this.state.exportProgress+"%"," ",this.context.language.Completed),n.a.createElement("div",{className:"progress-timing"},n.a.createElement("i",{className:"csv-icon-schedule"})," ",this.state.stopWatch))),n.a.createElement("div",{className:"progress mt10 mb40"},n.a.createElement("div",{className:"progress-bar",role:"progressbar",style:i,"aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),n.a.createElement("p",{className:"float-none"},this.context.language.DataExported," :"," ",n.a.createElement("span",null,this.state.offset)," /"," ",this.state.totalExportRecord," "),n.a.createElement("div",{className:"form-group mt30 clearfix"},n.a.createElement("div",{className:"float-right"},n.a.createElement("a",{href:this.state.exportedFileUrl,style:l,download:!0,className:"smack-btn smack-btn-primary",onClick:function(){window.location.href}},n.a.createElement("i",{className:"csv-icon-download-cloud mr10"}),this.context.language.Download)),n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowExport("export-module")}},this.context.language.Back))))))}}]),t}(s.Component);w()(ce,"contextType",C);var me=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"render",value:function(){return"export-module"===this.context.showExport?n.a.createElement(oe,null):"export-filter"===this.context.showExport?n.a.createElement(ce,null):void 0}}]),t}(s.Component);w()(me,"contextType",C);var de=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,drop_table:!1,send_log_email:!1,send_user_password:!1,woocomattr:!1,CMB2metafields:""},a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.displayGeneralSettings(),this.context.setSelectedTabOnCookies("settings")}},{key:"displayGeneralSettings",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_options"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),this.setState({loading:!1}),void 0!==a.data.options&&a.data.options,this.setState(a.data.options),200==a.status&&a.data.success;case 11:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"updateGeneralSetting",value:(a=x()(E.a.mark(function e(t,a){var s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"drop_table"===a?this.setState({drop_table:t.target.checked}):"send_log_email"===a?this.setState({send_log_email:t.target.checked}):"send_user_password"===a?this.setState({send_user_password:t.target.checked}):"woocomattr"===a&&this.setState({woocomattr:t.target.checked}),console.log(t.target.checked),(s=new FormData).set("action","settings_options"),s.set("option",a),"cmb2"===a?s.set("value",t.target.value):s.set("value",t.target.checked),console.log(this.state[a]),this.setState({loading:!0}),e.next=10,T()({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:n=e.sent,console.log("Response",n),this.setState({loading:!1}),200==n.status&&n.data.success&&M.toast.success("Settings Successfully Updated");case 14:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane1 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-10 mt20"},n.a.createElement("h1",{className:"main-heading"},this.context.language.GeneralSettings," "),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.DropTable),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("h1",null,this.state.drop_table),n.a.createElement("input",{type:"checkbox",className:"form-control",id:"drop-table-check",checked:this.state.drop_table,onChange:function(t){e.updateGeneralSetting(t,"drop_table")}}),n.a.createElement("label",{className:"switch-ios",for:"drop-table-check"},n.a.createElement("i",null))))),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.Scheduledlogmails),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Enabletogetscheduledlogmails)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",onClick:function(){e.setState({send_log_email:!1},function(){M.toast.info("Please Upgrade to PRO for this Feature")})},checked:this.state.send_log_email,id:"scheduled-log-check"}),n.a.createElement("label",{className:"switch-ios",for:"scheduled-log-check"},n.a.createElement("i",null))))),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.Sendpasswordtouser),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Enabletosendpasswordinformationthroughemail)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.send_user_password,onClick:function(t){e.updateGeneralSetting(t,"send_user_password")},id:"send-information"}),n.a.createElement("label",{className:"switch-ios",for:"send-information"},n.a.createElement("i",null))))),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.WoocommerceCustomattribute),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Enablestoregisterwoocommercecustomattribute)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.send_log_email,onClick:function(){e.setState({send_log_email:!1},function(){M.toast.info("Please Upgrade to PRO for this Feature")})},id:"register-woocommerce"}),n.a.createElement("label",{className:"switch-ios",for:"register-woocommerce"},n.a.createElement("i",null)))))))))}}]),t}(s.Component);w()(de,"contextType",C);var ue=de,pe=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,securityData:[],author_editor_access:!1},a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.displaySecurityPerformance(),this.displayGeneralSettings(),this.context.setSelectedTabOnCookies("settings")}},{key:"displayGeneralSettings",value:(o=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_options"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),this.setState({loading:!1}),this.setState(a.data.options);case 9:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"updateGeneralSetting",value:(s=x()(E.a.mark(function e(t){var a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({author_editor_access:t.target.checked}),(a=new FormData).set("action","settings_options"),a.set("option","author_editor_access"),a.set("value",t.target.checked),this.setState({loading:!0}),e.next=8,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:s=e.sent,console.log("Response",s),this.setState({loading:!1}),200==s.status&&s.data.success&&M.toast.success("Settings Successfully Updated");case 12:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"displaySecurityPerformance",value:(a=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","security_performance"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),this.setState({loading:!1}),200==a.status&&(this.setState({securityData:a.data}),console.log(this.state.securityData));case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane3 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-10 mt20"},n.a.createElement("h1",{className:"main-heading pb5"},this.context.language.SecurityandPerformance),n.a.createElement("div",{className:"form-group row mt30"},n.a.createElement("div",{className:"col-xs-12 col-sm-7 col-md-7 nopadding"},n.a.createElement("h4",null,this.context.language.Allowauthorseditorstoimport),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Thisenablesauthorseditorstoimport)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3 "},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.author_editor_access,onClick:function(t){e.updateGeneralSetting(t)},id:"two"}),n.a.createElement("label",{className:"switch-ios inline",for:"two"},n.a.createElement("i",null))))),n.a.createElement("table",{className:"table table-striped"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("th",{colspan:"3"},n.a.createElement("h5",{className:"text-capitalize"},this.context.language.MinimumrequiredphpinivaluesIniconfiguredvalues))),n.a.createElement("tr",null,n.a.createElement("th",null,n.a.createElement("label",null,this.context.language.Variables)),n.a.createElement("th",{className:"ini-configured-values"},n.a.createElement("label",null,this.context.language.SystemValues)),n.a.createElement("th",{className:"min-requirement-values"},n.a.createElement("label",null,this.context.language.MinimumRequirements))),n.a.createElement("tr",null,n.a.createElement("td",null,"post_max_size "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.post_max_size?this.state.securityData.post_max_size:"-"),n.a.createElement("td",{className:"min-requirement-values"},"10M")),n.a.createElement("tr",null,n.a.createElement("td",null,"auto_append_file"),n.a.createElement("td",{className:"ini-configured-values"}," ",""!==this.state.securityData.auto_append_file?this.state.securityData.auto_append_file:"-"," "),n.a.createElement("td",{className:"min-requirement-values"},"-")),n.a.createElement("tr",null,n.a.createElement("td",null,"auto_prepend_file "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.auto_prepend_file?this.state.securityData.auto_prepend_file:"-"),n.a.createElement("td",{className:"min-requirement-values"},"-")),n.a.createElement("tr",null,n.a.createElement("td",null,"upload_max_filesize "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.upload_max_filesize?this.state.securityData.upload_max_filesize:"-"),n.a.createElement("td",{className:"min-requirement-values"},"2M")),n.a.createElement("tr",null,n.a.createElement("td",null,"file_uploads "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.file_uploads?this.state.securityData.file_uploads:"-"),n.a.createElement("td",{className:"min-requirement-values"},"On")),n.a.createElement("tr",null,n.a.createElement("td",null,"allow_url_fopen "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.allow_url_fopen?this.state.securityData.allow_url_fopen:"-"),n.a.createElement("td",{className:"min-requirement-values"},"On")),n.a.createElement("tr",null,n.a.createElement("td",null,"max_execution_time "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_execution_time?this.state.securityData.max_execution_time:"-"),n.a.createElement("td",{className:"min-requirement-values"},"3000")),n.a.createElement("tr",null,n.a.createElement("td",null,"max_input_time "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_input_time?this.state.securityData.max_input_time:"-"),n.a.createElement("td",{className:"min-requirement-values"},"3000")),n.a.createElement("tr",null,n.a.createElement("td",null,"max_input_vars "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_input_vars?this.state.securityData.max_input_vars:"-"),n.a.createElement("td",{className:"min-requirement-values"},"3000")),n.a.createElement("tr",null,n.a.createElement("td",null,"memory_limit "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.wp_memory_limit?this.state.securityData.wp_memory_limit:"-"),n.a.createElement("td",{className:"min-requirement-values"},"99M")))),n.a.createElement("h4",{class:"mt30"},this.context.language.RequiredtoenabledisableLoadersExtentionsandmodules),n.a.createElement("table",{className:"table table-striped"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"PDO"),n.a.createElement("td",null,""!==this.state.securityData.PDO?this.state.securityData.PDO:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"Curl "),n.a.createElement("td",null,""!==this.state.securityData.curl?this.state.securityData.curl:"-"),n.a.createElement("td",null)))),n.a.createElement("h4",{className:"mt30"},this.context.language.DebugInformation),n.a.createElement("table",{className:"table table-striped"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name",style:{width:"25%"}},"WordPress Version"),n.a.createElement("td",null,""!==this.state.securityData.wp_version?this.state.securityData.wp_version:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"PHP Version"),n.a.createElement("td",null,""!==this.state.securityData.php_version?this.state.securityData.php_version:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"MySQL Version"),n.a.createElement("td",null,""!==this.state.securityData.db_version?this.state.securityData.db_version:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"Server SoftWare"),n.a.createElement("td",null,""!==this.state.securityData.server_software?this.state.securityData.server_software:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"Your User Agent"),n.a.createElement("td",null,""!==this.state.securityData.http_agent?this.state.securityData.http_agent:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"WPDB Prefix"),n.a.createElement("td",null,""!==this.state.securityData.db_prefix?this.state.securityData.db_prefix:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"WP Multisite Mode"),n.a.createElement("td",null,""!==this.state.securityData.wp_multi_site?this.state.securityData.wp_multi_site:"-"," "),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"WP Memory Limit"),n.a.createElement("td",null,""!==this.state.securityData.wp_memory_limit?this.state.securityData.wp_memory_limit:"-"),n.a.createElement("td",null))))))))}}]),t}(s.Component);w()(pe,"contextType",C);var he=pe,ge=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("settings")}},{key:"render",value:function(){return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane4 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-10 mt20"},n.a.createElement("h1",{className:"main-heading"},this.context.language.Documentation),n.a.createElement("div",{className:"embed-responsive embed-responsive-16by9"},n.a.createElement("iframe",{className:"embed-responsive-item",src:"https://www.youtube.com/embed/GbDlQcbnNJY",allowfullscreen:!0})),n.a.createElement("h1",{className:"main-heading"},this.context.language.SmackcodersGuidelines),n.a.createElement("ul",{className:"list-unstyled"},n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/OAVF9u",target:"_blank"},this.context.language.DevelopmentNews," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/kKWPui",target:"_blank"},this.context.language.WhatsNew," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/hyU5G1",target:"_blank"},this.context.language.Documentation," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://www.youtube.com/watch?v=48soc8Wu4zs&feature=youtu.be",target:"_blank"},this.context.language.YoutubeChannel," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/smw3WV",target:"_blank"},this.context.language.OtherWordPressPlugins," ")))))))}}]),t}(s.Component);w()(ge,"contextType",C);var fe=ge,ve=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={generalSettingsTabActive:"active",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:""},a}return f()(t,e),m()(t,[{key:"showSettingsOptions",value:function(){var e=this;return n.a.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3"},n.a.createElement("ul",{className:"setting-tab"},n.a.createElement("li",{"data-setting":"setting-tabpane1",className:"setting-tab-list ".concat(this.state.generalSettingsTabActive),onClick:function(t){e.setState({generalSettingsTabActive:"active",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-cog","aria-hidden":"true"}),this.context.language.GeneralSettings),n.a.createElement("li",{"data-setting":"setting-tabpane2",className:"setting-tab-list pro-tag ".concat(this.state.databaseOptimizationTabActive),onClick:function(t){e.setState({databaseOptimizationTabActive:"active",generalSettingsTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-database","aria-hidden":"true"}),this.context.language.DatabaseOptimization),n.a.createElement("li",{"data-setting":"setting-tabpane3",className:"setting-tab-list ".concat(this.state.securityAndPerformanceTabActive),onClick:function(t){e.setState({securityAndPerformanceTabActive:"active",generalSettingsTabActive:"",databaseOptimizationTabActive:"",documentationTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-settings1","aria-hidden":"true"})," ",this.context.language.SecurityandPerformance),n.a.createElement("li",{"data-setting":"setting-tabpane4",className:"setting-tab-list ".concat(this.state.documentationTabActive),onClick:function(t){e.setState({documentationTabActive:"active",generalSettingsTabActive:"",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-file-text","aria-hidden":"true"})," ",this.context.language.Documentation)))}},{key:"render",value:function(){return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"row"},this.showSettingsOptions(),"active"===this.state.generalSettingsTabActive?n.a.createElement(ue,null):"active"===this.state.databaseOptimizationTabActive?n.a.createElement(Z,null):"active"===this.state.securityAndPerformanceTabActive?n.a.createElement(he,null):"active"===this.state.documentationTabActive?n.a.createElement(fe,null):n.a.createElement("div",null," ",this.context.language.NotSelectedAnyTab," "))))}}]),t}(s.Component);w()(ve,"contextType",C);var Ee=ve,be=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loadingSupport:!1,loadingSubscription:!1,supportEmail:"",supportType:"",message:"",newsletterEmail:"",errors:""},a.supportEmail="",a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("support")}},{key:"submitContactForm",value:(s=x()(E.a.mark(function e(t){var a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","support_mail"),a.set("email",this.state.supportEmail),a.set("query",this.state.supportType),a.set("message",this.state.message),this.setState({loadingSupport:!0}),e.next=8,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:s=e.sent,console.log("Response",s),200==s.status&&(this.setState({loadingSupport:!1,supportEmail:"",message:""}),M.toast.success("Mail Sent Successfully"));case 11:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"submitSubscriptionForm",value:(a=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","send_subscribe_email"),t.set("subscribe_email",this.state.newsletterEmail),this.setState({loadingSubscription:!0}),e.next=6,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:a=e.sent,console.log("Response",a),a&&a.data&&200==a.status&&(this.setState({loadingSubscription:!1,newsletterEmail:""}),M.toast.success("Successfull Subscribe to Newsletter"));case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"handleValidation",value:function(e){this.supportEmail=e;var t=!0;if(""===this.supportEmail&&(t=!1),void 0!==this.supportEmail){var a=this.supportEmail.lastIndexOf("@"),s=this.supportEmail.lastIndexOf(".");t=a<s&&a>0&&-1==this.supportEmail.indexOf("@@")&&s>2&&this.supportEmail.length-s>2}return t}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"card-body"},n.a.createElement("div",{className:"row justify-content-around"},n.a.createElement("div",{className:"col-md-12 text-center mt10 mb30"},n.a.createElement("p",null,this.context.language.LoveWPUltimateCSVImporterGivea5starreviewon," ",n.a.createElement("a",{className:"csv-link",href:"https://wordpress.org/support/plugin/wp-ultimate-csv-importer/reviews/?filter=5",target:"_blank"}," wordpress.org!"))),n.a.createElement("div",{className:"col-md-6"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.ContactSupport),n.a.createElement("form",{method:"",action:""},n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.language.Email),n.a.createElement("input",{type:"text",className:"form-control",value:this.state.supportEmail,onChange:function(t){e.setState({supportEmail:t.target.value}),e.handleValidation(e.state.supportEmail)?e.setState({errors:""}):e.setState({errors:"Email is not Valid"})}}),n.a.createElement("p",{style:{color:"red"}},this.state.errors)),n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.Supporttype),n.a.createElement("select",{className:"form-control",value:this.state.supportType,onClick:function(t){e.setState({supportType:t.target.value})}},n.a.createElement("option",{value:"bug_reporting"},this.context.language.BugReporting),n.a.createElement("option",{value:"feature_enhancement"},this.context.language.FeatureEnhancement))),n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.language.Message),n.a.createElement("textarea",{className:"form-control",value:this.state.message,onChange:function(t){e.setState({message:t.target.value})},rows:"5"})),n.a.createElement("div",{className:"form-group d-flex justify-content-end"},this.state.loadingSupport?this.context.loaderText:n.a.createElement("input",{type:"button",name:"",onClick:function(t){""===e.state.errors&&""!==e.state.message?e.submitContactForm.bind(e)(t):(""!==e.state.errors&&M.toast.info("Email you entered is not valid"),""===e.state.message&&M.toast.info("You don't describe the bug or feature you want to enhance"))},className:"smack-btn smack-btn-primary",value:this.context.language.Send}))))),n.a.createElement("div",{className:"col-md-6"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.NewsletterSubscription),n.a.createElement("form",{action:"",method:""},n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.language.Email),n.a.createElement("input",{type:"email",name:"",className:"form-control",value:this.state.newsletterEmail,onChange:function(t){e.setState({newsletterEmail:t.target.value}),e.handleValidation(e.state.newsletterEmail)?e.setState({errorsSubscribe:""}):e.setState({errorsSubscribe:"Email entered is not Valid"})}}),n.a.createElement("p",{style:{color:"red"}},this.state.errorsSubscribe)),n.a.createElement("div",{className:"form-group d-flex justify-content-end"},this.state.loadingSubscription?this.context.loaderText:n.a.createElement("input",{type:"button",name:"",className:"smack-btn smack-btn-primary",onClick:function(){""===e.state.errorsSubscribe?e.submitSubscriptionForm():M.toast.info("Email you entered is not valid")},value:this.context.language.Subscribe})))),n.a.createElement("div",{className:"mt40 p15"},n.a.createElement("h5",null,this.context.language.Note),n.a.createElement("div",{className:"mt20"},n.a.createElement("i",{className:"csv-icon-document-text text-primary mr5"}),this.context.language.SubscribetoSmackcodersMailinglistafewmessagesayear),n.a.createElement("div",{className:"mt20"},n.a.createElement("i",{className:"csv-icon-mail text-primary mr5"}),this.context.language.Pleasedraftamailto," ",n.a.createElement("span",{className:"text-primary font-weight-bold"},"support@smackcoders.com.")," ",this.context.language.Ifyoudoesnotgetanyacknowledgementwithinanhour)))))))}}]),t}(s.Component);w()(be,"contextType",C);var xe=be,ye=a(100),Se=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,barChartLabel:[],createdValue:[],skippedValue:[],updatedValue:[],monthList:[],lineChartData:[]},a.chartOptions={scales:{xAxes:[{stacked:!0}],yAxes:[{stacked:!0}],maintainAspectRatio:!1,delay:500}},a.lineOptions={scales:{maintainAspectRatio:!1,delay:500}},a.lineDataNew=[],a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.getBarData(),this.listLastMonths(),this.getLineData(),this.context.setSelectedTabOnCookies("dashboard")}},{key:"getRandomColor",value:function(){var e=new Array("#e8e8e8","#f5ddde","#bee4e5","#cfe0c7","#f7e4bb","#9c89b8 ","#f0a6ca","#efc3e6","#f0e6ef","#b8bedd");return e[Math.floor(Math.random()*e.length)]}},{key:"getLineData",value:(s=x()(E.a.mark(function e(){var t,a,s,n,o,i,l,r,c,m,d,u,p;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","LineChart"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(200==(a=e.sent).status&&a.data.success){for(console.log(a.data),s=a.data,n={data:[],label:a.data.label,color:[]},o=0;o<s.data.length;o++){for(i=[],l=0;l<s.data[o].length;l++)r=parseInt(s.data[o][l]),i.push(r);n.data.push(i),n.color.push(this.getRandomColor())}for(m in console.log(n),this.setState({lineChartData:n}),c=[],n)if(n.hasOwnProperty(m))for(d=0;d<n.label.length;d++)u={label:"",fill:!0,stack:"stack1",lineTension:.6,borderCapStyle:"round",borderDashOffset:0,borderJoinStyle:"miter",backgroundColor:"rgba(75,192,192,0.1)",borderColor:"",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:[]},"data"===m&&(Object.assign(u,{data:n[m][d]}),c.push(u)),"label"===m&&(c[d].label=n[m][d]),"color"===m&&("",p=this.getRandomColor(),c[d].borderColor=p,c[d].backgroundColor="rgba(".concat(p,",0.1)"));console.log("lineDataSet",c),this.lineDataNew=c,this.forceUpdate()}case 7:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getBarData",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o,i,l,r,c;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","BarChart"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(200==(a=e.sent).status&&a.data.success){for(o in s=a.data,n=[],[],s)s.hasOwnProperty(o)&&"success"!==o&&n.push(o);for(c in this.setState({barChartLabel:n}),i=[],l=[],r=[],s)s.hasOwnProperty(c)&&"success"!==c&&(i.push(s[c].created),l.push(s[c].skipped),r.push(s[c].updated));this.setState({createdValue:i,skippedValue:l,updatedValue:r})}case 7:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"listLastMonths",value:function(){var e,t=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),a=(new Date).getMonth()+1,s=[];for(e=0;e<12;e++)s.push(t[a]),++a>11&&(a=0);this.setState({monthList:s})}},{key:"render",value:function(){this.state.lineChartData;return this.lineData={labels:this.state.monthList,datasets:this.lineDataNew},this.barData={labels:this.state.barChartLabel,datasets:[{stack:"stack1",backgroundColor:"rgba(255,99,132,1)",borderColor:"rgba(255,99,132,1)",label:"Inserted",data:this.state.createdValue},{stack:"stack1",label:"Updated",backgroundColor:"rgba(44,195,193,1)",borderColor:"rgba(255,99,132,1)",data:this.state.updatedValue},{stack:"stack1",label:"Skipped",backgroundColor:"rgba(50, 173, 255,1)",borderColor:"rgba(50, 173, 255,1)",data:this.state.skippedValue}]},n.a.createElement("div",{className:" container"},n.a.createElement("div",{className:"csv-importer-panel mt20"},n.a.createElement("div",null,n.a.createElement("div",{className:"col-md-12 mb30"},n.a.createElement("h2",{className:"main-heading"},this.context.language.ImportersActivity),n.a.createElement(ye.b,{data:this.lineData,width:"1000px",height:"450px",options:this.lineOptions})),n.a.createElement("hr",null),n.a.createElement("div",{className:"col-md-12"},n.a.createElement("h2",{className:"main-heading"},this.context.language.ImportStatistics),n.a.createElement(ye.a,{data:this.barData,width:"1000px",height:"450px",options:this.chartOptions})))))}}]),t}(s.Component);w()(Se,"contextType",C);var Ne=Se,we=function(){return n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"col-md-12 pt50 pb50"},n.a.createElement("div",{class:"row justify-content-center"},n.a.createElement("div",{class:"csv-addon-box import-woocommerce"},n.a.createElement("div",{className:"addon-header"},n.a.createElement("h2",null,"import woocommerce"),n.a.createElement("p",null,"Import any bulk WooCommerce Products data in CSV")),n.a.createElement("div",{class:"sub_fields"},n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"Highlights"),n.a.createElement("ul",null,n.a.createElement("li",null,"Product Types simple, grouped, variable, external type import."),n.a.createElement("li",null,"Featured Product Import from URL"),n.a.createElement("li",null,"Gallery image import"),n.a.createElement("li",null,"Duplicate detection"))),n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"File Type"),n.a.createElement("ul",null,n.a.createElement("li",null,"Supports UTF-8 CSV file")))),n.a.createElement("a",{href:"https://wordpress.org/plugins/import-woocommerce/",target:"_blank",class:"smack-btn btn-install btn-block"},"Install")),n.a.createElement("div",{class:"csv-addon-box import-users"},n.a.createElement("div",{className:"addon-header"},n.a.createElement("h2",null,"Import Users"),n.a.createElement("p",null,"Import User info into WordPress in bulk.")),n.a.createElement("div",{class:"sub_fields"},n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"Highlights"),n.a.createElement("ul",null,n.a.createElement("li",null,"WP-Members add-on support"),n.a.createElement("li",null,"Default custom fields import"),n.a.createElement("li",null,"Sends automated password notification email(optional)"))),n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"File Type"),n.a.createElement("ul",null,n.a.createElement("li",null,"Supports UTF-8 CSV file")))),n.a.createElement("a",{href:"https://wordpress.org/plugins/import-users/",target:"_blank",class:"smack-btn btn-install btn-block"},"Install")),n.a.createElement("div",{class:"csv-addon-box ultimate-exporter"},n.a.createElement("div",{className:"addon-header"},n.a.createElement("h2",null,"Wp Ultimate Exporter"),n.a.createElement("p",null,"Export all your WordPress data as CSV file for backup.")),n.a.createElement("div",{class:"sub_fields"},n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"Highlights"),n.a.createElement("ul",null,n.a.createElement("li",null,"Support Post, Page & Custom Post"),n.a.createElement("li",null,"Supports default custom fields"),n.a.createElement("li",null,"Filtered export based on period of time & authors"))),n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"File Type"),n.a.createElement("ul",null,n.a.createElement("li",null,"UTF-8 encoded CSV file")))),n.a.createElement("a",{href:"https://wordpress.org/plugins/wp-ultimate-exporter/",target:"_blank",class:"smack-btn btn-install btn-block"},"Install"))))))},Ce=a(39),ke=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{showMaintenanceMode:!1,selectedTab:"import-update",activateExporter:!1}),a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.checkExporterEnable(),this.checkMaintenanceMode();var e=new Ce.a;if(e.get("selectedTab")||e.set("selectedTab","import-update",{path:"/"}),this.setState({selectedTab:e.get("selectedTab")}),!window.wpr_object.file)return window.wpr_object?(window.wpr_object.file=Fe,this.context.setLanguage(window.wpr_object.file),void this.forceUpdate()):void(window.wpr_object={file:Fe});this.context.setLanguage(JSON.parse(window.wpr_object.file)),this.forceUpdate()}},{key:"checkExporterEnable",value:(o=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","check_export"),e.next=4,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 4:a=e.sent,console.log("Exporter",a),console.log("Exporter"),this.context.setActivateExporter(a.data.success);case 8:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"checkMaintenanceMode",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","checkmain_mode"),e.next=4,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 4:if(a=e.sent,console.log("showMaintenanceMode",a),!a||!a.data){e.next=11;break}if(200!=a.status||!a.data.success){e.next=11;break}return this.setState({showMaintenanceMode:!0}),this.context.setMaintenanceMode(!0),e.abrupt("return");case 11:this.setState({showMaintenanceMode:!1}),this.context.setMaintenanceMode(!1);case 13:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"disableMaintenanceMode",value:(a=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","settings_options"),t.set("option","enable_main_mode"),t.set("value",!1),e.next=6,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:a=e.sent,console.log(a),a.data.success&&(this.context.setMaintenanceMode(!1),location.reload());case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:" container"},n.a.createElement("div",{className:"row tab-section justify-content-center"},n.a.createElement("ul",{class:"tabs col-sm-12 col-md-12"},n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("dashboard"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"dashboard"})}},this.context.language.Dashboard),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("import-update"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"import-update"})}},this.context.language.ImportUpdate),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("manager"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"manager"})}},this.context.language.Manager),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("export"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"export"})}},this.context.language.Export),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("settings"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"settings"})}},this.context.language.Settings),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("addons"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"addons"})}},"Addons"),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("support"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"support"})}},this.context.language.Support)))),n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"float-right"},n.a.createElement("ul",{className:"d-flex mb-0"},n.a.createElement("li",null,n.a.createElement("a",{className:"csv-link",href:"https://goo.gl/jdPMW8",target:"_blank"},"Documentation")),n.a.createElement("li",{className:"ml-4"},n.a.createElement("a",{className:"csv-link",href:"https://goo.gl/fKvDxH",target:"_blank"},"Sample CSV")))),n.a.createElement("div",{className:"clearfix"})),this.state.showMaintenanceMode?n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"maintenance-mode"},n.a.createElement("span",null,n.a.createElement("img",{src:"".concat(window.wpr_object.imagePath,"alert.png")})),"maintenance mode is enabled"," ",n.a.createElement("button",{type:"button",class:"csv-link",onClick:function(){return e.disableMaintenanceMode()}},"Disable"))):"","import-update"===this.state.selectedTab?n.a.createElement(X,null):"manager"===this.state.selectedTab?n.a.createElement(ae,null):"export"===this.state.selectedTab?n.a.createElement(me,null):"addons"===this.state.selectedTab?n.a.createElement(we,null):"settings"===this.state.selectedTab?n.a.createElement(Ee,null):"support"===this.state.selectedTab?n.a.createElement(xe,null):"dashboard"===this.state.selectedTab?n.a.createElement(Ne,null):"")}}]),t}(s.Component);w()(ke,"contextType",C);var Fe={ImportUpdate:"Import / Update",Dashboard:"Dashboard",Manager:"Manager",Export:"Export",Settings:"Settings",Support:"Support",UploadfromDesktop:"Upload from Desktop",UploadfromFTPSFTP:"Upload from FTP / SFTP",UploadfromURL:"Upload from URL",ChoosFileintheServer:"Choose File in the Server","Drag&Dropyourfilesor":"Drag & Drop your files or",Browse:"Browse",NewItem:"New Item",ExistingItems:"Existing Items",ImportEachRecordAs:"Importa each record as",Continue:"Continue",Search:"Search",FromDate:"From Date",ToDate:"To Date",SEARCH:"SEARCH",SavedTemplate:"Saved Template",TEMPLATES:"TEMPLATES NAME",MATCHEDCOLUMNSCOUNT:"MATCHED COLUMNS COUNT",MODULE:"MODULE",CREATEDTIME:"CREATED TIME",ACTION:"ACTION",USETEMPLATE:"USE TEMPLATE",CREATENEWMAPPING:"CREATE NEW MAPPING",BACK:"BACK",ADVANCEDMODE:"ADVANCED MODE",DRAGDROPMODE:"DRAG & DROP MODE",WordpressFields:"Wordpress Fields",WPFIELDS:"WP Fields",CSVHEADER:"CSV Header",Action:"Action",Name:"Name",HINT:"HINT",Example:"Example",WordPressCoreFields:"WordPress Core Fields",ACFFreeFields:"ACF Free Fields",ACFFields:"ACF Fields",ACFGroupFields:"ACF Group Fields",ACFProFields:"ACF Pro Fields",ACFRepeaterFields:"ACF Repeater Fields",TypesCustomFields:"Types Custom Fields",PodsFields:"Pods Fields",CustomFieldSuite:"Custom Field Suite",AllInOneSeoFields:"All In One Seo Fields",YoastSeoFields:"Yoast Seo Fields",BillingAndShippingInformation:"Billing and Shipping Information",CustomFieldsWPMemberFields:"Custom Fields WP Member Fields",CustomFieldsMemberFields:"Custom Fields Member Fields",ProductMetaFields:"Product Meta Fields",OrderMetaFields:"Order Meta Fields",CouponMetaFields:"Coupon Meta Fields",RefundMetaFields:"Refund Meta Fields",WPECommerceCustomFields:"WP ECommerce Custom Fields",EventsManagerFields:"Events Manager Fields",NextGENGalleryFields:"NextGEN Gallery Fields",WPMLFields:"WPML Fields",CMB2CustomFields:"CMB2 Custom Fields",WordPressCustomFields:"WordPress Custom Fields",TermsandTaxonomies:"Terms and Taxonomies",IsSerialized:"Is Serialized",NoCustomFieldsFound:"No Custom Fields Found",MediaUploadFields:"Media Upload Fields",UploadMedia:"Upload Media",UploadedListofFiles:"Uploaded List of Files",UploadedMediaFileLists:"Uploaded Media File Lists",SavethismappingasTemplate:"Save this mapping as Template",Save:"Save",Doyouneedtoupdatethecurrentmapping:"Do you need to update the current mapping ?",Savethecurrentmappingasnewtemplate:"Save the current mapping as new template",Back:"Back",Size:"Size",MediaHandling:"Featured Image Media Handling",Downloadexternalimagestoyourmedia:"Download external images to your media",ImageHandling:"Image Handling",Usemediaimagesifalreadyavailable:"Use media images if already available",Doyouwanttooverwritetheexistingimages:"Do you want to overwrite the existing images",ImageSizes:"Image Sizes",Thumbnail:"Thumbnail",Medium:"Medium",MediumLarge:"Medium Large",Large:"Large",Custom:"Custom",Slug:"Slug",Width:"Width",Height:"Height",Addcustomsizes:"Add custom sizes",MediaSEOAdvancedOptions:"Media SEO & Advanced Options",SetimageTitle:"Set image Title",SetimageCaption:"Set image Caption",SetimageAltText:"Set image Alt Text",SetimageDescription:"Set image Description",Changeimagefilenameto:"Change image file name to",ImportconfigurationSection:"Import configuration Section",EnablesafeprestateRollback:"Enable safe prestate Rollback",Backupbeforeimport:"Backup before import",DoyouwanttoSWITCHONMaintenancemodewhileimport:"Do you want to SWITCH ON Maintenance mode while import",Doyouwanttohandletheduplicateonexistingrecords:"Do you want to handle the duplicate on existing records",Mentionthefieldswhichyouwanttohandleduplicates:"Mention the fields which you want to handle duplicates",DoyouwanttoUpdateanexistingrecords:"Do you want to Update an existing records",Updaterecordsbasedon:"Update records based on",DoyouwanttoSchedulethisImport:"Do you want to Schedule this Import",ScheduleDate:"Schedule Date",ScheduleFrequency:"Schedule Frequency",TimeZone:"Time Zone",ScheduleTime:"Schedule Time",Schedule:"Schedule",Import:"Import",Format:"Format",OneTime:"OneTime",Daily:"Daily",Weekly:"Weekly",Monthly:"Monthly",Hourly:"Hourly",Every30mins:"Every 30 mins",Every15mins:"Every 15 mins",Every10mins:"Every 10 mins",Every5mins:"Every 5 mins",FileName:"File Name",FileSize:"File Size",Process:"Process",Totalnoofrecords:"Total no of records",CurrentProcessingRecord:"Current Processing Record",RemainingRecord:"Remaining Record",Completed:"Completed",TimeElapsed:"Time Elapsed",approximate:"approximate",DownloadLog:"Download Log",NoRecord:"No Record",UploadedCSVFileLists:"Uploaded CSV File Lists",Hostname:"Host Name",HostPort:"Host Port",HostUsername:"Host Username",HostPassword:"HostPassword",HostPath:"HostPath",DefaultPort:"Default Port",FTPUsername:"FTP Username",FTPPassword:"FTP Password",ConnectionType:"Connection Type",ImportersActivity:"Importers Activity",ImportStatistics:"Import Statistics",FileManager:"File Manager",SmartSchedule:"Smart Schedule",ScheduledExport:"Scheduled Export",Templates:"Templates",LogManager:"Log Manager",NotSelectedAnyTab:"Not Selected Any Tab",EventInfo:"Event Info",EventDate:"Event Date",EventStatus:"Event Status",Actions:"Actions",Date:"Date",Purpose:"Purpose",Revision:"Revision",Select:"Select",Inserted:"Inserted",Updated:"Updated",Skipped:"Skipped",Noeventsfound:"No events found",ScheduleInfo:"Schedule Info",ScheduledDate:"Scheduled Date",ScheduledTime:"Scheduled Time",Youhavenotscheduledanyevent:"You haven’t scheduled any event",Frequency:"Frequency",Time:"Time",EditSchedule:"Edit Schedule",SaveChanges:"Save Changes",TemplateInfo:"Template Info",TemplateName:"Template Name",Module:"Module",CreatedTime:"Created Time",NoTemplateFound:"No Template Found",Download:"Download",NoLogRecordFound:"No Log Record Found",GeneralSettings:"General Settings",DatabaseOptimization:"Database Optimization",SecurityandPerformance:"Security and Performance",Documentation:"Documentation",MediaReport:"Media Report",DropTable:"Drop Table",Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored:"If enabled plugin deactivation will remove plugin data, this cannot be restored.",Scheduledlogmails:"Scheduled log mails",Enabletogetscheduledlogmails:"Enable to get scheduled log mails.",Sendpasswordtouser:"Send password to user",Enabletosendpasswordinformationthroughemail:"Enable to send password information through email.",WoocommerceCustomattribute:"Woocommerce Custom attribute",Enablestoregisterwoocommercecustomattribute:"Enables to register woocommerce custom attribute.",PleasemakesurethatyoutakenecessarybackupbeforeproceedingwithdatabaseoptimizationThedatalostcantbereverted:"Please make sure that you take necessary backup before proceeding with database optimization. The data lost cannot be reverted.",DeleteallorphanedPostPageMeta:"Delete all orphaned Post/Page Meta",Deleteallunassignedtags:"Delete all unassigned tags",DeleteallPostPagerevisions:"Delete all Post/Page revisions",DeleteallautodraftedPostPage:"Delete all auto drafted Post/Page",DeleteallPostPageintrash:"Delete all Post/Page in trash",DeleteallCommentsintrash:"Delete all Comments in trash",DeleteallUnapprovedComments:"Delete all Unapproved Comments",DeleteallPingbackComments:"Delete all Pingback Comments",DeleteallTrackbackComments:"Delete all Trackback Comments",DeleteallSpamComments:"Delete all Spam Comments",RunDBOptimizer:"Run DB Optimizer",DatabaseOptimizationLog:"Database Optimization Log",noofOrphanedPostPagemetahasbeenremoved:"no of Orphaned Post/Page meta has been removed.",noofUnassignedtagshasbeenremoved:"no of Unassigned tags has been removed.",noofPostPagerevisionhasbeenremoved:"no of Post/Page revisions has been removed.",noofAutodraftedPostPagehasbeenremoved:"no of Auto drafted Post/Page has been removed.",noofPostPageintrashhasbeenremoved:"no of Post/Page in trash has been removed.",noofSpamcommentshasbeenremoved:"no of Spam comments has been removed.",noofCommentsintrashhasbeenremoved:"no of Comments in trash has been removed.",noofUnapprovedcommentshasbeenremoved:"no of Unapproved comments has been removed.",noofPingbackcommentshasbeenremoved:"no of Pingback comments has been removed.",noofTrackbackcommentshasbeenremoved:"no of Trackback comments has been removed.",Allowauthorseditorstoimport:"Allow authors/editors to import",Thisenablesauthorseditorstoimport:"This enables authors/editors to import.",MinimumrequiredphpinivaluesIniconfiguredvalues:"Minimum required php.ini values (Ini configured values)",Variables:"Variables",SystemValues:"System Values",MinimumRequirements:"Minimum Requirements",RequiredtoenabledisableLoadersExtentionsandmodules:"Required to enable/disable Loaders, Extentions and modules:",DebugInformation:"Debug Information:",SmackcodersGuidelines:"Smackcoders Guidelines",DevelopmentNews:"Development News",WhatsNew:"Whats New?",YoutubeChannel:"Youtube Channel",OtherWordPressPlugins:"Other WordPress Plugins",Count:"Count",ImageType:"Image Type",Status:"Status",Loading:"Loading",LoveWPUltimateCSVImporterGivea5starreviewon:"Love WP Ultimate CSV Importer, Give a 5 star review on",ContactSupport:"Contact Support",Email:"Email",Supporttype:"Support type",BugReporting:"Bug Reporting",FeatureEnhancement:"Feature Enhancement",Message:"Message",Send:"Send",NewsletterSubscription:"Newsletter Subscription",Subscribe:"Subscribe",Note:"Note",SubscribetoSmackcodersMailinglistafewmessagesayear:"Subscribe to Smackcoders Mailing list (a few messages a year)",Pleasedraftamailto:"Please draft a mail to",Ifyoudoesnotgetanyacknowledgementwithinanhour:"If you does not get any acknowledgement within an hour!",Selectyourmoduletoexportthedata:"Select your Module to Export Data",Toexportdatabasedonthefilters:"To export data based on the filters",ExportFileName:"Export File Name",AdvancedSettings:"Advanced Settings",ExportType:"Export Type",SplittheRecord:"Split the Record",AdvancedFilters:"Advanced Filters",Exportdatawithautodelimiters:"Export data with auto delimiters",Delimiters:"Delimiters",OtherDelimiters:"Other Delimiters",Exportdataforthespecificperiod:"Export data for the specific period",StartFrom:"Start From",EndTo:"End To",Exportdatawiththespecificstatus:"Export data with the specific status",All:"All",Publish:"Publish",Sticky:"Sticky",Private:"Private",Protected:"Protected",Draft:"Draft",Pending:"Pending",Exportdatabyspecificauthors:"Export data by specific authors",Authors:"Authors",ExportdatabasedonspecificInclusions:"Export data based on specific Inclusions",DoyouwanttoSchedulethisExport:"Do you want to Schedule this Export",SelectTimeZone:"Select TimeZone",ScheduleExport:"Schedule Export",DataExported:"Data Exported"},Te=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(ke,null)}}]),t}(s.Component),Me=function(e){function t(e){return r()(this,t),u()(this,h()(t).call(this,e))}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(Te,null)}}]),t}(s.Component),De=n.a.createContext(),_e=function(e){function t(){var e,a,s;r()(this,t);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return s=u()(this,(e=h()(t)).call.apply(e,[this].concat(i))),w()(S()(s),"state",(a={fileUrl:"",hostName:"",hostPort:"",hostUserName:"",hostPassword:"",hostPath:"",connectionType:"",selectedTab:"",mediaHandleCheckboxState:!1,activateMappingSection:!1,activateDragAndDropSection:!1,activateXmlFileMappingSection:!1,wordPressCoreFields:[],showWordPressDefaultCoreFieldsState:!1,acfGroupFields:[],showAcfGroupFieldsState:!1,acfProFields:[],showAcfProFieldsState:!1,acfRepeaterFields:[],showAcfRepeaterFieldsState:!1,termsAndTaxonomiesFields:[],showTermsAndTaxonomiesState:!1,typesFields:[],showTypesFieldsState:!1,podsFields:[],showPodsFieldsState:!1,customFieldSuiteFields:[],showCustomFieldSuiteState:!1,allInOneSeoFields:[],showAllInOneSeoFieldsState:!1,billingAndShippingInformation:[],showBillingAndShippingInformationState:!1,wordPressCustomFields:[],wordPressUserCustomFields:[],wordPressUserCustomFieldsLabel:[],showWordPressCustomFieldsState:!1,customFieldsWpMembersFields:[],showCustomFieldsWpMembersState:!1,customFieldsMembersFields:[],showCustomFieldsMembersState:!1,productMetaFields:[],showProductMetaFieldsState:!1,orderMetaFields:[],showOrderMetaFieldsState:!1,wpEcomCustomFields:[],showWpEcomCustomFieldsState:!1,eventsManagerFields:[],showEventsManagerFieldsState:!1,acfFreeFields:[],showAcfFreeFieldsState:!1,cmb2CustomFields:[],showCmb2CustomFieldsState:!1,wpmlCustomFields:[],showWPMLCustomFields:!1},w()(a,"termsAndTaxonomiesFields",[]),w()(a,"csvHeaderFields",[]),w()(a,"fileName",""),w()(a,"templateName",""),w()(a,"saveTemplateNames",""),w()(a,"editTemplateName",""),w()(a,"selectedTemplateNameInManagerSection",""),w()(a,"selectedModuleNameInManagerSection",""),w()(a,"editedTemplateNameInManagerSection",""),w()(a,"hashKey",""),w()(a,"selectedType",""),w()(a,"csvFileNames",[]),w()(a,"csvFileUrls",[]),w()(a,"csvFileServer",[]),w()(a,"selectedFileUrlsState",!1),w()(a,"selectedFileUrl",""),w()(a,"selectedFileServer",""),w()(a,"saveSelectedMappedFields",[]),w()(a,"activateMediaHandlingSection",!1),w()(a,"activateDashboard",!0),w()(a,"fromMediaHandlingState",!1),w()(a,"activateExportDataFilter",!1),w()(a,"activateExportDownloadOptionSection",!1),w()(a,"activateImportConfigurationSection",!1),w()(a,"activateSaveMappingTemplateSection",!1),w()(a,"activateProgressDisplaySection",!1),w()(a,"activateUseExistingMappingState",!1),w()(a,"activateCreateNewMappingState",!1),w()(a,"activateTemplateSectionState",!1),w()(a,"fromSaveMappingSection",!1),w()(a,"fromTemplateMappingSection",!1),w()(a,"fromDragAndDropSection",!1),w()(a,"activateLargeState",!1),w()(a,"mode","Insert"),w()(a,"exportModule",""),w()(a,"optionalType",""),w()(a,"templateNameArray",[]),w()(a,"modulesNameArray",[]),w()(a,"createdTimeArray",[]),w()(a,"matchedCountsArray",[]),w()(a,"activateUseAlreadyMediaImageState",!1),w()(a,"activateOverwriteExistingImageState",!1),w()(a,"activateThumbnailState",!1),w()(a,"activateMediumState",!1),w()(a,"activateMediumLargeState",!1),w()(a,"activateCustomState",!1),w()(a,"mediaImageTitle",""),w()(a,"mediaImageCaption",""),w()(a,"mediaImageAltText",""),w()(a,"mediaImageDescription",""),w()(a,"mediaImageFileName",""),w()(a,"updateFields",[]),w()(a,"duplicateHandleField",""),w()(a,"countryLists",[]),w()(a,"timeZones",[]),w()(a,"selectedCountryTime",""),w()(a,"receivedExportedFilePath",""),w()(a,"importLogDataLink",""),w()(a,"rollBackMode",!1),w()(a,"maintenanceMode",!1),w()(a,"loaderText",n.a.createElement("div",{className:"btn ajax-loader loading"},"Please Wait")),w()(a,"totalCustomFields",[]),w()(a,"totalRows",0),w()(a,"translateLanguage",{}),w()(a,"uploadedFileType",""),w()(a,"receivedExportedFileUrl",""),w()(a,"setFileUrl",function(e){s.setState({fileUrl:e})}),w()(a,"setHostName",function(e){s.setState({hostName:e})}),w()(a,"setHostPort",function(e){s.setState({hostPort:e})}),w()(a,"setHostUserName",function(e){s.setState({hostUserName:e})}),w()(a,"setHostPassword",function(e){s.setState({hostPassword:e})}),w()(a,"setHostPath",function(e){s.setState({hostPath:e})}),w()(a,"selectedConnectionType",function(e){s.setState({connectionType:e})}),w()(a,"setSelectedTab",function(e){s.setState({selectedTab:e})}),w()(a,"setSelectedTabCookies",function(e){var t=new Ce.a;t.set("selectedTab",e,{path:"/"}),console.log("cookeis",t.get("selectedTab"))}),w()(a,"changeActivateMappingSectionState",function(e){console.log("activate mapping"),s.setState({activateMappingSection:e})}),w()(a,"changeMediaHandleCheckboxState",function(e){console.log("changeMediaHandleCheckboxState"),s.setState({mediaHandleCheckboxState:e})}),w()(a,"changeActivateDragAndDropSectionState",function(e){s.setState({activateDragAndDropSection:e})}),w()(a,"changeActivateXmlFileMappingSectionState",function(e){s.setState({activateXmlFileMappingSection:e})}),w()(a,"setWordPressDefaultCoreFields",function(e){s.setState({wordPressCoreFields:e})}),w()(a,"showWordPressDefaultCoreFields",function(e){s.setState({showWordPressDefaultCoreFieldsState:e})}),w()(a,"setAcfFreeFields",function(e){s.setState({acfFreeFields:e})}),w()(a,"showAcfFreeFields",function(e){s.setState({showAcfFreeFieldsState:e})}),w()(a,"setAcfGroupFields",function(e){s.setState({acfGroupFields:e})}),w()(a,"showAcfGroupFields",function(e){s.setState({showAcfGroupFieldsState:e})}),w()(a,"setAcfProFields",function(e){s.setState({acfProFields:e})}),w()(a,"showAcfProFields",function(e){s.setState({showAcfProFieldsState:e})}),w()(a,"setAcfRepeaterFields",function(e){s.setState({acfRepeaterFields:e})}),w()(a,"showAcfRepeaterFields",function(e){s.setState({showAcfRepeaterFieldsState:e})}),w()(a,"setTermsAndTaxonomies",function(e){s.setState({termsAndTaxonomiesFields:e})}),w()(a,"showTermsAndTaxonomies",function(e){s.setState({showTermsAndTaxonomiesState:e})}),w()(a,"setTypesFields",function(e){s.setState({typesFields:e})}),w()(a,"showTypesFields",function(e){s.setState({showTypesFieldsState:e})}),w()(a,"setPodsFields",function(e){s.setState({podsFields:e})}),w()(a,"showPodsFields",function(e){s.setState({showPodsFieldsState:e})}),w()(a,"setCustomFieldSuite",function(e){s.setState({customFieldSuiteFields:e})}),w()(a,"showCustomFieldSuite",function(e){s.setState({showCustomFieldSuiteState:e})}),w()(a,"setAllInOneSeoFields",function(e){s.setState({allInOneSeoFields:e})}),w()(a,"showAllInOneSeoFields",function(e){s.setState({showAllInOneSeoFieldsState:e})}),w()(a,"setYoastSeoFields",function(e){s.setState({yoastSeoFields:e})}),w()(a,"showYoastSeoFields",function(e){s.setState({showYoastSeoFieldsState:e})}),w()(a,"setBillingAndShippingInformation",function(e){s.setState({billingAndShippingInformation:e})}),w()(a,"showBillingAndShippingInformation",function(e){s.setState({showBillingAndShippingInformationState:e})}),w()(a,"setWordPressCustomFields",function(e){s.setState({wordPressCustomFields:e})}),w()(a,"setWordPressUserCustomFields",function(e){s.setState({wordPressUserCustomFields:e})}),w()(a,"setWordPressUserCustomFieldsLabel",function(e){s.setState({wordPressUserCustomFieldsLabel:receivedWordPressUserCustomFieldsLabel})}),w()(a,"showWordPressCustomFields",function(e){s.setState({showWordPressCustomFieldsState:e})}),w()(a,"setCustomFieldsWpMembers",function(e){s.setState({customFieldsWpMembersFields:e})}),w()(a,"showCustomFieldsWpMembers",function(e){s.setState({showCustomFieldsWpMembersState:e})}),w()(a,"setCustomFieldsMembers",function(e){s.setState({customFieldsMembersFields:e})}),w()(a,"showCustomFieldsMembers",function(e){s.setState({showCustomFieldsMembersState:e})}),w()(a,"setProductMetaFields",function(e){s.setState({productMetaFields:e})}),w()(a,"showProductMetaFields",function(e){s.setState({showProductMetaFieldsState:e})}),w()(a,"setOrderMetaFields",function(e){s.setState({orderMetaFields:e})}),w()(a,"showOrderMetaFields",function(e){s.setState({showOrderMetaFieldsState:e})}),w()(a,"setCouponMetaFields",function(e){s.setState({couponMetaFields:e})}),w()(a,"showCouponMetaFields",function(e){s.setState({showCouponMetaFieldsState:e})}),w()(a,"setRefundMetaFields",function(e){s.setState({refundMetaFields:e})}),w()(a,"showRefundMetaFields",function(e){s.setState({showRefundMetaFieldsState:e})}),w()(a,"setWpEcomCustomFields",function(e){s.setState({wpEcomCustomFields:e})}),w()(a,"showWpEcomCustomFields",function(e){s.setState({showWpEcomCustomFieldsState:e})}),w()(a,"setEventsManagerFields",function(e){s.setState({eventsManagerFields:e})}),w()(a,"showEventsManagerFields",function(e){s.setState({showEventsManagerFieldsState:e})}),w()(a,"setNextgenGalleryFields",function(e){s.setState({nextgenGalleryFields:e})}),w()(a,"showNextgenGalleryFields",function(e){s.setState({showNextgenGalleryFieldsState:e})}),w()(a,"setCmb2CustomFields",function(e){s.setState({cmb2CustomFields:e})}),w()(a,"showCmb2CustomFields",function(e){s.setState({showCmb2CustomFieldsState:e})}),w()(a,"setWPMLCustomFields",function(e){s.setState({wpmlCustomFields:e})}),w()(a,"showWPMLCustomFields",function(e){s.setState({showWPMLCustomFieldsState:e})}),w()(a,"setCsvHeaderFields",function(e){s.setState({csvHeaderFields:e})}),w()(a,"getFileName",function(e){s.setState({fileName:e})}),w()(a,"getTemplateName",function(e){s.setState({templateName:e})}),w()(a,"saveTemplateName",function(e){s.setState({saveTemplateNames:e})}),w()(a,"editedTemplateName",function(e){s.setState({editTemplateName:e})}),w()(a,"selectedTemplateInManager",function(e){s.setState({selectedTemplateNameInManagerSection:e})}),w()(a,"selectedEditedTemplateInManager",function(e){s.setState({editedTemplateNameInManagerSection:e})}),w()(a,"selectedModuleInManager",function(e){s.setState({selectedModuleNameInManagerSection:e})}),w()(a,"setHashKey",function(e){s.setState({hashKey:e})}),w()(a,"setSelectedType",function(e){s.setState({selectedType:e})}),w()(a,"setMode",function(e){s.setState({mode:e})}),w()(a,"getCsvFileNames",function(e){s.setState({csvFileNames:e})}),w()(a,"getCsvFilesUrl",function(e){s.setState({csvFileUrls:e})}),w()(a,"getCsvFilesServer",function(e){s.setState({csvFileServer:e})}),w()(a,"setSelectedFileUrlsState",function(e){s.setState({selectedFileUrlsState:e})}),w()(a,"setSelectedFileUrl",function(e){s.setState({selectedFileUrl:e})}),w()(a,"setSelectedFileServer",function(e){s.setState({selectedFileServer:e})}),w()(a,"saveMappedFields",function(e){s.setState({saveSelectedMappedFields:e.slice()})}),w()(a,"changeActivateMediaHandlingSection",function(e){s.setState({activateMediaHandlingSection:e})}),w()(a,"setActivateDashboard",function(e){s.setState({activateDashboard:e})}),w()(a,"backFromMediaHandlingState",function(e){s.setState({fromMediaHandlingState:e})}),w()(a,"setExportDataFilterSection",function(e){s.setState({activateExportDataFilter:e})}),w()(a,"changeActivateExportDownloadOption",function(e){s.setState({activateExportDownloadOptionSection:e})}),w()(a,"changeActivateImportConfiguration",function(e){s.setState({activateImportConfigurationSection:e})}),w()(a,"changeActivateProgressDisplay",function(e){s.setState({activateProgressDisplaySection:e})}),w()(a,"changeActivateSaveMappingTemplateSectionState",function(e){s.setState({activateSaveMappingTemplateSection:e})}),w()(a,"changeUseExistingMappingState",function(e){s.setState({activateUseExistingMappingState:e})}),w()(a,"changeCreateNewMappingState",function(e){s.setState({activateCreateNewMappingState:e})}),w()(a,"changeActivateTemplateSectionState",function(e){s.setState({activateTemplateSectionState:e})}),w()(a,"fromSaveMappingSectionState",function(e){s.setState({fromSaveMappingSection:e})}),w()(a,"fromTemplateMappingSectionState",function(e){s.setState({fromTemplateMappingSection:e})}),w()(a,"fromDragAndDropMappingSection",function(e){s.setState({fromDragAndDropSection:e})}),w()(a,"setMode",function(e){s.setState({mode:e})}),w()(a,"setExportModule",function(e){s.setState({exportModule:e})}),w()(a,"setOptionalType",function(e){s.setState({optionalType:e})}),w()(a,"setTemplateNameArray",function(e){s.setState({templateNameArray:e})}),w()(a,"setModulesArray",function(e){s.setState({modulesNameArray:e})}),w()(a,"setCreatedTimeArray",function(e){s.setState({createdTimeArray:e})}),w()(a,"setMatchedCounts",function(e){s.setState({matchedCountsArray:e})}),w()(a,"activateUseAlreadyMediaImage",function(e){s.setState({activateUseAlreadyMediaImageState:e})}),w()(a,"activateOverwriteExistingImage",function(e){s.setState({activateOverwriteExistingImageState:e})}),w()(a,"activateThumbnail",function(e){s.setState({activateThumbnailState:e})}),w()(a,"activateMedium",function(e){s.setState({activateMediumState:e})}),w()(a,"activateMediumLarge",function(e){s.setState({activateMediumLargeState:e})}),w()(a,"activateLarge",function(e){s.setState({activateLargeState:e})}),w()(a,"activateCustom",function(e){s.setState({activateCustomState:e})}),w()(a,"setImageTitle",function(e){s.setState({mediaImageTitle:e})}),w()(a,"setImageCaption",function(e){s.setState({mediaImageCaption:e})}),w()(a,"setImageAltText",function(e){s.setState({mediaImageAltText:e})}),w()(a,"setImageDescription",function(e){s.setState({mediaImageDescription:e})}),w()(a,"changeImageFileName",function(e){s.setState({mediaImageFileName:e})}),w()(a,"setUpdateFields",function(e){s.setState({updateFields:e})}),w()(a,"fieldHandleDuplicate",function(e){s.setState({duplicateHandleField:e})}),w()(a,"setCountryList",function(e){s.setState({countryLists:e})}),w()(a,"setTimeZones",function(e){s.setState({timeZones:e})}),w()(a,"selectedCountryTimeZone",function(e){s.setState({selectedCountryTime:e})}),w()(a,"exportedFileUrl",function(e){s.setState({receivedExportedFileUrl:e})}),w()(a,"importLogData",function(e){s.setState({importLogDataLink:e})}),w()(a,"setRollBackMode",function(e){s.setState({rollBackMode:e})}),w()(a,"setMaintenanceMode",function(e){s.setState({maintenanceMode:e})}),w()(a,"setTotalCustomFields",function(e){s.setState({totalCustomFields:e})}),w()(a,"setTotalRows",function(e){s.setState({totalRows:e})}),w()(a,"languageTranslation",function(e){s.setState({translateLanguage:e})}),w()(a,"uploadFileType",function(e){s.setState({uploadedFileType:e})}),a)),s}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(De.Provider,{value:this.state},this.props.children)}}]),t}(s.Component),Pe=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(S()(a),"state",{activateExporter:!1,showComponent:"upload-dashboard",showExport:"export-module",csvInfo:{replaceExistingItem:!1},exportInfo:{moduleName:"",optionalType:""},showImportLog:!1,isXML:!1,language:{},selectedFileUrl:"",allPluginFields:[],csvFields:[],isTemplate:!1,existingTemplateName:"",saveTemplateData:[],importScheduleData:{},mappingResult:{},maintenanceMode:!1,rollBackMode:!1,mappingType:"",importLogDataLink:"",loaderText:n.a.createElement("div",{className:"btn ajax-loader loading"},"Please Wait"),setActivateExporter:function(e){a.setState({activateExporter:e})},setIsTemplate:function(e){a.setState({isTemplate:e})},setExistingTemplateName:function(e){a.setState({existingTemplateName:e})},setMappingResult:function(e){a.setState({mappingResult:e})},setMaintenanceMode:function(e){a.setState({maintenanceMode:e})},setRollBackMode:function(e){a.setState({rollBackMode:e})},setMappingType:function(e){a.setState({mappingType:e})},setImportLogDataLink:function(e){a.setState({importLogDataLink:e})},setImportScheduleData:function(e){a.setState({importScheduleData:e})},setSaveTemplateData:function(e){a.setState({saveTemplateData:e})},setCSVInfo:function(e){a.setState({csvInfo:e})},setExportInfo:function(e){a.setState({exportInfo:e})},setShowImportLog:function(e){a.setState({showImportLog:e})},setIsXML:function(e){a.setState({isXML:e})},setShowComponent:function(e){a.setState({showComponent:e})},setShowExport:function(e){a.setState({showExport:e})},setLanguage:function(e){a.setState({language:e})},setSelectedTabOnCookies:function(e){(new Ce.a).set("selectedTab",e,{path:"/"})},setSelectedFileUrl:function(e){a.setState({selectedFileUrl:e})},setCsvFields:function(e){a.setState({csvFields:e})},setAllPluginFields:function(e){a.setState({allPluginFields:e})}}),a}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(C.Provider,{value:this.state},this.props.children)}}]),t}(s.Component);document.addEventListener("DOMContentLoaded",function(){i.a.render(n.a.createElement("div",{className:"wp-ultimate-csv-importer"},n.a.createElement(M.ToastContainer,{position:"top-right",autoClose:4e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnVisibilityChange:!0,draggable:!0,pauseOnHover:!0}),n.a.createElement(Pe,null,n.a.createElement(_e,null,n.a.createElement(Me,null))),n.a.createElement("p",{className:"text-center mt40 mb20"},"Powered by"," ",n.a.createElement("a",{className:"csv-link",href:"https://www.smackcoders.com?utm_source=wordpress&utm_medium=plugin&utm_campaign=pro_csv_importer",target:"blank"},"Smackcoders")," ","| Plugin Version 6.0.1")),document.getElementById("wp-csv-importer-admin"))})}});
|
1 |
+
!function(e){function t(t){for(var s,i,l=t[0],r=t[1],c=t[2],d=0,u=[];d<l.length;d++)i=l[d],Object.prototype.hasOwnProperty.call(n,i)&&n[i]&&u.push(n[i][0]),n[i]=0;for(s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);for(m&&m(t);u.length;)u.shift()();return o.push.apply(o,c||[]),a()}function a(){for(var e,t=0;t<o.length;t++){for(var a=o[t],s=!0,l=1;l<a.length;l++){var r=a[l];0!==n[r]&&(s=!1)}s&&(o.splice(t--,1),e=i(i.s=a[0]))}return e}var s={},n={0:0},o=[];function i(t){if(s[t])return s[t].exports;var a=s[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=s,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(a,s,function(t){return e[t]}.bind(null,s));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="";var l=window.webpackJsonp=window.webpackJsonp||[],r=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var m=r;o.push([426,1]),a()}({332:function(e,t,a){var s={"./af":115,"./af.js":115,"./ar":116,"./ar-dz":117,"./ar-dz.js":117,"./ar-kw":118,"./ar-kw.js":118,"./ar-ly":119,"./ar-ly.js":119,"./ar-ma":120,"./ar-ma.js":120,"./ar-sa":121,"./ar-sa.js":121,"./ar-tn":122,"./ar-tn.js":122,"./ar.js":116,"./az":123,"./az.js":123,"./be":124,"./be.js":124,"./bg":125,"./bg.js":125,"./bm":126,"./bm.js":126,"./bn":127,"./bn.js":127,"./bo":128,"./bo.js":128,"./br":129,"./br.js":129,"./bs":130,"./bs.js":130,"./ca":131,"./ca.js":131,"./cs":132,"./cs.js":132,"./cv":133,"./cv.js":133,"./cy":134,"./cy.js":134,"./da":135,"./da.js":135,"./de":136,"./de-at":137,"./de-at.js":137,"./de-ch":138,"./de-ch.js":138,"./de.js":136,"./dv":139,"./dv.js":139,"./el":140,"./el.js":140,"./en-SG":141,"./en-SG.js":141,"./en-au":142,"./en-au.js":142,"./en-ca":143,"./en-ca.js":143,"./en-gb":144,"./en-gb.js":144,"./en-ie":145,"./en-ie.js":145,"./en-il":146,"./en-il.js":146,"./en-nz":147,"./en-nz.js":147,"./eo":148,"./eo.js":148,"./es":149,"./es-do":150,"./es-do.js":150,"./es-us":151,"./es-us.js":151,"./es.js":149,"./et":152,"./et.js":152,"./eu":153,"./eu.js":153,"./fa":154,"./fa.js":154,"./fi":155,"./fi.js":155,"./fo":156,"./fo.js":156,"./fr":157,"./fr-ca":158,"./fr-ca.js":158,"./fr-ch":159,"./fr-ch.js":159,"./fr.js":157,"./fy":160,"./fy.js":160,"./ga":161,"./ga.js":161,"./gd":162,"./gd.js":162,"./gl":163,"./gl.js":163,"./gom-latn":164,"./gom-latn.js":164,"./gu":165,"./gu.js":165,"./he":166,"./he.js":166,"./hi":167,"./hi.js":167,"./hr":168,"./hr.js":168,"./hu":169,"./hu.js":169,"./hy-am":170,"./hy-am.js":170,"./id":171,"./id.js":171,"./is":172,"./is.js":172,"./it":173,"./it-ch":174,"./it-ch.js":174,"./it.js":173,"./ja":175,"./ja.js":175,"./jv":176,"./jv.js":176,"./ka":177,"./ka.js":177,"./kk":178,"./kk.js":178,"./km":179,"./km.js":179,"./kn":180,"./kn.js":180,"./ko":181,"./ko.js":181,"./ku":182,"./ku.js":182,"./ky":183,"./ky.js":183,"./lb":184,"./lb.js":184,"./lo":185,"./lo.js":185,"./lt":186,"./lt.js":186,"./lv":187,"./lv.js":187,"./me":188,"./me.js":188,"./mi":189,"./mi.js":189,"./mk":190,"./mk.js":190,"./ml":191,"./ml.js":191,"./mn":192,"./mn.js":192,"./mr":193,"./mr.js":193,"./ms":194,"./ms-my":195,"./ms-my.js":195,"./ms.js":194,"./mt":196,"./mt.js":196,"./my":197,"./my.js":197,"./nb":198,"./nb.js":198,"./ne":199,"./ne.js":199,"./nl":200,"./nl-be":201,"./nl-be.js":201,"./nl.js":200,"./nn":202,"./nn.js":202,"./pa-in":203,"./pa-in.js":203,"./pl":204,"./pl.js":204,"./pt":205,"./pt-br":206,"./pt-br.js":206,"./pt.js":205,"./ro":207,"./ro.js":207,"./ru":208,"./ru.js":208,"./sd":209,"./sd.js":209,"./se":210,"./se.js":210,"./si":211,"./si.js":211,"./sk":212,"./sk.js":212,"./sl":213,"./sl.js":213,"./sq":214,"./sq.js":214,"./sr":215,"./sr-cyrl":216,"./sr-cyrl.js":216,"./sr.js":215,"./ss":217,"./ss.js":217,"./sv":218,"./sv.js":218,"./sw":219,"./sw.js":219,"./ta":220,"./ta.js":220,"./te":221,"./te.js":221,"./tet":222,"./tet.js":222,"./tg":223,"./tg.js":223,"./th":224,"./th.js":224,"./tl-ph":225,"./tl-ph.js":225,"./tlh":226,"./tlh.js":226,"./tr":227,"./tr.js":227,"./tzl":228,"./tzl.js":228,"./tzm":229,"./tzm-latn":230,"./tzm-latn.js":230,"./tzm.js":229,"./ug-cn":231,"./ug-cn.js":231,"./uk":232,"./uk.js":232,"./ur":233,"./ur.js":233,"./uz":234,"./uz-latn":235,"./uz-latn.js":235,"./uz.js":234,"./vi":236,"./vi.js":236,"./x-pseudo":237,"./x-pseudo.js":237,"./yo":238,"./yo.js":238,"./zh-cn":239,"./zh-cn.js":239,"./zh-hk":240,"./zh-hk.js":240,"./zh-tw":241,"./zh-tw.js":241};function n(e){var t=o(e);return a(t)}function o(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}n.keys=function(){return Object.keys(s)},n.resolve=o,e.exports=n,n.id=332},426:function(e,t,a){"use strict";a.r(t);var s=a(0),n=a.n(s),o=a(35),i=a.n(o),l=a(7),r=a.n(l),c=a(8),m=a.n(c),d=a(9),u=a.n(d),p=a(10),h=a.n(p),g=a(11),f=a.n(g),v=a(4),E=a.n(v),b=a(12),x=a.n(b),y=a(6),S=a.n(y),N=a(1),w=a.n(N),C=n.a.createContext(),k=a(91),F=a(13),T=a.n(F),M=a(14);function D(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?D(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):D(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var P=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{loading:!1,zipCsvFileName:[],zipCsvUrls:[],zipSelectedFileUrl:""}),a}var a;return f()(t,e),m()(t,[{key:"onFilePondProcess",value:function(e,a,s,n,o,i,l){var r=new FormData;r.append("csvFile",a,a.name),r.append("action","get_desktop");var c=new XMLHttpRequest;return c.open("POST",ajaxurl),c.upload.onprogress=function(e){i(e.lengthComputable,e.loaded,e.total)},c.onload=function(){if(c.status>=200&&c.status<300){n(JSON.parse(c.responseText));var e=JSON.parse(c.responseText);t.filePondResponse=e,t.filePondResponse.success?t.showRecord=!0:(t.showRecord=!1,M.toast.error(t.filePondResponse.message))}else o("oh no")},c.send(r),{abort:function(){c.abort(),l()}}}},{key:"onProcessFile",value:function(){if(console.log("checkDesk",t.filePondResponse),"csv"===t.filePondResponse.file_type||"txt"===t.filePondResponse.file_type)return this.context.setCSVInfo(_({},this.context.csvInfo,{hashKey:t.filePondResponse.hashkey,templateName:t.filePondResponse.filename.slice(0,-4),selectedtype:t.filePondResponse.selectedtype,fileName:t.filePondResponse.filename,connectionType:"desktop",postTypes:t.filePondResponse.posttype,fileSize:t.filePondResponse.file_size,fileType:"csv"})),void this.context.setShowComponent("csv-info");if("zip"===t.filePondResponse.file_type){for(var e=0;e<t.filePondResponse.info.length;e++)this.state.zipCsvFileName.push(t.filePondResponse.info[e].name),this.state.zipCsvUrls.push(t.filePondResponse.info[e].path);return this.context.setCSVInfo(_({},this.context.csvInfo,{connectionType:"desktop"})),void this.setState({zipCsvFileName:this.state.zipCsvFileName,zipCsvUrls:this.state.zipCsvUrls},function(){document.getElementById("desk-csv-open").click()})}}},{key:"onRemoveFile",value:function(){}},{key:"sendFileUrl",value:(a=x()(E.a.mark(function e(){var a,s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","get_csv_url"),a.set("url",this.context.selectedFileUrl),this.setState({loading:!0}),e.prev=4,e.next=7,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:if(s=e.sent,console.log("Filetype",s),!s||!s.data){e.next=15;break}if(200!=s.status||!s.data.success){e.next=15;break}return this.context.setCSVInfo(_({},this.context.csvInfo,(n={hashKey:s.data.hashkey,templateName:t.filePondResponse.filename.slice(0,-4),selectedtype:s.data.selectedtype},w()(n,"templateName","From-url"),w()(n,"postTypes",s.data.posttype),w()(n,"fileName",s.data.filename),w()(n,"fileType",s.data.file_type),w()(n,"fileSize",s.data.file_size),n))),document.getElementById("desk-csv-close").click(),this.context.setShowComponent("csv-info"),e.abrupt("return");case 15:console.log("data not found"),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(4),console.log(e.t0),console.log("request failed");case 22:case"end":return e.stop()}},e,this,[[4,18]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{class:"col-md-9 ".concat(t.showRecord&&this.state.showImportRecord?"min":"")},n.a.createElement("div",{className:"tab-content",id:"v-pills-tabContent"},n.a.createElement("div",{className:"tab-pane fade show active",id:"v-pills-home",role:"tabpanel","aria-labelledby":"v-pills-home-tab"},n.a.createElement(k.FilePond,{acceptedFileTypes:["text/csv/xml"].zip,allowMultiple:!1,maxFiles:1,server:{process:this.onFilePondProcess.bind(this)},onprocessfile:this.onProcessFile.bind(this),onremovefile:this.onRemoveFile.bind(this)}))),n.a.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"desk-csv-open","data-toggle":"modal","data-target":"#upload_csv"},this.context.language.UploadedCSVFileLists),n.a.createElement("div",{id:"upload_csv",className:"modal fade payment_modal",role:"dialog"},n.a.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},n.a.createElement("div",{className:"modal-content"},n.a.createElement("div",{className:"modal-header"},n.a.createElement("button",{type:"button",id:"desk-csv-close",className:"close","data-dismiss":"modal"},"×")),n.a.createElement("div",{className:"modal-body my-2"},n.a.createElement("ul",null,this.state.zipCsvFileName.map(function(t,a){return n.a.createElement("li",null,n.a.createElement("div",{className:"form-check form-check-inline"},n.a.createElement("label",{class:"form-check-label"},n.a.createElement("input",{className:"form-check-input",onClick:function(t){t.target.checked&&e.context.setSelectedFileUrl(e.state.zipCsvUrls[a])},type:"radio",name:"post-item",id:""})," ",t)))})),n.a.createElement("div",{className:"float-right"},n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",onClick:this.sendFileUrl.bind(this),value:"Choose CSV File"})))))))}}]),t}(s.Component);w()(P,"contextType",C);var I=function(e){var t=[];if(e)for(var a=0;a<e.length;a++){var s=e[a];if(console.log(s),1==Object.keys(s).length)t.push(s);else for(var n in s){var o={};s[n],o[n]=s[n],t.push(o)}}return console.log(t),t},A={core_fields:{languageName:"WordPressCoreFields",name:"WordPress Core Fields",resultKey:"CORE",Users_MandatoryFields:["user_login","user_email"]},terms_and_taxonomies:{languageName:"TermsandTaxonomies",name:"Terms and Taxonomies",resultKey:"TERMS"},wordpress_custom_fields:{languageName:"WordPressCustomFields",name:"WordPress Custom Fields",resultKey:"CORECUSTFIELDS"},acf_pro_fields:{languageName:"ACFProFields",name:"ACF PRO Fields",resultKey:"ACF"},acf_fields:{languageName:"ACFProFields",name:"ACF PRO Fields",resultKey:"ACF"},acf_group_fields:{languageName:"ACFGroupFields",name:"ACF Group Fields",resultKey:"GF"},acf_repeater_fields:{languageName:"ACFRepeaterFields",name:"ACF Repeater Fields",resultKey:"RF"},types_fields:{languageName:"TypesCustomFields",name:"Types Custom Fields",resultKey:"TYPES"},pods_fields:{languageName:"PodsFields",name:"Pods Fields",resultKey:"PODS"},custom_fields_suite_fields:{languageName:"CustomFieldSuite",name:"Custom Field Suite",resultKey:"CFS"},all_in_one_seo_fields:{languageName:"AllInOneSeoFields",name:"All In One Seo Fields",resultKey:"AIOSEO"},yoast_seo_fields:{languageName:"YoastSeoFields",name:"Yoast Seo Fields",resultKey:"YOASTSEO"},billing_and_shipping_information:{languageName:"BillingAndShippingInformation",name:"Billing And Shipping Information",resultKey:"BSI"},custom_fields_wp_members:{languageName:"CustomFieldsWPMemberFields",name:"Custom Fields WP Member Fields",resultKey:"WPMEMBERS"},product_meta_fields:{languageName:"ProductMetaFields",name:"WooCommerce Product Meta Fields",resultKey:"ECOMMETA"},order_meta_fields:{languageName:"OrderMetaFields",name:"WooCommerce Order Meta Fields",resultKey:"ORDERMETA"},coupon_meta_fields:{languageName:"CouponMetaFields",name:"WooCommerce Coupon Meta Fields",resultKey:"COUPONMETA"},refund_meta_fields:{languageName:"RefundMetaFields",name:"Refund Meta Fields",resultKey:"REFUNDMETA"},wp_ecom_custom_fields:{languageName:"WPECommerceCustomFields",name:"WP ECommerce Custom Fields",resultKey:"WPECOMMETA"},events_manager_fields:{languageName:"EventsManagerFields",name:"Events Manager Fields",resultKey:"EVENTS"},nextgen_gallery_fields:{languageName:"NextGENGalleryFields",name:"Next GEN Gallery Fields",resultKey:"NEXTGEN"},wpml_fields:{languageName:"WPMLFields",name:"WPML Fields",resultKey:"WPML"},cmb2_fields:{languageName:"CMB2CustomFields",name:"CMB2 Custom Fields",resultKey:"CMB2"}},O=function(e){return A[e]},R=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{loading:!1,checkSimilarity:!0,customFields:[],mediaZipFileNames:[],mediaUploadData:{zipFileName:"",data:[]}}),w()(S()(a),"formulaIconOnClick",function(e,t){if(document.getElementById("".concat(e,"-").concat(t,"-csv-icon-sum")).classList.contains("active")){var a=document.getElementById("".concat(e,"-").concat(t,"-manipulative-screen"));a.classList.contains("active")?a.classList.remove("active"):a.classList.add("active")}else M.toast.info("Please choose Header Manipulation in the drop down")}),w()(S()(a),"sumIconOnClick",function(e,t){var a=document.getElementById("".concat(e,"-").concat(t,"-csv-icon-plus"));if(console.log("sumClick",a),a.classList.contains("active")){var s=document.getElementById("".concat(e,"-").concat(t,"-static-manipulative-screen"));s.classList.contains("active")?s.classList.remove("active"):s.classList.add("active")}else M.toast.info("Please choose Header Manipulation in the drop down")}),a}var a,s;return f()(t,e),m()(t,[{key:"isSimilar",value:function(e,t,a){if(this.context.mappingResult){var s=O(e).resultKey;if(this.context.mappingResult[s]&&this.context.mappingResult[s][t]===a)return!0}return!(t.toLowerCase()!==a.toLowerCase()||!this.state.checkSimilarity)&&(this.onMappingSelect(e,t,a,!1),!0)}},{key:"onMappingSelect",value:function(e,t,a){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=O(e).resultKey,i=this.context.mappingResult[o];if(-1!=n){var l=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-sum")),r=document.getElementById("".concat(e,"-").concat(n,"-csv-icon-plus"));"Header Manipulation"===a?(l.classList.add("active"),r.classList.add("active")):(l.classList.remove("active"),r.classList.remove("active"))}if("--select--"===a||"Header Manipulation"===a)return i?void(this.context.mappingResult[o][t]&&(delete this.context.mappingResult[o][t],this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult))):void 0;i?s?(console.log("weew"),this.context.mappingResult[o][t]=a):(console.log("weew1"),this.context.mappingResult[o][t]||(this.context.mappingResult[o][t]=a)):(this.context.mappingResult[o]={},this.context.mappingResult[o][t]=a),this.setState({checkSimilarity:!1}),this.context.setMappingResult(this.context.mappingResult),console.log(this.context.mappingResult)}},{key:"isHeaderManipulation",value:function(e,t,a){var s=O(e).resultKey;return!(!this.context.mappingResult[s]||!this.context.mappingResult[s][t]||function(e,t){if(e&&t)for(var a=0;a<e.length;a++)if(e[a]===t)return!0;return!1}(this.context.csvFields,this.context.mappingResult[s][t]))&&(console.log("activating icon "+e,a),setInterval(function(){var t=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-sum")),s=document.getElementById("".concat(e,"-").concat(a,"-csv-icon-plus"));t&&!t.classList.contains("active")&&t.classList.add("active"),s&&!s.classList.contains("active")&&s.classList.add("active")},500),!0)}},{key:"getFieldValueFromResult",value:function(e,t){"featured_image"==t&&console.log("For Header Manipulation");var a=O(e).resultKey;return this.context.mappingResult[a]&&this.context.mappingResult[a][t]?("featured_image"==t&&console.log(this.context.mappingResult[a][t]),this.context.mappingResult[a][t]):("featured_image"==t&&console.log("Empty"),"")}},{key:"getFieldValueFromCustomFields",value:function(e){var t=this.state.customFields[e];if(t)return t.value}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueSelect",value:function(e,t){var a=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-sum")),s=document.getElementById("custom-field-creator-".concat(t,"-csv-icon-plus"));if("Header Manipulation"===e)return a.classList.add("active"),s.classList.add("active"),this.state.customFields[t].value="",void this.setState({customFields:this.state.customFields});this.state.customFields[t].value="--select--"===e?"":e,a.classList.remove("active"),s.classList.remove("active")}},{key:"onCustomFieldValueChange",value:function(e,t){this.state.customFields[t].value=e,this.setState({customFields:this.state.customFields})}},{key:"onZipProcess",value:function(e,t,a,s,n,o,i){var l=new FormData;l.append("zipFile",t,t.name),l.append("action","zip_upload");var r=new XMLHttpRequest;return r.open("POST",ajaxurl),r.upload.onprogress=function(e){o(e.lengthComputable,e.loaded,e.total)},r.onload=function(){var e=this;if(r.status>=200&&r.status<300){s(JSON.parse(r.responseText));var t=JSON.parse(r.responseText);if(t.success)if(null==t.filename)M.toast.info("There is no image files in the uploaded zip file");else{console.log("Checking Media Reposnse",t),this.setState({mediaZipFileNames:t.filename}),document.getElementById("upload-zip-open").click();for(var a=[],o=t.filename.length,i=0;i<o;i++)a.push({filename:t.filename[i],size:t.size[i]});this.state.mediaUploadData.zipFileName=t.zip_file_name,this.state.mediaUploadData.data=a,this.setState({mediaUploadData:this.state.mediaUploadData},function(){console.log("meidaUpload",e.state.mediaUploadData)})}else M.toast.error(t.message)}else n("oh no")}.bind(this),r.send(l),{abort:function(){r.abort(),i()}}}},{key:"deleteImage",value:(s=x()(E.a.mark(function e(t,a){var s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new FormData).set("action","delete_image"),s.set("image",t),e.prev=3,e.next=6,T()({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:(n=e.sent)&&n.data&&200==n.status&&n.data.success&&(this.state.mediaUploadData.data.splice(a,1),this.setState({mediaZipFileNames:this.state.mediaZipFileNames})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.log(e.t0);case 13:case"end":return e.stop()}},e,this,[[3,10]])})),function(e,t){return s.apply(this,arguments)})},{key:"checkMandatory",value:function(){var e=["language_code","translated_post_title","translated_taxonomy_title","user_login","user_email"];console.log("mandatory field 1");for(var t=0;t<this.context.allPluginFields.length;t++){var a=this.context.allPluginFields[t];for(var s in console.log("mandatory field 2"),a){var n=a[s];if(console.log("mandatory field 3"),console.log(n),n)for(var o=0;o<n.length;o++)if(e.includes(n[o].name)&&!this.checkKeyExistInMapping(n[o].name))return console.log("returning false"),!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var a in this.context.mappingResult){if(this.context.mappingResult[a])Object.keys(this.context.mappingResult[a]).includes(e)&&this.context.mappingResult[a][e]&&(t=!0)}return!!t||(M.toast.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.state.customFields)for(t=0;t<this.state.customFields.length;t++)a=this.state.customFields[t],s=a.name.trim(),a.value&&s&&(this.context.mappingResult.CORECUSTFIELDS?this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value:(this.context.mappingResult.CORECUSTFIELDS={},this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value));if(this.checkMandatory()){e.next=3;break}return e.abrupt("return");case 3:return this.context.setMappingType("mapping-section"),(n=new FormData).set("action","saveMappedFields"),n.set("HashKey",this.context.csvInfo.hashKey),n.set("Types",this.context.csvInfo.selectedtype),n.set("MappedFields",JSON.stringify(this.context.mappingResult)),n.set("MappingType","mapping-section"),this.setState({loading:!0}),e.prev=11,e.next=14,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:o=e.sent,console.log("mappingCheck",o),o&&o.data&&(200==o.status&&o.data.success?(this.setState({loading:!1}),"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?this.context.setShowComponent("import-config"):this.context.setShowComponent("media-handling")):this.setState({loading:!1})),console.log("Mapping response",o.data),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(11),console.log(e.t0),this.setState({loading:!1});case 24:case"end":return e.stop()}},e,this,[[11,20]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"container",id:"mapping-accordion"},n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:""},n.a.createElement("div",{className:"col-md-6 offset-md-3"},n.a.createElement("ul",{className:"mapping-switcher"},n.a.createElement("li",{className:"active",onClick:function(){e.context.setShowComponent("mapping-section")}},this.context.language.ADVANCEDMODE),n.a.createElement("li",{onClick:function(){e.context.setShowComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"mt50"}),this.context.allPluginFields.map(function(t,a){var s=Object.keys(t)[0];if(!O(s))return n.a.createElement("div",null,"This ",s," support not implemented ");var o=!1;return s||(o=!0),t[s]||Array.isArray(t[s])||(o=!0,"wordpress_custom_fields"===s)?o?void 0:n.a.createElement("div",null,n.a.createElement("div",{className:"card csv-importer-panel "},n.a.createElement("h1",{className:"card-header main-heading ".concat(0==a?"active":""),id:s,onClick:function(){toggle_func(s)}},e.context.language[O(s).languageName]," ",n.a.createElement("span",{className:"csv-icon-angle-down float-right"})),n.a.createElement("div",{className:"card-body",id:"".concat(s,"-body"),style:{display:0==a?"block":"none"}},n.a.createElement("table",{className:"table table-mapping"},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,e.context.language.WPFIELDS),n.a.createElement("th",null,e.context.language.CSVHEADER),n.a.createElement("th",null,e.context.language.Action))),n.a.createElement("tbody",null,t[s].map(function(t,a){return n.a.createElement("tr",null,n.a.createElement("td",null,n.a.createElement("label",{className:"wpfields"},t.label),n.a.createElement("label",{className:"sub-text"},"[",e.context.language.Name,": ",t.name,"] ")),n.a.createElement("td",null,n.a.createElement("select",{className:"select form-control w-75",onChange:function(n){e.onMappingSelect.bind(e)(s,t.name,n.target.value,!0,a)}},n.a.createElement("optgroup",{label:O(s).name},n.a.createElement("option",null,"--select--"),e.context.csvFields.map(function(a){return n.a.createElement("option",{selected:e.isSimilar(s,t.name,a)},a)}),n.a.createElement("option",{selected:e.isHeaderManipulation(s,t.name,a)},"Header Manipulation")))),n.a.createElement("td",{className:"action"},n.a.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"Static"},n.a.createElement("i",{id:"".concat(s,"-").concat(a,"-csv-icon-plus"),className:"csv-icon-plus-square",onClick:function(){e.sumIconOnClick(s,a)}}),n.a.createElement("div",{id:"".concat(s,"-").concat(a,"-static-manipulative-screen"),className:"manipulation-screen"},n.a.createElement("div",{className:"close",onClick:function(){e.sumIconOnClick(s,a)}},"×"),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"form-group"},n.a.createElement("textarea",{onChange:function(a){e.onMappingSelect.bind(e)(s,t.name,a.target.value)},value:e.getFieldValueFromResult(s,t.name),className:"form-control"})),n.a.createElement("div",{className:"csv-hint"},n.a.createElement("b",null,e.context.language.HINT," :")," Specify the CSV header to be added in between the curley braces(",").",n.a.createElement("div",{className:"d-block"},n.a.createElement("b",null,e.context.language.Example," : ")," ","{post_title}"," ")))),n.a.createElement("a",{className:"action-icon","data-toggle":"tooltip",title:"Formula"},n.a.createElement("i",{id:"".concat(s,"-").concat(a,"-csv-icon-sum"),className:"csv-icon-sum",onClick:function(t){e.formulaIconOnClick(s,a)}}),n.a.createElement("div",{id:"".concat(s,"-").concat(a,"-manipulative-screen"),className:"manipulation-screen"},n.a.createElement("span",{className:"close",onClick:function(){e.formulaIconOnClick(s,a)}},"×"),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"form-group"},n.a.createElement("textarea",{onChange:function(a){e.onMappingSelect.bind(e)(s,t.name,a.target.value)},value:e.getFieldValueFromResult(s,t.name),class:"form-control"})),n.a.createElement("div",{className:"csv-hint"},n.a.createElement("b",null,e.context.language.HIN," :")," Specify operator(+,-,*,/) and CSV header as operand in MATH() within ",n.a.createElement("div",{class:"d-block"},n.a.createElement("b",null,e.context.language.Example," :")," ","MATH ({product_quantity}/{discount_price})"," "))))))})))))):n.a.createElement("div",{className:"card csv-importer-panel "},n.a.createElement("h1",{className:"card-header main-heading bg-white pro-tag"},e.context.language[O(s).languageName]," "))}),n.a.createElement("div",{class:"col-md-12 mt40 p0"},n.a.createElement("div",{class:"float-left"},n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},"Back")),n.a.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:n.a.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.context.language.Continue))),n.a.createElement("a",{href:"#",className:"smack-btn smack-btn-primary d-none",id:"upload-zip-open","data-toggle":"modal","data-target":"#upload_media"}),n.a.createElement("div",{id:"upload_media",className:"modal fade payment_modal active",role:"dialog"},n.a.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},n.a.createElement("div",{className:"modal-content"},n.a.createElement("div",{className:"modal-header border border-0"},n.a.createElement("h1",{className:"main-heading text-center py-1 m-auto"},this.state.mediaUploadData.zipFileName),n.a.createElement("button",{type:"button",className:"close ml0","data-dismiss":"modal"},"×")),n.a.createElement("div",{className:"modal-body my-2"},n.a.createElement("table",{className:"table table-striped"},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,this.context.language.Name),n.a.createElement("th",null,this.context.language.Size),n.a.createElement("th",{class:"text-center"},this.context.language.Action))),n.a.createElement("tbody",null,this.state.mediaUploadData.data.map(function(t,a){return n.a.createElement("tr",null,n.a.createElement("td",null,t.filename),n.a.createElement("td",null,t.size),n.a.createElement("td",null,n.a.createElement("a",{className:"action-icon",onClick:function(s){e.deleteImage(t.filename,a)},"data-toggle":"tooltip",title:"Delete"},n.a.createElement("i",{className:"csv-icon-trash-2"}))))}))))))))}}]),t}(s.Component);w()(R,"contextType",C);var j=a(94),L=a(92),U=a.n(L),W=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,initialRowSize:1,totalCsvRows:"",csvInformation:[],currentMode:"draganddrop",customFields:[]},a.csvInformation=[],a.handleScroll=a.handleScroll.bind(S()(a)),a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.getCsvFields(this.state.initialRowSize),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("scroll",this.handleScroll)}},{key:"handleScroll",value:function(e){var t=document.getElementById("mapping-sidebar"),a=document.getElementById("mapping-accordion").offsetHeight-300;window.scrollY>200?(t.classList.add("mapping-sidebar-fixed"),window.scrollY>a?t.classList.add("fixed-bottom-position"):t.classList.remove("fixed-bottom-position")):t.classList.remove("mapping-sidebar-fixed")}},{key:"getCsvFields",value:(s=x()(E.a.mark(function e(t){var a,s,n,o,i;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=new FormData,this.context.isXML?a.set("action","get_parse_xml"):a.set("action","displayCSV"),a.set("row",t),a.set("HashKey",this.context.csvInfo.hashKey),this.setState({loading:!0}),e.prev=5,e.next=8,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:if(s=e.sent,console.log(s),s&&s.data&&200==s.status&&s.data.success){for(n=[],o=[],this.csvInformation=[],i=0;i<s.data.Headers.length;i++)n.push(s.data.Headers[i]),o.push(s.data.Values[i]);for(i=0;i<s.data.Headers.length;i++)this.csvInformation.push({csvHeaders:s.data.Headers[i],csvValues:s.data.Values[i]});this.setState({totalCsvRows:s.data.total_rows,loading:!1})}e.next=17;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0),console.log("request failed");case 17:case"end":return e.stop()}},e,this,[[5,13]])})),function(e){return s.apply(this,arguments)})},{key:"onMappingSelect",value:function(e,t,a){var s=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];console.log(a),console.log("{".concat(a,"}"));var n=O(e).resultKey,o=this.context.mappingResult[n];o?s?this.context.mappingResult[n][t]=a:this.context.mappingResult[n][t]?this.context.mappingResult[n][t]+=a:this.context.mappingResult[n][t]=a:(this.context.mappingResult[n]={},this.context.mappingResult[n][t]=a),this.forceUpdate(),console.log(this.context.mappingResult)}},{key:"addCustomField",value:function(){this.state.customFields.push({name:"",label:"",value:""}),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldLabelChange",value:function(e,t){this.state.customFields[t].label=e,this.state.customFields[t].name=e.trim().replace(/\s+/g,"-").toLowerCase(),this.setState({customFields:this.state.customFields})}},{key:"onCustomFieldValueChange",value:function(e,t){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a?this.state.customFields[t].value=e:this.state.customFields[t].value+=e,this.setState({customFields:this.state.customFields})}},{key:"deleteCustomField",value:function(e){console.log(e),this.state.customFields.splice(e,1),this.setState({customFields:this.state.customFields})}},{key:"checkMandatory",value:function(){var e=["language_code","translated_post_title","translated_taxonomy_title","user_login","user_email"];console.log("mandatory field 1");for(var t=0;t<this.context.allPluginFields.length;t++){var a=this.context.allPluginFields[t];for(var s in console.log("mandatory field 2"),a){var n=a[s];if(console.log("mandatory field 3"),console.log(n),n)for(var o=0;o<n.length;o++)if(e.includes(n[o].name)&&!this.checkKeyExistInMapping(n[o].name))return!1}}return!0}},{key:"checkKeyExistInMapping",value:function(e){var t=!1;for(var a in this.context.mappingResult){if(this.context.mappingResult[a])Object.keys(this.context.mappingResult[a]).includes(e)&&this.context.mappingResult[a][e]&&(t=!0)}return!!t||(M.toast.error(e+" is mandatory field"),!1)}},{key:"sendMappedFields",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("sending mapping"),this.state.customFields)for(t=0;t<this.state.customFields.length;t++)a=this.state.customFields[t],s=a.name.trim(),a.value&&s&&(this.context.mappingResult.CORECUSTFIELDS?this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value:(this.context.mappingResult.CORECUSTFIELDS={},this.context.mappingResult.CORECUSTFIELDS[a.name]=a.value));if(this.checkMandatory()){e.next=4;break}return e.abrupt("return");case 4:return this.context.setMappingType("dragdrop-section"),(n=new FormData).set("action","saveMappedFields"),n.set("HashKey",this.context.csvInfo.hashKey),n.set("Types",this.context.csvInfo.selectedtype),n.set("MappedFields",JSON.stringify(this.context.mappingResult)),n.set("MappingType","dragdrop-section"),e.prev=11,e.next=14,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 14:o=e.sent,this.setState({loading:!0}),o&&o.data&&(200==o.status&&o.data.success?(this.setState({loading:!1}),"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?this.context.setShowComponent("import-config"):this.context.setShowComponent("media-handling")):this.setState({loading:!1})),console.log("Mapping response",o.data),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(11),console.log(e.t0),this.setState({loading:!1});case 24:case"end":return e.stop()}},e,this,[[11,20]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,a=(t.initialRowSize,t.totalCsvRows);return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"col-md-6 offset-md-3"},n.a.createElement("ul",{className:"mapping-switcher"},n.a.createElement("li",{onClick:function(){e.context.setShowComponent("mapping-section")}},this.context.language.ADVANCEDMODE),n.a.createElement("li",{className:"active",onClick:function(){e.context.setShowComponent("dragdrop-section")}},this.context.language.DRAGDROPMODE)))),n.a.createElement("div",{className:"clearfix"}),n.a.createElement("div",{className:"row container-fluid ",style:{maxWidth:"1400px",margin:"auto"}},n.a.createElement("div",{id:"mapping-accordion",className:"col-md-8"},n.a.createElement("div",{className:"mt50"}),this.context.allPluginFields.map(function(t,a){console.log("index",a);var s=Object.keys(t)[0];if(!O(s))return n.a.createElement("div",null," ","This ",s," support not implemented"," ");var o=!1;return s||(o=!0),t[s]||Array.isArray(t[s])||(o=!0,"wordpress_custom_fields"===s)?o?void 0:n.a.createElement("div",{className:"card csv-importer-panel"},n.a.createElement("h1",{className:"card-header main-heading ".concat(0==a?"active":""),id:s,onClick:function(){toggle_func(s)}},e.context.language[O(s).languageName]," ",n.a.createElement("span",{className:"csv-icon-angle-down float-right"})),n.a.createElement("div",{className:"card-body",id:"".concat(s,"-body"),style:{display:0==a?"block":"none"},"data-display":e.state.display},t[s].map(function(t,a){return n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,t.label),n.a.createElement(j.Droppable,{types:["csvheader"],onDrop:function(a){e.onMappingSelect.bind(e)(s,t.name,"{".concat(a.csvheader,"}"),!1)}},n.a.createElement("input",{value:function(){var a=O(s).resultKey;if(e.context.mappingResult[a])return e.context.mappingResult[a][t.name]}(),type:"text",name:"",id:t.name+"_text",className:"form-control",onChange:function(a){e.onMappingSelect.bind(e)(s,t.name,a.target.value)}})))}))):n.a.createElement("div",{className:"card csv-importer-panel "},n.a.createElement("h1",{className:"card-header main-heading bg-white pro-tag"},e.context.language[O(s).languageName]," "))}),n.a.createElement("div",{className:"mt40"},n.a.createElement("div",{className:"col-md-12 mt40 p0"},n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{className:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},"Back")),n.a.createElement("div",{className:"float-right mb20"},this.state.loading?this.context.loaderText:n.a.createElement("button",{className:"smack-btn smack-btn-primary",onClick:this.sendMappedFields.bind(this)},this.context.language.Continue)),n.a.createElement("div",{className:"clearfix"})))),n.a.createElement("div",{className:"col-md-4 "},n.a.createElement("div",{className:"mapping-sidebar",id:"mapping-sidebar"},n.a.createElement("table",{className:"mapping-sidebar-title"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{className:"mapping-sidebar-arrow"},n.a.createElement("span",{className:"csv-icon-chevron-with-circle-left",onClick:function(t){e.state.initialRowSize--,e.state.initialRowSize>=1?e.getCsvFields(e.state.initialRowSize):e.state.initialRowSize++}})),n.a.createElement("td",{className:"mapping-sidebar-textbox-section"},n.a.createElement("strong",null,n.a.createElement("input",{id:"current_row",value:this.state.initialRowSize,type:"text",pattern:"[0-9]*",onChange:function(t){parseInt(t.target.value)>e.state.totalCsvRows?e.setState({initialRowSize:e.state.totalCsvRows},function(){e.getCsvFields(e.state.initialRowSize)}):(e.setState({initialRowSize:t.target.value}),e.getCsvFields(e.state.initialRowSize))}}))," ",n.a.createElement("span",{className:"mapping-textbox-out-of"},"of",n.a.createElement("strong",null," ",a))),n.a.createElement("td",{className:"mapping-sidebar-arrow"},n.a.createElement("span",{className:"csv-icon-chevron-with-circle-right",onClick:function(t){e.state.initialRowSize++,e.state.initialRowSize<=e.state.totalCsvRows?e.getCsvFields(e.state.initialRowSize):e.state.initialRowSize--}}))))),n.a.createElement("div",{className:"uci_mapping"},n.a.createElement("table",{className:"table table-bordered",cellspacing:"10"},this.state.loading||0==this.csvInformation.length?n.a.createElement("div",{className:"loader loader-1 mt15 text-center"}):this.csvInformation.map(function(e,t){return n.a.createElement("tr",null,n.a.createElement("td",{style:{width:"40%"},className:"text-primary font-weight-bold"},n.a.createElement(j.Draggable,{type:"csvheader",data:e.csvHeaders},e.csvHeaders)),n.a.createElement("td",null,e.csvValues))})))))))}}]),t}(s.Component);function H(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function z(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?H(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):H(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}w()(W,"contextType",C);var B=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{loading:!1}),a}var a;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setCSVInfo(z({},this.context.csvInfo,{replaceExistingItem:"Insert"}))}},{key:"sendConfiguration",value:(a=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","mappingfields"),t.set("HashKey",this.context.csvInfo.hashKey),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),console.log("HashKey",this.context.csvInfo.hashKey,"Types",this.context.csvInfo.selectedtype,"Mode",this.context.csvInfo.replaceExistingItem),this.setState({loading:!0}),e.prev=7,e.next=10,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:a=e.sent,console.log("csvinfo",a),a&&a.data&&200==a.status&&a.data.success&&(this.setState({loading:!1}),!0===a.data.show_template?(this.context.setIsTemplate(!0),console.log("Template",a.data),this.context.setSaveTemplateData(a.data.info),this.context.setShowComponent("save-template")):(console.log("Config",a.data),this.context.setCsvFields(a.data.csv_fields),s=I(a.data.fields),this.context.setAllPluginFields(s),"xml"===this.context.csvInfo.fileType?this.context.setShowComponent("dragdrop-section"):this.context.setShowComponent("mapping-section"))),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(7),console.log(e.t0),console.log("request failed");case 19:case"end":return e.stop()}},e,this,[[7,15]])})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"csv-importer-panel mt20 container"},n.a.createElement("div",{className:"file-info-container clearfix"},n.a.createElement("div",{className:"csvinfo"},n.a.createElement("h3",{className:"file-name"},this.context.csvInfo.fileName," -"," ",n.a.createElement("span",{className:"size"},this.context.csvInfo.fileSize)),n.a.createElement("div",{class:"d-flex justify-content-center mt40"},n.a.createElement("div",{className:"form-check form-check-inline form-group"},n.a.createElement("input",{className:"form-check-input ",onClick:function(){e.context.setCSVInfo(z({},e.context.csvInfo,{replaceExistingItem:"Insert"}))},type:"radio",id:"insertRad",name:"post-item",value:"Insert",checked:"Insert"===this.context.csvInfo.replaceExistingItem})," ",n.a.createElement("label",{for:"insertRad",class:"form-check-label"},"New Item")),n.a.createElement("div",{className:"form-check form-check-inline form-group",style:{opacity:.6}},n.a.createElement("input",{className:"form-check-input",onClick:function(){M.toast.info("Please Upgrade to PRO for this Feature")},type:"radio",id:"updateRad",name:"post-item",value:"Update",checked:"Update"===this.context.csvInfo.replaceExistingItem})," ",n.a.createElement("label",{for:"updateRad",className:"form-check-label"},"Existing Items"))),n.a.createElement("div",{className:"d-flex justify-content-center mt40"},n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,"Import each record as"),n.a.createElement("div",null,n.a.createElement("select",{value:this.context.csvInfo.selectedtype,className:"select form-control",onChange:function(t){e.context.setCSVInfo(z({},e.context.csvInfo,{selectedtype:t.target.value}))},name:"",id:""},n.a.createElement("optgroup",{label:"PostType"},this.context.csvInfo.postTypes.map(function(e){return n.a.createElement("option",{value:e},e)}))))))),n.a.createElement("div",{class:"col-md-12 mt40 p0"},n.a.createElement("div",{class:"float-left"},n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("upload-dashboard")}},"Back")),n.a.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",onClick:this.sendConfiguration.bind(this),value:"Continue"})))))}}]),t}(s.Component);w()(B,"contextType",C);var V=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{mediaHandlingEnabled:!1}),a}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update")}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"card-body"},n.a.createElement("h5",null,this.context.language.MediaHandling),n.a.createElement("div",{className:"col-md-12 row mt30 justify-content-center"},n.a.createElement("label",{className:"align-self-center"},this.context.language.Downloadexternalimagestoyourmedia),n.a.createElement("div",{className:"form-group fieldset ml30"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",name:"media-handle",id:"media-handle",onClick:function(e){M.toast.info("Please upgrade to PRO for Advanced Media Handling.")},checked:this.state.mediaHandlingEnabled}),n.a.createElement("label",{className:"switch-ios",for:"media-handle"},n.a.createElement("i",null)))),n.a.createElement("div",{className:"media-fields ".concat(this.state.mediaHandlingEnabled?"active":"")},n.a.createElement("div",{className:"col-md-12 mt20"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.ImageHandling),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-image-existing"}),n.a.createElement("label",{for:"media-image-existing"},this.context.language.Usemediaimagesifalreadyavailable)),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-image-overwrite"}),n.a.createElement("label",{for:"media-image-overwrite"},this.context.language.Doyouwanttooverwritetheexistingimages)),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"media-image",className:"",id:"media-new-image"}),n.a.createElement("label",{for:"media-new-image"},"Always create as new image")))),n.a.createElement("div",{className:"col-md-12 mt50"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.ImageSizes),n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{className:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"thumbnail",name:"thumbnail"}),n.a.createElement("label",{for:"thumbnail"},this.context.language.Thumbnail)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{className:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"medium",name:"medium"}),n.a.createElement("label",{for:"medium"},this.context.language.Medium)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{class:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"mediumlarge",name:"mediumLarge"}),n.a.createElement("label",{for:"mediumlarge"},this.context.language.MediumLarge)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{class:"form-group"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"large",name:"large"}),n.a.createElement("label",{for:"large"},this.context.language.Large)))),n.a.createElement("div",{className:"col-md-2"},n.a.createElement("div",{className:"form-group custom-size"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"custom",name:"custom"}),n.a.createElement("label",{for:"custom"},this.context.language.Custom))))))),n.a.createElement("div",{className:"col-md-12 mt50"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.MediaSEOAdvancedOptions),n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageTitle," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageTitle"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageCaption," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageCaption"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e,t){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageAltText," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageAltText"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e,t){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.SetimageDescription," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageDescription"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e){return n.a.createElement("option",{value:e},e)}))),n.a.createElement("div",{className:"form-group col-md-4"},n.a.createElement("label",{className:"d-block"},this.context.language.Changeimagefilenameto," ",":"," "),n.a.createElement("select",{className:"form-control",name:"mediaImageFileName"},n.a.createElement("option",{value:""},"--select--"),this.context.csvFields.map(function(e){return n.a.createElement("option",{value:e},e)}))))))),n.a.createElement("div",{className:"form-group mt30"},n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back)),n.a.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:n.a.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.context.setShowComponent("import-config")}},this.context.language.Continue))))))}}]),t}(s.Component);w()(V,"contextType",C);var K=V,G=a(63),q=(a(114),a(2),function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,updateFieldsList:[],enableSchedule:!1,showOnSchedule:"none",hiddenOnSchedule:"block",displayDuplicate:!1,updateField:""},a.handleDateChange=a.handleDateChange.bind(S()(a)),a.handleChange=a.handleChange.bind(S()(a)),a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.getUpdateFields()}},{key:"setEnableSchedule",value:function(e){var t=this;this.setState({enableSchedule:e},function(){t.state.enableSchedule?t.setState({showOnSchedule:"block",hiddenOnSchedule:"none"}):t.setState({showOnSchedule:"none",hiddenOnSchedule:"block"})})}},{key:"importConfiguration",value:(o=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.state.displayDuplicate||""!=this.state.updateField){e.next=3;break}return M.toast.error("Please Select field to Handle Duplicate"),e.abrupt("return");case 3:return this.context.setShowComponent("import-process"),(t=new FormData).set("action","StartImport"),a="",a=this.context.rollBackMode?"true":"false",t.set("HashKey",this.context.csvInfo.hashKey),t.set("Check",this.state.updateField),t.set("RollBack",a),this.context.setShowImportLog(!0),this.context.setImportLogDataLink("".concat(window.wpr_object.logfielpath,"/").concat(this.context.csvInfo.hashKey,"/").concat(this.context.csvInfo.hashKey,".html")),this.setState({loading:!0}),e.prev=14,e.next=17,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 17:s=e.sent,this.setState({loading:!1}),200==s.status&&s.data.success,e.next=26;break;case 22:e.prev=22,e.t0=e.catch(14),console.log("Error while running import"),console.log(e.t0);case 26:case"end":return e.stop()}},e,this,[[14,22]])})),function(){return o.apply(this,arguments)})},{key:"getUpdateFields",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","updatefields"),t.set("Types",this.context.csvInfo.selectedtype),t.set("Mode",this.context.csvInfo.replaceExistingItem),this.setState({loading:!0}),e.prev=5,e.next=8,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:a=e.sent,this.setState({loading:!1}),a&&a.data&&200==a.status&&this.setState({updateFieldsList:a.data.update_fields}),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(5),console.log(e.t0);case 16:case"end":return e.stop()}},e,this,[[5,13]])})),function(){return s.apply(this,arguments)})},{key:"updateMaintenanceMode",value:(a=x()(E.a.mark(function e(t){var a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(t),(a=new FormData).set("action","settings_options"),a.set("option","enable_main_mode"),a.set("value",t),e.next=7,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 7:s=e.sent,console.log(s),this.context.setMaintenanceMode(t);case 10:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"handleChange",value:function(e){var t=this;this.setState(w()({},e.target.name,e.target.value),function(){console.log("state",t.state)})}},{key:"handleDateChange",value:function(e){this.setState({selectedDate:e})}},{key:"render",value:function(){var e=this,t=this.state,a=t.updateField;t.selectedUTC,t.selectedDate,t.scheduleTime,t.scheduleFrequency;return n.a.createElement("div",{id:"import-configuration",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30"},n.a.createElement("div",{className:"row export"},n.a.createElement("h1",{className:"main-heading pr15 pl15 mb20 col-md-12"},"Import configuration Section"),n.a.createElement("div",{style:{display:this.state.hiddenOnSchedule},className:"advanced-filter col-md-12"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"import_configuration_maintenance_mode",checked:this.context.maintenanceMode,onClick:function(t){e.updateMaintenanceMode(t.target.checked)}}),n.a.createElement("label",{for:"import_configuration_maintenance_mode"},"Do you want to SWITCH ON Maintenance mode while import ?"))),n.a.createElement("div",{className:"advanced-filter col-md-12"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"import_configuration_duplicate_handle",className:"",onChange:function(t){e.setState({displayDuplicate:t.target.checked})},checked:this.state.displayDuplicate}),n.a.createElement("label",{for:"import_configuration_duplicate_handle"},"Do you want to handle the duplicate on existing records ?")),n.a.createElement("div",{className:"row mt20 col-md-6",style:{display:this.state.displayDuplicate?"block":"none"}},n.a.createElement("div",{className:"form-group col"},"Insert"===this.context.csvInfo.replaceExistingItem?n.a.createElement("label",null,this.context.language.Mentionthefieldswhichyouwanttohandleduplicates):"Update"===this.context.csvInfo.replaceExistingItem?n.a.createElement("label",null,this.context.language.Updaterecordsbasedon):"",n.a.createElement("select",{className:"select form-control",name:"updateField",value:a,onChange:this.handleChange},n.a.createElement("option",{value:""},"Select Field"),0!=this.state.updateFieldsList.length?this.state.updateFieldsList.map(function(e,t){return n.a.createElement("option",{value:e},e)}):void 0)))),n.a.createElement("div",{className:"advanced-filter col-md-12",style:{opacity:.6}},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"import_configuration_schedule_import",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Schedule you Import")}}),n.a.createElement("label",{for:"import_configuration_schedule_import"},this.context.language.DoyouwanttoSchedulethisImport))),n.a.createElement("div",{className:"form-group col-md-12 mt30"},n.a.createElement("div",{className:"float-left"},"WooCommerce Orders"===this.context.csvInfo.selectedtype||"WooCommerce Coupons"===this.context.csvInfo.selectedtype||"WooCommerce Product Variations"===this.context.csvInfo.selectedtype||"WooCommerce Refunds"===this.context.csvInfo.selectedtype||"WooCommerce Attributes"===this.context.csvInfo.selectedtype||"Users"===this.context.csvInfo.selectedtype||"Comments"===this.context.csvInfo.selectedtype?n.a.createElement("button",{type:"button",class:"smack-btn btn-default",onClick:function(){e.context.setShowComponent(e.context.mappingType)}},this.context.language.Back):n.a.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowComponent("media-handling")}},this.context.language.Back)),n.a.createElement("div",{className:"float-right"},this.state.loading?this.context.loaderText:n.a.createElement(n.a.Fragment,null,n.a.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.importConfiguration()}},this.context.language.Import)))))))}}]),t}(s.Component));w()(q,"contextType",C);var Y=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!0,check:"",fileName:"",processingRecords:"",remainingRecords:"",totalRecords:"",fileSize:"",process:"",remainingTime:"00:00:00",stopWatch:"00:00:00",progWidth:"0",importStatus:"Processing",enableDownload:!1,controlImportProcess:!0,rollBackProgress:!1},a.message=[],a.status=[],a.verify=[],a.tag=[],a.categories=[],a.loopCount=0,a.remainingTime=0,a.stopSeconds=0,a.stopMinutes=0,a.stopHours=0,a.onUnload=a.onUnload.bind(S()(a)),a.progressWidth,a}var a,s,o,i;return f()(t,e),m()(t,[{key:"onUnload",value:(i=x()(E.a.mark(function e(t){var a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","ImportStop"),a.set("Stop","false"),e.next=5,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:e.sent,t.returnValue="Hellooww";case 7:case"end":return e.stop()}},e)})),function(e){return i.apply(this,arguments)})},{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update"),this.refreshIntervalId=setInterval(function(){this.getProgress.bind(this)(),this.state.loading&&this.state.controlImportProcess&&this.stopWatch()}.bind(this),1e3),window.addEventListener("beforeunload",this.onUnload)}},{key:"getProgress",value:(o=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","GetProgress"),t.set("HashKey",this.context.csvInfo.hashKey),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(200==(a=e.sent).status&&a.data.success){for(this.message=[],this.status=[],this.verify=[],this.tag=[],this.categories=[],s=0;s<a.data.Info.length;s++)this.message.push(a.data.Info[s].message),this.status.push(a.data.Info[s].status),this.verify.push(a.data.Info[s].verify),this.tag.push(a.data.Info[s].tags),this.categories.push(a.data.Info[s].categories);this.setState({fileName:a.data.file_name}),this.setState({fileSize:a.data.filesize}),this.setState({processingRecords:a.data.processing_records}),this.setState({remainingRecords:a.data.remaining_records}),this.setState({totalRecords:a.data.total_records}),this.setState({loading:a.data.progress}),this.setState({importStatus:a.data.status}),this.loopCount=this.loopCount+1,a.data.processing_records>2&&(this.remainingTime=this.loopCount/a.data.processing_records*a.data.remaining_records,this.secondsToHms(this.remainingTime)),this.loadProgress(a.data)}case 7:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"loadProgress",value:function(e){e.processing_records!==e.total_records?this.progressWidth=e.processing_records/e.total_records*100:e.progress||(this.progressWidth=e.processing_records/e.total_records*100),this.progressWidth=Math.round(this.progressWidth),this.progressWidth>.9&&this.setState({progWidth:this.progressWidth})}},{key:"secondsToHms",value:function(e){e=Number(e);var t=Math.floor(e/3600),a=Math.floor(e%3600/60),s=Math.floor(e%3600%60);t.toString().length<2&&(t="0"+t),a.toString().length<2&&(a="0"+a),s.toString().length<2&&(s="0"+s);var n=t+":"+a+":"+s;this.setState({remainingTime:n})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"accessImportProcess",value:(s=x()(E.a.mark(function e(t){var a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t.target.value,console.log("on button clicked",a),s="","Pause"===a?(this.setState({controlImportProcess:!1}),s="false",clearInterval(this.refreshIntervalId)):(this.setState({controlImportProcess:!0}),s="true"),(n=new FormData).set("action","ImportState"),n.set("State",s),n.set("HashKey",this.context.csvInfo.hashKey),e.next=10,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:o=e.sent,console.log("On pause and resume",o.status),200==o.status&&o.data.import_state&&(o.data.import_state?this.setState({loading:!1}):this.setState({loading:!0}),this.refreshIntervalId=setInterval(function(){this.getProgress.bind(this)(),this.state.loading&&this.state.controlImportProcess&&this.stopWatch()}.bind(this),1e3));case 13:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"startRollBackMode",value:(a=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({rollBackProgress:!0}),(t=new FormData).set("action","rollback_now"),t.set("HashKey",this.context.csvInfo.hashKey),e.next=6,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:a=e.sent,this.setState({rollBackProgress:!1}),(s=a.data).success?(this.context.setRollBackMode(!1),M.toast.success(s.message)):M.toast.error(s.message);case 10:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t={width:this.state.progWidth+"%"};!this.state.loading&&this.context.showImportLog;return n.a.createElement("div",{className:"wp-ultimate-csv-importer"},n.a.createElement("div",{className:" container"},n.a.createElement("div",{className:"importer-log"},n.a.createElement("div",{className:"card csv-importer-panel mt40 col-md-12"},n.a.createElement("div",{className:"card-body"},n.a.createElement("h4",{className:"text-center"},"Import ",this.state.importStatus),n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"mt30 "},"Completed"===this.state.importStatus?n.a.createElement(n.a.Fragment,null,n.a.createElement("input",{type:"button",className:"smack-btn btn-default",value:"Close",onClick:function(t){e.context.setShowComponent("upload-dashboard"),window.location.reload()}}),this.context.rollBackMode?n.a.createElement(n.a.Fragment,null,n.a.createElement("input",{type:"button",className:"ml20 smack-btn smack-btn-danger",value:"RoleBack Now",onClick:function(t){e.startRollBackMode()}})," "," ",this.state.rollBackProgress?n.a.createElement("div",{className:"btn ajax-loader loading",style:{marginLeft:"25px",marginRight:"0",bottom:"5px",padding:"0"}}):""," "):void 0):this.state.controlImportProcess?n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-warning",value:"Pause",onClick:this.accessImportProcess.bind(this)}):n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary",value:"Resume",onClick:this.accessImportProcess.bind(this)}))),n.a.createElement("table",{className:"table mt40"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{className:"text-left"},this.context.language.FileName,":"," ",n.a.createElement("span",null,this.state.fileName)),n.a.createElement("td",{className:"text-right"},this.context.language.FileSize,":"," ",n.a.createElement("span",null,this.state.fileSize))),n.a.createElement("tr",null,n.a.createElement("td",{className:"text-left"},this.context.language.Process,":"," ",n.a.createElement("span",null,this.context.csvInfo.replaceExistingItem)),n.a.createElement("td",{className:"text-right"},this.context.language.Totalnoofrecords,":"," ",n.a.createElement("span",null,this.state.totalRecords))),n.a.createElement("tr",null,n.a.createElement("td",{className:"text-left"},n.a.createElement("span",{className:"font-weight-normal text-success"}," ",this.context.language.CurrentProcessingRecord,":"," ",n.a.createElement("span",null,this.state.processingRecords))),n.a.createElement("td",{className:"text-right"},n.a.createElement("span",{className:"font-weight-normal text-danger"},this.context.language.RemainingRecord,":"," ",n.a.createElement("span",null,this.state.remainingRecords)))))),n.a.createElement("div",{className:"card-body px-3"},n.a.createElement("div",{className:"importing-details"},n.a.createElement("div",{className:"progress-status"},"Processing"===this.state.importStatus?"In Progress":""),n.a.createElement("div",{className:"import-progress"},n.a.createElement("div",{className:"progress-loading"},this.state.progWidth+"%"," "," ",this.context.language.Completed),n.a.createElement("div",{className:"progress-timing"},n.a.createElement("i",{className:"csv-icon-schedule"})," "," ",this.context.language.TimeElapsed,":"," ",n.a.createElement("span",null," "," ",this.state.stopWatch,"/"," "),this.state.remainingTime,"(",this.context.language.approximate,")"))),n.a.createElement("div",{className:"progress mt5 mb40"},n.a.createElement("div",{className:"progress-bar",style:t,role:"progressbar","aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),n.a.createElement("div",{className:"d-flex justify-content-center"},n.a.createElement("a",{target:"_blank",rel:"noopener noreferrer",className:"smack-btn smack-btn-primary",href:this.context.importLogDataLink},n.a.createElement("i",{className:"csv-icon-download-cloud mr10"})," ",this.context.language.DownloadLog))))))),n.a.createElement("button",{type:"button",className:"d-none","data-toggle":"modal","data-target":"#displayLogText",id:"triggerLog"}),n.a.createElement("div",{id:"displayLogText",className:"modal fade",role:"dialog"},n.a.createElement("div",{className:"modal-dialog modal-lg modal-dialog-centered"},n.a.createElement("div",{className:"modal-content"},n.a.createElement("div",{className:"modal-header"},n.a.createElement("h1",{class:"main-heading"},"Import Log for ",this.state.fileName),n.a.createElement("button",{type:"button",className:"close","data-dismiss":"modal"},"×")),n.a.createElement("div",{className:"modal-body my-2"},n.a.createElement("div",{id:"showLogText"}))))))}}]),t}(s.Component);w()(Y,"contextType",C);var J=Y,Z=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1},a}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement("div",{className:"col-md-9",style:{height:"300px"}},n.a.createElement("div",{className:"row justify-content-center h-100"},n.a.createElement("div",{className:"align-self-center upgrade-to-pro text-center"},n.a.createElement("img",{src:"".concat(window.wpr_object.imagePath,"upgrade-to-pro.png")}),n.a.createElement("p",null,"This feature is available in"," ",n.a.createElement("a",{target:"_blank",className:"csv-link",href:"https://www.smackcoders.com/wp-ultimate-csv-importer-pro.html?utm_source=plugin&utm_campaign=csv_importer_free&utm_medium=wordpress"},"WP Ultimate CSV Importer"," ")," ","Premium Version"),n.a.createElement("a",{target:"_blank",href:"https://www.smackcoders.com/contact-us.html?utm_source=plugin&utm_campaign=csv_importer_free&utm_medium=wordpress",className:"smack-btn btn-default "},"Contact us for Presale Enquiry"))))}}]),t}(s.Component),X=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("import-update")}},{key:"render",value:function(){return"upload-dashboard"===this.context.showComponent?n.a.createElement(Q,null):"csv-info"===this.context.showComponent?n.a.createElement(B,null):"mapping-section"===this.context.showComponent?n.a.createElement(R,{fromEditTemplate:!1}):"dragdrop-section"===this.context.showComponent?n.a.createElement(W,{fromEditTemplate:!1}):"media-handling"===this.context.showComponent?n.a.createElement(K,null):"import-config"===this.context.showComponent?n.a.createElement(q,null):"import-process"===this.context.showComponent?n.a.createElement(J,null):void 0}}]),t}(s.Component);w()(X,"contextType",C);var Q=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{selectedId:"v-pills-home-tab"}),a}return f()(t,e),m()(t,[{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"csv-importer-panel row mt20"},n.a.createElement("div",{className:"col-md-3 px-0"},n.a.createElement("div",{className:"nav flex-column nav-pills file-choosen-tab",id:"v-pills-tab",role:"tablist","aria-orientation":"vertical"},n.a.createElement("a",{className:"nav-link active",id:"v-pills-home-tab",onClick:function(t){e.setState({selectedId:t.target.id}),console.log(t.target.id)},"data-toggle":"pill",href:"#v-pills-home",role:"tab","aria-controls":"v-pills-home","aria-selected":"false"},n.a.createElement("i",{className:"csv-icon-upload-cloud"}),this.context.language.UploadfromDesktop),n.a.createElement("a",{className:"nav-link pro-tag",id:"v-pills-profile-tab",onClick:function(t){e.setState({selectedId:t.target.id}),console.log(t.target.id)},"data-toggle":"pill",href:"#v-pills-profile",role:"tab","aria-controls":"v-pills-profile","aria-selected":"true"},n.a.createElement("i",{className:"csv-icon-upload3"}),this.context.language.UploadfromFTPSFTP),n.a.createElement("a",{className:"nav-link pro-tag",id:"v-pills-messages-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-messages",role:"tab","aria-controls":"v-pills-messages","aria-selected":"false"},n.a.createElement("i",{className:"csv-icon-link"}),this.context.language.UploadfromURL),n.a.createElement("a",{className:"nav-link pro-tag",id:"v-pills-settings-tab",onClick:function(t){e.setState({selectedId:t.target.id})},"data-toggle":"pill",href:"#v-pills-settings",role:"tab","aria-controls":"v-pills-settings","aria-selected":"false"},n.a.createElement("i",{className:"csv-icon-server"}),this.context.language.ChoosFileintheServer))),"v-pills-home-tab"==this.state.selectedId?n.a.createElement(P,{uploadoptions:this}):"v-pills-profile-tab"==this.state.selectedId||"v-pills-messages-tab"==this.state.selectedId||"v-pills-settings-tab"==this.state.selectedId?n.a.createElement(Z,null):void 0))}}]),t}(s.Component);w()(Q,"contextType",C);var $=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,logs:[],downloadLogLink:""},a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.displayLogs(),this.context.setSelectedTabOnCookies("manager")}},{key:"displayLogs",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","display_log"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),200==a.status&&(this.setState({loading:!1}),a.data.success&&(this.setState({logs:a.data.info}),console.log(this.state.logs)));case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"downloadLog",value:(a=x()(E.a.mark(function e(t,a){var s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(s=new FormData).set("action","download_log"),s.set("filename",t),s.set("revision",a),e.next=6,T()({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:n=e.sent,console.log(n),n.data.success?(console.log(n.data.log_link),this.setState({downloadLogLink:n.data.log_link}),document.getElementById("downloadFile").click()):M.toast.error("Log Doesn't Exists");case 9:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t={padding:"20px 0 10px 0"};return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane5 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-12 mt20"},n.a.createElement("h1",{className:"main-heading"},"Log Info"),n.a.createElement("table",{className:"table log-manager"},n.a.createElement("thead",null,n.a.createElement("tr",null,n.a.createElement("th",null,this.context.language.FileName),n.a.createElement("th",null,this.context.language.Module),n.a.createElement("th",null,this.context.language.Inserted),n.a.createElement("th",null,this.context.language.Updated),n.a.createElement("th",null,this.context.language.Skipped),n.a.createElement("th",{className:"text-center"},this.context.language.Download))),n.a.createElement("tbody",null,this.state.loading?n.a.createElement("tr",null,n.a.createElement("td",{colspan:"6"},n.a.createElement("div",{className:"loader loader-1 mt15"}))):0!==this.state.logs.length?this.state.logs.map(function(a,s){return n.a.createElement("tr",{style:t},n.a.createElement("td",null,a.filename," ",n.a.createElement("br",null),n.a.createElement("b",null,e.context.language.Revision,": ")," ",a.revision),n.a.createElement("td",null,a.module),n.a.createElement("td",null,a.inserted),n.a.createElement("td",null,a.updated),n.a.createElement("td",null,a.skipped),n.a.createElement("td",{className:"text-center"},n.a.createElement("div",{className:"download-icon"},n.a.createElement("a",{className:"action-icon text-success text-bold",onClick:function(){e.downloadLog(a.filename,a.revision)},"data-tip":"Download"},n.a.createElement("i",{className:"csv-icon-download-cloud"}))),n.a.createElement(U.a,{effect:"solid"})))}):n.a.createElement("tr",null,n.a.createElement("td",{colspan:"6"},n.a.createElement("span",{className:"text-danger"},this.context.language.NoLogRecordFound))))),n.a.createElement("a",{id:"downloadFile",className:"hidden",href:this.state.downloadLogLink,download:!0},this.context.language.Download)))))}}]),t}(s.Component);w()($,"contextType",C);var ee=$,te=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={fileManagerTabActive:"",templatesTabActive:"",logManagerTabActive:"active",showTemplateEditMapping:!1},a}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("manager")}},{key:"showManagerOptions",value:function(){var e=this;return n.a.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3"},n.a.createElement("ul",{className:"setting-tab"},n.a.createElement("li",{"data-setting":"setting-tabpane5",className:"setting-tab-list ".concat(this.state.logManagerTabActive),onClick:function(t){e.setState({logManagerTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-layers","aria-hidden":"true"}),this.context.language.LogManager),n.a.createElement("li",{"data-setting":"setting-tabpane1",className:"setting-tab-list pro-tag ".concat(this.state.fileManagerTabActive),onClick:function(t){e.setState({fileManagerTabActive:"active",smartScheduleTabActive:"",scheduledExportTabActive:"",templatesTabActive:"",logManagerTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-hard-drive1","aria-hidden":"true"}),this.context.language.FileManager),n.a.createElement("li",{"data-setting":"setting-tabpane4",className:"setting-tab-list pro-tag ".concat(this.state.templatesTabActive),onClick:function(t){e.setState({templatesTabActive:"active",fileManagerTabActive:"",smartScheduleTabActive:"",scheduledExportTabActive:"",logManagerTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-layout","aria-hidden":"true"}),this.context.language.Templates)))}},{key:"render",value:function(){return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"row"},this.showManagerOptions(),"active"===this.state.fileManagerTabActive?n.a.createElement(Z,null):"active"===this.state.templatesTabActive?n.a.createElement(Z,null):"active"===this.state.logManagerTabActive?n.a.createElement(ee,null):n.a.createElement("div",null,this.context.language.NotSelectedAnyTab)))))}}]),t}(s.Component);w()(te,"contextType",C);var ae=te;function se(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function ne(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?se(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):se(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}var oe=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={customPostType:[],taxonomies:[],moduleRecordCount:"0 Data",customPostOption:"",taxonomiesOption:""},a.moduleName="",a.getModuleData=a.getModuleData.bind(S()(a)),a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.activateExporter&&(this.getPostTypes(),this.getTaxonomies())}},{key:"getPostTypes",value:(o=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_post_types"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),200==a.status&&(this.setState({loading:!1}),this.setState({customPostType:a.data.custom_post_type}));case 8:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"getTaxonomies",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_taxonomies"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),200==a.status&&(this.setState({loading:!1}),this.setState({taxonomies:a.data.taxonomies}));case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getModuleData",value:(a=x()(E.a.mark(function e(t){var a,s,n,o,i=arguments;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=i.length>1&&void 0!==i[1]&&i[1],console.log(t.target.id),s=t.target.id,a&&(s=t.target.name,t.target.id),"Taxonomies"!==s&&"CustomPosts"!==s||!a?this.context.setExportInfo(ne({},this.context.exportInfo,{moduleName:s})):(console.log("Checking Option",t.target.value),this.context.setExportInfo(ne({},this.context.exportInfo,{optionalType:t.target.value,moduleName:s}))),(n=new FormData).set("action","total_records"),n.set("module",s),"Taxonomies"!==s&&"CustomPosts"!==s||!a||n.set("optionalType",t.target.value),this.setState({loading:!0}),e.prev=10,e.next=13,T()({method:"post",url:ajaxurl,data:n,config:{headers:{"Content-Type":"multipart/form-data"}}});case 13:200===(o=e.sent).status&&(console.log("count",o),this.setState({loading:!1}),""!=s?this.setState({moduleRecordCount:o.data+" "+s}):this.setState({moduleRecordCount:o.data+" Data"}),o.data>0?document.getElementById("exportbtn").disabled=!1:document.getElementById("exportbtn").disabled=!0),console.log(this.context.exportInfo),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(10),console.log(e.t0);case 21:case"end":return e.stop()}},e,this,[[10,18]])})),function(e){return a.apply(this,arguments)})},{key:"getExportOption",value:function(){""!=this.context.exportInfo.exportModule?this.context.setShowExport("export-filter"):M.toast.error("Select any module to export")}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},this.context.activateExporter?n.a.createElement("div",{className:"row export"},n.a.createElement("h1",{class:"main-heading pr15 pl15 col-md-12 mt20 mb30"},this.context.language.Selectyourmoduletoexportthedata," ",n.a.createElement("div",{className:"float-right"},this.state.loading?n.a.createElement("div",{className:"btn ajax-loader loading",style:{marginTop:"-5px",marginRight:"-25px"}}):""," ",n.a.createElement("span",{className:"exportData"},this.state.moduleRecordCount," Found"))),n.a.createElement("div",{className:"export-section col-md-6"},n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Posts",onClick:this.getModuleData}),n.a.createElement("label",{for:"Posts"},"Posts")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Pages",onClick:this.getModuleData}),n.a.createElement("label",{for:"Pages"},"Pages")),n.a.createElement("div",{className:"form-group row ml0"},n.a.createElement("div",{className:"col-md-4 pl0"},n.a.createElement("input",{type:"radio",name:"export",id:"CustomPosts",onClick:this.getModuleData}),n.a.createElement("label",{for:"CustomPosts"},"Custom Posts")),n.a.createElement("div",{className:"col-md-8",style:{display:"CustomPosts"===this.context.exportInfo.moduleName?"block":"none"}},n.a.createElement("select",w()({className:"select form-control",id:"customPostOption",name:"CustomPosts",onChange:function(t){e.setState({customPostOption:t.target.value}),e.getModuleData(t,!0)}},"id",""),n.a.createElement("option",{value:""},"-select-"),this.state.customPostType.map(function(e,t){return n.a.createElement("option",{value:e},e)})))),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Tags",onClick:this.getModuleData}),n.a.createElement("label",{for:"Tags"},"Tags")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Categories",onClick:this.getModuleData}),n.a.createElement("label",{for:"Categories"},"Categories")),n.a.createElement("div",{className:"form-group row ml0"},n.a.createElement("div",{className:"col-md-4 pl0"},n.a.createElement("input",{type:"radio",name:"export",id:"Taxonomies",onClick:this.getModuleData}),n.a.createElement("label",{for:"Taxonomies"},"Taxonomies")),n.a.createElement("div",{className:"col-md-8",style:{display:"Taxonomies"===this.context.exportInfo.moduleName?"block":"none"}},n.a.createElement("select",w()({className:"select form-control",id:"taxonomiesOption",name:"Taxonomies",onChange:function(t){e.setState({taxonomiesOption:t.target.value}),e.getModuleData(t,!0)}},"id",""),n.a.createElement("option",{value:""},"-select-"),this.state.taxonomies.map(function(e,t){return n.a.createElement("option",{value:e},e)})))),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Users",onClick:this.getModuleData}),n.a.createElement("label",{for:"Users"},"Users"))),n.a.createElement("div",{className:"export-section offset-md-1 col-md-5"},n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Comments",onClick:this.getModuleData}),n.a.createElement("label",{for:"Comments"},"Comments")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"CustomerReviews",onClick:this.getModuleData}),n.a.createElement("label",{for:"CustomerReviews"},"Customer Reviews")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Eshop",onClick:this.getModuleData}),n.a.createElement("label",{for:"Eshop"},"Eshop")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"WPeCommerce",onClick:this.getModuleData}),n.a.createElement("label",{for:"WPeCommerce"},"Wp-Commerce")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"WooCommerce",onClick:this.getModuleData}),n.a.createElement("label",{for:"WooCommerce"},"Woo-Commerce")),n.a.createElement("div",{className:"form-group"},n.a.createElement("input",{type:"radio",name:"export",id:"Marketpress",onClick:this.getModuleData}),n.a.createElement("label",{for:"Marketpress"},"Marketpress"))),n.a.createElement("div",{className:"col-md-12"},n.a.createElement("div",{className:"float-right"},n.a.createElement("input",{type:"button",className:"smack-btn smack-btn-primary mb20",id:"exportbtn",onClick:function(t){e.getExportOption()},value:this.context.language.Continue})))):n.a.createElement("div",{className:"d-flex justify-content-center align-items-center",style:{minHeight:"300px"}},n.a.createElement("div",{className:"text-center"},n.a.createElement("h5",{style:{color:"#2D3748"},className:"col-md-8 offset-md-2 mb30"},"Please install the Ultimate Exporter to export all your WordPress data as CSV."),n.a.createElement("a",{href:"https://wordpress.org/plugins/wp-ultimate-exporter/",className:"smack-btn smack-btn-secondary",target:"_blank"},"Click here to install")))))}}]),t}(s.Component);function ie(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function le(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ie(a,!0).forEach(function(t){w()(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ie(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}w()(oe,"contextType",C);var re=a(2),ce=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,exportName:"",exportType:"csv",authorList:[],startDate:new Date,endDate:new Date,conditions:{specific_period:{is_check:!1},specific_authors:{is_check:!1,author:""}},enableSchedule:!1,offset:0,exportProgress:"0",totalExportRecord:0,stopWatch:"00:00:00",activeDowloadTab:!1,exportSuccess:!1,showDownloadBtn:!1,exportedFileUrl:""},a.stopSeconds=0,a.stopMinutes=0,a.stopHours=0,a.handleChangeStart=a.handleChangeStart.bind(S()(a)),a.handleChangeEnd=a.handleChangeEnd.bind(S()(a)),a.onInputChange=a.onInputChange.bind(S()(a)),a}var a,s;return f()(t,e),m()(t,[{key:"onInputChange",value:function(e){var t=this;this.setState(w()({},e.target.name,e.target.value),function(){console.log("state",t.state)})}},{key:"handleChangeStart",value:function(e){this.setState({startDate:e})}},{key:"handleChangeEnd",value:function(e){this.setState({endDate:e})}},{key:"componentDidMount",value:function(){this.getAuthors(),setInterval(function(){!this.state.exportSuccess&&this.state.activeDowloadTab&&this.stopWatch()}.bind(this),1e3)}},{key:"getAuthors",value:(s=x()(E.a.mark(function e(){var t,a,s,n,o;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_authors"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(a=e.sent,this.setState({loading:!1}),200==a.status){for(s=a.data.user_id.length,n=[],o=0;o<s;o++)n.push({user_id:a.data.user_id[o],user_name:a.data.user_name[o]});this.setState({authorList:n})}case 8:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"handleCheck",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";a&&(this.state.conditions[e.target.name].is_check=e.target.checked,this.setState({conditions:this.state.conditions},function(){console.log(t.state.conditions)})),a||s||this.setState(w()({},e.target.name,e.target.checked)),s&&(e.target.checked?this.state.eventExclusion.exclusion_headers.header[n]=!0:delete this.state.eventExclusion.exclusion_headers.header[n],this.setState(le({},this.state.eventExclusion,{eventExclusion:this.state.eventExclusion}),function(){console.log(t.state.eventExclusion)}))}},{key:"handleChange",value:function(e){var t=this;console.log(e.target.value);var a=e.target.id;"specific_authors"===a&&(this.state.conditions.specific_authors.author=e.target.value),"specific_status"===a&&(this.state.conditions.specific_status.status=e.target.value),"delimiter"===a&&(this.state.conditions.delimiter.delimiter=e.target.value),"other_delimiter"===a&&(this.state.conditions.delimiter.optional_delimiter=e.target.value),this.setState(le({},this.state.conditions,{conditions:this.state.conditions}),function(){console.log(t.state.conditions)})}},{key:"stopWatch",value:function(){this.stopSeconds++,this.stopSeconds>=60&&(this.stopSeconds=0,this.stopMinutes++,this.stopMinutes>=60&&(this.stopMinutes=0,this.stopHours++)),this.stopHours.toString().length<2&&(this.stopHours="0"+this.stopHours),this.stopMinutes.toString().length<2&&(this.stopMinutes="0"+this.stopMinutes),this.stopSeconds.toString().length<2&&(this.stopSeconds="0"+this.stopSeconds);var e=this.stopHours+":"+this.stopMinutes+":"+this.stopSeconds;this.setState({stopWatch:e})}},{key:"exportConfiguration",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o,i,l,r;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.state.conditions).specific_period.from=re(this.state.startDate).format("YYYY-MM-DD"),t.specific_period.to=re(this.state.endDate).format("YYYY-MM-DD"),console.log("conditions",t),console.log("fileName",this.state.exportName),console.log("exp_type",this.state.exportType),console.log("export_mode","normal"),""!=document.getElementById("export-file-name").value){e.next=11;break}return M.toast.error("Please Type Export File Name"),document.getElementById("export-file-name").focus(),e.abrupt("return");case 11:return this.setState({activeDowloadTab:!0}),(a=new FormData).set("action","parse_data"),a.set("module",this.context.exportInfo.moduleName),"Taxonomies"!==(s=this.context.exportInfo.moduleName)&&"CustomPosts"!==s||a.set("optionalType",this.context.exportInfo.optionalType),a.set("fileName",this.state.exportName),a.set("exp_type",this.state.exportType),a.set("conditions",JSON.stringify(t)),a.set("export_mode","normal"),a.set("offset",this.state.offset),this.setState({loading:!0}),e.next=25,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 25:n=e.sent,o=n.data,console.log("Export Result",n.data),200==n.status&&(i=n.data.new_offset,(l=n.data.total_row_count)<i?this.setState({offset:l}):this.setState({offset:n.data.new_offset}),this.setState({exportSuccess:n.data.success,totalExportRecord:o.total_row_count}),r=o.new_offset/o.total_row_count*100,(r=Math.round(r))>.9&&this.setState({exportProgress:r}),r>=100&&this.setState({exportProgress:"100"}),n.data.success?this.setState({exportedFileUrl:n.data.exported_file,showDownloadBtn:!0}):this.exportConfiguration());case 29:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.state,a=(t.showSplitRecord,t.conditions),s=t.exportName,o=(t.exportType,t.authorList),i={width:this.state.exportProgress+"%"},l={display:this.state.showDownloadBtn?"block":"none"},r={opacity:.6};return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-none":"d-block")},n.a.createElement("div",{className:"row export"},n.a.createElement("h1",{className:"main-heading pr15 pl15 mb20 mt20 col-md-12"},this.context.language.Toexportdatabasedonthefilters),n.a.createElement("div",{className:"col-md-12"},n.a.createElement("div",{className:"form-group col-md-5 row export_file_name"},n.a.createElement("label",null,this.context.language.ExportFileName),n.a.createElement("input",{type:"text",className:"form-control",id:"export-file-name",value:s,onChange:function(t){e.setState({exportName:t.target.value})}}),n.a.createElement("span",{className:"export_file_type"},".",this.state.exportType)),n.a.createElement("hr",null),n.a.createElement("h3",{className:"main-heading"},this.context.language.AdvancedFilters),n.a.createElement("div",{className:"advanced-filter"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"specific_period",id:"export_specific_period",onClick:function(t){e.handleCheck(t,!0)}}),n.a.createElement("label",{for:"export_specific_period"},this.context.language.Exportdataforthespecificperiod)),n.a.createElement("div",{className:"row bg-gray-section pl15 pr15 mt15",style:{display:a.specific_period.is_check?"block":"none"}},n.a.createElement("div",{className:"row"},n.a.createElement("div",{className:"form-group col-md-5"},n.a.createElement("label",{for:""},this.context.language.StartFrom),n.a.createElement(G.a,{className:"form-control",selected:this.state.startDate,onChange:this.handleChangeStart}),n.a.createElement("i",{className:"csv-icon-calendar2 input-icon"})),n.a.createElement("div",{className:"form-group col-md-5"},n.a.createElement("label",{for:""},this.context.language.EndTo," "),n.a.createElement(G.a,{className:"form-control",selected:this.state.endDate,onChange:this.handleChangeEnd}),n.a.createElement("i",{className:"csv-icon-calendar2 input-icon"}))))),n.a.createElement("div",{className:"advanced-filter"},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"specific_authors",id:"export_specific_author",onClick:function(t){e.handleCheck(t,!0)}}),n.a.createElement("label",{for:"export_specific_author"},this.context.language.Exportdatabyspecificauthors)),n.a.createElement("div",{className:"row mt20 bg-gray-section",style:{display:a.specific_authors.is_check?"block":"none"}},n.a.createElement("div",{className:"form-group col-md-5"},n.a.createElement("label",{className:"advanced"},this.context.language.Authors),n.a.createElement("select",{className:"select form-control",id:"specific_authors",value:a.specific_authors.author,onChange:function(t){e.handleChange(t)}},n.a.createElement("option",{value:""},"Select Author"),o.map(function(e){return n.a.createElement("option",{value:e.user_id},e.user_name)}))))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"specific_status",id:"export_specific_status",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export data with the specific status")}}),n.a.createElement("label",{for:"export_specific_status"},this.context.language.Exportdatawiththespecificstatus))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",className:"",name:"delimiter",id:"export_auto_delimiter",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export data with auto delimiters")}}),n.a.createElement("label",{for:"export_auto_delimiter"},this.context.language.Exportdatawithautodelimiters))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",name:"setInclusions",id:"export_specific_inclusion",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export data based on specific Inclusions ")}}),n.a.createElement("label",{for:"export_specific_inclusion",className:""},this.context.language.ExportdatabasedonspecificInclusions))),n.a.createElement("div",{className:"advanced-filter",style:r},n.a.createElement("div",{className:"checkbox"},n.a.createElement("input",{type:"checkbox",id:"export_this_schedule",checked:this.state.enableSchedule,onClick:function(){M.toast.info("Please upgrade to PRO for Export Schedule")}}),n.a.createElement("label",{for:"export_this_schedule"},this.context.language.DoyouwanttoSchedulethisExport))),n.a.createElement("div",{className:"form-group mt30 clearfix"},n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowExport("export-module")}},this.context.language.Back)),n.a.createElement("div",{className:"float-right"},n.a.createElement("button",{type:"button",className:"smack-btn smack-btn-primary",onClick:function(){e.exportConfiguration()}},this.context.language.Export)))))),n.a.createElement("div",{className:"card csv-importer-panel mt20 pt30 pb30 ".concat(this.state.activeDowloadTab?"d-block":"d-none")},n.a.createElement("div",{className:"card-body"},n.a.createElement("div",{className:"importing-details"},n.a.createElement("div",{className:"progress-status"},this.state.exportSuccess&&this.state.exportProgress>"99"?"In Progress":""),n.a.createElement("div",{className:"import-progress"},n.a.createElement("div",{className:"progress-loading"},this.state.exportProgress+"%"," ",this.context.language.Completed),n.a.createElement("div",{className:"progress-timing"},n.a.createElement("i",{className:"csv-icon-schedule"})," ",this.state.stopWatch))),n.a.createElement("div",{className:"progress mt10 mb40"},n.a.createElement("div",{className:"progress-bar",role:"progressbar",style:i,"aria-valuenow":"10","aria-valuemin":"0","aria-valuemax":"100"})),n.a.createElement("p",{className:"float-none"},this.context.language.DataExported," :"," ",n.a.createElement("span",null,this.state.offset)," /"," ",this.state.totalExportRecord," "),n.a.createElement("div",{className:"form-group mt30 clearfix"},n.a.createElement("div",{className:"float-right"},n.a.createElement("a",{href:this.state.exportedFileUrl,style:l,download:!0,className:"smack-btn smack-btn-primary",onClick:function(){window.location.href}},n.a.createElement("i",{className:"csv-icon-download-cloud mr10"}),this.context.language.Download)),n.a.createElement("div",{className:"float-left"},n.a.createElement("button",{type:"button",className:"smack-btn btn-default",onClick:function(){e.context.setShowExport("export-module")}},this.context.language.Back))))))}}]),t}(s.Component);w()(ce,"contextType",C);var me=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"render",value:function(){return"export-module"===this.context.showExport?n.a.createElement(oe,null):"export-filter"===this.context.showExport?n.a.createElement(ce,null):void 0}}]),t}(s.Component);w()(me,"contextType",C);var de=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,drop_table:!1,send_log_email:!1,send_user_password:!1,woocomattr:!1,CMB2metafields:""},a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.displayGeneralSettings(),this.context.setSelectedTabOnCookies("settings")}},{key:"displayGeneralSettings",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_options"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),this.setState({loading:!1}),void 0!==a.data.options&&a.data.options,this.setState(a.data.options),200==a.status&&a.data.success;case 11:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"updateGeneralSetting",value:(a=x()(E.a.mark(function e(t,a){var s,n;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return"drop_table"===a?this.setState({drop_table:t.target.checked}):"send_log_email"===a?this.setState({send_log_email:t.target.checked}):"send_user_password"===a?this.setState({send_user_password:t.target.checked}):"woocomattr"===a&&this.setState({woocomattr:t.target.checked}),console.log(t.target.checked),(s=new FormData).set("action","settings_options"),s.set("option",a),"cmb2"===a?s.set("value",t.target.value):s.set("value",t.target.checked),console.log(this.state[a]),this.setState({loading:!0}),e.next=10,T()({method:"post",url:ajaxurl,data:s,config:{headers:{"Content-Type":"multipart/form-data"}}});case 10:n=e.sent,console.log("Response",n),this.setState({loading:!1}),200==n.status&&n.data.success&&M.toast.success("Settings Successfully Updated");case 14:case"end":return e.stop()}},e,this)})),function(e,t){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane1 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-10 mt20"},n.a.createElement("h1",{className:"main-heading"},this.context.language.GeneralSettings," "),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.DropTable),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("h1",null,this.state.drop_table),n.a.createElement("input",{type:"checkbox",className:"form-control",id:"drop-table-check",checked:this.state.drop_table,onChange:function(t){e.updateGeneralSetting(t,"drop_table")}}),n.a.createElement("label",{className:"switch-ios",for:"drop-table-check"},n.a.createElement("i",null))))),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.Scheduledlogmails),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Enabletogetscheduledlogmails)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",onClick:function(){e.setState({send_log_email:!1},function(){M.toast.info("Please Upgrade to PRO for this Feature")})},checked:this.state.send_log_email,id:"scheduled-log-check"}),n.a.createElement("label",{className:"switch-ios",for:"scheduled-log-check"},n.a.createElement("i",null))))),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.Sendpasswordtouser),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Enabletosendpasswordinformationthroughemail)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.send_user_password,onClick:function(t){e.updateGeneralSetting(t,"send_user_password")},id:"send-information"}),n.a.createElement("label",{className:"switch-ios",for:"send-information"},n.a.createElement("i",null))))),n.a.createElement("div",{className:"form-group row"},n.a.createElement("div",{className:"col-xs-12 col-sm-8 col-md-8 nopadding"},n.a.createElement("h4",null,this.context.language.WoocommerceCustomattribute),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Enablestoregisterwoocommercecustomattribute)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3"},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.send_log_email,onClick:function(){e.setState({send_log_email:!1},function(){M.toast.info("Please Upgrade to PRO for this Feature")})},id:"register-woocommerce"}),n.a.createElement("label",{className:"switch-ios",for:"register-woocommerce"},n.a.createElement("i",null)))))))))}}]),t}(s.Component);w()(de,"contextType",C);var ue=de,pe=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,securityData:[],author_editor_access:!1},a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.displaySecurityPerformance(),this.displayGeneralSettings(),this.context.setSelectedTabOnCookies("settings")}},{key:"displayGeneralSettings",value:(o=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","get_options"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),this.setState({loading:!1}),this.setState(a.data.options);case 9:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"updateGeneralSetting",value:(s=x()(E.a.mark(function e(t){var a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.setState({author_editor_access:t.target.checked}),(a=new FormData).set("action","settings_options"),a.set("option","author_editor_access"),a.set("value",t.target.checked),this.setState({loading:!0}),e.next=8,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:s=e.sent,console.log("Response",s),this.setState({loading:!1}),200==s.status&&s.data.success&&M.toast.success("Settings Successfully Updated");case 12:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"displaySecurityPerformance",value:(a=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","security_performance"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),this.setState({loading:!1}),200==a.status&&(this.setState({securityData:a.data}),console.log(this.state.securityData));case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane3 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-10 mt20"},n.a.createElement("h1",{className:"main-heading pb5"},this.context.language.SecurityandPerformance),n.a.createElement("div",{className:"form-group row mt30"},n.a.createElement("div",{className:"col-xs-12 col-sm-7 col-md-7 nopadding"},n.a.createElement("h4",null,this.context.language.Allowauthorseditorstoimport),n.a.createElement("small",{className:"form-text text-muted"},this.context.language.Thisenablesauthorseditorstoimport)),n.a.createElement("div",{className:"col-xs-12 col-sm-4 col-md-3 "},n.a.createElement("div",{className:"form-group col-md-6 fieldset"},n.a.createElement("input",{type:"checkbox",className:"ios-switch",checked:this.state.author_editor_access,onClick:function(t){e.updateGeneralSetting(t)},id:"two"}),n.a.createElement("label",{className:"switch-ios inline",for:"two"},n.a.createElement("i",null))))),n.a.createElement("table",{className:"table table-striped"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("th",{colspan:"3"},n.a.createElement("h5",{className:"text-capitalize"},this.context.language.MinimumrequiredphpinivaluesIniconfiguredvalues))),n.a.createElement("tr",null,n.a.createElement("th",null,n.a.createElement("label",null,this.context.language.Variables)),n.a.createElement("th",{className:"ini-configured-values"},n.a.createElement("label",null,this.context.language.SystemValues)),n.a.createElement("th",{className:"min-requirement-values"},n.a.createElement("label",null,this.context.language.MinimumRequirements))),n.a.createElement("tr",null,n.a.createElement("td",null,"post_max_size "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.post_max_size?this.state.securityData.post_max_size:"-"),n.a.createElement("td",{className:"min-requirement-values"},"10M")),n.a.createElement("tr",null,n.a.createElement("td",null,"auto_append_file"),n.a.createElement("td",{className:"ini-configured-values"}," ",""!==this.state.securityData.auto_append_file?this.state.securityData.auto_append_file:"-"," "),n.a.createElement("td",{className:"min-requirement-values"},"-")),n.a.createElement("tr",null,n.a.createElement("td",null,"auto_prepend_file "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.auto_prepend_file?this.state.securityData.auto_prepend_file:"-"),n.a.createElement("td",{className:"min-requirement-values"},"-")),n.a.createElement("tr",null,n.a.createElement("td",null,"upload_max_filesize "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.upload_max_filesize?this.state.securityData.upload_max_filesize:"-"),n.a.createElement("td",{className:"min-requirement-values"},"2M")),n.a.createElement("tr",null,n.a.createElement("td",null,"file_uploads "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.file_uploads?this.state.securityData.file_uploads:"-"),n.a.createElement("td",{className:"min-requirement-values"},"On")),n.a.createElement("tr",null,n.a.createElement("td",null,"allow_url_fopen "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.allow_url_fopen?this.state.securityData.allow_url_fopen:"-"),n.a.createElement("td",{className:"min-requirement-values"},"On")),n.a.createElement("tr",null,n.a.createElement("td",null,"max_execution_time "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_execution_time?this.state.securityData.max_execution_time:"-"),n.a.createElement("td",{className:"min-requirement-values"},"3000")),n.a.createElement("tr",null,n.a.createElement("td",null,"max_input_time "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_input_time?this.state.securityData.max_input_time:"-"),n.a.createElement("td",{className:"min-requirement-values"},"3000")),n.a.createElement("tr",null,n.a.createElement("td",null,"max_input_vars "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.max_input_vars?this.state.securityData.max_input_vars:"-"),n.a.createElement("td",{className:"min-requirement-values"},"3000")),n.a.createElement("tr",null,n.a.createElement("td",null,"memory_limit "),n.a.createElement("td",{className:"ini-configured-values"},""!==this.state.securityData.wp_memory_limit?this.state.securityData.wp_memory_limit:"-"),n.a.createElement("td",{className:"min-requirement-values"},"99M")))),n.a.createElement("h4",{class:"mt30"},this.context.language.RequiredtoenabledisableLoadersExtentionsandmodules),n.a.createElement("table",{className:"table table-striped"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",null,"PDO"),n.a.createElement("td",null,""!==this.state.securityData.PDO?this.state.securityData.PDO:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",null,"Curl "),n.a.createElement("td",null,""!==this.state.securityData.curl?this.state.securityData.curl:"-"),n.a.createElement("td",null)))),n.a.createElement("h4",{className:"mt30"},this.context.language.DebugInformation),n.a.createElement("table",{className:"table table-striped"},n.a.createElement("tbody",null,n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name",style:{width:"25%"}},"WordPress Version"),n.a.createElement("td",null,""!==this.state.securityData.wp_version?this.state.securityData.wp_version:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"PHP Version"),n.a.createElement("td",null,""!==this.state.securityData.php_version?this.state.securityData.php_version:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"MySQL Version"),n.a.createElement("td",null,""!==this.state.securityData.db_version?this.state.securityData.db_version:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"Server SoftWare"),n.a.createElement("td",null,""!==this.state.securityData.server_software?this.state.securityData.server_software:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"Your User Agent"),n.a.createElement("td",null,""!==this.state.securityData.http_agent?this.state.securityData.http_agent:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"WPDB Prefix"),n.a.createElement("td",null,""!==this.state.securityData.db_prefix?this.state.securityData.db_prefix:"-"),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"WP Multisite Mode"),n.a.createElement("td",null,""!==this.state.securityData.wp_multi_site?this.state.securityData.wp_multi_site:"-"," "),n.a.createElement("td",null)),n.a.createElement("tr",null,n.a.createElement("td",{className:"debug-info-name"},"WP Memory Limit"),n.a.createElement("td",null,""!==this.state.securityData.wp_memory_limit?this.state.securityData.wp_memory_limit:"-"),n.a.createElement("td",null))))))))}}]),t}(s.Component);w()(pe,"contextType",C);var he=pe,ge=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("settings")}},{key:"render",value:function(){return n.a.createElement("div",{className:"col-sm-8 col-md-9"},n.a.createElement("div",{className:"setting-tab-pane setting-tabpane4 active"},n.a.createElement("div",{className:"row justify-content-center"},n.a.createElement("div",{className:"col-md-10 mt20"},n.a.createElement("h1",{className:"main-heading"},this.context.language.Documentation),n.a.createElement("div",{className:"embed-responsive embed-responsive-16by9"},n.a.createElement("iframe",{className:"embed-responsive-item",src:"https://www.youtube.com/embed/GbDlQcbnNJY",allowfullscreen:!0})),n.a.createElement("h1",{className:"main-heading"},this.context.language.SmackcodersGuidelines),n.a.createElement("ul",{className:"list-unstyled"},n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/OAVF9u",target:"_blank"},this.context.language.DevelopmentNews," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/kKWPui",target:"_blank"},this.context.language.WhatsNew," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/hyU5G1",target:"_blank"},this.context.language.Documentation," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://www.youtube.com/watch?v=48soc8Wu4zs&feature=youtu.be",target:"_blank"},this.context.language.YoutubeChannel," ")),n.a.createElement("li",null,n.a.createElement("a",{href:"https://goo.gl/smw3WV",target:"_blank"},this.context.language.OtherWordPressPlugins," ")))))))}}]),t}(s.Component);w()(ge,"contextType",C);var fe=ge,ve=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={generalSettingsTabActive:"active",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:""},a}return f()(t,e),m()(t,[{key:"showSettingsOptions",value:function(){var e=this;return n.a.createElement("div",{className:"setting-tab-section col-sm-4 col-md-3"},n.a.createElement("ul",{className:"setting-tab"},n.a.createElement("li",{"data-setting":"setting-tabpane1",className:"setting-tab-list ".concat(this.state.generalSettingsTabActive),onClick:function(t){e.setState({generalSettingsTabActive:"active",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-cog","aria-hidden":"true"}),this.context.language.GeneralSettings),n.a.createElement("li",{"data-setting":"setting-tabpane2",className:"setting-tab-list pro-tag ".concat(this.state.databaseOptimizationTabActive),onClick:function(t){e.setState({databaseOptimizationTabActive:"active",generalSettingsTabActive:"",securityAndPerformanceTabActive:"",documentationTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-database","aria-hidden":"true"}),this.context.language.DatabaseOptimization),n.a.createElement("li",{"data-setting":"setting-tabpane3",className:"setting-tab-list ".concat(this.state.securityAndPerformanceTabActive),onClick:function(t){e.setState({securityAndPerformanceTabActive:"active",generalSettingsTabActive:"",databaseOptimizationTabActive:"",documentationTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-settings1","aria-hidden":"true"})," ",this.context.language.SecurityandPerformance),n.a.createElement("li",{"data-setting":"setting-tabpane4",className:"setting-tab-list ".concat(this.state.documentationTabActive),onClick:function(t){e.setState({documentationTabActive:"active",generalSettingsTabActive:"",databaseOptimizationTabActive:"",securityAndPerformanceTabActive:"",mediaReportTabActive:""})}},n.a.createElement("i",{className:"csv-icon-file-text","aria-hidden":"true"})," ",this.context.language.Documentation)))}},{key:"render",value:function(){return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"row"},this.showSettingsOptions(),"active"===this.state.generalSettingsTabActive?n.a.createElement(ue,null):"active"===this.state.databaseOptimizationTabActive?n.a.createElement(Z,null):"active"===this.state.securityAndPerformanceTabActive?n.a.createElement(he,null):"active"===this.state.documentationTabActive?n.a.createElement(fe,null):n.a.createElement("div",null," ",this.context.language.NotSelectedAnyTab," "))))}}]),t}(s.Component);w()(ve,"contextType",C);var Ee=ve,be=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loadingSupport:!1,loadingSubscription:!1,supportEmail:"",supportType:"",message:"",newsletterEmail:"",errors:""},a.supportEmail="",a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.context.setSelectedTabOnCookies("support")}},{key:"submitContactForm",value:(s=x()(E.a.mark(function e(t){var a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).set("action","support_mail"),a.set("email",this.state.supportEmail),a.set("query",this.state.supportType),a.set("message",this.state.message),this.setState({loadingSupport:!0}),e.next=8,T()({method:"post",url:ajaxurl,data:a,config:{headers:{"Content-Type":"multipart/form-data"}}});case 8:s=e.sent,console.log("Response",s),200==s.status&&(this.setState({loadingSupport:!1,supportEmail:"",message:""}),M.toast.success("Mail Sent Successfully"));case 11:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)})},{key:"submitSubscriptionForm",value:(a=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","send_subscribe_email"),t.set("subscribe_email",this.state.newsletterEmail),this.setState({loadingSubscription:!0}),e.next=6,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:a=e.sent,console.log("Response",a),a&&a.data&&200==a.status&&(this.setState({loadingSubscription:!1,newsletterEmail:""}),M.toast.success("Successfull Subscribe to Newsletter"));case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"handleValidation",value:function(e){this.supportEmail=e;var t=!0;if(""===this.supportEmail&&(t=!1),void 0!==this.supportEmail){var a=this.supportEmail.lastIndexOf("@"),s=this.supportEmail.lastIndexOf(".");t=a<s&&a>0&&-1==this.supportEmail.indexOf("@@")&&s>2&&this.supportEmail.length-s>2}return t}},{key:"render",value:function(){var e=this;return n.a.createElement("div",{id:"mapping-accordion",className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"card-body"},n.a.createElement("div",{className:"row justify-content-around"},n.a.createElement("div",{className:"col-md-12 text-center mt10 mb30"},n.a.createElement("p",null,this.context.language.LoveWPUltimateCSVImporterGivea5starreviewon," ",n.a.createElement("a",{className:"csv-link",href:"https://wordpress.org/support/plugin/wp-ultimate-csv-importer/reviews/?filter=5",target:"_blank"}," wordpress.org!"))),n.a.createElement("div",{className:"col-md-6"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.ContactSupport),n.a.createElement("form",{method:"",action:""},n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.language.Email),n.a.createElement("input",{type:"text",className:"form-control",value:this.state.supportEmail,onChange:function(t){e.setState({supportEmail:t.target.value}),e.handleValidation(e.state.supportEmail)?e.setState({errors:""}):e.setState({errors:"Email is not Valid"})}}),n.a.createElement("p",{style:{color:"red"}},this.state.errors)),n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.Supporttype),n.a.createElement("select",{className:"form-control",value:this.state.supportType,onClick:function(t){e.setState({supportType:t.target.value})}},n.a.createElement("option",{value:"bug_reporting"},this.context.language.BugReporting),n.a.createElement("option",{value:"feature_enhancement"},this.context.language.FeatureEnhancement))),n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.language.Message),n.a.createElement("textarea",{className:"form-control",value:this.state.message,onChange:function(t){e.setState({message:t.target.value})},rows:"5"})),n.a.createElement("div",{className:"form-group d-flex justify-content-end"},this.state.loadingSupport?this.context.loaderText:n.a.createElement("input",{type:"button",name:"",onClick:function(t){""===e.state.errors&&""!==e.state.message?e.submitContactForm.bind(e)(t):(""!==e.state.errors&&M.toast.info("Email you entered is not valid"),""===e.state.message&&M.toast.info("You don't describe the bug or feature you want to enhance"))},className:"smack-btn smack-btn-primary",value:this.context.language.Send}))))),n.a.createElement("div",{className:"col-md-6"},n.a.createElement("div",{className:"border-container"},n.a.createElement("h5",{className:"border-container-header"},this.context.language.NewsletterSubscription),n.a.createElement("form",{action:"",method:""},n.a.createElement("div",{className:"form-group"},n.a.createElement("label",null,this.context.language.Email),n.a.createElement("input",{type:"email",name:"",className:"form-control",value:this.state.newsletterEmail,onChange:function(t){e.setState({newsletterEmail:t.target.value}),e.handleValidation(e.state.newsletterEmail)?e.setState({errorsSubscribe:""}):e.setState({errorsSubscribe:"Email entered is not Valid"})}}),n.a.createElement("p",{style:{color:"red"}},this.state.errorsSubscribe)),n.a.createElement("div",{className:"form-group d-flex justify-content-end"},this.state.loadingSubscription?this.context.loaderText:n.a.createElement("input",{type:"button",name:"",className:"smack-btn smack-btn-primary",onClick:function(){""===e.state.errorsSubscribe?e.submitSubscriptionForm():M.toast.info("Email you entered is not valid")},value:this.context.language.Subscribe})))),n.a.createElement("div",{className:"mt40 p15"},n.a.createElement("h5",null,this.context.language.Note),n.a.createElement("div",{className:"mt20"},n.a.createElement("i",{className:"csv-icon-document-text text-primary mr5"}),this.context.language.SubscribetoSmackcodersMailinglistafewmessagesayear),n.a.createElement("div",{className:"mt20"},n.a.createElement("i",{className:"csv-icon-mail text-primary mr5"}),this.context.language.Pleasedraftamailto," ",n.a.createElement("span",{className:"text-primary font-weight-bold"},"support@smackcoders.com.")," ",this.context.language.Ifyoudoesnotgetanyacknowledgementwithinanhour)))))))}}]),t}(s.Component);w()(be,"contextType",C);var xe=be,ye=a(102),Se=function(e){function t(e){var a;return r()(this,t),(a=u()(this,h()(t).call(this,e))).state={loading:!1,barChartLabel:[],createdValue:[],skippedValue:[],updatedValue:[],monthList:[],lineChartData:[]},a.chartOptions={scales:{xAxes:[{stacked:!0}],yAxes:[{stacked:!0}],maintainAspectRatio:!1,delay:500}},a.lineOptions={scales:{maintainAspectRatio:!1,delay:500}},a.lineDataNew=[],a}var a,s;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.getBarData(),this.listLastMonths(),this.getLineData(),this.context.setSelectedTabOnCookies("dashboard")}},{key:"getRandomColor",value:function(){var e=new Array("#e8e8e8","#f5ddde","#bee4e5","#cfe0c7","#f7e4bb","#9c89b8 ","#f0a6ca","#efc3e6","#f0e6ef","#b8bedd");return e[Math.floor(Math.random()*e.length)]}},{key:"getLineData",value:(s=x()(E.a.mark(function e(){var t,a,s,n,o,i,l,r,c,m,d,u,p;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","LineChart"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(200==(a=e.sent).status&&a.data.success){for(console.log(a.data),s=a.data,n={data:[],label:a.data.label,color:[]},o=0;o<s.data.length;o++){for(i=[],l=0;l<s.data[o].length;l++)r=parseInt(s.data[o][l]),i.push(r);n.data.push(i),n.color.push(this.getRandomColor())}for(m in console.log(n),this.setState({lineChartData:n}),c=[],n)if(n.hasOwnProperty(m))for(d=0;d<n.label.length;d++)u={label:"",fill:!0,stack:"stack1",lineTension:.6,borderCapStyle:"round",borderDashOffset:0,borderJoinStyle:"miter",backgroundColor:"rgba(75,192,192,0.1)",borderColor:"",pointBackgroundColor:"#fff",pointBorderWidth:1,pointHoverRadius:5,pointHoverBorderWidth:2,pointRadius:1,pointHitRadius:10,data:[]},"data"===m&&(Object.assign(u,{data:n[m][d]}),c.push(u)),"label"===m&&(c[d].label=n[m][d]),"color"===m&&(p=this.getRandomColor(),c[d].borderColor=p,c[d].backgroundColor="rgba(".concat(p,",0.1)"));console.log("lineDataSet",c),this.lineDataNew=c,this.forceUpdate()}case 7:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getBarData",value:(a=x()(E.a.mark(function e(){var t,a,s,n,o,i,l,r,c;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","BarChart"),this.setState({loading:!0}),e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:if(200==(a=e.sent).status&&a.data.success){for(o in s=a.data,n=[],s)s.hasOwnProperty(o)&&"success"!==o&&n.push(o);for(c in this.setState({barChartLabel:n}),i=[],l=[],r=[],s)s.hasOwnProperty(c)&&"success"!==c&&(i.push(s[c].created),l.push(s[c].skipped),r.push(s[c].updated));this.setState({createdValue:i,skippedValue:l,updatedValue:r})}case 7:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"listLastMonths",value:function(){var e,t=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),a=(new Date).getMonth()+1,s=[];for(e=0;e<12;e++)s.push(t[a]),++a>11&&(a=0);this.setState({monthList:s})}},{key:"render",value:function(){this.state.lineChartData;return this.lineData={labels:this.state.monthList,datasets:this.lineDataNew},this.barData={labels:this.state.barChartLabel,datasets:[{stack:"stack1",backgroundColor:"rgba(255,99,132,1)",borderColor:"rgba(255,99,132,1)",label:"Inserted",data:this.state.createdValue},{stack:"stack1",label:"Updated",backgroundColor:"rgba(44,195,193,1)",borderColor:"rgba(255,99,132,1)",data:this.state.updatedValue},{stack:"stack1",label:"Skipped",backgroundColor:"rgba(50, 173, 255,1)",borderColor:"rgba(50, 173, 255,1)",data:this.state.skippedValue}]},n.a.createElement("div",{className:" container"},n.a.createElement("div",{className:"csv-importer-panel mt20"},n.a.createElement("div",null,n.a.createElement("div",{className:"col-md-12 mb30"},n.a.createElement("h2",{className:"main-heading"},this.context.language.ImportersActivity),n.a.createElement(ye.b,{data:this.lineData,width:"1000px",height:"450px",options:this.lineOptions})),n.a.createElement("hr",null),n.a.createElement("div",{className:"col-md-12"},n.a.createElement("h2",{className:"main-heading"},this.context.language.ImportStatistics),n.a.createElement(ye.a,{data:this.barData,width:"1000px",height:"450px",options:this.chartOptions})))))}}]),t}(s.Component);w()(Se,"contextType",C);var Ne=Se,we=a(76),Ce=a.n(we),ke=function(){var e=Object(s.useState)(!1),t=Ce()(e,2),a=t[0],o=t[1],i=Object(s.useState)(!1),l=Ce()(i,2),r=l[0],c=l[1],m=Object(s.useState)(!1),d=Ce()(m,2),u=d[0],p=d[1];function h(){return(h=x()(E.a.mark(function e(){var t,a,s;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","active_addons"),e.prev=2,e.next=5,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 5:a=e.sent,console.log(a),s=a.data,o(s.exporter),p(s.woocommerce),c(s.users),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),console.log(e.t0);case 16:case"end":return e.stop()}},e,null,[[2,13]])}))).apply(this,arguments)}return Object(s.useEffect)(function(){!function(){h.apply(this,arguments)}()},[]),n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"card csv-importer-panel mt20"},n.a.createElement("div",{className:"col-md-12 pt50 pb50"},n.a.createElement("div",{class:"row justify-content-center"},n.a.createElement("div",{class:"csv-addon-box import-woocommerce"},n.a.createElement("div",{className:"addon-header"},n.a.createElement("h2",null,"import woocommerce"),n.a.createElement("p",null,"Import any bulk WooCommerce Products data in CSV")),n.a.createElement("div",{class:"sub_fields"},n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"Highlights"),n.a.createElement("ul",null,n.a.createElement("li",null,"Product Types simple, grouped, variable, external type import."),n.a.createElement("li",null,"Featured Product Import from URL"),n.a.createElement("li",null,"Gallery image import"),n.a.createElement("li",null,"Duplicate detection"))),n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"File Type"),n.a.createElement("ul",null,n.a.createElement("li",null,"Supports UTF-8 CSV file")))),u?n.a.createElement("h5",null,"Already Installed"):n.a.createElement("a",{href:"https://wordpress.org/plugins/import-woocommerce/",target:"_blank",class:"smack-btn btn-install btn-block"},"Install")),n.a.createElement("div",{class:"csv-addon-box import-users"},n.a.createElement("div",{className:"addon-header"},n.a.createElement("h2",null,"Import Users"),n.a.createElement("p",null,"Import User info into WordPress in bulk.")),n.a.createElement("div",{class:"sub_fields"},n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"Highlights"),n.a.createElement("ul",null,n.a.createElement("li",null,"WP-Members add-on support"),n.a.createElement("li",null,"Default custom fields import"),n.a.createElement("li",null,"Sends automated password notification email(optional)"))),n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"File Type"),n.a.createElement("ul",null,n.a.createElement("li",null,"Supports UTF-8 CSV file")))),r?n.a.createElement("h5",null,"Already Installed"):n.a.createElement("a",{href:"https://wordpress.org/plugins/import-users/",target:"_blank",class:"smack-btn btn-install btn-block"},"Install")),n.a.createElement("div",{class:"csv-addon-box ultimate-exporter"},n.a.createElement("div",{className:"addon-header"},n.a.createElement("h2",null,"Wp Ultimate Exporter"),n.a.createElement("p",null,"Export all your WordPress data as CSV file for backup.")),n.a.createElement("div",{class:"sub_fields"},n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"Highlights"),n.a.createElement("ul",null,n.a.createElement("li",null,"Support Post, Page & Custom Post"),n.a.createElement("li",null,"Supports default custom fields"),n.a.createElement("li",null,"Filtered export based on period of time & authors"))),n.a.createElement("div",{class:"sub_field"},n.a.createElement("h3",null,"File Type"),n.a.createElement("ul",null,n.a.createElement("li",null,"UTF-8 encoded CSV file")))),a?n.a.createElement("h5",null,"Already Installed"):n.a.createElement("a",{href:"https://wordpress.org/plugins/wp-ultimate-exporter/",target:"_blank",class:"smack-btn btn-install btn-block"},"Install"))))))},Fe=a(39),Te=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,n=new Array(s),o=0;o<s;o++)n[o]=arguments[o];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(n))),w()(S()(a),"state",{showMaintenanceMode:!1,selectedTab:"import-update",activateExporter:!1}),a}var a,s,o;return f()(t,e),m()(t,[{key:"componentDidMount",value:function(){this.checkExporterEnable(),this.checkMaintenanceMode();var e=new Fe.a;if(e.get("selectedTab")||e.set("selectedTab","import-update",{path:"/"}),this.setState({selectedTab:e.get("selectedTab")}),!window.wpr_object.file)return window.wpr_object?(window.wpr_object.file=Me,this.context.setLanguage(window.wpr_object.file),void this.forceUpdate()):void(window.wpr_object={file:Me});this.context.setLanguage(JSON.parse(window.wpr_object.file)),this.forceUpdate()}},{key:"checkExporterEnable",value:(o=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","check_export"),e.next=4,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 4:a=e.sent,console.log("Exporter",a),console.log("Exporter"),this.context.setActivateExporter(a.data.success);case 8:case"end":return e.stop()}},e,this)})),function(){return o.apply(this,arguments)})},{key:"checkMaintenanceMode",value:(s=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","checkmain_mode"),e.next=4,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 4:if(a=e.sent,console.log("showMaintenanceMode",a),!a||!a.data){e.next=11;break}if(200!=a.status||!a.data.success){e.next=11;break}return this.setState({showMaintenanceMode:!0}),this.context.setMaintenanceMode(!0),e.abrupt("return");case 11:this.setState({showMaintenanceMode:!1}),this.context.setMaintenanceMode(!1);case 13:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"disableMaintenanceMode",value:(a=x()(E.a.mark(function e(){var t,a;return E.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(t=new FormData).set("action","settings_options"),t.set("option","enable_main_mode"),t.set("value",!1),e.next=6,T()({method:"post",url:ajaxurl,data:t,config:{headers:{"Content-Type":"multipart/form-data"}}});case 6:a=e.sent,console.log(a),a.data.success&&(this.context.setMaintenanceMode(!1),location.reload());case 9:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})},{key:"render",value:function(){var e=this;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:" container"},n.a.createElement("div",{className:"row tab-section justify-content-center"},n.a.createElement("ul",{class:"tabs col-sm-12 col-md-12"},n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("dashboard"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"dashboard"})}},this.context.language.Dashboard),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("import-update"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"import-update"})}},this.context.language.ImportUpdate),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("manager"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"manager"})}},this.context.language.Manager),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("export"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"export"})}},this.context.language.Export),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("settings"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"settings"})}},this.context.language.Settings),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("addons"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"addons"})}},"Addons"),n.a.createElement("li",{className:"tab-list col col-xs-6 ".concat("support"===this.state.selectedTab?"active":""),onClick:function(){return e.setState({selectedTab:"support"})}},this.context.language.Support)))),n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"float-right"},n.a.createElement("ul",{className:"d-flex mb-0"},n.a.createElement("li",null,n.a.createElement("a",{className:"csv-link",href:"https://goo.gl/jdPMW8",target:"_blank"},"Documentation")),n.a.createElement("li",{className:"ml-4"},n.a.createElement("a",{className:"csv-link",href:"https://goo.gl/fKvDxH",target:"_blank"},"Sample CSV")))),n.a.createElement("div",{className:"clearfix"})),this.state.showMaintenanceMode?n.a.createElement("div",{className:"container"},n.a.createElement("div",{className:"maintenance-mode"},n.a.createElement("span",null,n.a.createElement("img",{src:"".concat(window.wpr_object.imagePath,"alert.png")})),"maintenance mode is enabled"," ",n.a.createElement("button",{type:"button",class:"csv-link",onClick:function(){return e.disableMaintenanceMode()}},"Disable"))):"","import-update"===this.state.selectedTab?n.a.createElement(X,null):"manager"===this.state.selectedTab?n.a.createElement(ae,null):"export"===this.state.selectedTab?n.a.createElement(me,null):"addons"===this.state.selectedTab?n.a.createElement(ke,null):"settings"===this.state.selectedTab?n.a.createElement(Ee,null):"support"===this.state.selectedTab?n.a.createElement(xe,null):"dashboard"===this.state.selectedTab?n.a.createElement(Ne,null):"")}}]),t}(s.Component);w()(Te,"contextType",C);var Me={ImportUpdate:"Import / Update",Dashboard:"Dashboard",Manager:"Manager",Export:"Export",Settings:"Settings",Support:"Support",UploadfromDesktop:"Upload from Desktop",UploadfromFTPSFTP:"Upload from FTP / SFTP",UploadfromURL:"Upload from URL",ChoosFileintheServer:"Choose File in the Server","Drag&Dropyourfilesor":"Drag & Drop your files or",Browse:"Browse",NewItem:"New Item",ExistingItems:"Existing Items",ImportEachRecordAs:"Importa each record as",Continue:"Continue",Search:"Search",FromDate:"From Date",ToDate:"To Date",SEARCH:"SEARCH",SavedTemplate:"Saved Template",TEMPLATES:"TEMPLATES NAME",MATCHEDCOLUMNSCOUNT:"MATCHED COLUMNS COUNT",MODULE:"MODULE",CREATEDTIME:"CREATED TIME",ACTION:"ACTION",USETEMPLATE:"USE TEMPLATE",CREATENEWMAPPING:"CREATE NEW MAPPING",BACK:"BACK",ADVANCEDMODE:"ADVANCED MODE",DRAGDROPMODE:"DRAG & DROP MODE",WordpressFields:"Wordpress Fields",WPFIELDS:"WP Fields",CSVHEADER:"CSV Header",Action:"Action",Name:"Name",HINT:"HINT",Example:"Example",WordPressCoreFields:"WordPress Core Fields",ACFFreeFields:"ACF Free Fields",ACFFields:"ACF Fields",ACFGroupFields:"ACF Group Fields",ACFProFields:"ACF Pro Fields",ACFRepeaterFields:"ACF Repeater Fields",TypesCustomFields:"Types Custom Fields",PodsFields:"Pods Fields",CustomFieldSuite:"Custom Field Suite",AllInOneSeoFields:"All In One Seo Fields",YoastSeoFields:"Yoast Seo Fields",BillingAndShippingInformation:"Billing and Shipping Information",CustomFieldsWPMemberFields:"Custom Fields WP Member Fields",CustomFieldsMemberFields:"Custom Fields Member Fields",ProductMetaFields:"Product Meta Fields",OrderMetaFields:"Order Meta Fields",CouponMetaFields:"Coupon Meta Fields",RefundMetaFields:"Refund Meta Fields",WPECommerceCustomFields:"WP ECommerce Custom Fields",EventsManagerFields:"Events Manager Fields",NextGENGalleryFields:"NextGEN Gallery Fields",WPMLFields:"WPML Fields",CMB2CustomFields:"CMB2 Custom Fields",WordPressCustomFields:"WordPress Custom Fields",TermsandTaxonomies:"Terms and Taxonomies",IsSerialized:"Is Serialized",NoCustomFieldsFound:"No Custom Fields Found",MediaUploadFields:"Media Upload Fields",UploadMedia:"Upload Media",UploadedListofFiles:"Uploaded List of Files",UploadedMediaFileLists:"Uploaded Media File Lists",SavethismappingasTemplate:"Save this mapping as Template",Save:"Save",Doyouneedtoupdatethecurrentmapping:"Do you need to update the current mapping ?",Savethecurrentmappingasnewtemplate:"Save the current mapping as new template",Back:"Back",Size:"Size",MediaHandling:"Featured Image Media Handling",Downloadexternalimagestoyourmedia:"Download external images to your media",ImageHandling:"Image Handling",Usemediaimagesifalreadyavailable:"Use media images if already available",Doyouwanttooverwritetheexistingimages:"Do you want to overwrite the existing images",ImageSizes:"Image Sizes",Thumbnail:"Thumbnail",Medium:"Medium",MediumLarge:"Medium Large",Large:"Large",Custom:"Custom",Slug:"Slug",Width:"Width",Height:"Height",Addcustomsizes:"Add custom sizes",MediaSEOAdvancedOptions:"Media SEO & Advanced Options",SetimageTitle:"Set image Title",SetimageCaption:"Set image Caption",SetimageAltText:"Set image Alt Text",SetimageDescription:"Set image Description",Changeimagefilenameto:"Change image file name to",ImportconfigurationSection:"Import configuration Section",EnablesafeprestateRollback:"Enable safe prestate Rollback",Backupbeforeimport:"Backup before import",DoyouwanttoSWITCHONMaintenancemodewhileimport:"Do you want to SWITCH ON Maintenance mode while import",Doyouwanttohandletheduplicateonexistingrecords:"Do you want to handle the duplicate on existing records",Mentionthefieldswhichyouwanttohandleduplicates:"Mention the fields which you want to handle duplicates",DoyouwanttoUpdateanexistingrecords:"Do you want to Update an existing records",Updaterecordsbasedon:"Update records based on",DoyouwanttoSchedulethisImport:"Do you want to Schedule this Import",ScheduleDate:"Schedule Date",ScheduleFrequency:"Schedule Frequency",TimeZone:"Time Zone",ScheduleTime:"Schedule Time",Schedule:"Schedule",Import:"Import",Format:"Format",OneTime:"OneTime",Daily:"Daily",Weekly:"Weekly",Monthly:"Monthly",Hourly:"Hourly",Every30mins:"Every 30 mins",Every15mins:"Every 15 mins",Every10mins:"Every 10 mins",Every5mins:"Every 5 mins",FileName:"File Name",FileSize:"File Size",Process:"Process",Totalnoofrecords:"Total no of records",CurrentProcessingRecord:"Current Processing Record",RemainingRecord:"Remaining Record",Completed:"Completed",TimeElapsed:"Time Elapsed",approximate:"approximate",DownloadLog:"Download Log",NoRecord:"No Record",UploadedCSVFileLists:"Uploaded CSV File Lists",Hostname:"Host Name",HostPort:"Host Port",HostUsername:"Host Username",HostPassword:"HostPassword",HostPath:"HostPath",DefaultPort:"Default Port",FTPUsername:"FTP Username",FTPPassword:"FTP Password",ConnectionType:"Connection Type",ImportersActivity:"Importers Activity",ImportStatistics:"Import Statistics",FileManager:"File Manager",SmartSchedule:"Smart Schedule",ScheduledExport:"Scheduled Export",Templates:"Templates",LogManager:"Log Manager",NotSelectedAnyTab:"Not Selected Any Tab",EventInfo:"Event Info",EventDate:"Event Date",EventStatus:"Event Status",Actions:"Actions",Date:"Date",Purpose:"Purpose",Revision:"Revision",Select:"Select",Inserted:"Inserted",Updated:"Updated",Skipped:"Skipped",Noeventsfound:"No events found",ScheduleInfo:"Schedule Info",ScheduledDate:"Scheduled Date",ScheduledTime:"Scheduled Time",Youhavenotscheduledanyevent:"You haven’t scheduled any event",Frequency:"Frequency",Time:"Time",EditSchedule:"Edit Schedule",SaveChanges:"Save Changes",TemplateInfo:"Template Info",TemplateName:"Template Name",Module:"Module",CreatedTime:"Created Time",NoTemplateFound:"No Template Found",Download:"Download",NoLogRecordFound:"No Log Record Found",GeneralSettings:"General Settings",DatabaseOptimization:"Database Optimization",SecurityandPerformance:"Security and Performance",Documentation:"Documentation",MediaReport:"Media Report",DropTable:"Drop Table",Ifenabledplugindeactivationwillremoveplugindatathiscannotberestored:"If enabled plugin deactivation will remove plugin data, this cannot be restored.",Scheduledlogmails:"Scheduled log mails",Enabletogetscheduledlogmails:"Enable to get scheduled log mails.",Sendpasswordtouser:"Send password to user",Enabletosendpasswordinformationthroughemail:"Enable to send password information through email.",WoocommerceCustomattribute:"Woocommerce Custom attribute",Enablestoregisterwoocommercecustomattribute:"Enables to register woocommerce custom attribute.",PleasemakesurethatyoutakenecessarybackupbeforeproceedingwithdatabaseoptimizationThedatalostcantbereverted:"Please make sure that you take necessary backup before proceeding with database optimization. The data lost cannot be reverted.",DeleteallorphanedPostPageMeta:"Delete all orphaned Post/Page Meta",Deleteallunassignedtags:"Delete all unassigned tags",DeleteallPostPagerevisions:"Delete all Post/Page revisions",DeleteallautodraftedPostPage:"Delete all auto drafted Post/Page",DeleteallPostPageintrash:"Delete all Post/Page in trash",DeleteallCommentsintrash:"Delete all Comments in trash",DeleteallUnapprovedComments:"Delete all Unapproved Comments",DeleteallPingbackComments:"Delete all Pingback Comments",DeleteallTrackbackComments:"Delete all Trackback Comments",DeleteallSpamComments:"Delete all Spam Comments",RunDBOptimizer:"Run DB Optimizer",DatabaseOptimizationLog:"Database Optimization Log",noofOrphanedPostPagemetahasbeenremoved:"no of Orphaned Post/Page meta has been removed.",noofUnassignedtagshasbeenremoved:"no of Unassigned tags has been removed.",noofPostPagerevisionhasbeenremoved:"no of Post/Page revisions has been removed.",noofAutodraftedPostPagehasbeenremoved:"no of Auto drafted Post/Page has been removed.",noofPostPageintrashhasbeenremoved:"no of Post/Page in trash has been removed.",noofSpamcommentshasbeenremoved:"no of Spam comments has been removed.",noofCommentsintrashhasbeenremoved:"no of Comments in trash has been removed.",noofUnapprovedcommentshasbeenremoved:"no of Unapproved comments has been removed.",noofPingbackcommentshasbeenremoved:"no of Pingback comments has been removed.",noofTrackbackcommentshasbeenremoved:"no of Trackback comments has been removed.",Allowauthorseditorstoimport:"Allow authors/editors to import",Thisenablesauthorseditorstoimport:"This enables authors/editors to import.",MinimumrequiredphpinivaluesIniconfiguredvalues:"Minimum required php.ini values (Ini configured values)",Variables:"Variables",SystemValues:"System Values",MinimumRequirements:"Minimum Requirements",RequiredtoenabledisableLoadersExtentionsandmodules:"Required to enable/disable Loaders, Extentions and modules:",DebugInformation:"Debug Information:",SmackcodersGuidelines:"Smackcoders Guidelines",DevelopmentNews:"Development News",WhatsNew:"Whats New?",YoutubeChannel:"Youtube Channel",OtherWordPressPlugins:"Other WordPress Plugins",Count:"Count",ImageType:"Image Type",Status:"Status",Loading:"Loading",LoveWPUltimateCSVImporterGivea5starreviewon:"Love WP Ultimate CSV Importer, Give a 5 star review on",ContactSupport:"Contact Support",Email:"Email",Supporttype:"Support type",BugReporting:"Bug Reporting",FeatureEnhancement:"Feature Enhancement",Message:"Message",Send:"Send",NewsletterSubscription:"Newsletter Subscription",Subscribe:"Subscribe",Note:"Note",SubscribetoSmackcodersMailinglistafewmessagesayear:"Subscribe to Smackcoders Mailing list (a few messages a year)",Pleasedraftamailto:"Please draft a mail to",Ifyoudoesnotgetanyacknowledgementwithinanhour:"If you does not get any acknowledgement within an hour!",Selectyourmoduletoexportthedata:"Select your Module to Export Data",Toexportdatabasedonthefilters:"To export data based on the filters",ExportFileName:"Export File Name",AdvancedSettings:"Advanced Settings",ExportType:"Export Type",SplittheRecord:"Split the Record",AdvancedFilters:"Advanced Filters",Exportdatawithautodelimiters:"Export data with auto delimiters",Delimiters:"Delimiters",OtherDelimiters:"Other Delimiters",Exportdataforthespecificperiod:"Export data for the specific period",StartFrom:"Start From",EndTo:"End To",Exportdatawiththespecificstatus:"Export data with the specific status",All:"All",Publish:"Publish",Sticky:"Sticky",Private:"Private",Protected:"Protected",Draft:"Draft",Pending:"Pending",Exportdatabyspecificauthors:"Export data by specific authors",Authors:"Authors",ExportdatabasedonspecificInclusions:"Export data based on specific Inclusions",DoyouwanttoSchedulethisExport:"Do you want to Schedule this Export",SelectTimeZone:"Select TimeZone",ScheduleExport:"Schedule Export",DataExported:"Data Exported"},De=function(e){function t(){return r()(this,t),u()(this,h()(t).apply(this,arguments))}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(Te,null)}}]),t}(s.Component),_e=function(e){function t(e){return r()(this,t),u()(this,h()(t).call(this,e))}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(De,null)}}]),t}(s.Component),Pe=n.a.createContext(),Ie=function(e){function t(){var e,a,s;r()(this,t);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return s=u()(this,(e=h()(t)).call.apply(e,[this].concat(i))),w()(S()(s),"state",(a={fileUrl:"",hostName:"",hostPort:"",hostUserName:"",hostPassword:"",hostPath:"",connectionType:"",selectedTab:"",mediaHandleCheckboxState:!1,activateMappingSection:!1,activateDragAndDropSection:!1,activateXmlFileMappingSection:!1,wordPressCoreFields:[],showWordPressDefaultCoreFieldsState:!1,acfGroupFields:[],showAcfGroupFieldsState:!1,acfProFields:[],showAcfProFieldsState:!1,acfRepeaterFields:[],showAcfRepeaterFieldsState:!1,termsAndTaxonomiesFields:[],showTermsAndTaxonomiesState:!1,typesFields:[],showTypesFieldsState:!1,podsFields:[],showPodsFieldsState:!1,customFieldSuiteFields:[],showCustomFieldSuiteState:!1,allInOneSeoFields:[],showAllInOneSeoFieldsState:!1,billingAndShippingInformation:[],showBillingAndShippingInformationState:!1,wordPressCustomFields:[],wordPressUserCustomFields:[],wordPressUserCustomFieldsLabel:[],showWordPressCustomFieldsState:!1,customFieldsWpMembersFields:[],showCustomFieldsWpMembersState:!1,customFieldsMembersFields:[],showCustomFieldsMembersState:!1,productMetaFields:[],showProductMetaFieldsState:!1,orderMetaFields:[],showOrderMetaFieldsState:!1,wpEcomCustomFields:[],showWpEcomCustomFieldsState:!1,eventsManagerFields:[],showEventsManagerFieldsState:!1,acfFreeFields:[],showAcfFreeFieldsState:!1,cmb2CustomFields:[],showCmb2CustomFieldsState:!1,wpmlCustomFields:[],showWPMLCustomFields:!1},w()(a,"termsAndTaxonomiesFields",[]),w()(a,"csvHeaderFields",[]),w()(a,"fileName",""),w()(a,"templateName",""),w()(a,"saveTemplateNames",""),w()(a,"editTemplateName",""),w()(a,"selectedTemplateNameInManagerSection",""),w()(a,"selectedModuleNameInManagerSection",""),w()(a,"editedTemplateNameInManagerSection",""),w()(a,"hashKey",""),w()(a,"selectedType",""),w()(a,"csvFileNames",[]),w()(a,"csvFileUrls",[]),w()(a,"csvFileServer",[]),w()(a,"selectedFileUrlsState",!1),w()(a,"selectedFileUrl",""),w()(a,"selectedFileServer",""),w()(a,"saveSelectedMappedFields",[]),w()(a,"activateMediaHandlingSection",!1),w()(a,"activateDashboard",!0),w()(a,"fromMediaHandlingState",!1),w()(a,"activateExportDataFilter",!1),w()(a,"activateExportDownloadOptionSection",!1),w()(a,"activateImportConfigurationSection",!1),w()(a,"activateSaveMappingTemplateSection",!1),w()(a,"activateProgressDisplaySection",!1),w()(a,"activateUseExistingMappingState",!1),w()(a,"activateCreateNewMappingState",!1),w()(a,"activateTemplateSectionState",!1),w()(a,"fromSaveMappingSection",!1),w()(a,"fromTemplateMappingSection",!1),w()(a,"fromDragAndDropSection",!1),w()(a,"activateLargeState",!1),w()(a,"mode","Insert"),w()(a,"exportModule",""),w()(a,"optionalType",""),w()(a,"templateNameArray",[]),w()(a,"modulesNameArray",[]),w()(a,"createdTimeArray",[]),w()(a,"matchedCountsArray",[]),w()(a,"activateUseAlreadyMediaImageState",!1),w()(a,"activateOverwriteExistingImageState",!1),w()(a,"activateThumbnailState",!1),w()(a,"activateMediumState",!1),w()(a,"activateMediumLargeState",!1),w()(a,"activateCustomState",!1),w()(a,"mediaImageTitle",""),w()(a,"mediaImageCaption",""),w()(a,"mediaImageAltText",""),w()(a,"mediaImageDescription",""),w()(a,"mediaImageFileName",""),w()(a,"updateFields",[]),w()(a,"duplicateHandleField",""),w()(a,"countryLists",[]),w()(a,"timeZones",[]),w()(a,"selectedCountryTime",""),w()(a,"receivedExportedFilePath",""),w()(a,"importLogDataLink",""),w()(a,"rollBackMode",!1),w()(a,"maintenanceMode",!1),w()(a,"loaderText",n.a.createElement("div",{className:"btn ajax-loader loading"},"Please Wait")),w()(a,"totalCustomFields",[]),w()(a,"totalRows",0),w()(a,"translateLanguage",{}),w()(a,"uploadedFileType",""),w()(a,"receivedExportedFileUrl",""),w()(a,"setFileUrl",function(e){s.setState({fileUrl:e})}),w()(a,"setHostName",function(e){s.setState({hostName:e})}),w()(a,"setHostPort",function(e){s.setState({hostPort:e})}),w()(a,"setHostUserName",function(e){s.setState({hostUserName:e})}),w()(a,"setHostPassword",function(e){s.setState({hostPassword:e})}),w()(a,"setHostPath",function(e){s.setState({hostPath:e})}),w()(a,"selectedConnectionType",function(e){s.setState({connectionType:e})}),w()(a,"setSelectedTab",function(e){s.setState({selectedTab:e})}),w()(a,"setSelectedTabCookies",function(e){var t=new Fe.a;t.set("selectedTab",e,{path:"/"}),console.log("cookeis",t.get("selectedTab"))}),w()(a,"changeActivateMappingSectionState",function(e){console.log("activate mapping"),s.setState({activateMappingSection:e})}),w()(a,"changeMediaHandleCheckboxState",function(e){console.log("changeMediaHandleCheckboxState"),s.setState({mediaHandleCheckboxState:e})}),w()(a,"changeActivateDragAndDropSectionState",function(e){s.setState({activateDragAndDropSection:e})}),w()(a,"changeActivateXmlFileMappingSectionState",function(e){s.setState({activateXmlFileMappingSection:e})}),w()(a,"setWordPressDefaultCoreFields",function(e){s.setState({wordPressCoreFields:e})}),w()(a,"showWordPressDefaultCoreFields",function(e){s.setState({showWordPressDefaultCoreFieldsState:e})}),w()(a,"setAcfFreeFields",function(e){s.setState({acfFreeFields:e})}),w()(a,"showAcfFreeFields",function(e){s.setState({showAcfFreeFieldsState:e})}),w()(a,"setAcfGroupFields",function(e){s.setState({acfGroupFields:e})}),w()(a,"showAcfGroupFields",function(e){s.setState({showAcfGroupFieldsState:e})}),w()(a,"setAcfProFields",function(e){s.setState({acfProFields:e})}),w()(a,"showAcfProFields",function(e){s.setState({showAcfProFieldsState:e})}),w()(a,"setAcfRepeaterFields",function(e){s.setState({acfRepeaterFields:e})}),w()(a,"showAcfRepeaterFields",function(e){s.setState({showAcfRepeaterFieldsState:e})}),w()(a,"setTermsAndTaxonomies",function(e){s.setState({termsAndTaxonomiesFields:e})}),w()(a,"showTermsAndTaxonomies",function(e){s.setState({showTermsAndTaxonomiesState:e})}),w()(a,"setTypesFields",function(e){s.setState({typesFields:e})}),w()(a,"showTypesFields",function(e){s.setState({showTypesFieldsState:e})}),w()(a,"setPodsFields",function(e){s.setState({podsFields:e})}),w()(a,"showPodsFields",function(e){s.setState({showPodsFieldsState:e})}),w()(a,"setCustomFieldSuite",function(e){s.setState({customFieldSuiteFields:e})}),w()(a,"showCustomFieldSuite",function(e){s.setState({showCustomFieldSuiteState:e})}),w()(a,"setAllInOneSeoFields",function(e){s.setState({allInOneSeoFields:e})}),w()(a,"showAllInOneSeoFields",function(e){s.setState({showAllInOneSeoFieldsState:e})}),w()(a,"setYoastSeoFields",function(e){s.setState({yoastSeoFields:e})}),w()(a,"showYoastSeoFields",function(e){s.setState({showYoastSeoFieldsState:e})}),w()(a,"setBillingAndShippingInformation",function(e){s.setState({billingAndShippingInformation:e})}),w()(a,"showBillingAndShippingInformation",function(e){s.setState({showBillingAndShippingInformationState:e})}),w()(a,"setWordPressCustomFields",function(e){s.setState({wordPressCustomFields:e})}),w()(a,"setWordPressUserCustomFields",function(e){s.setState({wordPressUserCustomFields:e})}),w()(a,"setWordPressUserCustomFieldsLabel",function(e){s.setState({wordPressUserCustomFieldsLabel:receivedWordPressUserCustomFieldsLabel})}),w()(a,"showWordPressCustomFields",function(e){s.setState({showWordPressCustomFieldsState:e})}),w()(a,"setCustomFieldsWpMembers",function(e){s.setState({customFieldsWpMembersFields:e})}),w()(a,"showCustomFieldsWpMembers",function(e){s.setState({showCustomFieldsWpMembersState:e})}),w()(a,"setCustomFieldsMembers",function(e){s.setState({customFieldsMembersFields:e})}),w()(a,"showCustomFieldsMembers",function(e){s.setState({showCustomFieldsMembersState:e})}),w()(a,"setProductMetaFields",function(e){s.setState({productMetaFields:e})}),w()(a,"showProductMetaFields",function(e){s.setState({showProductMetaFieldsState:e})}),w()(a,"setOrderMetaFields",function(e){s.setState({orderMetaFields:e})}),w()(a,"showOrderMetaFields",function(e){s.setState({showOrderMetaFieldsState:e})}),w()(a,"setCouponMetaFields",function(e){s.setState({couponMetaFields:e})}),w()(a,"showCouponMetaFields",function(e){s.setState({showCouponMetaFieldsState:e})}),w()(a,"setRefundMetaFields",function(e){s.setState({refundMetaFields:e})}),w()(a,"showRefundMetaFields",function(e){s.setState({showRefundMetaFieldsState:e})}),w()(a,"setWpEcomCustomFields",function(e){s.setState({wpEcomCustomFields:e})}),w()(a,"showWpEcomCustomFields",function(e){s.setState({showWpEcomCustomFieldsState:e})}),w()(a,"setEventsManagerFields",function(e){s.setState({eventsManagerFields:e})}),w()(a,"showEventsManagerFields",function(e){s.setState({showEventsManagerFieldsState:e})}),w()(a,"setNextgenGalleryFields",function(e){s.setState({nextgenGalleryFields:e})}),w()(a,"showNextgenGalleryFields",function(e){s.setState({showNextgenGalleryFieldsState:e})}),w()(a,"setCmb2CustomFields",function(e){s.setState({cmb2CustomFields:e})}),w()(a,"showCmb2CustomFields",function(e){s.setState({showCmb2CustomFieldsState:e})}),w()(a,"setWPMLCustomFields",function(e){s.setState({wpmlCustomFields:e})}),w()(a,"showWPMLCustomFields",function(e){s.setState({showWPMLCustomFieldsState:e})}),w()(a,"setCsvHeaderFields",function(e){s.setState({csvHeaderFields:e})}),w()(a,"getFileName",function(e){s.setState({fileName:e})}),w()(a,"getTemplateName",function(e){s.setState({templateName:e})}),w()(a,"saveTemplateName",function(e){s.setState({saveTemplateNames:e})}),w()(a,"editedTemplateName",function(e){s.setState({editTemplateName:e})}),w()(a,"selectedTemplateInManager",function(e){s.setState({selectedTemplateNameInManagerSection:e})}),w()(a,"selectedEditedTemplateInManager",function(e){s.setState({editedTemplateNameInManagerSection:e})}),w()(a,"selectedModuleInManager",function(e){s.setState({selectedModuleNameInManagerSection:e})}),w()(a,"setHashKey",function(e){s.setState({hashKey:e})}),w()(a,"setSelectedType",function(e){s.setState({selectedType:e})}),w()(a,"setMode",function(e){s.setState({mode:e})}),w()(a,"getCsvFileNames",function(e){s.setState({csvFileNames:e})}),w()(a,"getCsvFilesUrl",function(e){s.setState({csvFileUrls:e})}),w()(a,"getCsvFilesServer",function(e){s.setState({csvFileServer:e})}),w()(a,"setSelectedFileUrlsState",function(e){s.setState({selectedFileUrlsState:e})}),w()(a,"setSelectedFileUrl",function(e){s.setState({selectedFileUrl:e})}),w()(a,"setSelectedFileServer",function(e){s.setState({selectedFileServer:e})}),w()(a,"saveMappedFields",function(e){s.setState({saveSelectedMappedFields:e.slice()})}),w()(a,"changeActivateMediaHandlingSection",function(e){s.setState({activateMediaHandlingSection:e})}),w()(a,"setActivateDashboard",function(e){s.setState({activateDashboard:e})}),w()(a,"backFromMediaHandlingState",function(e){s.setState({fromMediaHandlingState:e})}),w()(a,"setExportDataFilterSection",function(e){s.setState({activateExportDataFilter:e})}),w()(a,"changeActivateExportDownloadOption",function(e){s.setState({activateExportDownloadOptionSection:e})}),w()(a,"changeActivateImportConfiguration",function(e){s.setState({activateImportConfigurationSection:e})}),w()(a,"changeActivateProgressDisplay",function(e){s.setState({activateProgressDisplaySection:e})}),w()(a,"changeActivateSaveMappingTemplateSectionState",function(e){s.setState({activateSaveMappingTemplateSection:e})}),w()(a,"changeUseExistingMappingState",function(e){s.setState({activateUseExistingMappingState:e})}),w()(a,"changeCreateNewMappingState",function(e){s.setState({activateCreateNewMappingState:e})}),w()(a,"changeActivateTemplateSectionState",function(e){s.setState({activateTemplateSectionState:e})}),w()(a,"fromSaveMappingSectionState",function(e){s.setState({fromSaveMappingSection:e})}),w()(a,"fromTemplateMappingSectionState",function(e){s.setState({fromTemplateMappingSection:e})}),w()(a,"fromDragAndDropMappingSection",function(e){s.setState({fromDragAndDropSection:e})}),w()(a,"setMode",function(e){s.setState({mode:e})}),w()(a,"setExportModule",function(e){s.setState({exportModule:e})}),w()(a,"setOptionalType",function(e){s.setState({optionalType:e})}),w()(a,"setTemplateNameArray",function(e){s.setState({templateNameArray:e})}),w()(a,"setModulesArray",function(e){s.setState({modulesNameArray:e})}),w()(a,"setCreatedTimeArray",function(e){s.setState({createdTimeArray:e})}),w()(a,"setMatchedCounts",function(e){s.setState({matchedCountsArray:e})}),w()(a,"activateUseAlreadyMediaImage",function(e){s.setState({activateUseAlreadyMediaImageState:e})}),w()(a,"activateOverwriteExistingImage",function(e){s.setState({activateOverwriteExistingImageState:e})}),w()(a,"activateThumbnail",function(e){s.setState({activateThumbnailState:e})}),w()(a,"activateMedium",function(e){s.setState({activateMediumState:e})}),w()(a,"activateMediumLarge",function(e){s.setState({activateMediumLargeState:e})}),w()(a,"activateLarge",function(e){s.setState({activateLargeState:e})}),w()(a,"activateCustom",function(e){s.setState({activateCustomState:e})}),w()(a,"setImageTitle",function(e){s.setState({mediaImageTitle:e})}),w()(a,"setImageCaption",function(e){s.setState({mediaImageCaption:e})}),w()(a,"setImageAltText",function(e){s.setState({mediaImageAltText:e})}),w()(a,"setImageDescription",function(e){s.setState({mediaImageDescription:e})}),w()(a,"changeImageFileName",function(e){s.setState({mediaImageFileName:e})}),w()(a,"setUpdateFields",function(e){s.setState({updateFields:e})}),w()(a,"fieldHandleDuplicate",function(e){s.setState({duplicateHandleField:e})}),w()(a,"setCountryList",function(e){s.setState({countryLists:e})}),w()(a,"setTimeZones",function(e){s.setState({timeZones:e})}),w()(a,"selectedCountryTimeZone",function(e){s.setState({selectedCountryTime:e})}),w()(a,"exportedFileUrl",function(e){s.setState({receivedExportedFileUrl:e})}),w()(a,"importLogData",function(e){s.setState({importLogDataLink:e})}),w()(a,"setRollBackMode",function(e){s.setState({rollBackMode:e})}),w()(a,"setMaintenanceMode",function(e){s.setState({maintenanceMode:e})}),w()(a,"setTotalCustomFields",function(e){s.setState({totalCustomFields:e})}),w()(a,"setTotalRows",function(e){s.setState({totalRows:e})}),w()(a,"languageTranslation",function(e){s.setState({translateLanguage:e})}),w()(a,"uploadFileType",function(e){s.setState({uploadedFileType:e})}),a)),s}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(Pe.Provider,{value:this.state},this.props.children)}}]),t}(s.Component),Ae=function(e){function t(){var e,a;r()(this,t);for(var s=arguments.length,o=new Array(s),i=0;i<s;i++)o[i]=arguments[i];return a=u()(this,(e=h()(t)).call.apply(e,[this].concat(o))),w()(S()(a),"state",{activateExporter:!1,showComponent:"upload-dashboard",showExport:"export-module",csvInfo:{replaceExistingItem:!1},exportInfo:{moduleName:"",optionalType:""},showImportLog:!1,isXML:!1,language:{},selectedFileUrl:"",allPluginFields:[],csvFields:[],isTemplate:!1,existingTemplateName:"",saveTemplateData:[],importScheduleData:{},mappingResult:{},maintenanceMode:!1,rollBackMode:!1,mappingType:"",importLogDataLink:"",loaderText:n.a.createElement("div",{className:"btn ajax-loader loading"},"Please Wait"),setActivateExporter:function(e){a.setState({activateExporter:e})},setIsTemplate:function(e){a.setState({isTemplate:e})},setExistingTemplateName:function(e){a.setState({existingTemplateName:e})},setMappingResult:function(e){a.setState({mappingResult:e})},setMaintenanceMode:function(e){a.setState({maintenanceMode:e})},setRollBackMode:function(e){a.setState({rollBackMode:e})},setMappingType:function(e){a.setState({mappingType:e})},setImportLogDataLink:function(e){a.setState({importLogDataLink:e})},setImportScheduleData:function(e){a.setState({importScheduleData:e})},setSaveTemplateData:function(e){a.setState({saveTemplateData:e})},setCSVInfo:function(e){a.setState({csvInfo:e})},setExportInfo:function(e){a.setState({exportInfo:e})},setShowImportLog:function(e){a.setState({showImportLog:e})},setIsXML:function(e){a.setState({isXML:e})},setShowComponent:function(e){a.setState({showComponent:e})},setShowExport:function(e){a.setState({showExport:e})},setLanguage:function(e){a.setState({language:e})},setSelectedTabOnCookies:function(e){(new Fe.a).set("selectedTab",e,{path:"/"})},setSelectedFileUrl:function(e){a.setState({selectedFileUrl:e})},setCsvFields:function(e){a.setState({csvFields:e})},setAllPluginFields:function(e){a.setState({allPluginFields:e})}}),a}return f()(t,e),m()(t,[{key:"render",value:function(){return n.a.createElement(C.Provider,{value:this.state},this.props.children)}}]),t}(s.Component);document.addEventListener("DOMContentLoaded",function(){i.a.render(n.a.createElement("div",{className:"wp-ultimate-csv-importer"},n.a.createElement(M.ToastContainer,{position:"top-right",autoClose:4e3,hideProgressBar:!0,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnVisibilityChange:!0,draggable:!0,pauseOnHover:!0}),n.a.createElement(Ae,null,n.a.createElement(Ie,null,n.a.createElement(_e,null))),n.a.createElement("p",{className:"text-center mt40 mb20"},"Powered by"," ",n.a.createElement("a",{className:"csv-link",href:"https://www.smackcoders.com?utm_source=wordpress&utm_medium=plugin&utm_campaign=pro_csv_importer",target:"blank"},"Smackcoders")," ","| Plugin Version 6.0.2")),document.getElementById("wp-csv-importer-admin"))})}});
|
assets/vendors~js/admin.js
CHANGED
@@ -1,33 +1,27 @@
|
|
1 |
-
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(275)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Et(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function _(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=a.momentProperties=[];function y(e,t){var n,r,a;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)s(a=t[r=g[n]])||(e[r]=a);return e}var v=!1;function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,a.updateOffset(this),v=!1)}function M(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function L(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&T(e[r])!==T(t[r]))&&i++;return i+o}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){for(var r,o=[],i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(var s in r+="\n["+i+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[i];o.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var x,S={};function Y(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),S[e]||(k(t),S[e]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,r=f({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function C(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var P={};function I(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function j(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)c(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var H={};function A(e,t){H[e]=t}function N(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},B={};function z(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(B[e]=a),t&&(B[t[0]]=function(){return N(a.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r,a=e.match(F);for(t=0,n=a.length;t<n;t++)B[a[t]]?a[t]=B[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=E(a[r])?a[r].call(t,e):a[r];return o}}(t),U[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;n>=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var G=/\d/,J=/\d\d/,X=/\d{3}/,Q=/\d{4}/,K=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ae=/\d+/,oe=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function de(e,t,n){le[e]=E(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return c(le,e)?le[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){he(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function _e(e,t,n){null!=t&&c(pe,e)&&pe[e](t,n._a,n,e)}var ge=0,ye=1,ve=2,be=3,Me=4,we=5,Te=6,Le=7,ke=8;function De(e){return xe(e)?366:365}function xe(e){return e%4==0&&e%100!=0||e%400==0}z("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),I("year","y"),A("year",1),de("Y",oe),de("YY",Z,J),de("YYYY",ne,Q),de("YYYYY",re,K),de("YYYYYY",re,K),he(["YYYYY","YYYYYY"],ge),he("YYYY",function(e,t){t[ge]=2===e.length?a.parseTwoDigitYear(e):T(e)}),he("YY",function(e,t){t[ge]=a.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ge]=parseInt(e,10)}),a.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var Se,Ye=Ee("FullYear",!0);function Ee(e,t){return function(n){return null!=n?(Ce(this,e,n),a.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ce(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&xe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?xe(e)?29:28:31-r%7%2}Se=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),A("month",8),de("M",Z),de("MM",Z,J),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=T(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[ye]=a:h(n).invalidMonth=e});var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,je="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function He(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=T(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(He(this,e),a.updateOffset(this,!0),this):Oe(this,"Month")}var Ne=ue,Fe=ue;function We(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),a[t]=fe(a[t]);for(t=0;t<24;t++)o[t]=fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ue(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Be(e,t,n){var r=7+t-n;return-(7+Ue(e,0,r).getUTCDay()-t)%7+r-1}function ze(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+Be(e,r,a);return s<=0?i=De(o=e-1)+s:s>De(e)?(o=e+1,i=s-De(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Ve(e,t,n){var r,a,o=Be(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+qe(a=e.year()-1,t,n):i>qe(e.year(),t,n)?(r=i-qe(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function qe(e,t,n){var r=Be(e,t,n),a=Be(e+1,t,n);return(De(e)-r+a)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),A("week",5),A("isoWeek",5),de("w",Z),de("ww",Z,J),de("W",Z),de("WW",Z,J),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),de("d",Z),de("e",Z),de("E",Z),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=T(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=ue,Ze=ue,$e=ue;function et(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),o=this.weekdays(n,""),i.push(r),s.push(a),u.push(o),l.push(r),l.push(a),l.push(o);for(i.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),u[t]=fe(u[t]),l[t]=fe(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,tt),z("k",["kk",2],0,function(){return this.hours()||24}),z("hmm",0,0,function(){return""+tt.apply(this)+N(this.minutes(),2)}),z("hmmss",0,0,function(){return""+tt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),nt("a",!0),nt("A",!1),I("hour","h"),A("hour",13),de("a",rt),de("A",rt),de("H",Z),de("h",Z),de("k",Z),de("HH",Z,J),de("hh",Z,J),de("kk",Z,J),de("hmm",$),de("hmmss",ee),de("Hmm",$),de("Hmmss",ee),he(["H","HH"],be),he(["k","kk"],function(e,t,n){var r=T(e);t[be]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[be]=T(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r,2)),t[we]=T(e.substr(a)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r,2)),t[we]=T(e.substr(a))});var at,ot=Ee("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:je,monthsShort:Re,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},st={},ut={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=at._abbr,n(333)("./"+t),ct(r)}catch(e){}return st[t]}function ct(e,t){var n;return e&&((n=s(t)?pt(e):ft(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=st[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new C(O(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),ct(e),st[e]}return delete st[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!o(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=lt(e[o]).split("-")).length,n=(n=lt(e[o+1]))?n.split("-"):null;t>0;){if(r=dt(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&L(a,n,!0)>=t-1)break;t--}o++}return at}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[ve]<1||n[ve]>Pe(n[ge],n[ye])?ve:n[be]<0||n[be]>24||24===n[be]&&(0!==n[Me]||0!==n[we]||0!==n[Te])?be:n[Me]<0||n[Me]>59?Me:n[we]<0||n[we]>59?we:n[Te]<0||n[Te]>999?Te:-1,h(e)._overflowDayOfYear&&(t<ge||t>ve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Le),h(e)._overflowWeekday&&-1===t&&(t=ke),h(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,r,o,i,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ye]&&function(e){var t,n,r,a,o,i,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,i=4,n=mt(t.GG,e._a[ge],Ve(Ot(),1,4).year),r=mt(t.W,1),((a=mt(t.E,1))<1||a>7)&&(u=!0);else{o=e._locale._week.dow,i=e._locale._week.doy;var l=Ve(Ot(),o,i);n=mt(t.gg,e._a[ge],l.year),r=mt(t.w,l.week),null!=t.d?((a=t.d)<0||a>6)&&(u=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(u=!0)):a=o}r<1||r>qe(n,o,i)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=ze(n,r,a,o,i),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=mt(e._a[ge],r[ge]),(e._dayOfYear>De(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ue(i,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[Me]&&0===e._a[we]&&0===e._a[Te]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Ue:function(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Tt(e){var t,n,r,a,o,i,s=e._i,u=gt.exec(s)||yt.exec(s);if(u){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(u[1])){a=bt[t][0],r=!1!==bt[t][2];break}if(null==a)return void(e._isValid=!1);if(u[3]){for(t=0,n=Mt.length;t<n;t++)if(Mt[t][1].exec(u[3])){o=(u[2]||" ")+Mt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!vt.exec(u[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),St(e)}else e._isValid=!1}var Lt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function kt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,n,r,a,o,i,s,u=Lt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){var l=(t=u[4],n=u[3],r=u[2],a=u[5],o=u[6],i=u[7],s=[kt(t),Re.indexOf(n),parseInt(r,10),parseInt(a,10),parseInt(o,10)],i&&s.push(parseInt(i,10)),s);if(!function(e,t,n){return!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],l,e))return;e._a=l,e._tzm=function(e,t,n){if(e)return Dt[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(u[8],u[9],u[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function St(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,i,s=""+e._i,u=s.length,l=0;for(r=q(e._f,e._locale).match(F)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(ce(o,e))||[])[0])&&((i=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),l+=n.length),B[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[be]<=12&&!0===h(e).bigHour&&e._a[be]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),_t(e),ht(e)}else xt(e);else Tt(e)}function Yt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new b(ht(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,r,a,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],St(t),m(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):n?St(e):function(e){var t=e._i;s(t)?e._d=new Date(a.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,xt(e),!1===e._isValid&&(delete e._isValid,a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),_t(e)):i(t)?function(e){if(!e._d){var t=R(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),_t(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Et(e,t,n,r,a){var s,u={};return!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=n,u._i=e,u._f=t,u._strict=r,(s=new b(ht(Yt(u))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ot(e,t,n,r){return Et(e,t,n,r,!1)}a.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),a.ISO_8601=function(){},a.RFC_2822=function(){};var Ct=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Pt=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()});function It(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var jt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=R(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,u=t.minute||0,l=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Se.call(jt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<jt.length;++r)if(e[jt[r]]){if(n)return!1;parseFloat(e[jt[r]])!==T(e[jt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*l+6e4*u+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=pt(),this._bubble()}function Ht(e){return e instanceof Rt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Nt(e,t){z(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}Nt("Z",":"),Nt("ZZ",""),de("Z",se),de("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Wt(se,e)});var Ft=/([\+\-]|\d\d)/gi;function Wt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Ft)||["-",0,0],a=60*r[1]+T(r[2]);return 0===a?0:"+"===r[0]?a:-a}function Ut(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(M(e)||l(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Ot(e).local()}function Bt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function zt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Vt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gt(e,t){var n,r,a,o,i,s,l=e,d=null;return Ht(e)?l={ms:e._milliseconds,d:e._days,M:e._months}:u(e)?(l={},t?l[t]=e:l.milliseconds=e):(d=Vt.exec(e))?(n="-"===d[1]?-1:1,l={y:0,d:T(d[ve])*n,h:T(d[be])*n,m:T(d[Me])*n,s:T(d[we])*n,ms:T(At(1e3*d[Te]))*n}):(d=qt.exec(e))?(n="-"===d[1]?-1:1,l={y:Jt(d[2],n),M:Jt(d[3],n),w:Jt(d[4],n),d:Jt(d[5],n),h:Jt(d[6],n),m:Jt(d[7],n),s:Jt(d[8],n)}):null==l?l={}:"object"==typeof l&&("from"in l||"to"in l)&&(o=Ot(l.from),i=Ot(l.to),a=o.isValid()&&i.isValid()?(i=Ut(i,o),o.isBefore(i)?s=Xt(o,i):((s=Xt(i,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(l={}).ms=a.milliseconds,l.M=a.months),r=new Rt(l),Ht(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qt(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(Y(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Kt(this,Gt(n="string"==typeof n?+n:n,r),e),this}}function Kt(e,t,n,r){var o=t._milliseconds,i=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&He(e,Oe(e,"Month")+s*n),i&&Ce(e,"Date",Oe(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}Gt.fn=Rt.prototype,Gt.invalid=function(){return Gt(NaN)};var Zt=Qt(1,"add"),$t=Qt(-1,"subtract");function en(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=pt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function rn(){return this._locale}var an=1e3,on=60*an,sn=60*on,un=3506328*sn;function ln(e,t){return(e%t+t)%t}function dn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-un:new Date(e,t,n).valueOf()}function cn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-un:Date.UTC(e,t,n)}function fn(e,t){z(0,[e,e.length],0,t)}function pn(e,t,n,r,a){var o;return null==e?Ve(this,r,a).year:(t>(o=qe(e,r,a))&&(t=o),function(e,t,n,r,a){var o=ze(e,t,n,r,a),i=Ue(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,a))}z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fn("gggg","weekYear"),fn("ggggg","weekYear"),fn("GGGG","isoWeekYear"),fn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),de("G",oe),de("g",oe),de("GG",Z,J),de("gg",Z,J),de("GGGG",ne,Q),de("gggg",ne,Q),de("GGGGG",re,K),de("ggggg",re,K),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),I("quarter","Q"),A("quarter",7),de("Q",G),he("Q",function(e,t){t[ye]=3*(T(e)-1)}),z("D",["DD",2],"Do","date"),I("date","D"),A("date",9),de("D",Z),de("DD",Z,J),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ve),he("Do",function(e,t){t[ve]=T(e.match(Z)[0])});var hn=Ee("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),A("dayOfYear",4),de("DDD",te),de("DDDD",X),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),z("m",["mm",2],0,"minute"),I("minute","m"),A("minute",14),de("m",Z),de("mm",Z,J),he(["m","mm"],Me);var mn=Ee("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),A("second",15),de("s",Z),de("ss",Z,J),he(["s","ss"],we);var _n,gn=Ee("Seconds",!1);for(z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),A("millisecond",16),de("S",te,G),de("SS",te,J),de("SSS",te,X),_n="SSSS";_n.length<=9;_n+="S")de(_n,ae);function yn(e,t){t[Te]=T(1e3*("0."+e))}for(_n="S";_n.length<=9;_n+="S")he(_n,yn);var vn=Ee("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var bn=b.prototype;function Mn(e){return e}bn.add=Zt,bn.calendar=function(e,t){var n=e||Ot(),r=Ut(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(E(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Ot(n)))},bn.clone=function(){return new b(this)},bn.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=j(t)){case"year":o=en(this,r)/12;break;case"month":o=en(this,r);break;case"quarter":o=en(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:w(o)},bn.endOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?cn:dn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-ln(t+(this._isUTC?0:this.utcOffset()*on),sn)-1;break;case"minute":t=this._d.valueOf(),t+=on-ln(t,on)-1;break;case"second":t=this._d.valueOf(),t+=an-ln(t,an)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},bn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},bn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.fromNow=function(e){return this.from(Ot(),e)},bn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.toNow=function(e){return this.to(Ot(),e)},bn.get=function(e){return E(this[e=j(e)])?this[e]():this},bn.invalidAt=function(){return h(this).overflow},bn.isAfter=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},bn.isBefore=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},bn.isBetween=function(e,t,n,r){var a=M(e)?e:Ot(e),o=M(t)?t:Ot(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},bn.isSame=function(e,t){var n,r=M(e)?e:Ot(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},bn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},bn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},bn.isValid=function(){return m(this)},bn.lang=nn,bn.locale=tn,bn.localeData=rn,bn.max=Pt,bn.min=Ct,bn.parsingFlags=function(){return f({},h(this))},bn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:H[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=R(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(E(this[e=j(e)]))return this[e](t);return this},bn.startOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?cn:dn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ln(t+(this._isUTC?0:this.utcOffset()*on),sn);break;case"minute":t=this._d.valueOf(),t-=ln(t,on);break;case"second":t=this._d.valueOf(),t-=ln(t,an)}return this._d.setTime(t),a.updateOffset(this,!0),this},bn.subtract=$t,bn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},bn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},bn.toDate=function(){return new Date(this.valueOf())},bn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)},bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.year=Ye,bn.isLeapYear=function(){return xe(this.year())},bn.weekYear=function(e){return pn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},bn.isoWeekYear=function(e){return pn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},bn.quarter=bn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},bn.month=Ae,bn.daysInMonth=function(){return Pe(this.year(),this.month())},bn.week=bn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},bn.isoWeek=bn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},bn.weeksInYear=function(){var e=this.localeData()._week;return qe(this.year(),e.dow,e.doy)},bn.isoWeeksInYear=function(){return qe(this.year(),1,4)},bn.date=hn,bn.day=bn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},bn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},bn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},bn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},bn.hour=bn.hours=ot,bn.minute=bn.minutes=mn,bn.second=bn.seconds=gn,bn.millisecond=bn.milliseconds=vn,bn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Bt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Kt(this,Gt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Bt(this)},bn.utc=function(e){return this.utcOffset(0,e)},bn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Bt(this),"m")),this},bn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},bn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},bn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=zt,bn.isUTC=zt,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=D("dates accessor is deprecated. Use date instead.",hn),bn.months=D("months accessor is deprecated. Use month instead",Ae),bn.years=D("years accessor is deprecated. Use year instead",Ye),bn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),bn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Yt(e))._a){var t=e._isUTC?p(e._a):Ot(e._a);this._isDSTShifted=this.isValid()&&L(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var wn=C.prototype;function Tn(e,t,n,r){var a=pt(),o=p().set(r,t);return a[n](o,e)}function Ln(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Tn(e,r,n,"month");return a}function kn(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,o=pt(),i=e?o._week.dow:0;if(null!=n)return Tn(t,(n+i)%7,r,"day");var s=[];for(a=0;a<7;a++)s[a]=Tn(t,(a+i)%7,r,"day");return s}wn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r},wn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},wn.invalidDate=function(){return this._invalidDate},wn.ordinal=function(e){return this._ordinal.replace("%d",e)},wn.preparse=Mn,wn.postformat=Mn,wn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return E(a)?a(e,t,n,r):a.replace(/%d/i,e)},wn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},wn.set=function(e){var t,n;for(n in e)E(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},wn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},wn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},wn.monthsParse=function(e,t,n){var r,a,o;if(this._monthsParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Se.call(this._shortMonthsParse,i))?a:null:-1!==(a=Se.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Se.call(this._shortMonthsParse,i))?a:-1!==(a=Se.call(this._longMonthsParse,i))?a:null:-1!==(a=Se.call(this._longMonthsParse,i))?a:-1!==(a=Se.call(this._shortMonthsParse,i))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},wn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},wn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},wn.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},wn.firstDayOfYear=function(){return this._week.doy},wn.firstDayOfWeek=function(){return this._week.dow},wn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},wn.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},wn.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},wn.weekdaysParse=function(e,t,n){var r,a,o;if(this._weekdaysParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Se.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Se.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Se.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Se.call(this._weekdaysParse,i))?a:-1!==(a=Se.call(this._shortWeekdaysParse,i))?a:-1!==(a=Se.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Se.call(this._shortWeekdaysParse,i))?a:-1!==(a=Se.call(this._weekdaysParse,i))?a:-1!==(a=Se.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Se.call(this._minWeekdaysParse,i))?a:-1!==(a=Se.call(this._weekdaysParse,i))?a:-1!==(a=Se.call(this._shortWeekdaysParse,i))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},wn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},wn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},wn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},wn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},wn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=D("moment.lang is deprecated. Use moment.locale instead.",ct),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",pt);var Dn=Math.abs;function xn(e,t,n,r){var a=Gt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Sn(e){return e<0?Math.floor(e):Math.ceil(e)}function Yn(e){return 4800*e/146097}function En(e){return 146097*e/4800}function On(e){return function(){return this.as(e)}}var Cn=On("ms"),Pn=On("s"),In=On("m"),jn=On("h"),Rn=On("d"),Hn=On("w"),An=On("M"),Nn=On("Q"),Fn=On("y");function Wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Wn("milliseconds"),Bn=Wn("seconds"),zn=Wn("minutes"),Vn=Wn("hours"),qn=Wn("days"),Gn=Wn("months"),Jn=Wn("years"),Xn=Math.round,Qn={ss:44,s:45,m:45,h:22,d:26,M:11},Kn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Kn(this._milliseconds)/1e3,r=Kn(this._days),a=Kn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var o=w(a/12),i=a%=12,s=r,u=t,l=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var f=c<0?"-":"",p=Zn(this._months)!==Zn(c)?"-":"",h=Zn(this._days)!==Zn(c)?"-":"",m=Zn(this._milliseconds)!==Zn(c)?"-":"";return f+"P"+(o?p+o+"Y":"")+(i?p+i+"M":"")+(s?h+s+"D":"")+(u||l||d?"T":"")+(u?m+u+"H":"")+(l?m+l+"M":"")+(d?m+d+"S":"")}var er=Rt.prototype;return er.isValid=function(){return this._isValid},er.abs=function(){var e=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),e.milliseconds=Dn(e.milliseconds),e.seconds=Dn(e.seconds),e.minutes=Dn(e.minutes),e.hours=Dn(e.hours),e.months=Dn(e.months),e.years=Dn(e.years),this},er.add=function(e,t){return xn(this,e,t,1)},er.subtract=function(e,t){return xn(this,e,t,-1)},er.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Yn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(En(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},er.asMilliseconds=Cn,er.asSeconds=Pn,er.asMinutes=In,er.asHours=jn,er.asDays=Rn,er.asWeeks=Hn,er.asMonths=An,er.asQuarters=Nn,er.asYears=Fn,er.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},er._bubble=function(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,u=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*Sn(En(s)+i),i=0,s=0),u.milliseconds=o%1e3,e=w(o/1e3),u.seconds=e%60,t=w(e/60),u.minutes=t%60,n=w(t/60),u.hours=n%24,i+=w(n/24),a=w(Yn(i)),s+=a,i-=Sn(En(a)),r=w(s/12),s%=12,u.days=i,u.months=s,u.years=r,this},er.clone=function(){return Gt(this)},er.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},er.milliseconds=Un,er.seconds=Bn,er.minutes=zn,er.hours=Vn,er.days=qn,er.weeks=function(){return w(this.days()/7)},er.months=Gn,er.years=Jn,er.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Gt(e).abs(),a=Xn(r.as("s")),o=Xn(r.as("m")),i=Xn(r.as("h")),s=Xn(r.as("d")),u=Xn(r.as("M")),l=Xn(r.as("y")),d=a<=Qn.ss&&["s",a]||a<Qn.s&&["ss",a]||o<=1&&["m"]||o<Qn.m&&["mm",o]||i<=1&&["h"]||i<Qn.h&&["hh",i]||s<=1&&["d"]||s<Qn.d&&["dd",s]||u<=1&&["M"]||u<Qn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return d[2]=t,d[3]=+e>0,d[4]=n,function(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}.apply(null,d)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},er.toISOString=$n,er.toString=$n,er.toJSON=$n,er.locale=tn,er.localeData=rn,er.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),er.lang=nn,z("X",0,0,"unix"),z("x",0,0,"valueOf"),de("x",oe),de("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(T(e))}),a.version="2.24.0",t=Ot,a.fn=bn,a.min=function(){return It("isBefore",[].slice.call(arguments,0))},a.max=function(){return It("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=p,a.unix=function(e){return Ot(1e3*e)},a.months=function(e,t){return Ln(e,t,"months")},a.isDate=l,a.locale=ct,a.invalid=_,a.duration=Gt,a.isMoment=M,a.weekdays=function(e,t,n){return kn(e,t,n,"weekdays")},a.parseZone=function(){return Ot.apply(null,arguments).parseZone()},a.localeData=pt,a.isDuration=Ht,a.monthsShort=function(e,t){return Ln(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return kn(e,t,n,"weekdaysMin")},a.defineLocale=ft,a.updateLocale=function(e,t){if(null!=t){var n,r,a=it;null!=(r=dt(e))&&(a=r._config),t=O(a,t),(n=new C(t)).parentLocale=st[e],st[e]=n,ct(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},a.locales=function(){return x(st)},a.weekdaysShort=function(e,t,n){return kn(e,t,n,"weekdaysShort")},a.normalizeUnits=j,a.relativeTimeRounding=function(e){return void 0===e?Xn:"function"==typeof e&&(Xn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Qn[e]&&(void 0===t?Qn[e]:(Qn[e]=t,"s"===e&&(Qn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=bn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(81)(e))},function(e,t,n){"use strict";function r(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(281)},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",function(){return r})},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(279),a=n(6);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(280);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,u,"next",e)}function u(e){n(i,a,o,s,u,"throw",e)}s(void 0)})}}},function(e,t,n){e.exports=n(283)},function(e,t,n){"use strict";t.__esModule=!0;var r=u(n(300));t.ToastContainer=r.default;var a=n(108);t.Bounce=a.Bounce,t.Slide=a.Slide,t.Zoom=a.Zoom,t.Flip=a.Flip;var o=n(45);t.ToastPosition=o.POSITION,t.ToastType=o.TYPE;var i=u(n(310));t.toast=i.default;var s=u(n(109));function u(e){return e&&e.__esModule?e:{default:e}}t.cssTransition=s.default},function(e,t,n){e.exports=n(301)()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getFullYear()}},function(e,t,n){var r;
|
2 |
/*!
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
-
|
7 |
-
/*!
|
8 |
-
Copyright (c) 2017 Jed Watson.
|
9 |
-
Licensed under the MIT License (MIT), see
|
10 |
-
http://jedwatson.github.io/classnames
|
11 |
-
*/
|
12 |
-
!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=a.apply(null,r);i&&e.push(i)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getHours()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=6e4;function a(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();t.setSeconds(0,0);var a=t.getTime()%r;return n*r+a}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMinutes()}},function(e,t,n){"use strict";var r=n(101),a=n(284),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:a,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,a=arguments.length;r<a;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},o=n.locale,i=o&&o.options&&o.options.weekStartsOn,s=null==i?0:Object(r.a)(i),u=null==n.weekStartsOn?s:Object(r.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(a.a)(e),d=l.getUTCDay(),c=(d<u?7:0)+d-u;return l.setUTCDate(l.getUTCDate()-c),l.setUTCHours(0,0,0,0),l}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(3),o=n(68);function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),i=Object(r.a)(t),s=n.getMonth()+i,u=new Date(0);u.setFullYear(n.getFullYear(),s,1),u.setHours(0,0,0,0);var l=Object(o.a)(u);return n.setMonth(s,Math.min(l,n.getDate())),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=t.getUTCDay(),a=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return s});var r=["D","DD"],a=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function i(e){return-1!==a.indexOf(e)}function s(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMonth()}},function(e,t,n){var r=n(243),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),o=Object(r.a)(t);return n.setDate(n.getDate()+o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e),a=Object(r.a)(t);return n.getTime()>a.getTime()}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(3),o=n(68);function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),i=Object(r.a)(t),s=n.getFullYear(),u=n.getDate(),l=new Date(0);l.setFullYear(s,i,15),l.setHours(0,0,0,0);var d=Object(o.a)(l);return n.setMonth(i,Math.min(u,d)),n}},function(e,t,n){var r=n(345),a=n(350);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(276)},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(3),o=n(22);function i(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(a.a)(e,t),i=n.getUTCFullYear(),s=t||{},u=s.locale,l=u&&u.options&&u.options.firstWeekContainsDate,d=null==l?1:Object(r.a)(l),c=null==s.firstWeekContainsDate?d:Object(r.a)(s.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,c),f.setUTCHours(0,0,0,0);var p=Object(o.a)(f,t),h=new Date(0);h.setUTCFullYear(i,0,c),h.setUTCHours(0,0,0,0);var m=Object(o.a)(h,t);return n.getTime()>=p.getTime()?i+1:n.getTime()>=m.getTime()?i:i-1}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e).getTime(),o=Object(r.a)(t);return new Date(n+o)}},function(e,t,n){"use strict";var r=n(41);function a(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var o=n(78),i=function(){function e(e){this.changeListeners=[],this.TESTING_ONETWO=2,this.cookies=function(e){return"string"==typeof e?r.parse(e):"object"==typeof e&&null!==e?e:{}}(e),this.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}return e.prototype._updateBrowserValues=function(){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this._updateBrowserValues(),a(this.cookies[e],t)},e.prototype.getAll=function(e){void 0===e&&(e={}),this._updateBrowserValues();var t={};for(var n in this.cookies)t[n]=a(this.cookies[n],e);return t},e.prototype.set=function(e,t,n){var a;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o({},this.cookies,((a={})[e]=t,a)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=o({},t,{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}();t.a=i},function(e,t,n){
|
13 |
/*!
|
14 |
* Chart.js v2.8.0
|
15 |
* https://www.chartjs.org
|
16 |
* (c) 2019 Chart.js Contributors
|
17 |
* Released under the MIT License
|
18 |
*/
|
19 |
-
e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={rgb2hsl:n,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:i,rgb2keyword:s,rgb2xyz:u,rgb2lab:l,rgb2lch:function(e){return y(l(e))},hsl2rgb:d,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;return 0===r?[0,0,0]:[t,2*(n*=(r*=2)<=1?r:2-r)/(r+n)*100,(r+n)/2*100]},hsl2hwb:function(e){return o(d(e))},hsl2cmyk:function(e){return i(d(e))},hsl2keyword:function(e){return s(d(e))},hsv2rgb:c,hsv2hsl:function(e){var t,n,r=e[0],a=e[1]/100,o=e[2]/100;return t=a*o,[r,100*(t=(t/=(n=(2-a)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(c(e))},hsv2cmyk:function(e){return i(c(e))},hsv2keyword:function(e){return s(c(e))},hwb2rgb:f,hwb2hsl:function(e){return n(f(e))},hwb2hsv:function(e){return a(f(e))},hwb2cmyk:function(e){return i(f(e))},hwb2keyword:function(e){return s(f(e))},cmyk2rgb:p,cmyk2hsl:function(e){return n(p(e))},cmyk2hsv:function(e){return a(p(e))},cmyk2hwb:function(e){return o(p(e))},cmyk2keyword:function(e){return s(p(e))},keyword2rgb:w,keyword2hsl:function(e){return n(w(e))},keyword2hsv:function(e){return a(w(e))},keyword2hwb:function(e){return o(w(e))},keyword2cmyk:function(e){return i(w(e))},keyword2lab:function(e){return l(w(e))},keyword2xyz:function(e){return u(w(e))},xyz2rgb:h,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:_,lab2rgb:v,lab2lch:y,lch2lab:M,lch2xyz:function(e){return _(M(e))},lch2rgb:function(e){return v(M(e))}};function n(e){var t,n,r=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(r,a,o),s=Math.max(r,a,o),u=s-i;return s==i?t=0:r==s?t=(a-o)/u:a==s?t=2+(o-r)/u:o==s&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s==i?0:n<=.5?u/(s+i):u/(2-s-i)),100*n]}function a(e){var t,n,r=e[0],a=e[1],o=e[2],i=Math.min(r,a,o),s=Math.max(r,a,o),u=s-i;return n=0==s?0:u/s*1e3/10,s==i?t=0:r==s?t=(a-o)/u:a==s?t=2+(o-r)/u:o==s&&(t=4+(r-a)/u),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],r=e[1],a=e[2];return[n(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]}function i(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]}function s(e){return L[JSON.stringify(e)]}function u(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function l(e){var t=u(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(e){var t,n,r,a,o,i=e[0]/360,s=e[1]/100,u=e[2]/100;if(0==s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),a=[0,0,0];for(var l=0;l<3;l++)(r=i+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[l]=255*o;return a}function c(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,a){case 0:return[r,u,i];case 1:return[s,r,i];case 2:return[i,r,u];case 3:return[i,s,r];case 4:return[u,i,r];case 5:return[r,i,s]}}function f(e){var t,n,a,o,i=e[0]/360,s=e[1]/100,u=e[2]/100,l=s+u;switch(l>1&&(s/=l,u/=l),a=6*i-(t=Math.floor(6*i)),0!=(1&t)&&(a=1-a),o=s+a*((n=1-u)-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function p(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]}function h(e){var t,n,r,a=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*o+.0415*i,r=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function _(e){var t,n,r,a,o=e[0],i=e[1],s=e[2];return o<=8?a=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(i/500+a-16/116)/7.787:95.047*Math.pow(i/500+a,3),n,r=r/108.883<=.008859?r=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]}function v(e){return h(_(e))}function M(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function w(e){return T[e]}var T={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},L={};for(var k in T)L[JSON.stringify(T[k])]=k;var D=function(){return new O};for(var x in t){D[x+"Raw"]=function(e){return function(n){return"number"==typeof n&&(n=Array.prototype.slice.call(arguments)),t[e](n)}}(x);var S=/(\w+)2(\w+)/.exec(x),Y=S[1],E=S[2];(D[Y]=D[Y]||{})[E]=D[x]=function(e){return function(n){"number"==typeof n&&(n=Array.prototype.slice.call(arguments));var r=t[e](n);if("string"==typeof r||void 0===r)return r;for(var a=0;a<r.length;a++)r[a]=Math.round(r[a]);return r}}(x)}var O=function(){this.convs={}};O.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},O.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},O.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=D[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){O.prototype[e]=function(t){return this.routeSpace(e,arguments)}});var C=D,P={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},I={getRgba:j,getHsla:R,getRgb:function(e){var t=j(e);return t&&t.slice(0,3)},getHsl:function(e){var t=R(e);return t&&t.slice(0,3)},getHwb:H,getAlpha:function(e){var t=j(e);return t?t[3]:(t=R(e))?t[3]:(t=H(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+U(e[0])+U(e[1])+U(e[2])+(t>=0&&t<1?U(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?A(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:A,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return N(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+a+"%)"},percentaString:N,hslString:function(e,t){return t<1||e[3]&&e[3]<1?F(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:F,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return B[e.slice(0,3)]}};function j(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(r){a=(r=r[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(r[o]+r[o],16);a&&(n=Math.round(parseInt(a+a,16)/255*100)/100)}else if(r=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(a=r[2],r=r[1],o=0;o<t.length;o++)t[o]=parseInt(r.slice(2*o,2*o+2),16);a&&(n=Math.round(parseInt(a,16)/255*100)/100)}else if(r=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(r[o+1]);n=parseFloat(r[4])}else if(r=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(r[o+1]));n=parseFloat(r[4])}else if(r=e.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(t=P[r[1]]))return}for(o=0;o<t.length;o++)t[o]=W(t[o],0,255);return n=n||0==n?W(n,0,1):1,t[3]=n,t}}function R(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[W(parseInt(t[1]),0,360),W(parseFloat(t[2]),0,100),W(parseFloat(t[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function H(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[W(parseInt(t[1]),0,360),W(parseFloat(t[2]),0,100),W(parseFloat(t[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function A(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function N(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function F(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function W(e,t,n){return Math.min(Math.max(t,e),n)}function U(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var B={};for(var z in P)B[P[z]]=z;var V=function(e){return e instanceof V?e:this instanceof V?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=I.getRgba(e))?this.setValues("rgb",t):(t=I.getHsla(e))?this.setValues("hsl",t):(t=I.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new V(e);var t};V.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return I.hexString(this.values.rgb)},rgbString:function(){return I.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return I.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return I.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return I.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return I.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return I.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return I.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,a=2*r-1,o=this.alpha()-n.alpha(),i=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,s=1-i;return this.rgb(i*this.red()+s*n.red(),i*this.green()+s*n.green(),i*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new V,r=this.values,a=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],"[object Array]"===(t={}.toString.call(e))?a[o]=e.slice(0):"[object Number]"===t?a[o]=e:console.error("unexpected color value:",e));return n}},V.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},V.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},V.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},V.prototype.setValues=function(e,t){var n,r,a=this.values,o=this.spaces,i=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)a[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)a[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var u=o[e];for(n=0;n<e.length;n++)a[e][n]=t[u[n]];s=t.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(i[e][n],a[e][n])),a[e][n]=Math.round(r);for(var l in o)l!==e&&(a[l]=C[e][l](a[e]));return!0},V.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},V.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:n===r[t]?this:(r[t]=n,this.setValues(e,r),this)},"undefined"!=typeof window&&(window.Color=V);var q,G=V,J={noop:function(){},uid:(q=0,function(){return q++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return J.valueOrDefault(J.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var a,o,i;if(J.isArray(e))if(o=e.length,r)for(a=o-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<o;a++)t.call(n,e[a],a);else if(J.isObject(e))for(o=(i=Object.keys(e)).length,a=0;a<o;a++)t.call(n,e[i[a]],i[a])},arrayEquals:function(e,t){var n,r,a,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],o=t[n],a instanceof Array&&o instanceof Array){if(!J.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(e){if(J.isArray(e))return e.map(J.clone);if(J.isObject(e)){for(var t={},n=Object.keys(e),r=n.length,a=0;a<r;++a)t[n[a]]=J.clone(e[n[a]]);return t}return e},_merger:function(e,t,n,r){var a=t[e],o=n[e];J.isObject(a)&&J.isObject(o)?J.merge(a,o,r):t[e]=J.clone(o)},_mergerIf:function(e,t,n){var r=t[e],a=n[e];J.isObject(r)&&J.isObject(a)?J.mergeIf(r,a):t.hasOwnProperty(e)||(t[e]=J.clone(a))},merge:function(e,t,n){var r,a,o,i,s,u=J.isArray(t)?t:[t],l=u.length;if(!J.isObject(e))return e;for(r=(n=n||{}).merger||J._merger,a=0;a<l;++a)if(t=u[a],J.isObject(t))for(s=0,i=(o=Object.keys(t)).length;s<i;++s)r(o[s],e,t,n);return e},mergeIf:function(e,t){return J.merge(e,t,{merger:J._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,r=arguments.length;n<r;++n)J.each(arguments[n],t);return e},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=J.inherits,e&&J.extend(n.prototype,e),n.__super__=t.prototype,n}},X=J;J.callCallback=J.callback,J.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},J.getValueOrDefault=J.valueOrDefault,J.getValueAtIndexOrDefault=J.valueAtIndexOrDefault;var Q={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-Q.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*Q.easeInBounce(2*e):.5*Q.easeOutBounce(2*e-1)+.5}},K={effects:Q};X.easingEffects=Q;var Z=Math.PI,$=Z/180,ee=2*Z,te=Z/2,ne=Z/4,re=2*Z/3,ae={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,o){if(o){var i=Math.min(o,a/2,r/2),s=t+i,u=n+i,l=t+r-i,d=n+a-i;e.moveTo(t,u),s<l&&u<d?(e.arc(s,u,i,-Z,-te),e.arc(l,u,i,-te,0),e.arc(l,d,i,0,te),e.arc(s,d,i,te,Z)):s<l?(e.moveTo(s,n),e.arc(l,u,i,-te,te),e.arc(s,u,i,te,Z+te)):u<d?(e.arc(s,u,i,-Z,0),e.arc(s,d,i,0,Z)):e.arc(s,u,i,-Z,Z),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,o){var i,s,u,l,d,c=(o||0)*$;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(i=t.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,a,n,0,ee),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(c)*n,a-Math.cos(c)*n),c+=re,e.lineTo(r+Math.sin(c)*n,a-Math.cos(c)*n),c+=re,e.lineTo(r+Math.sin(c)*n,a-Math.cos(c)*n),e.closePath();break;case"rectRounded":l=n-(d=.516*n),s=Math.cos(c+ne)*l,u=Math.sin(c+ne)*l,e.arc(r-s,a-u,d,c-Z,c-te),e.arc(r+u,a-s,d,c-te,c),e.arc(r+s,a+u,d,c,c+te),e.arc(r-u,a+s,d,c+te,c+Z),e.closePath();break;case"rect":if(!o){l=Math.SQRT1_2*n,e.rect(r-l,a-l,2*l,2*l);break}c+=ne;case"rectRot":s=Math.cos(c)*n,u=Math.sin(c)*n,e.moveTo(r-s,a-u),e.lineTo(r+u,a-s),e.lineTo(r+s,a+u),e.lineTo(r-u,a+s),e.closePath();break;case"crossRot":c+=ne;case"cross":s=Math.cos(c)*n,u=Math.sin(c)*n,e.moveTo(r-s,a-u),e.lineTo(r+s,a+u),e.moveTo(r+u,a-s),e.lineTo(r-u,a+s);break;case"star":s=Math.cos(c)*n,u=Math.sin(c)*n,e.moveTo(r-s,a-u),e.lineTo(r+s,a+u),e.moveTo(r+u,a-s),e.lineTo(r-u,a+s),c+=ne,s=Math.cos(c)*n,u=Math.sin(c)*n,e.moveTo(r-s,a-u),e.lineTo(r+s,a+u),e.moveTo(r+u,a-s),e.lineTo(r-u,a+s);break;case"line":s=Math.cos(c)*n,u=Math.sin(c)*n,e.moveTo(r-s,a-u),e.lineTo(r+s,a+u);break;case"dash":e.moveTo(r,a),e.lineTo(r+Math.cos(c)*n,a+Math.sin(c)*n)}e.fill(),e.stroke()}}else e.drawImage(t,r-t.width/2,a-t.height/2,t.width,t.height)},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var a=n.steppedLine;if(a){if("middle"===a){var o=(t.x+n.x)/2;e.lineTo(o,r?n.y:t.y),e.lineTo(o,r?t.y:n.y)}else"after"===a&&!r||"after"!==a&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},oe=ae;X.clear=ae.clear,X.drawRoundedRectangle=function(e){e.beginPath(),ae.roundedRect.apply(ae,arguments)};var ie={_set:function(e,t){return X.merge(this[e]||(this[e]={}),t)}};ie._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var se=ie,ue=X.valueOrDefault,le={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,a;return X.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,a=+e.left||0):t=n=r=a=+e||0,{top:t,right:n,bottom:r,left:a,height:t+r,width:a+n}},_parseFont:function(e){var t=se.global,n=ue(e.fontSize,t.defaultFontSize),r={family:ue(e.fontFamily,t.defaultFontFamily),lineHeight:X.options.toLineHeight(ue(e.lineHeight,t.defaultLineHeight),n),size:n,style:ue(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=function(e){return!e||X.isNullOrUndef(e.size)||X.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r},resolve:function(e,t,n){var r,a,o;for(r=0,a=e.length;r<a;++r)if(void 0!==(o=e[r])&&(void 0!==t&&"function"==typeof o&&(o=o(t)),void 0!==n&&X.isArray(o)&&(o=o[n]),void 0!==o))return o}},de=X,ce=K,fe=oe,pe=le;de.easing=ce,de.canvas=fe,de.options=pe;var he=function(e){de.extend(this,e),this.initialize.apply(this,arguments)};de.extend(he.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=de.clone(e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,a=t._view;return n&&1!==e?(a||(a=t._view={}),r||(r=t._start={}),function(e,t,n,r){var a,o,i,s,u,l,d,c,f,p=Object.keys(n);for(a=0,o=p.length;a<o;++a)if(l=n[i=p[a]],t.hasOwnProperty(i)||(t[i]=l),(s=t[i])!==l&&"_"!==i[0]){if(e.hasOwnProperty(i)||(e[i]=s),(d=typeof l)==typeof(u=e[i]))if("string"===d){if((c=G(u)).valid&&(f=G(l)).valid){t[i]=f.mix(c,r).rgbString();continue}}else if(de.isFinite(u)&&de.isFinite(l)){t[i]=u+(l-u)*r;continue}t[i]=l}}(r,a,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return de.isNumber(this._model.x)&&de.isNumber(this._model.y)}}),he.extend=de.inherits;var me=he,_e=me.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),ge=_e;Object.defineProperty(_e.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(_e.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),se._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:de.noop,onComplete:de.noop}});var ye={animations:[],request:null,addAnimation:function(e,t,n,r){var a,o,i=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),a=0,o=i.length;a<o;++a)if(i[a].chart===e)return void(i[a]=t);i.push(t),1===i.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=de.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=de.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,a=this.animations,o=0;o<a.length;)t=(e=a[o]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),de.callback(e.render,[t,e],t),de.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(de.callback(e.onAnimationComplete,[e],t),t.animating=!1,a.splice(o,1)):++o}},ve=de.options.resolve,be=["push","pop","shift","splice","unshift"];function Me(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(be.forEach(function(t){delete e[t]}),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};de.extend(we.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this.update(!0)},destroy:function(){this._data&&Me(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],a=n.data;for(e=0,t=r.length;e<t;++e)a[e]=a[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,r=n.getDataset(),a=r.data||(r.data=[]);n._data!==a&&(n._data&&Me(n._data,n),a&&Object.isExtensible(a)&&(t=n,(e=a)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),be.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),a=r.apply(this,t);return de.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),a}})}))),n._data=a),n.resyncElements()},update:de.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){de.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model,o=de.getHoverColor;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=ve([r.hoverBackgroundColor,t.hoverBackgroundColor,o(a.backgroundColor)],void 0,n),a.borderColor=ve([r.hoverBorderColor,t.hoverBorderColor,o(a.borderColor)],void 0,n),a.borderWidth=ve([r.hoverBorderWidth,t.hoverBorderWidth,a.borderWidth],void 0,n)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),we.extend=de.inherits;var Te=we;se._set("global",{elements:{arc:{backgroundColor:se.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Le=me.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=de.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,o=r.distance,i=n.startAngle,s=n.endAngle;s<i;)s+=2*Math.PI;for(;a>s;)a-=2*Math.PI;for(;a<i;)a+=2*Math.PI;var u=a>=i&&a<=s,l=o>=n.innerRadius&&o<=n.outerRadius;return u&&l}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r=n.startAngle,a=n.endAngle,o="inner"===n.borderAlign?.33:0;t.save(),t.beginPath(),t.arc(n.x,n.y,Math.max(n.outerRadius-o,0),r,a),t.arc(n.x,n.y,n.innerRadius,a,r,!0),t.closePath(),t.fillStyle=n.backgroundColor,t.fill(),n.borderWidth&&("inner"===n.borderAlign?(t.beginPath(),e=o/n.outerRadius,t.arc(n.x,n.y,n.outerRadius,r-e,a+e),n.innerRadius>o?(e=o/n.innerRadius,t.arc(n.x,n.y,n.innerRadius-o,a+e,r-e,!0)):t.arc(n.x,n.y,o,a+Math.PI/2,r-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(n.x,n.y,n.outerRadius,r,a),t.arc(n.x,n.y,n.innerRadius,a,r,!0),t.closePath(),t.lineWidth=2*n.borderWidth,t.lineJoin="round"):(t.lineWidth=n.borderWidth,t.lineJoin="bevel"),t.strokeStyle=n.borderColor,t.stroke()),t.restore()}}),ke=de.valueOrDefault,De=se.global.defaultColor;se._set("global",{elements:{line:{tension:.4,backgroundColor:De,borderWidth:3,borderColor:De,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var xe=me.extend({draw:function(){var e,t,n,r,a=this._view,o=this._chart.ctx,i=a.spanGaps,s=this._children.slice(),u=se.global,l=u.elements.line,d=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||l.borderDash),o.lineDashOffset=ke(a.borderDashOffset,l.borderDashOffset),o.lineJoin=a.borderJoinStyle||l.borderJoinStyle,o.lineWidth=ke(a.borderWidth,l.borderWidth),o.strokeStyle=a.borderColor||u.defaultColor,o.beginPath(),d=-1,e=0;e<s.length;++e)t=s[e],n=de.previousItem(s,e),r=t._view,0===e?r.skip||(o.moveTo(r.x,r.y),d=e):(n=-1===d?n:s[d],r.skip||(d!==e-1&&!i||-1===d?o.moveTo(r.x,r.y):de.canvas.lineTo(o,n._view,t._view),d=e));o.stroke(),o.restore()}}),Se=de.valueOrDefault,Ye=se.global.defaultColor;function Ee(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}se._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Ye,borderColor:Ye,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Oe=me.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Ee,inXRange:Ee,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,a=t.rotation,o=t.radius,i=t.x,s=t.y,u=se.global,l=u.defaultColor;t.skip||(void 0===e||de.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||l,n.lineWidth=Se(t.borderWidth,u.elements.point.borderWidth),n.fillStyle=t.backgroundColor||l,de.canvas.drawPoint(n,r,o,i,s,a))}}),Ce=se.global.defaultColor;function Pe(e){return e&&void 0!==e.width}function Ie(e){var t,n,r,a,o;return Pe(e)?(o=e.width/2,t=e.x-o,n=e.x+o,r=Math.min(e.y,e.base),a=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-o,a=e.y+o),{left:t,top:r,right:n,bottom:a}}function je(e,t,n){return e===t?n:e===n?t:e}function Re(e,t,n){var r,a,o,i,s=e.borderWidth,u=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=je(t,"left","right")):e.base<e.y&&(t=je(t,"bottom","top")),n[t]=!0,n):n}(e);return de.isObject(s)?(r=+s.top||0,a=+s.right||0,o=+s.bottom||0,i=+s.left||0):r=a=o=i=+s||0,{t:u.top||r<0?0:r>n?n:r,r:u.right||a<0?0:a>t?t:a,b:u.bottom||o<0?0:o>n?n:o,l:u.left||i<0?0:i>t?t:i}}function He(e,t,n){var r=null===t,a=null===n,o=!(!e||r&&a)&&Ie(e);return o&&(r||t>=o.left&&t<=o.right)&&(a||n>=o.top&&n<=o.bottom)}se._set("global",{elements:{rectangle:{backgroundColor:Ce,borderColor:Ce,borderSkipped:"bottom",borderWidth:0}}});var Ae=me.extend({draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=Ie(e),n=t.right-t.left,r=t.bottom-t.top,a=Re(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b}}}(t),r=n.outer,a=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===a.w&&r.h===a.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(a.x,a.y,a.w,a.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return He(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Pe(n)?He(n,e,null):He(n,null,t)},inXRange:function(e){return He(this._view,e,null)},inYRange:function(e){return He(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Pe(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Pe(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ne={},Fe=Le,We=xe,Ue=Oe,Be=Ae;Ne.Arc=Fe,Ne.Line=We,Ne.Point=Ue,Ne.Rectangle=Be;var ze=de.options.resolve;se._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var Ve=Te.extend({dataElementType:Ne.Rectangle,initialize:function(){var e,t=this;Te.prototype.initialize.apply(t,arguments),(e=t.getMeta()).stack=t.getDataset().stack,e.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=r.getDataset(),i=r._resolveElementOptions(e,t);e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderSkipped:i.borderSkipped,borderWidth:i.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[t]},r._updateElementGeometry(e,t,n),e.pivot()},_updateElementGeometry:function(e,t,n){var r=this,a=e._model,o=r._getValueScale(),i=o.getBasePixel(),s=o.isHorizontal(),u=r._ruler||r.getRuler(),l=r.calculateBarValuePixels(r.index,t),d=r.calculateBarIndexPixels(r.index,t,u);a.horizontal=s,a.base=n?i:l.base,a.x=s?n?i:l.head:d.center,a.y=s?d.center:n?i:l.head,a.height=s?d.size:void 0,a.width=s?void 0:d.size},_getStacks:function(e){var t,n,r=this.chart,a=this._getIndexScale().options.stacked,o=void 0===e?r.data.datasets.length:e+1,i=[];for(t=0;t<o;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===a||!0===a&&-1===i.indexOf(n.stack)||void 0===a&&(void 0===n.stack||-1===i.indexOf(n.stack)))&&i.push(n.stack);return i},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this._getIndexScale(),r=this.getStackCount(),a=this.index,o=n.isHorizontal(),i=o?n.left:n.top,s=i+(o?n.width:n.height),u=[];for(e=0,t=this.getMeta().data.length;e<t;++e)u.push(n.getPixelForValue(null,e,a));return{min:de.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,a,o,i=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(a=1,o=t.length;a<o;++a)i=Math.min(i,Math.abs(t[a]-t[a-1]));for(a=0,o=s.length;a<o;++a)r=e.getPixelForTick(a),i=a>0?Math.min(i,r-n):i,n=r;return i}(n,u):-1,pixels:u,start:i,end:s,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,a,o,i,s,u=this.chart,l=this.getMeta(),d=this._getValueScale(),c=d.isHorizontal(),f=u.data.datasets,p=+d.getRightValue(f[e].data[t]),h=d.options.minBarLength,m=d.options.stacked,_=l.stack,g=0;if(m||void 0===m&&void 0!==_)for(n=0;n<e;++n)(r=u.getDatasetMeta(n)).bar&&r.stack===_&&r.controller._getValueScaleId()===d.id&&u.isDatasetVisible(n)&&(a=+d.getRightValue(f[n].data[t]),(p<0&&a<0||p>=0&&a>0)&&(g+=a));return o=d.getPixelForValue(g),s=(i=d.getPixelForValue(g+p))-o,void 0!==h&&Math.abs(s)<h&&(s=h,i=p>=0&&!c||p<0&&c?o-h:o+h),{size:s,base:o,head:i,center:i+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,a="flex"===r.barThickness?function(e,t,n){var r,a=t.pixels,o=a[e],i=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,u=n.categoryPercentage;return null===i&&(i=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-i),r=o-(o-Math.min(i,s))/2*u,{chunk:Math.abs(s-i)/2*u/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,a,o=n.barThickness,i=t.stackCount,s=t.pixels[e];return de.isNullOrUndef(o)?(r=t.min*n.categoryPercentage,a=n.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:s-r/2}}(t,n,r),o=this.getStackIndex(e,this.getMeta().stack),i=a.start+a.chunk*o+a.chunk/2,s=Math.min(de.valueOrDefault(r.maxBarThickness,1/0),a.chunk*a.ratio);return{base:i-s/2,head:i+s/2,center:i,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,r=this.getDataset(),a=n.length,o=0;for(de.canvas.clipArea(e.ctx,e.chartArea);o<a;++o)isNaN(t.getRightValue(r.data[o]))||n[o].draw();de.canvas.unclipArea(e.ctx)},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},u=o.options.elements.rectangle,l={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(n=0,r=c.length;n<r;++n)l[a=c[n]]=ze([s[a],i[a],u[a]],d,t);return l}}),qe=de.valueOrDefault,Ge=de.options.resolve;se._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var Je=Te.extend({dataElementType:Ne.Point,update:function(e){var t=this,n=t.getMeta().data;de.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=e.custom||{},i=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),u=r._resolveElementOptions(e,t),l=r.getDataset().data[t],d=r.index,c=n?i.getPixelForDecimal(.5):i.getPixelForValue("object"==typeof l?l:NaN,t,d),f=n?s.getBasePixel():s.getPixelForValue(l,t,d);e._xScale=i,e._yScale=s,e._options=u,e._datasetIndex=d,e._index=t,e._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,hitRadius:u.hitRadius,pointStyle:u.pointStyle,rotation:u.rotation,radius:n?0:u.radius,skip:o.skip||isNaN(c)||isNaN(f),x:c,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=qe(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=qe(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=qe(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},u=o.options.elements.point,l=i.data[t],d={},c={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},f=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=f.length;n<r;++n)d[a=f[n]]=Ge([s[a],i[a],u[a]],c,t);return d.radius=Ge([s.radius,l?l.r:void 0,i.radius,u.radius],c,t),d}}),Xe=de.options.resolve,Qe=de.valueOrDefault;se._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),o=t.datasets[0],i=a.data[r],s=i&&i.custom||{},u=e.options.elements.arc;return{text:n,fillStyle:Xe([s.backgroundColor,o.backgroundColor,u.backgroundColor],void 0,r),strokeStyle:Xe([s.borderColor,o.borderColor,u.borderColor],void 0,r),lineWidth:Xe([s.borderWidth,o.borderWidth,u.borderWidth],void 0,r),hidden:isNaN(o.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o]&&(a.data[o].hidden=!a.data[o].hidden);i.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return de.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var Ke=Te.extend({dataElementType:Ne.Arc,linkScales:de.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r=this,a=r.chart,o=a.chartArea,i=a.options,s=o.right-o.left,u=o.bottom-o.top,l=Math.min(s,u),d={x:0,y:0},c=r.getMeta(),f=c.data,p=i.cutoutPercentage,h=i.circumference,m=r._getRingWeight(r.index);if(h<2*Math.PI){var _=i.rotation%(2*Math.PI),g=(_+=2*Math.PI*(_>=Math.PI?-1:_<-Math.PI?1:0))+h,y={x:Math.cos(_),y:Math.sin(_)},v={x:Math.cos(g),y:Math.sin(g)},b=_<=0&&g>=0||_<=2*Math.PI&&2*Math.PI<=g,M=_<=.5*Math.PI&&.5*Math.PI<=g||_<=2.5*Math.PI&&2.5*Math.PI<=g,w=_<=-Math.PI&&-Math.PI<=g||_<=Math.PI&&Math.PI<=g,T=_<=.5*-Math.PI&&.5*-Math.PI<=g||_<=1.5*Math.PI&&1.5*Math.PI<=g,L=p/100,k={x:w?-1:Math.min(y.x*(y.x<0?1:L),v.x*(v.x<0?1:L)),y:T?-1:Math.min(y.y*(y.y<0?1:L),v.y*(v.y<0?1:L))},D={x:b?1:Math.max(y.x*(y.x>0?1:L),v.x*(v.x>0?1:L)),y:M?1:Math.max(y.y*(y.y>0?1:L),v.y*(v.y>0?1:L))},x={width:.5*(D.x-k.x),height:.5*(D.y-k.y)};l=Math.min(s/x.width,u/x.height),d={x:-.5*(D.x+k.x),y:-.5*(D.y+k.y)}}for(t=0,n=f.length;t<n;++t)f[t]._options=r._resolveElementOptions(f[t],t);for(a.borderWidth=r.getMaxBorderWidth(),a.outerRadius=Math.max((l-a.borderWidth)/2,0),a.innerRadius=Math.max(p?a.outerRadius/100*p:0,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),a.offsetX=d.x*a.outerRadius,a.offsetY=d.y*a.outerRadius,c.total=r.calculateTotal(),r.outerRadius=a.outerRadius-a.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-a.radiusLength*m,0),t=0,n=f.length;t<n;++t)r.updateElement(f[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.chart,o=a.chartArea,i=a.options,s=i.animation,u=(o.left+o.right)/2,l=(o.top+o.bottom)/2,d=i.rotation,c=i.rotation,f=r.getDataset(),p=n&&s.animateRotate?0:e.hidden?0:r.calculateCircumference(f.data[t])*(i.circumference/(2*Math.PI)),h=n&&s.animateScale?0:r.innerRadius,m=n&&s.animateScale?0:r.outerRadius,_=e._options||{};de.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:u+a.offsetX,y:l+a.offsetY,startAngle:d,endAngle:c,circumference:p,outerRadius:m,innerRadius:h,label:de.valueAtIndexOrDefault(f.label,t,a.data.labels[t])}});var g=e._model;n&&s.animateRotate||(g.startAngle=0===t?i.rotation:r.getMeta().data[t-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return de.each(n.data,function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,a,o,i,s,u,l=0,d=this.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){e=(r=d.getDatasetMeta(t)).data,t!==this.index&&(o=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)a=e[t],"inner"!==(i=o?o._resolveElementOptions(a,t):a._options).borderAlign&&(s=i.borderWidth,l=(u=i.hoverBorderWidth)>(l=s>l?s:l)?u:l);return l},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Qe(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Qe(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Qe(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=this.getDataset(),s=e.custom||{},u=o.options.elements.arc,l={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=c.length;n<r;++n)l[a=c[n]]=Xe([s[a],i[a],u[a]],d,t);return l},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Qe(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});se._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Ze=Ve.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),$e=de.valueOrDefault,et=de.options.resolve,tt=de.canvas._isPointInArea;function nt(e,t){return $e(e.showLine,t.showLines)}se._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var rt=Te.extend({datasetElementType:Ne.Line,dataElementType:Ne.Point,update:function(e){var t,n,r=this,a=r.getMeta(),o=a.dataset,i=a.data||[],s=r.getScaleForId(a.yAxisID),u=r.getDataset(),l=nt(u,r.chart.options);for(l&&(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=i,o._model=r._resolveLineOptions(o),o.pivot()),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e);for(l&&0!==o._model.tension&&r.updateBezierControlPoints(),t=0,n=i.length;t<n;++t)i[t].pivot()},updateElement:function(e,t,n){var r,a,o=this,i=o.getMeta(),s=e.custom||{},u=o.getDataset(),l=o.index,d=u.data[t],c=o.getScaleForId(i.yAxisID),f=o.getScaleForId(i.xAxisID),p=i.dataset._model,h=o._resolvePointOptions(e,t);r=f.getPixelForValue("object"==typeof d?d:NaN,t,l),a=n?c.getBasePixel():o.calculatePointY(d,t,l),e._xScale=f,e._yScale=c,e._options=h,e._datasetIndex=l,e._index=t,e._model={x:r,y:a,skip:s.skip||isNaN(r)||isNaN(a),radius:h.radius,pointStyle:h.pointStyle,rotation:h.rotation,backgroundColor:h.backgroundColor,borderColor:h.borderColor,borderWidth:h.borderWidth,tension:$e(s.tension,p?p.tension:0),steppedLine:!!p&&p.steppedLine,hitRadius:h.hitRadius}},_resolvePointOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},u=o.options.elements.point,l={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(c);for(n=0,r=f.length;n<r;++n)l[a=f[n]]=et([s[a],i[c[a]],i[a],u[a]],d,t);return l},_resolveLineOptions:function(e){var t,n,r,a=this.chart,o=a.data.datasets[this.index],i=e.custom||{},s=a.options,u=s.elements.line,l={},d=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(t=0,n=d.length;t<n;++t)l[r=d[t]]=et([i[r],o[r],u[r]]);return l.spanGaps=$e(o.spanGaps,s.spanGaps),l.tension=$e(o.lineTension,u.tension),l.steppedLine=et([i.steppedLine,o.steppedLine,u.stepped]),l},calculatePointY:function(e,t,n){var r,a,o,i=this.chart,s=this.getMeta(),u=this.getScaleForId(s.yAxisID),l=0,d=0;if(u.options.stacked){for(r=0;r<n;r++)if(a=i.data.datasets[r],"line"===(o=i.getDatasetMeta(r)).type&&o.yAxisID===u.id&&i.isDatasetVisible(r)){var c=Number(u.getRightValue(a.data[t]));c<0?d+=c||0:l+=c||0}var f=Number(u.getRightValue(e));return f<0?u.getPixelForValue(d+f):u.getPixelForValue(l+f)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this.chart,o=this.getMeta(),i=o.dataset._model,s=a.chartArea,u=o.data||[];function l(e,t,n){return Math.max(Math.min(e,n),t)}if(i.spanGaps&&(u=u.filter(function(e){return!e._model.skip})),"monotone"===i.cubicInterpolationMode)de.splineCurveMonotone(u);else for(e=0,t=u.length;e<t;++e)n=u[e]._model,r=de.splineCurve(de.previousItem(u,e)._model,n,de.nextItem(u,e)._model,i.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(a.options.elements.line.capBezierPoints)for(e=0,t=u.length;e<t;++e)n=u[e]._model,tt(n,s)&&(e>0&&tt(u[e-1]._model,s)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=l(n.controlPointPreviousY,s.top,s.bottom)),e<u.length-1&&tt(u[e+1]._model,s)&&(n.controlPointNextX=l(n.controlPointNextX,s.left,s.right),n.controlPointNextY=l(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),r=n.data||[],a=t.chartArea,o=r.length,i=0;for(nt(this.getDataset(),t.options)&&(e=(n.dataset._model.borderWidth||0)/2,de.canvas.clipArea(t.ctx,{left:a.left,right:a.right,top:a.top-e,bottom:a.bottom+e}),n.dataset.draw(),de.canvas.unclipArea(t.ctx));i<o;++i)r[i].draw(a)},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=$e(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=$e(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=$e(n.hoverBorderWidth,n.borderWidth),t.radius=$e(n.hoverRadius,n.radius)}}),at=de.options.resolve;se._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),o=t.datasets[0],i=a.data[r].custom||{},s=e.options.elements.arc;return{text:n,fillStyle:at([i.backgroundColor,o.backgroundColor,s.backgroundColor],void 0,r),strokeStyle:at([i.borderColor,o.borderColor,s.borderColor],void 0,r),lineWidth:at([i.borderWidth,o.borderWidth,s.borderWidth],void 0,r),hidden:isNaN(o.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var ot=Te.extend({dataElementType:Ne.Arc,linkScales:de.noop,update:function(e){var t,n,r,a=this,o=a.getDataset(),i=a.getMeta(),s=a.chart.options.startAngle||0,u=a._starts=[],l=a._angles=[],d=i.data;for(a._updateRadius(),i.count=a.countVisibleElements(),t=0,n=o.data.length;t<n;t++)u[t]=s,r=a._computeAngle(t),l[t]=r,s+=r;for(t=0,n=d.length;t<n;++t)d[t]._options=a._resolveElementOptions(d[t],t),a.updateElement(d[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(a/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,o=r.getDataset(),i=a.options,s=i.animation,u=a.scale,l=a.data.labels,d=u.xCenter,c=u.yCenter,f=i.startAngle,p=e.hidden?0:u.getDistanceFromCenterForValue(o.data[t]),h=r._starts[t],m=h+(e.hidden?0:r._angles[t]),_=s.animateScale?0:u.getDistanceFromCenterForValue(o.data[t]),g=e._options||{};de.extend(e,{_datasetIndex:r.index,_index:t,_scale:u,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:d,y:c,innerRadius:0,outerRadius:n?_:p,startAngle:n&&s.animateRotate?f:h,endAngle:n&&s.animateRotate?f:m,label:de.valueAtIndexOrDefault(l,t,l[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return de.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor,a=de.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=a(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=a(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=this.getDataset(),s=e.custom||{},u=o.options.elements.arc,l={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=c.length;n<r;++n)l[a=c[n]]=at([s[a],i[a],u[a]],d,t);return l},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return at([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});se._set("pie",de.clone(se.doughnut)),se._set("pie",{cutoutPercentage:0});var it=Ke,st=de.valueOrDefault,ut=de.options.resolve;se._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var lt=Te.extend({datasetElementType:Ne.Line,dataElementType:Ne.Point,linkScales:de.noop,update:function(e){var t,n,r=this,a=r.getMeta(),o=a.dataset,i=a.data||[],s=r.chart.scale,u=r.getDataset();for(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=i,o._loop=!0,o._model=r._resolveLineOptions(o),o.pivot(),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e);for(r.updateBezierControlPoints(),t=0,n=i.length;t<n;++t)i[t].pivot()},updateElement:function(e,t,n){var r=this,a=e.custom||{},o=r.getDataset(),i=r.chart.scale,s=i.getPointPositionForValue(t,o.data[t]),u=r._resolvePointOptions(e,t),l=r.getMeta().dataset._model,d=n?i.xCenter:s.x,c=n?i.yCenter:s.y;e._scale=i,e._options=u,e._datasetIndex=r.index,e._index=t,e._model={x:d,y:c,skip:a.skip||isNaN(d)||isNaN(c),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:st(a.tension,l?l.tension:0),hitRadius:u.hitRadius}},_resolvePointOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},u=o.options.elements.point,l={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(c);for(n=0,r=f.length;n<r;++n)l[a=f[n]]=ut([s[a],i[c[a]],i[a],u[a]],d,t);return l},_resolveLineOptions:function(e){var t,n,r,a=this.chart,o=a.data.datasets[this.index],i=e.custom||{},s=a.options.elements.line,u={},l=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(t=0,n=l.length;t<n;++t)u[r=l[t]]=ut([i[r],o[r],s[r]]);return u.tension=st(o.lineTension,s.tension),u},updateBezierControlPoints:function(){var e,t,n,r,a=this.getMeta(),o=this.chart.chartArea,i=a.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(e=0,t=i.length;e<t;++e)n=i[e]._model,r=de.splineCurve(de.previousItem(i,e,!0)._model,n,de.nextItem(i,e,!0)._model,n.tension),n.controlPointPreviousX=s(r.previous.x,o.left,o.right),n.controlPointPreviousY=s(r.previous.y,o.top,o.bottom),n.controlPointNextX=s(r.next.x,o.left,o.right),n.controlPointNextY=s(r.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=st(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=st(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=st(n.hoverBorderWidth,n.borderWidth),t.radius=st(n.hoverRadius,n.radius)}});se._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}});var dt={bar:Ve,bubble:Je,doughnut:Ke,horizontalBar:Ze,line:rt,polarArea:ot,pie:it,radar:lt,scatter:rt};function ct(e,t){return e.native?{x:e.x,y:e.y}:de.getRelativePosition(e,t)}function ft(e,t){var n,r,a,o,i;for(r=0,o=e.data.datasets.length;r<o;++r)if(e.isDatasetVisible(r))for(a=0,i=(n=e.getDatasetMeta(r)).data.length;a<i;++a){var s=n.data[a];s._view.skip||t(s)}}function pt(e,t){var n=[];return ft(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function ht(e,t,n,r){var a=Number.POSITIVE_INFINITY,o=[];return ft(e,function(e){if(!n||e.inRange(t.x,t.y)){var i=e.getCenterPoint(),s=r(t,i);s<a?(o=[e],a=s):s===a&&o.push(e)}}),o}function mt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var a=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function _t(e,t,n){var r=ct(t,e);n.axis=n.axis||"x";var a=mt(n.axis),o=n.intersect?pt(e,r):ht(e,r,!1,a),i=[];return o.length?(e.data.datasets.forEach(function(t,n){if(e.isDatasetVisible(n)){var r=e.getDatasetMeta(n).data[o[0]._index];r&&!r._view.skip&&i.push(r)}}),i):[]}var gt={modes:{single:function(e,t){var n=ct(t,e),r=[];return ft(e,function(e){if(e.inRange(n.x,n.y))return r.push(e),r}),r.slice(0,1)},label:_t,index:_t,dataset:function(e,t,n){var r=ct(t,e);n.axis=n.axis||"xy";var a=mt(n.axis),o=n.intersect?pt(e,r):ht(e,r,!1,a);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return _t(e,t,{intersect:!1})},point:function(e,t){return pt(e,ct(t,e))},nearest:function(e,t,n){var r=ct(t,e);n.axis=n.axis||"xy";var a=mt(n.axis);return ht(e,r,n.intersect,a)},x:function(e,t,n){var r=ct(t,e),a=[],o=!1;return ft(e,function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(a=[]),a},y:function(e,t,n){var r=ct(t,e),a=[],o=!1;return ft(e,function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(a=[]),a}}};function yt(e,t){return de.where(e,function(e){return e.position===t})}function vt(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r._tmpIndex_-a._tmpIndex_:r.weight-a.weight}),e.forEach(function(e){delete e._tmpIndex_})}function bt(e,t){de.each(e,function(e){t[e.position]+=e.isHorizontal()?e.height:e.width})}se._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Mt,wt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,a=["fullWidth","position","weight"],o=a.length,i=0;i<o;++i)r=a[i],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},a=de.options.toPadding(r.padding),o=a.left,i=a.right,s=a.top,u=a.bottom,l=yt(e.boxes,"left"),d=yt(e.boxes,"right"),c=yt(e.boxes,"top"),f=yt(e.boxes,"bottom"),p=yt(e.boxes,"chartArea");vt(l,!0),vt(d,!1),vt(c,!0),vt(f,!1);var h,m=l.concat(d),_=c.concat(f),g=m.concat(_),y=t-o-i,v=n-s-u,b=(t-y/2)/m.length,M=y,w=v,T={top:s,left:o,bottom:u,right:i},L=[];de.each(g,function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?y:M,v/2),w-=t.height):(t=e.update(b,w),M-=t.width),L.push({horizontal:n,width:t.width,box:e})}),h=function(e){var t=0,n=0,r=0,a=0;return de.each(e,function(e){if(e.getPadding){var o=e.getPadding();t=Math.max(t,o.top),n=Math.max(n,o.left),r=Math.max(r,o.bottom),a=Math.max(a,o.right)}}),{top:t,left:n,bottom:r,right:a}}(g),de.each(m,O),bt(m,T),de.each(_,O),bt(_,T),de.each(m,function(e){var t=de.findNextWhere(L,function(t){return t.box===e}),n={left:0,right:0,top:T.top,bottom:T.bottom};t&&e.update(t.width,w,n)}),bt(g,T={top:s,left:o,bottom:u,right:i});var k=Math.max(h.left-T.left,0);T.left+=k,T.right+=Math.max(h.right-T.right,0);var D=Math.max(h.top-T.top,0);T.top+=D,T.bottom+=Math.max(h.bottom-T.bottom,0);var x=n-T.top-T.bottom,S=t-T.left-T.right;S===M&&x===w||(de.each(m,function(e){e.height=x}),de.each(_,function(e){e.fullWidth||(e.width=S)}),w=x,M=S);var Y=o+k,E=s+D;de.each(l.concat(c),C),Y+=M,E+=w,de.each(d,C),de.each(f,C),e.chartArea={left:T.left,top:T.top,right:T.left+M,bottom:T.top+w},de.each(p,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(M,w)})}function O(e){var t=de.findNextWhere(L,function(t){return t.box===e});if(t)if(t.horizontal){var n={left:Math.max(T.left,h.left),right:Math.max(T.right,h.right),top:0,bottom:0};e.update(e.fullWidth?y:M,v/2,n)}else e.update(t.width,w)}function C(e){e.isHorizontal()?(e.left=e.fullWidth?o:T.left,e.right=e.fullWidth?t-i:T.left+M,e.top=E,e.bottom=E+e.height,E=e.bottom):(e.left=Y,e.right=Y+e.width,e.top=T.top,e.bottom=T.top+w,Y=e.right)}}},Tt=(Mt=Object.freeze({default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&Mt.default||Mt,Lt="$chartjs",kt="chartjs-size-monitor",Dt="chartjs-render-monitor",xt="chartjs-render-animation",St=["animationstart","webkitAnimationStart"],Yt={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Et(e,t){var n=de.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var Ot=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function Ct(e,t,n){e.addEventListener(t,n,Ot)}function Pt(e,t,n){e.removeEventListener(t,n,Ot)}function It(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function jt(e){var t=document.createElement("div");return t.className=e||"",t}function Rt(e,t,n){var r,a,o,i,s=e[Lt]||(e[Lt]={}),u=s.resizer=function(e){var t=jt(kt),n=jt(kt+"-expand"),r=jt(kt+"-shrink");n.appendChild(jt()),r.appendChild(jt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var a=function(){t._reset(),e()};return Ct(n,"scroll",a.bind(n,"expand")),Ct(r,"scroll",a.bind(r,"shrink")),t}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,a=r?r.clientWidth:0;t(It("resize",n)),r&&r.clientWidth<a&&n.canvas&&t(It("resize",n))}},o=!1,i=[],function(){i=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,de.requestAnimFrame.call(window,function(){o=!1,r.apply(a,i)}))}));!function(e,t){var n=e[Lt]||(e[Lt]={}),r=n.renderProxy=function(e){e.animationName===xt&&t()};de.each(St,function(t){Ct(e,t,r)}),n.reflow=!!e.offsetParent,e.classList.add(Dt)}(e,function(){if(s.resizer){var t=e.parentNode;t&&t!==u.parentNode&&t.insertBefore(u,t.firstChild),u._reset()}})}function Ht(e){var t=e[Lt]||{},n=t.resizer;delete t.resizer,function(e){var t=e[Lt]||{},n=t.renderProxy;n&&(de.each(St,function(t){Pt(e,t,n)}),delete t.renderProxy),e.classList.remove(Dt)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var At={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){this._loaded||(this._loaded=!0,this.disableCSSInjection||function(e,t){var n=e._style||document.createElement("style");e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))}(this,Tt))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return this._ensureLoaded(),n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Lt]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var o=Et(e,"width");void 0!==o&&(e.width=o)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var i=Et(e,"height");void 0!==o&&(e.height=i)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[Lt]){var n=t[Lt].initial;["height","width"].forEach(function(e){var r=n[e];de.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)}),de.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[Lt]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=n[Lt]||(n[Lt]={});Ct(r,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=Yt[e.type]||e.type,r=de.getRelativePosition(e,t);return It(n,t,r.x,r.y,e)}(t,e))})}else Rt(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=((n[Lt]||{}).proxies||{})[e.id+"_"+t];a&&Pt(r,t,a)}else Ht(r)}};de.addEvent=Ct,de.removeEvent=Pt;var Nt=At._enabled?At:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Ft=de.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Nt);se._set("global",{plugins:{}});var Wt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,a,o,i,s,u=this.descriptors(e),l=u.length;for(r=0;r<l;++r)if("function"==typeof(s=(o=(a=u[r]).plugin)[t])&&((i=[e].concat(n||[])).push(a.options),!1===s.apply(o,i)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],a=e&&e.config||{},o=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,a=o[t];!1!==a&&(!0===a&&(a=de.clone(se.global.plugins[t])),n.push(e),r.push({plugin:e,options:a||{}}))}}),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},Ut={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=de.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?de.merge({},[se.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=de.extend(this.defaults[e],t))},addScalesToLayout:function(e){de.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,wt.addBox(e,t)})}},Bt=de.valueOrDefault;se._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:de.noop,title:function(e,t){var n="",r=t.labels,a=r?r.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:a>0&&o.index<a&&(n=r[o.index])}return n},afterTitle:de.noop,beforeBody:de.noop,beforeLabel:de.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),de.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:de.noop,afterBody:de.noop,beforeFooter:de.noop,footer:de.noop,afterFooter:de.noop}}});var zt={average:function(e){if(!e.length)return!1;var t,n,r=0,a=0,o=0;for(t=0,n=e.length;t<n;++t){var i=e[t];if(i&&i.hasValue()){var s=i.tooltipPosition();r+=s.x,a+=s.y,++o}}return{x:r/o,y:a/o}},nearest:function(e,t){var n,r,a,o=t.x,i=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var u=e[n];if(u&&u.hasValue()){var l=u.getCenterPoint(),d=de.distanceBetweenPoints(t,l);d<s&&(s=d,a=u)}}if(a){var c=a.tooltipPosition();o=c.x,i=c.y}return{x:o,y:i}}};function Vt(e,t){return t&&(de.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function qt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Gt(e){var t=se.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:Bt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:Bt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:Bt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:Bt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:Bt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:Bt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:Bt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:Bt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:Bt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Jt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Xt(e){return Vt([],qt(e))}var Qt=me.extend({initialize:function(){this._model=Gt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,r=n.beforeTitle.apply(e,arguments),a=n.title.apply(e,arguments),o=n.afterTitle.apply(e,arguments),i=[];return i=Vt(i,qt(r)),i=Vt(i,qt(a)),i=Vt(i,qt(o))},getBeforeBody:function(){return Xt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,a=[];return de.each(e,function(e){var o={before:[],lines:[],after:[]};Vt(o.before,qt(r.beforeLabel.call(n,e,t))),Vt(o.lines,r.label.call(n,e,t)),Vt(o.after,qt(r.afterLabel.call(n,e,t))),a.push(o)}),a},getAfterBody:function(){return Xt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),o=[];return o=Vt(o,qt(n)),o=Vt(o,qt(r)),o=Vt(o,qt(a))},update:function(e){var t,n,r,a,o,i,s,u,l,d,c=this,f=c._options,p=c._model,h=c._model=Gt(f),m=c._active,_=c._data,g={xAlign:p.xAlign,yAlign:p.yAlign},y={x:p.x,y:p.y},v={width:p.width,height:p.height},b={x:p.caretX,y:p.caretY};if(m.length){h.opacity=1;var M=[],w=[];b=zt[f.position].call(c,m,c._eventPosition);var T=[];for(t=0,n=m.length;t<n;++t)T.push((r=m[t],a=void 0,o=void 0,i=void 0,s=void 0,u=void 0,l=void 0,d=void 0,a=r._xScale,o=r._yScale||r._scale,i=r._index,s=r._datasetIndex,u=r._chart.getDatasetMeta(s).controller,l=u._getIndexScale(),d=u._getValueScale(),{xLabel:a?a.getLabelForIndex(i,s):"",yLabel:o?o.getLabelForIndex(i,s):"",label:l?""+l.getLabelForIndex(i,s):"",value:d?""+d.getLabelForIndex(i,s):"",index:i,datasetIndex:s,x:r._model.x,y:r._model.y}));f.filter&&(T=T.filter(function(e){return f.filter(e,_)})),f.itemSort&&(T=T.sort(function(e,t){return f.itemSort(e,t,_)})),de.each(T,function(e){M.push(f.callbacks.labelColor.call(c,e,c._chart)),w.push(f.callbacks.labelTextColor.call(c,e,c._chart))}),h.title=c.getTitle(T,_),h.beforeBody=c.getBeforeBody(T,_),h.body=c.getBody(T,_),h.afterBody=c.getAfterBody(T,_),h.footer=c.getFooter(T,_),h.x=b.x,h.y=b.y,h.caretPadding=f.caretPadding,h.labelColors=M,h.labelTextColors=w,h.dataPoints=T,v=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,a=0,o=t.body,i=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);i+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,u=t.footer.length,l=t.titleFontSize,d=t.bodyFontSize,c=t.footerFontSize;r+=s*l,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=i*d,r+=i?(i-1)*t.bodySpacing:0,r+=u?t.footerMarginTop:0,r+=u*c,r+=u?(u-1)*t.footerSpacing:0;var f=0,p=function(e){a=Math.max(a,n.measureText(e).width+f)};return n.font=de.fontString(l,t._titleFontStyle,t._titleFontFamily),de.each(t.title,p),n.font=de.fontString(d,t._bodyFontStyle,t._bodyFontFamily),de.each(t.beforeBody.concat(t.afterBody),p),f=t.displayColors?d+2:0,de.each(o,function(e){de.each(e.before,p),de.each(e.lines,p),de.each(e.after,p)}),f=0,n.font=de.fontString(c,t._footerFontStyle,t._footerFontFamily),de.each(t.footer,p),{width:a+=2*t.xPadding,height:r}}(this,h),y=function(e,t,n,r){var a=e.x,o=e.y,i=e.caretSize,s=e.caretPadding,u=e.cornerRadius,l=n.xAlign,d=n.yAlign,c=i+s,f=u+s;return"right"===l?a-=t.width:"center"===l&&((a-=t.width/2)+t.width>r.width&&(a=r.width-t.width),a<0&&(a=0)),"top"===d?o+=c:o-="bottom"===d?t.height+c:t.height/2,"center"===d?"left"===l?a+=c:"right"===l&&(a-=c):"left"===l?a-=f:"right"===l&&(a+=f),{x:a,y:o}}(h,v,g=function(e,t){var n,r,a,o,i,s=e._model,u=e._chart,l=e._chart.chartArea,d="center",c="center";s.y<t.height?c="top":s.y>u.height-t.height&&(c="bottom");var f=(l.left+l.right)/2,p=(l.top+l.bottom)/2;"center"===c?(n=function(e){return e<=f},r=function(e){return e>f}):(n=function(e){return e<=t.width/2},r=function(e){return e>=u.width-t.width/2}),a=function(e){return e+t.width+s.caretSize+s.caretPadding>u.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},i=function(e){return e<=p?"top":"bottom"},n(s.x)?(d="left",a(s.x)&&(d="center",c=i(s.y))):r(s.x)&&(d="right",o(s.x)&&(d="center",c=i(s.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:d,yAlign:h.yAlign?h.yAlign:c}}(this,v),c._chart)}else h.opacity=0;return h.xAlign=g.xAlign,h.yAlign=g.yAlign,h.x=y.x,h.y=y.y,h.width=v.width,h.height=v.height,h.caretX=b.x,h.caretY=b.y,c._model=h,e&&f.custom&&f.custom.call(c,h),c},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,a=this.getCaretPosition(e,t,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(e,t,n){var r,a,o,i,s,u,l=n.caretSize,d=n.cornerRadius,c=n.xAlign,f=n.yAlign,p=e.x,h=e.y,m=t.width,_=t.height;if("center"===f)s=h+_/2,"left"===c?(a=(r=p)-l,o=r,i=s+l,u=s-l):(a=(r=p+m)+l,o=r,i=s-l,u=s+l);else if("left"===c?(r=(a=p+d+l)-l,o=a+l):"right"===c?(r=(a=p+m-d-l)-l,o=a+l):(r=(a=n.caretX)-l,o=a+l),"top"===f)s=(i=h)-l,u=i;else{s=(i=h+_)+l,u=i;var g=o;o=r,r=g}return{x1:r,x2:a,x3:o,y1:i,y2:s,y3:u}},drawTitle:function(e,t,n){var r=t.title;if(r.length){e.x=Jt(t,t._titleAlign),n.textAlign=t._titleAlign,n.textBaseline="top";var a,o,i=t.titleFontSize,s=t.titleSpacing;for(n.fillStyle=t.titleFontColor,n.font=de.fontString(i,t._titleFontStyle,t._titleFontFamily),a=0,o=r.length;a<o;++a)n.fillText(r[a],e.x,e.y),e.y+=i+s,a+1===r.length&&(e.y+=t.titleMarginBottom-s)}},drawBody:function(e,t,n){var r,a=t.bodyFontSize,o=t.bodySpacing,i=t._bodyAlign,s=t.body,u=t.displayColors,l=t.labelColors,d=0,c=u?Jt(t,"left"):0;n.textAlign=i,n.textBaseline="top",n.font=de.fontString(a,t._bodyFontStyle,t._bodyFontFamily),e.x=Jt(t,i);var f=function(t){n.fillText(t,e.x+d,e.y),e.y+=a+o};n.fillStyle=t.bodyFontColor,de.each(t.beforeBody,f),d=u&&"right"!==i?"center"===i?a/2+1:a+2:0,de.each(s,function(o,i){r=t.labelTextColors[i],n.fillStyle=r,de.each(o.before,f),de.each(o.lines,function(o){u&&(n.fillStyle=t.legendColorBackground,n.fillRect(c,e.y,a,a),n.lineWidth=1,n.strokeStyle=l[i].borderColor,n.strokeRect(c,e.y,a,a),n.fillStyle=l[i].backgroundColor,n.fillRect(c+1,e.y+1,a-2,a-2),n.fillStyle=r),f(o)}),de.each(o.after,f)}),d=0,de.each(t.afterBody,f),e.y-=o},drawFooter:function(e,t,n){var r=t.footer;r.length&&(e.x=Jt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=t.footerFontColor,n.font=de.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),de.each(r,function(r){n.fillText(r,e.x,e.y),e.y+=t.footerFontSize+t.footerSpacing}))},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var a=t.xAlign,o=t.yAlign,i=e.x,s=e.y,u=r.width,l=r.height,d=t.cornerRadius;n.beginPath(),n.moveTo(i+d,s),"top"===o&&this.drawCaret(e,r),n.lineTo(i+u-d,s),n.quadraticCurveTo(i+u,s,i+u,s+d),"center"===o&&"right"===a&&this.drawCaret(e,r),n.lineTo(i+u,s+l-d),n.quadraticCurveTo(i+u,s+l,i+u-d,s+l),"bottom"===o&&this.drawCaret(e,r),n.lineTo(i+d,s+l),n.quadraticCurveTo(i,s+l,i,s+l-d),"center"===o&&"left"===a&&this.drawCaret(e,r),n.lineTo(i,s+d),n.quadraticCurveTo(i,s,i+d,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},a=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=a,this.drawBackground(r,t,e,n),r.y+=t.yPadding,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),(t=!de.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Kt=zt,Zt=Qt;Zt.positioners=Kt;var $t=de.valueOrDefault;function en(){return de.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,o,i,s=n[e].length;for(t[e]||(t[e]=[]),a=0;a<s;++a)i=n[e][a],o=$t(i.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||i.type&&i.type!==t[e][a].type?de.merge(t[e][a],[Ut.getScaleDefaults(o),i]):de.merge(t[e][a],i)}else de._merger(e,t,n,r)}})}function tn(){return de.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var a=t[e]||{},o=n[e];"scales"===e?t[e]=en(a,o):"scale"===e?t[e]=de.merge(a,[Ut.getScaleDefaults(o.type),o]):de._merger(e,t,n,r)}})}function nn(e){var t=e.options;de.each(e.scales,function(t){wt.removeBox(e,t)}),t=tn(se.global,se[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function rn(e){return"top"===e||"bottom"===e}se._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var an=function(e,t){return this.construct(e,t),this};de.extend(an.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=tn(se.global,se[e.type],e.options||{}),e}(t);var r=Ft.acquireContext(e,t),a=r&&r.canvas,o=a&&a.height,i=a&&a.width;n.id=de.uid(),n.ctx=r,n.canvas=a,n.config=t,n.width=i,n.height=o,n.aspectRatio=o?i/o:null,n.options=t.options,n._bufferedRender=!1,n.chart=n,n.controller=n,an.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Wt.notify(e,"beforeInit"),de.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),Wt.notify(e,"afterInit"),e},clear:function(){return de.canvas.clear(this),this},stop:function(){return ye.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(de.getMaximumWidth(r))),i=Math.max(0,Math.floor(a?o/a:de.getMaximumHeight(r)));if((t.width!==o||t.height!==i)&&(r.width=t.width=o,r.height=t.height=i,r.style.width=o+"px",r.style.height=i+"px",de.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:i};Wt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;de.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),de.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],a=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),de.each(r,function(t){var r=t.options,o=r.id,i=$t(r.type,t.dtype);rn(r.position)!==rn(t.dposition)&&(r.position=t.dposition),a[o]=!0;var s=null;if(o in n&&n[o].type===i)(s=n[o]).options=r,s.ctx=e.ctx,s.chart=e;else{var u=Ut.getScaleConstructor(i);if(!u)return;s=new u({id:o,type:i,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),de.each(a,function(e,t){e||delete n[t]}),e.scales=n,Ut.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,t=[];return de.each(e.data.datasets,function(n,r){var a=e.getDatasetMeta(r),o=n.type||e.config.type;if(a.type&&a.type!==o&&(e.destroyDatasetMeta(r),a=e.getDatasetMeta(r)),a.type=o,a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{var i=dt[a.type];if(void 0===i)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new i(e,r),t.push(a.controller)}},e),t},resetElements:function(){var e=this;de.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),nn(t),Wt._invalidate(t),!1!==Wt.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();de.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.buildOrUpdateElements()},t),t.updateLayout(),t.options.animation&&t.options.animation.duration&&de.each(n,function(e){e.reset()}),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],Wt.notify(t,"afterUpdate"),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){!1!==Wt.notify(this,"beforeLayout")&&(wt.update(this,this.width,this.height),Wt.notify(this,"afterScaleUpdate"),Wt.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==Wt.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);Wt.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==Wt.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),Wt.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=$t(e.duration,n&&n.duration),a=e.lazy;if(!1!==Wt.notify(t,"beforeRender")){var o=function(e){Wt.notify(t,"afterRender"),de.callback(n&&n.onComplete,[e],t)};if(n&&r){var i=new ge({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=de.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:n.onProgress,onAnimationComplete:o});ye.addAnimation(t,i,r,a)}else t.draw(),o(new ge({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),de.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==Wt.notify(t,"beforeDraw",[e])&&(de.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.drawDatasets(e),t._drawTooltip(e),Wt.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==Wt.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);Wt.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==Wt.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),Wt.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==Wt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),Wt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return gt.modes.single(this,e)},getElementsAtEvent:function(e){return gt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return gt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=gt.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return gt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),de.canvas.clear(n),Ft.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Wt.notify(n,"destroy"),delete an.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Zt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};de.each(e.options.events,function(r){Ft.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},Ft.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,de.each(t,function(t,n){Ft.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,a,o,i=n?"setHoverStyle":"removeHoverStyle";for(a=0,o=e.length;a<o;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[i](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Wt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),Wt.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},a=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,a.mode,a),de.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),t=!de.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),an.instances={};var on=an;function sn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function un(e){this.options=e||{}}an.Controller=an,an.types={},de.configMerge=tn,de.scaleMerge=en,de.extend(un.prototype,{formats:sn,parse:sn,format:sn,add:sn,diff:sn,startOf:sn,endOf:sn,_create:function(e){return e}}),un.override=function(e){de.extend(un.prototype,e)};var ln={_date:un},dn={formatters:{values:function(e){return de.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var a=de.log10(Math.abs(r)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var i=de.log10(Math.abs(e));o=e.toExponential(Math.floor(i)-Math.floor(a))}else{var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=e.toFixed(s)}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(de.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},cn=de.valueOrDefault,fn=de.valueAtIndexOrDefault;function pn(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(e[t].label);return r}function hn(e,t,n){return de.isArray(t)?de.longestText(e,n,t):e.measureText(t).width}se._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:dn.formatters.values,minor:{},major:{}}});var mn=me.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){de.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,a,o,i,s,u,l=this;for(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=de.extend({left:0,right:0,top:0,bottom:0},n),l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),s=l.buildTicks()||[],s=l.afterBuildTicks(s)||s,l.beforeTickToLabelConversion(),o=l.convertTicksToLabels(s)||l.ticks,l.afterTickToLabelConversion(),l.ticks=o,r=0,a=o.length;r<a;++r)i=o[r],(u=s[r])?u.label=i:s.push(u={label:i,major:!1});return l._ticks=s,l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l.afterUpdate(),l.minSize},afterUpdate:function(){de.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){de.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){de.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){de.callback(this.options.beforeDataLimits,[this])},determineDataLimits:de.noop,afterDataLimits:function(){de.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){de.callback(this.options.beforeBuildTicks,[this])},buildTicks:de.noop,afterBuildTicks:function(e){var t=this;return de.isArray(e)&&e.length?de.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=de.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){de.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){de.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){de.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,r=pn(e._ticks),a=de.options._parseFont(n);t.font=a.string;var o=n.minRotation||0;if(r.length&&e.options.display&&e.isHorizontal())for(var i,s=de.longestText(t,a.string,r,e.longestTextCache),u=s,l=e.getPixelForTick(1)-e.getPixelForTick(0)-6;u>l&&o<n.maxRotation;){var d=de.toRadians(o);if(i=Math.cos(d),Math.sin(d)*s>e.maxHeight){o--;break}o++,u=i*s}e.labelRotation=o},afterCalculateTickRotation:function(){de.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){de.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=pn(e._ticks),r=e.options,a=r.ticks,o=r.scaleLabel,i=r.gridLines,s=e._isVisible(),u=r.position,l=e.isHorizontal(),d=de.options._parseFont,c=d(a),f=r.gridLines.tickMarkLength;if(t.width=l?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:s&&i.drawTicks?f:0,t.height=l?s&&i.drawTicks?f:0:e.maxHeight,o.display&&s){var p=d(o),h=de.options.toPadding(o.padding),m=p.lineHeight+h.height;l?t.height+=m:t.width+=m}if(a.display&&s){var _=de.longestText(e.ctx,c.string,n,e.longestTextCache),g=de.numberOfLabelLines(n),y=.5*c.size,v=e.options.ticks.padding;if(e._maxLabelLines=g,e.longestLabelWidth=_,l){var b=de.toRadians(e.labelRotation),M=Math.cos(b),w=Math.sin(b)*_+c.lineHeight*g+y;t.height=Math.min(e.maxHeight,t.height+w+v),e.ctx.font=c.string;var T,L,k=hn(e.ctx,n[0],c.string),D=hn(e.ctx,n[n.length-1],c.string),x=e.getPixelForTick(0)-e.left,S=e.right-e.getPixelForTick(n.length-1);0!==e.labelRotation?(T="bottom"===u?M*k:M*y,L="bottom"===u?M*y:M*D):(T=k/2,L=D/2),e.paddingLeft=Math.max(T-x,0)+3,e.paddingRight=Math.max(L-S,0)+3}else a.mirror?_=0:_+=v+y,t.width=Math.min(e.maxWidth,t.width+_),e.paddingTop=c.size/2,e.paddingBottom=c.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){de.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(de.isNullOrUndef(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:de.noop,getPixelForValue:de.noop,getValueForPixel:de.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var r=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),a=r*e+t.paddingLeft;n&&(a+=r/2);var o=t.left+a;return o+=t.isFullWidth()?t.margins.left:0}var i=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(i/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,r=t.left+n;return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r=this,a=r.isHorizontal(),o=r.options.ticks.minor,i=e.length,s=!1,u=o.maxTicksLimit,l=r._tickSize()*(i-1),d=a?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.PaddingBottom),c=[];for(l>d&&(s=1+Math.floor(l/d)),i>u&&(s=Math.max(s,1+Math.floor(i/u))),t=0;t<i;t++)n=e[t],s>1&&t%s>0&&delete n.label,c.push(n);return c},_tickSize:function(){var e=this,t=e.isHorizontal(),n=e.options.ticks.minor,r=de.toRadians(e.labelRotation),a=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=n.autoSkipPadding||0,s=e.longestLabelWidth+i||0,u=de.options._parseFont(n),l=e._maxLabelLines*u.lineHeight+i||0;return t?l*a>s*o?s/a:l/o:l*o<s*a?l/a:s/o},_isVisible:function(){var e,t,n,r=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},draw:function(e){var t=this,n=t.options;if(t._isVisible()){var r,a,o,i=t.chart,s=t.ctx,u=se.global.defaultFontColor,l=n.ticks.minor,d=n.ticks.major||l,c=n.gridLines,f=n.scaleLabel,p=n.position,h=0!==t.labelRotation,m=l.mirror,_=t.isHorizontal(),g=de.options._parseFont,y=l.display&&l.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=cn(l.fontColor,u),b=g(l),M=b.lineHeight,w=cn(d.fontColor,u),T=g(d),L=l.padding,k=l.labelOffset,D=c.drawTicks?c.tickMarkLength:0,x=cn(f.fontColor,u),S=g(f),Y=de.options.toPadding(f.padding),E=de.toRadians(t.labelRotation),O=[],C=c.drawBorder?fn(c.lineWidth,0,0):0,P=de._alignPixel;if("top"===p?(r=P(i,t.bottom,C),a=t.bottom-D,o=r-C/2):"bottom"===p?(r=P(i,t.top,C),a=r+C/2,o=t.top+D):"left"===p?(r=P(i,t.right,C),a=t.right-D,o=r-C/2):(r=P(i,t.left,C),a=r+C/2,o=t.left+D),de.each(y,function(r,s){if(!de.isNullOrUndef(r.label)){var u,l,d,f,g,y,v,b,w,T,x,S,Y,I,j,R,H=r.label;s===t.zeroLineIndex&&n.offset===c.offsetGridLines?(u=c.zeroLineWidth,l=c.zeroLineColor,d=c.zeroLineBorderDash||[],f=c.zeroLineBorderDashOffset||0):(u=fn(c.lineWidth,s),l=fn(c.color,s),d=c.borderDash||[],f=c.borderDashOffset||0);var A=de.isArray(H)?H.length:1,N=function(e,t,n){var r=e.getPixelForTick(t);return n&&(1===e.getTicks().length?r-=e.isHorizontal()?Math.max(r-e.left,e.right-r):Math.max(r-e.top,e.bottom-r):r-=0===t?(e.getPixelForTick(1)-r)/2:(r-e.getPixelForTick(t-1))/2),r}(t,s,c.offsetGridLines);if(_){var F=D+L;N<t.left-1e-7&&(l="rgba(0,0,0,0)"),g=v=w=x=P(i,N,u),y=a,b=o,Y=t.getPixelForTick(s)+k,"top"===p?(T=P(i,e.top,C)+C/2,S=e.bottom,j=((h?1:.5)-A)*M,R=h?"left":"center",I=t.bottom-F):(T=e.top,S=P(i,e.bottom,C)-C/2,j=(h?0:.5)*M,R=h?"right":"center",I=t.top+F)}else{var W=(m?0:D)+L;N<t.top-1e-7&&(l="rgba(0,0,0,0)"),g=a,v=o,y=b=T=S=P(i,N,u),I=t.getPixelForTick(s)+k,j=(1-A)*M/2,"left"===p?(w=P(i,e.left,C)+C/2,x=e.right,R=m?"left":"right",Y=t.right-W):(w=e.left,x=P(i,e.right,C)-C/2,R=m?"right":"left",Y=t.left+W)}O.push({tx1:g,ty1:y,tx2:v,ty2:b,x1:w,y1:T,x2:x,y2:S,labelX:Y,labelY:I,glWidth:u,glColor:l,glBorderDash:d,glBorderDashOffset:f,rotation:-1*E,label:H,major:r.major,textOffset:j,textAlign:R})}}),de.each(O,function(e){var t=e.glWidth,n=e.glColor;if(c.display&&t&&n&&(s.save(),s.lineWidth=t,s.strokeStyle=n,s.setLineDash&&(s.setLineDash(e.glBorderDash),s.lineDashOffset=e.glBorderDashOffset),s.beginPath(),c.drawTicks&&(s.moveTo(e.tx1,e.ty1),s.lineTo(e.tx2,e.ty2)),c.drawOnChartArea&&(s.moveTo(e.x1,e.y1),s.lineTo(e.x2,e.y2)),s.stroke(),s.restore()),l.display){s.save(),s.translate(e.labelX,e.labelY),s.rotate(e.rotation),s.font=e.major?T.string:b.string,s.fillStyle=e.major?w:v,s.textBaseline="middle",s.textAlign=e.textAlign;var r=e.label,a=e.textOffset;if(de.isArray(r))for(var o=0;o<r.length;++o)s.fillText(""+r[o],0,a),a+=M;else s.fillText(r,0,a);s.restore()}}),f.display){var I,j,R=0,H=S.lineHeight/2;if(_)I=t.left+(t.right-t.left)/2,j="bottom"===p?t.bottom-H-Y.bottom:t.top+H+Y.top;else{var A="left"===p;I=A?t.left+H+Y.top:t.right-H-Y.top,j=t.top+(t.bottom-t.top)/2,R=A?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(I,j),s.rotate(R),s.textAlign="center",s.textBaseline="middle",s.fillStyle=x,s.font=S.string,s.fillText(f.labelString,0,0),s.restore()}if(C){var N,F,W,U,B=C,z=fn(c.lineWidth,y.length-1,0);_?(N=P(i,t.left,B)-B/2,F=P(i,t.right,z)+z/2,W=U=r):(W=P(i,t.top,B)-B/2,U=P(i,t.bottom,z)+z/2,N=F=r),s.lineWidth=C,s.strokeStyle=fn(c.color,0),s.beginPath(),s.moveTo(N,W),s.lineTo(F,U),s.stroke()}}}}),_n=mn.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,a=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(a?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var i=r.getLabels().indexOf(e);t=-1!==i?i:t}if(r.isHorizontal()){var s=r.width/o,u=s*(t-r.minIndex);return a&&(u+=s/2),r.left+u}var l=r.height/o,d=l*(t-r.minIndex);return a&&(d+=l/2),r.top+d},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),a=t.isHorizontal(),o=(a?t.width:t.height)/r;return e-=a?t.left:t.top,n&&(e-=o/2),(e<=0?0:Math.round(e/o))+t.minIndex},getBasePixel:function(){return this.bottom}}),gn={position:"bottom"};_n._defaults=gn;var yn=de.noop,vn=de.isNullOrUndef,bn=mn.extend({getRightValue:function(e){return"string"==typeof e?+e:mn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=de.sign(e.min),r=de.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var a=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),a!==o&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:de.valueOrDefault(t.fixedStepSize,t.stepSize)},a=e.ticks=function(e,t){var n,r,a,o,i=[],s=e.stepSize,u=s||1,l=e.maxTicks-1,d=e.min,c=e.max,f=e.precision,p=t.min,h=t.max,m=de.niceNum((h-p)/l/u)*u;if(m<1e-14&&vn(d)&&vn(c))return[p,h];(o=Math.ceil(h/m)-Math.floor(p/m))>l&&(m=de.niceNum(o*m/l/u)*u),s||vn(f)?n=Math.pow(10,de._decimalPlaces(m)):(n=Math.pow(10,f),m=Math.ceil(m*n)/n),r=Math.floor(p/m)*m,a=Math.ceil(h/m)*m,s&&(!vn(d)&&de.almostWhole(d/m,m/1e3)&&(r=d),!vn(c)&&de.almostWhole(c/m,m/1e3)&&(a=c)),o=(a-r)/m,o=de.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,a=Math.round(a*n)/n,i.push(vn(d)?r:d);for(var _=1;_<o;++_)i.push(Math.round((r+_*m)*n)/n);return i.push(vn(c)?a:c),i}(r,e);e.handleDirectionalChanges(),e.max=de.max(a),e.min=de.min(a),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),mn.prototype.convertTicksToLabels.call(e)}}),Mn={position:"left",ticks:{callback:dn.formatters.linear}},wn=bn.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,a=e.isHorizontal();function o(t){return a?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var i=t.stacked;if(void 0===i&&de.each(r,function(e,t){if(!i){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&o(r)&&void 0!==r.stack&&(i=!0)}}),t.stacked||i){var s={};de.each(r,function(r,a){var i=n.getDatasetMeta(a),u=[i.type,void 0===t.stacked&&void 0===i.stack?a:"",i.stack].join(".");void 0===s[u]&&(s[u]={positiveValues:[],negativeValues:[]});var l=s[u].positiveValues,d=s[u].negativeValues;n.isDatasetVisible(a)&&o(i)&&de.each(r.data,function(n,r){var a=+e.getRightValue(n);isNaN(a)||i.data[r].hidden||(l[r]=l[r]||0,d[r]=d[r]||0,t.relativePoints?l[r]=100:a<0?d[r]+=a:l[r]+=a)})}),de.each(s,function(t){var n=t.positiveValues.concat(t.negativeValues),r=de.min(n),a=de.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?a:Math.max(e.max,a)})}else de.each(r,function(t,r){var a=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(a)&&de.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||a.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=de.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),a=t.end-n;return t.isHorizontal()?t.left+t.width/a*(r-n):t.bottom-t.height/a*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,a=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*a},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}}),Tn=Mn;wn._defaults=Tn;var Ln=de.valueOrDefault,kn={position:"left",ticks:{callback:dn.formatters.logarithmic}};function Dn(e,t){return de.isFinite(e)&&e>=0?e:t}var xn=mn.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,a=e.isHorizontal();function o(t){return a?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var i=t.stacked;if(void 0===i&&de.each(r,function(e,t){if(!i){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&o(r)&&void 0!==r.stack&&(i=!0)}}),t.stacked||i){var s={};de.each(r,function(r,a){var i=n.getDatasetMeta(a),u=[i.type,void 0===t.stacked&&void 0===i.stack?a:"",i.stack].join(".");n.isDatasetVisible(a)&&o(i)&&(void 0===s[u]&&(s[u]=[]),de.each(r.data,function(t,n){var r=s[u],a=+e.getRightValue(t);isNaN(a)||i.data[n].hidden||a<0||(r[n]=r[n]||0,r[n]+=a)}))}),de.each(s,function(t){if(t.length>0){var n=de.min(t),r=de.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?r:Math.max(e.max,r)}})}else de.each(r,function(t,r){var a=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(a)&&de.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||a.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=Dn(t.min,e.min),e.max=Dn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(de.log10(e.min))-1),e.max=Math.pow(10,Math.floor(de.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(de.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(de.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(de.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Dn(t.min),max:Dn(t.max)},a=e.ticks=function(e,t){var n,r,a=[],o=Ln(e.min,Math.pow(10,Math.floor(de.log10(t.min)))),i=Math.floor(de.log10(t.max)),s=Math.ceil(t.max/Math.pow(10,i));0===o?(n=Math.floor(de.log10(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),a.push(o),o=r*Math.pow(10,n)):(n=Math.floor(de.log10(o)),r=Math.floor(o/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(o),10==++r&&(r=1,u=++n>=0?1:u),o=Math.round(r*Math.pow(10,n)*u)/u}while(n<i||n===i&&r<s);var l=Ln(e.max,o);return a.push(l),a}(r,e);e.max=de.max(a),e.min=de.min(a),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),mn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(de.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(e){var t,n,r,a,o,i=this,s=i.options.ticks,u=s.reverse,l=de.log10,d=i._getFirstTickValue(i.minNotZero),c=0;return e=+i.getRightValue(e),u?(r=i.end,a=i.start,o=-1):(r=i.start,a=i.end,o=1),i.isHorizontal()?(t=i.width,n=u?i.right:i.left):(t=i.height,o*=-1,n=u?i.top:i.bottom),e!==r&&(0===r&&(t-=c=Ln(s.fontSize,se.global.defaultFontSize),r=d),0!==e&&(c+=t/(l(a)-l(r))*(l(e)-l(r))),n+=o*c),n},getValueForPixel:function(e){var t,n,r,a,o=this,i=o.options.ticks,s=i.reverse,u=de.log10,l=o._getFirstTickValue(o.minNotZero);if(s?(n=o.end,r=o.start):(n=o.start,r=o.end),o.isHorizontal()?(t=o.width,a=s?o.right-e:e-o.left):(t=o.height,a=s?e-o.top:o.bottom-e),a!==n){if(0===n){var d=Ln(i.fontSize,se.global.defaultFontSize);a-=d,t-=d,n=l}a*=u(r)-u(n),a/=t,a=Math.pow(10,u(n)+a)}return a}}),Sn=kn;xn._defaults=Sn;var Yn=de.valueOrDefault,En=de.valueAtIndexOrDefault,On=de.options.resolve,Cn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:dn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Pn(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function In(e){var t=e.ticks;return t.display&&e.display?Yn(t.fontSize,se.global.defaultFontSize)+2*t.backdropPaddingY:0}function jn(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function Rn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Hn(e,t,n,r){var a,o,i=n.y+r/2;if(de.isArray(t))for(a=0,o=t.length;a<o;++a)e.fillText(t[a],n.x,i),i+=r;else e.fillText(t,n.x,i)}function An(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Nn(e){return de.isNumber(e)?e:0}var Fn=bn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=In(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;de.each(t.data.datasets,function(a,o){if(t.isDatasetVisible(o)){var i=t.getDatasetMeta(o);de.each(a.data,function(t,a){var o=+e.getRightValue(t);isNaN(o)||i.data[a].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/In(this.options))},convertTicksToLabels:function(){var e=this;bn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,r,a=de.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},i={};e.ctx.font=a.string,e._pointLabelSizes=[];var s,u,l,d=Pn(e);for(t=0;t<d;t++){r=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,u=a.lineHeight,l=e.pointLabels[t]||"",n=de.isArray(l)?{w:de.longestText(s,s.font,l),h:l.length*u}:{w:s.measureText(l).width,h:u},e._pointLabelSizes[t]=n;var c=e.getIndexAngle(t),f=de.toDegrees(c)%360,p=jn(f,r.x,n.w,0,180),h=jn(f,r.y,n.h,90,270);p.start<o.l&&(o.l=p.start,i.l=c),p.end>o.r&&(o.r=p.end,i.r=c),h.start<o.t&&(o.t=h.start,i.t=c),h.end>o.b&&(o.b=h.end,i.b=c)}e.setReductions(e.drawingArea,o,i)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,a=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),i=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);a=Nn(a),o=Nn(o),i=Nn(i),s=Nn(s),r.drawingArea=Math.min(Math.floor(e-(a+o)/2),Math.floor(e-(i+s)/2)),r.setCenterPoint(a,o,i,s)},setCenterPoint:function(e,t,n,r){var a=this,o=a.width-t-a.drawingArea,i=e+a.drawingArea,s=n+a.drawingArea,u=a.height-a.paddingTop-r-a.drawingArea;a.xCenter=Math.floor((i+o)/2+a.left),a.yCenter=Math.floor((s+u)/2+a.top+a.paddingTop)},getIndexAngle:function(e){return e*(2*Math.PI/Pn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,r=t.ticks;if(t.display){var a=e.ctx,o=this.getIndexAngle(0),i=de.options._parseFont(r);(t.angleLines.display||t.pointLabels.display)&&function(e){var t=e.ctx,n=e.options,r=n.angleLines,a=n.gridLines,o=n.pointLabels,i=Yn(r.lineWidth,a.lineWidth),s=Yn(r.color,a.color),u=In(n);t.save(),t.lineWidth=i,t.strokeStyle=s,t.setLineDash&&(t.setLineDash(On([r.borderDash,a.borderDash,[]])),t.lineDashOffset=On([r.borderDashOffset,a.borderDashOffset,0]));var l=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),d=de.options._parseFont(o);t.font=d.string,t.textBaseline="middle";for(var c=Pn(e)-1;c>=0;c--){if(r.display&&i&&s){var f=e.getPointPosition(c,l);t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(f.x,f.y),t.stroke()}if(o.display){var p=0===c?u/2:0,h=e.getPointPosition(c,l+p+5),m=En(o.fontColor,c,se.global.defaultFontColor);t.fillStyle=m;var _=e.getIndexAngle(c),g=de.toDegrees(_);t.textAlign=Rn(g),An(g,e._pointLabelSizes[c],h),Hn(t,e.pointLabels[c]||"",h,d.lineHeight)}}t.restore()}(e),de.each(e.ticks,function(t,s){if(s>0||r.reverse){var u=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]);if(n.display&&0!==s&&function(e,t,n,r){var a,o=e.ctx,i=t.circular,s=Pn(e),u=En(t.color,r-1),l=En(t.lineWidth,r-1);if((i||s)&&u&&l){if(o.save(),o.strokeStyle=u,o.lineWidth=l,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),i)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{a=e.getPointPosition(0,n),o.moveTo(a.x,a.y);for(var d=1;d<s;d++)a=e.getPointPosition(d,n),o.lineTo(a.x,a.y)}o.closePath(),o.stroke(),o.restore()}}(e,n,u,s),r.display){var l=Yn(r.fontColor,se.global.defaultFontColor);if(a.font=i.string,a.save(),a.translate(e.xCenter,e.yCenter),a.rotate(o),r.showLabelBackdrop){var d=a.measureText(t).width;a.fillStyle=r.backdropColor,a.fillRect(-d/2-r.backdropPaddingX,-u-i.size/2-r.backdropPaddingY,d+2*r.backdropPaddingX,i.size+2*r.backdropPaddingY)}a.textAlign="center",a.textBaseline="middle",a.fillStyle=l,a.fillText(t,0,-u),a.restore()}}})}}}),Wn=Cn;Fn._defaults=Wn;var Un=de.valueOrDefault,Bn=Number.MIN_SAFE_INTEGER||-9007199254740991,zn=Number.MAX_SAFE_INTEGER||9007199254740991,Vn={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},qn=Object.keys(Vn);function Gn(e,t){return e-t}function Jn(e){var t,n,r,a={},o=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,o.push(r));return o}function Xn(e,t,n,r){var a=function(e,t,n){for(var r,a,o,i=0,s=e.length-1;i>=0&&i<=s;){if(a=e[(r=i+s>>1)-1]||null,o=e[r],!a)return{lo:null,hi:o};if(o[t]<n)i=r+1;else{if(!(a[t]>n))return{lo:a,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=a.lo?a.hi?a.lo:e[e.length-2]:e[0],i=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=i[t]-o[t],u=s?(n-o[t])/s:0,l=(i[r]-o[r])*u;return o[r]+l}function Qn(e,t){var n=e._adapter,r=e.options.time,a=r.parser,o=a||r.format,i=t;return"function"==typeof a&&(i=a(i)),de.isFinite(i)||(i="string"==typeof o?n.parse(i,o):n.parse(i)),null!==i?+i:(a||"function"!=typeof o||(i=o(t),de.isFinite(i)||(i=n.parse(i))),i)}function Kn(e,t){if(de.isNullOrUndef(t))return null;var n=e.options.time,r=Qn(e,e.getRightValue(t));return null===r?r:(n.round&&(r=+e._adapter.startOf(r,n.round)),r)}function Zn(e){for(var t=qn.indexOf(e)+1,n=qn.length;t<n;++t)if(Vn[qn[t]].common)return qn[t]}function $n(e,t,n,r){var a,o=e._adapter,i=e.options,s=i.time,u=s.unit||function(e,t,n,r){var a,o,i,s=qn.length;for(a=qn.indexOf(e);a<s-1;++a)if(i=(o=Vn[qn[a]]).steps?o.steps[o.steps.length-1]:zn,o.common&&Math.ceil((n-t)/(i*o.size))<=r)return qn[a];return qn[s-1]}(s.minUnit,t,n,r),l=Zn(u),d=Un(s.stepSize,s.unitStepSize),c="week"===u&&s.isoWeekday,f=i.ticks.major.enabled,p=Vn[u],h=t,m=n,_=[];for(d||(d=function(e,t,n,r){var a,o,i,s=t-e,u=Vn[n],l=u.size,d=u.steps;if(!d)return Math.ceil(s/(r*l));for(a=0,o=d.length;a<o&&(i=d[a],!(Math.ceil(s/(l*i))<=r));++a);return i}(t,n,u,r)),c&&(h=+o.startOf(h,"isoWeek",c),m=+o.startOf(m,"isoWeek",c)),h=+o.startOf(h,c?"day":u),(m=+o.startOf(m,c?"day":u))<n&&(m=+o.add(m,1,u)),a=h,f&&l&&!c&&!s.round&&(a=+o.startOf(a,l),a=+o.add(a,~~((h-a)/(p.size*d))*d,u));a<m;a=+o.add(a,d,u))_.push(+a);return _.push(+a),_}var er=mn.extend({initialize:function(){this.mergeTicksOptions(),mn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new ln._date(t.adapters.date);return n.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),de.mergeIf(n.displayFormats,r.formats()),mn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),mn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,a,o,i=this,s=i.chart,u=i._adapter,l=i.options.time,d=l.unit||"day",c=zn,f=Bn,p=[],h=[],m=[],_=s.data.labels||[];for(e=0,n=_.length;e<n;++e)m.push(Kn(i,_[e]));for(e=0,n=(s.data.datasets||[]).length;e<n;++e)if(s.isDatasetVisible(e))if(a=s.data.datasets[e].data,de.isObject(a[0]))for(h[e]=[],t=0,r=a.length;t<r;++t)o=Kn(i,a[t]),p.push(o),h[e][t]=o;else{for(t=0,r=m.length;t<r;++t)p.push(m[t]);h[e]=m.slice(0)}else h[e]=[];m.length&&(m=Jn(m).sort(Gn),c=Math.min(c,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=Jn(p).sort(Gn),c=Math.min(c,p[0]),f=Math.max(f,p[p.length-1])),c=Kn(i,l.min)||c,f=Kn(i,l.max)||f,c=c===zn?+u.startOf(Date.now(),d):c,f=f===Bn?+u.endOf(Date.now(),d)+1:f,i.min=Math.min(c,f),i.max=Math.max(c+1,f),i._horizontal=i.isHorizontal(),i._table=[],i._timestamps={data:p,datasets:h,labels:m}},buildTicks:function(){var e,t,n,r=this,a=r.min,o=r.max,i=r.options,s=i.time,u=[],l=[];switch(i.ticks.source){case"data":u=r._timestamps.data;break;case"labels":u=r._timestamps.labels;break;case"auto":default:u=$n(r,a,o,r.getLabelCapacity(a))}for("ticks"===i.bounds&&u.length&&(a=u[0],o=u[u.length-1]),a=Kn(r,s.min)||a,o=Kn(r,s.max)||o,e=0,t=u.length;e<t;++e)(n=u[e])>=a&&n<=o&&l.push(n);return r.min=a,r.max=o,r._unit=s.unit||function(e,t,n,r,a){var o,i;for(o=qn.length-1;o>=qn.indexOf(n);o--)if(i=qn[o],Vn[i].common&&e._adapter.diff(a,r,i)>=t.length)return i;return qn[n?qn.indexOf(n):0]}(r,l,s.minUnit,r.min,r.max),r._majorUnit=Zn(r._unit),r._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,o,i,s,u,l=[],d=[t];for(a=0,o=e.length;a<o;++a)(s=e[a])>t&&s<n&&d.push(s);for(d.push(n),a=0,o=d.length;a<o;++a)u=d[a+1],i=d[a-1],s=d[a],void 0!==i&&void 0!==u&&Math.round((u+i)/2)===s||l.push({time:s,pos:a/(o-1)});return l}(r._timestamps.data,a,o,i.distribution),r._offsets=function(e,t,n,r,a){var o,i,s=0,u=0;return a.offset&&t.length&&(a.time.min||(o=Xn(e,"time",t[0],"pos"),s=1===t.length?1-o:(Xn(e,"time",t[1],"pos")-o)/2),a.time.max||(i=Xn(e,"time",t[t.length-1],"pos"),u=1===t.length?i:(i-Xn(e,"time",t[t.length-2],"pos"))/2)),{start:s,end:u}}(r._table,l,0,0,i),i.ticks.reverse&&l.reverse(),function(e,t,n){var r,a,o,i,s=[];for(r=0,a=t.length;r<a;++r)o=t[r],i=!!n&&o===+e._adapter.startOf(o,n),s.push({value:o,major:i});return s}(r,l,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,a=n.chart.data,o=n.options.time,i=a.labels&&e<a.labels.length?a.labels[e]:"",s=a.datasets[t].data[e];return de.isObject(s)&&(i=n.getRightValue(s)),o.tooltipFormat?r.format(Qn(n,i),o.tooltipFormat):"string"==typeof i?i:r.format(Qn(n,i),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var a=this._adapter,o=this.options,i=o.time.displayFormats,s=i[this._unit],u=this._majorUnit,l=i[u],d=+a.startOf(e,u),c=o.ticks.major,f=c.enabled&&u&&l&&e===d,p=a.format(e,r||(f?l:s)),h=f?c:o.ticks.minor,m=Un(h.callback,h.userCallback);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t.options.ticks.reverse,r=t._horizontal?t.width:t.height,a=t._horizontal?n?t.right:t.left:n?t.bottom:t.top,o=Xn(t._table,"time",e,"pos"),i=r*(t._offsets.start+o)/(t._offsets.start+1+t._offsets.end);return n?a-i:a+i},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=Kn(this,e)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,a=(n?(e-r)/n:0)*(t._offsets.start+1+t._offsets.start)-t._offsets.end,o=Xn(t._table,"pos",a,"time");return t._adapter._create(o)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=de.toRadians(t.maxRotation),a=Math.cos(r),o=Math.sin(r);return n*a+Un(t.fontSize,se.global.defaultFontSize)*o},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,r=t.tickFormatFunction(e,0,[],n),a=t.getLabelWidth(r),o=t.isHorizontal()?t.width:t.height,i=Math.floor(o/a);return i>0?i:1}}),tr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};er._defaults=tr;var nr={category:_n,linear:wn,logarithmic:xn,radialLinear:Fn,time:er},rr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};ln._date.override("function"==typeof e?{_id:"moment",formats:function(){return rr},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e.duration(e(t).diff(e(n))).as(r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),se._set("global",{plugins:{filler:{propagate:!0}}});var ar={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=a.length||0;return o?function(e,t){return t<o&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function or(e,t,n){var r,a=e._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function ir(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(de.isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function sr(e,t,n){var r,a=e[t].fill,o=[t];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;o.push(a),a=r.fill}return!1}function ur(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),ar[n](e))}function lr(e){return e&&!e.skip}function dr(e,t,n,r,a){var o;if(r&&a){for(e.moveTo(t[0].x,t[0].y),o=1;o<r;++o)de.canvas.lineTo(e,t[o-1],t[o]);for(e.lineTo(n[a-1].x,n[a-1].y),o=a-1;o>0;--o)de.canvas.lineTo(e,n[o],n[o-1],!0)}}var cr={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,a,o,i=(e.data.datasets||[]).length,s=t.propagate,u=[];for(r=0;r<i;++r)o=null,(a=(n=e.getDatasetMeta(r)).dataset)&&a._model&&a instanceof Ne.Line&&(o={visible:e.isDatasetVisible(r),fill:or(a,r,i),chart:e,el:a}),n.$filler=o,u.push(o);for(r=0;r<i;++r)(o=u[r])&&(o.fill=sr(u,r,s),o.boundary=ir(o),o.mapper=ur(o))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var r=e.ctx,a=n.el,o=a._view,i=a._children||[],s=n.mapper,u=o.backgroundColor||se.global.defaultColor;s&&u&&i.length&&(de.canvas.clipArea(r,e.chartArea),function(e,t,n,r,a,o){var i,s,u,l,d,c,f,p=t.length,h=r.spanGaps,m=[],_=[],g=0,y=0;for(e.beginPath(),i=0,s=p+!!o;i<s;++i)d=n(l=t[u=i%p]._view,u,r),c=lr(l),f=lr(d),c&&f?(g=m.push(l),y=_.push(d)):g&&y&&(h?(c&&m.push(l),f&&_.push(d)):(dr(e,m,_,g,y),g=y=0,m=[],_=[]));dr(e,m,_,g,y),e.closePath(),e.fillStyle=a,e.fill()}(r,i,s,o,u,a._loop),de.canvas.unclipArea(r))}}},fr=de.noop,pr=de.valueOrDefault;function hr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}se._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return de.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:de.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var mr=me.extend({initialize:function(e){de.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:fr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:fr,beforeSetDimensions:fr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:fr,beforeBuildLabels:fr,buildLabels:function(){var e=this,t=e.options.labels||{},n=de.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:fr,beforeFit:fr,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,o=de.options._parseFont(n),i=o.size,s=e.legendHitBoxes=[],u=e.minSize,l=e.isHorizontal();if(l?(u.width=e.maxWidth,u.height=r?10:0):(u.width=r?10:0,u.height=e.maxHeight),r)if(a.font=o.string,l){var d=e.lineWidths=[0],c=0;a.textAlign="left",a.textBaseline="top",de.each(e.legendItems,function(e,t){var r=hr(n,i)+i/2+a.measureText(e.text).width;(0===t||d[d.length-1]+r+n.padding>u.width)&&(c+=i+n.padding,d[d.length-(t>0?0:1)]=n.padding),s[t]={left:0,top:0,width:r,height:i},d[d.length-1]+=r+n.padding}),u.height+=c}else{var f=n.padding,p=e.columnWidths=[],h=n.padding,m=0,_=0,g=i+f;de.each(e.legendItems,function(e,t){var r=hr(n,i)+i/2+a.measureText(e.text).width;t>0&&_+g>u.height-f&&(h+=m+n.padding,p.push(m),m=0,_=0),m=Math.max(m,r),_+=g,s[t]={left:0,top:0,width:r,height:i}}),h+=m,p.push(m),u.width+=h}e.width=u.width,e.height=u.height},afterFit:fr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=se.global,a=r.defaultColor,o=r.elements.line,i=e.width,s=e.lineWidths;if(t.display){var u,l=e.ctx,d=pr(n.fontColor,r.defaultFontColor),c=de.options._parseFont(n),f=c.size;l.textAlign="left",l.textBaseline="middle",l.lineWidth=.5,l.strokeStyle=d,l.fillStyle=d,l.font=c.string;var p=hr(n,f),h=e.legendHitBoxes,m=e.isHorizontal();u=m?{x:e.left+(i-s[0])/2+n.padding,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var _=f+n.padding;de.each(e.legendItems,function(r,d){var c=l.measureText(r.text).width,g=p+f/2+c,y=u.x,v=u.y;m?d>0&&y+g+n.padding>e.left+e.minSize.width&&(v=u.y+=_,u.line++,y=u.x=e.left+(i-s[u.line])/2+n.padding):d>0&&v+_>e.top+e.minSize.height&&(y=u.x=y+e.columnWidths[u.line]+n.padding,v=u.y=e.top+n.padding,u.line++),function(e,n,r){if(!(isNaN(p)||p<=0)){l.save();var i=pr(r.lineWidth,o.borderWidth);if(l.fillStyle=pr(r.fillStyle,a),l.lineCap=pr(r.lineCap,o.borderCapStyle),l.lineDashOffset=pr(r.lineDashOffset,o.borderDashOffset),l.lineJoin=pr(r.lineJoin,o.borderJoinStyle),l.lineWidth=i,l.strokeStyle=pr(r.strokeStyle,a),l.setLineDash&&l.setLineDash(pr(r.lineDash,o.borderDash)),t.labels&&t.labels.usePointStyle){var s=p*Math.SQRT2/2,u=e+p/2,d=n+f/2;de.canvas.drawPoint(l,r.pointStyle,s,u,d)}else 0!==i&&l.strokeRect(e,n,p,f),l.fillRect(e,n,p,f);l.restore()}}(y,v,r),h[d].left=y,h[d].top=v,function(e,t,n,r){var a=f/2,o=p+a+e,i=t+a;l.fillText(n.text,o,i),n.hidden&&(l.beginPath(),l.lineWidth=2,l.moveTo(o,i),l.lineTo(o+r,i),l.stroke())}(y,v,r,c),m?u.x+=g+n.padding:u.y+=_})}},_getLegendItemAt:function(e,t){var n,r,a,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(a=o.legendHitBoxes,n=0;n<a.length;++n)if(e>=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===a?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function _r(e,t){var n=new mr({ctx:e.ctx,options:t,chart:e});wt.configure(e,n,t),wt.addBox(e,n),e.legend=n}var gr={id:"legend",_element:mr,beforeInit:function(e){var t=e.options.legend;t&&_r(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(de.mergeIf(t,se.global.legend),n?(wt.configure(e,n,t),n.options=t):_r(e,t)):n&&(wt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},yr=de.noop;se._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var vr=me.extend({initialize:function(e){de.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:yr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:yr,beforeSetDimensions:yr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:yr,beforeBuildLabels:yr,buildLabels:yr,afterBuildLabels:yr,beforeFit:yr,fit:function(){var e=this,t=e.options,n=t.display,r=e.minSize,a=de.isArray(t.text)?t.text.length:1,o=de.options._parseFont(t),i=n?a*o.lineHeight+2*t.padding:0;e.isHorizontal()?(r.width=e.maxWidth,r.height=i):(r.width=i,r.height=e.maxHeight),e.width=r.width,e.height=r.height},afterFit:yr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,a,o,i=de.options._parseFont(n),s=i.lineHeight,u=s/2+n.padding,l=0,d=e.top,c=e.left,f=e.bottom,p=e.right;t.fillStyle=de.valueOrDefault(n.fontColor,se.global.defaultFontColor),t.font=i.string,e.isHorizontal()?(a=c+(p-c)/2,o=d+u,r=p-c):(a="left"===n.position?c+u:p-u,o=d+(f-d)/2,r=f-d,l=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(a,o),t.rotate(l),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(de.isArray(h))for(var m=0,_=0;_<h.length;++_)t.fillText(h[_],0,m,r),m+=s;else t.fillText(h,0,0,r);t.restore()}}});function br(e,t){var n=new vr({ctx:e.ctx,options:t,chart:e});wt.configure(e,n,t),wt.addBox(e,n),e.titleBlock=n}var Mr={},wr=cr,Tr=gr,Lr={id:"title",_element:vr,beforeInit:function(e){var t=e.options.title;t&&br(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(de.mergeIf(t,se.global.title),n?(wt.configure(e,n,t),n.options=t):br(e,t)):n&&(wt.removeBox(e,n),delete e.titleBlock)}};for(var kr in Mr.filler=wr,Mr.legend=Tr,Mr.title=Lr,on.helpers=de,function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,a){var o=document.defaultView,i=de._getParentNode(n),s=o.getComputedStyle(n)[r],u=o.getComputedStyle(i)[r],l=t(s),d=t(u),c=Number.POSITIVE_INFINITY;return l||d?Math.min(l?e(s,n,a):c,d?e(u,i,a):c):"none"}de.where=function(e,t){if(de.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return de.each(e,function(e){t(e)&&n.push(e)}),n},de.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},de.findNextWhere=function(e,t,n){de.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},de.findPreviousWhere=function(e,t,n){de.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},de.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},de.almostEquals=function(e,t,n){return Math.abs(e-t)<n},de.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},de.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},de.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},de.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},de.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},de.toRadians=function(e){return e*(Math.PI/180)},de.toDegrees=function(e){return e*(180/Math.PI)},de._decimalPlaces=function(e){if(de.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},de.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},de.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},de.aliasPixel=function(e){return e%2==0?0:.5},de._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,a=n/2;return Math.round((t-a)*r)/r+a},de.splineCurve=function(e,t,n,r){var a=e.skip?t:e,o=t,i=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),u=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),l=s/(s+u),d=u/(s+u),c=r*(l=isNaN(l)?0:l),f=r*(d=isNaN(d)?0:d);return{previous:{x:o.x-c*(i.x-a.x),y:o.y-c*(i.y-a.y)},next:{x:o.x+f*(i.x-a.x),y:o.y+f*(i.y-a.y)}}},de.EPSILON=Number.EPSILON||1e-14,de.splineCurveMonotone=function(e){var t,n,r,a,o,i,s,u,l,d=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),c=d.length;for(t=0;t<c;++t)if(!(r=d[t]).model.skip){if(n=t>0?d[t-1]:null,(a=t<c-1?d[t+1]:null)&&!a.model.skip){var f=a.model.x-r.model.x;r.deltaK=0!==f?(a.model.y-r.model.y)/f:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<c-1;++t)r=d[t],a=d[t+1],r.model.skip||a.model.skip||(de.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(o=r.mK/r.deltaK,i=a.mK/r.deltaK,(u=Math.pow(o,2)+Math.pow(i,2))<=9||(s=3/Math.sqrt(u),r.mK=o*s*r.deltaK,a.mK=i*s*r.deltaK)));for(t=0;t<c;++t)(r=d[t]).model.skip||(n=t>0?d[t-1]:null,a=t<c-1?d[t+1]:null,n&&!n.model.skip&&(l=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-l,r.model.controlPointPreviousY=r.model.y-l*r.mK),a&&!a.model.skip&&(l=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+l,r.model.controlPointNextY=r.model.y+l*r.mK))},de.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},de.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},de.niceNum=function(e,t){var n=Math.floor(de.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},de.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},de.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,o=e.target||e.srcElement,i=o.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=a.clientX,r=a.clientY);var u=parseFloat(de.getStyle(o,"padding-left")),l=parseFloat(de.getStyle(o,"padding-top")),d=parseFloat(de.getStyle(o,"padding-right")),c=parseFloat(de.getStyle(o,"padding-bottom")),f=i.right-i.left-u-d,p=i.bottom-i.top-l-c;return{x:n=Math.round((n-i.left-u)/f*o.width/t.currentDevicePixelRatio),y:r=Math.round((r-i.top-l)/p*o.height/t.currentDevicePixelRatio)}},de.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},de.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},de._calculatePadding=function(e,t,n){return(t=de.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},de._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},de.getMaximumWidth=function(e){var t=de._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-de._calculatePadding(t,"padding-left",n)-de._calculatePadding(t,"padding-right",n),a=de.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},de.getMaximumHeight=function(e){var t=de._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-de._calculatePadding(t,"padding-top",n)-de._calculatePadding(t,"padding-bottom",n),a=de.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},de.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},de.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,o=e.width;r.height=a*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=o+"px")}},de.fontString=function(e,t,n){return t+" "+e+"px "+n},de.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var i=0;de.each(n,function(t){null!=t&&!0!==de.isArray(t)?i=de.measureText(e,a,o,i,t):de.isArray(t)&&de.each(t,function(t){null==t||de.isArray(t)||(i=de.measureText(e,a,o,i,t))})});var s=o.length/2;if(s>n.length){for(var u=0;u<s;u++)delete a[o[u]];o.splice(0,s)}return i},de.measureText=function(e,t,n,r,a){var o=t[a];return o||(o=t[a]=e.measureText(a).width,n.push(a)),o>r&&(r=o),r},de.numberOfLabelLines=function(e){var t=1;return de.each(e,function(e){de.isArray(e)&&e.length>t&&(t=e.length)}),t},de.color=G?function(e){return e instanceof CanvasGradient&&(e=se.global.defaultColor),G(e)}:function(e){return console.error("Color.js not found!"),e},de.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:de.color(e).saturate(.5).darken(.1).rgbString()}}(),on._adapters=ln,on.Animation=ge,on.animationService=ye,on.controllers=dt,on.DatasetController=Te,on.defaults=se,on.Element=me,on.elements=Ne,on.Interaction=gt,on.layouts=wt,on.platform=Ft,on.plugins=Wt,on.Scale=mn,on.scaleService=Ut,on.Ticks=dn,on.Tooltip=Zt,on.helpers.each(nr,function(e,t){on.scaleService.registerScaleType(t,e,e._defaults)}),Mr)Mr.hasOwnProperty(kr)&&on.plugins.register(Mr[kr]);on.platform.initialize();var Dr=on;return"undefined"!=typeof window&&(window.Chart=on),on.Chart=on,on.Legend=Mr.legend._element,on.Title=Mr.title._element,on.pluginService=on.plugins,on.PluginBase=on.Element.extend({}),on.canvasHelpers=on.helpers.canvas,on.layoutService=on.layouts,on.LinearScaleBase=bn,on.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){on[e]=function(t,n){return new on(t,on.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Dr}(function(){try{return n(2)}catch(e){}}())},function(e,t,n){"use strict";
|
20 |
/*!
|
21 |
* cookie
|
22 |
* Copyright(c) 2012-2014 Roman Shtylman
|
23 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
24 |
* MIT Licensed
|
25 |
-
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},a=t||{},i=e.split(o),u=a.decode||r,l=0;l<i.length;l++){var d=i[l],c=d.indexOf("=");if(!(c<0)){var f=d.substr(0,c).trim(),p=d.substr(++c,d.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[f]&&(n[f]=s(p,u))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||a;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var u=e+"="+s;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l))throw new Error("maxAge should be a Number");u+="; Max-Age="+Math.floor(l)}if(r.domain){if(!i.test(r.domain))throw new TypeError("option domain is invalid");u+="; Domain="+r.domain}if(r.path){if(!i.test(r.path))throw new TypeError("option path is invalid");u+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");u+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(u+="; HttpOnly");r.secure&&(u+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return u};var r=decodeURIComponent,a=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e),a=Object(r.a)(t);return n.getTime()<a.getTime()}},function(e,t,n){var r=n(82);e.exports=function(e,t){return r(e,t)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";t.__esModule=!0,t.ACTION=t.TYPE=t.POSITION=void 0;t.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"};t.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};t.ACTION={SHOW:0,CLEAR:1,DID_MOUNT:2,WILL_UNMOUNT:3,ON_CHANGE:4}},function(e,t,n){var r=n(59),a=n(346),o=n(347),i="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:u&&u in Object(e)?a(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),a=n(5);function o(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},o=n.locale,i=o&&o.options&&o.options.weekStartsOn,s=null==i?0:Object(a.a)(i),u=null==n.weekStartsOn?s:Object(a.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(r.a)(e),d=l.getDay(),c=(d<u?7:0)+d-u;return l.setDate(l.getDate()-c),l.setHours(0,0,0,0),l}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(31);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=7*Object(r.a)(t);return Object(a.a)(e,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(23);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,12*n)}},function(e,t,n){"use strict";var r=n(0),a=n(35);function o(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var i=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};var s,u,l=(void 0===s&&(s=0),function(){return++s}),d={},c={},f=["touchstart","touchmove"],p="ignore-react-onclickoutside";function h(e,t){var n=null;return-1!==f.indexOf(t)&&u&&(n={passive:!e.props.preventDefault}),n}t.a=function(e,t){var n,s,f=e.displayName||e.name||"Component";return s=n=function(n){var s,p;function m(e){var t;return(t=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof t.__clickOutsideHandlerProp){var n=t.getInstance();if("function"!=typeof n.props.handleClickOutside){if("function"!=typeof n.handleClickOutside)throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.");n.handleClickOutside(e)}else n.props.handleClickOutside(e)}else t.__clickOutsideHandlerProp(e)},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!c[t._uid]){void 0===u&&(u=i()),c[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),d[t._uid]=function(e){var n;null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),t.props.excludeScrollbar&&(n=e,document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(o(e,t,n))return!0;e=e.parentNode}return e}(e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e))},e.forEach(function(e){document.addEventListener(e,d[t._uid],h(t,e))})}},t.disableOnClickOutside=function(){delete c[t._uid];var e=d[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach(function(n){return document.removeEventListener(n,e,h(t,n))}),delete d[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=l(),t}p=n,(s=m).prototype=Object.create(p.prototype),s.prototype.constructor=s,s.__proto__=p;var _=m.prototype;return _.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},_.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=Object(a.findDOMNode)(this.getInstance()),this.props.disableOnClickOutside||this.enableOnClickOutside()}},_.componentDidUpdate=function(){this.componentNode=Object(a.findDOMNode)(this.getInstance())},_.componentWillUnmount=function(){this.disableOnClickOutside()},_.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},m}(r.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),o=Object(r.a)(t);return n.setHours(o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),o=Object(r.a)(t);return n.setMinutes(o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(19),a=n(30),o=864e5;function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),i=Object(a.a)(t),s=n.getTime()-Object(r.a)(n),u=i.getTime()-Object(r.a)(i);return Math.round((s-u)/o)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e),a=Object(r.a)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}},function(e,t,n){"use strict";var r=n(67),a=n(69),o=n(66),i=n(3);function s(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var u={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return s("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):s(n+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return s(Math.floor(r*Math.pow(10,n-3)),t.length)}},l=864e5;var d=n(70),c=n(65),f=n(71),p=n(37),h="midnight",m="noon",_="morning",g="afternoon",y="evening",v="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(0===o)return n+String(a);var i=t||"";return n+String(a)+i+s(o,2)}function M(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):w(e,t)}function w(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+s(Math.floor(a/60),2)+n+s(a%60,2)}var T={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return u.y(e,t)},Y:function(e,t,n,r){var a=Object(p.a)(e,r),o=a>0?a:1-a;return"YY"===t?s(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){return s(Object(c.a)(e),t.length)},u:function(e,t){return s(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return u.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=Object(f.a)(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,n){var r=Object(d.a)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):s(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.d(e,t)},D:function(e,t,n){var r=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(i.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return s(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?m:0===a?h:a/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?y:a>=12?g:a>=4?_:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.s(e,t)},S:function(e,t){return u.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return M(a);case"XXXX":case"XX":return w(a);case"XXXXX":case"XXX":default:return w(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return M(a);case"xxxx":case"xx":return w(a);case"xxxxx":case"xxx":default:return w(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(a,":");case"OOOO":default:return"GMT"+w(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(a,":");case"zzzz":default:return"GMT"+w(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return s(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return s((r._originalDate||e).getTime(),t.length)}},L=n(64),k=n(19),D=n(25),x=n(5);n.d(t,"a",function(){return P});var S=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,E=/^'(.*?)'?$/,O=/''/g,C=/[a-zA-Z]/;function P(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var s=String(t),u=n||{},l=u.locale||a.a,d=l.options&&l.options.firstWeekContainsDate,c=null==d?1:Object(x.a)(d),f=null==u.firstWeekContainsDate?c:Object(x.a)(u.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=l.options&&l.options.weekStartsOn,h=null==p?0:Object(x.a)(p),m=null==u.weekStartsOn?h:Object(x.a)(u.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!l.localize)throw new RangeError("locale must contain localize property");if(!l.formatLong)throw new RangeError("locale must contain formatLong property");var _=Object(i.a)(e);if(!Object(r.a)(_))throw new RangeError("Invalid time value");var g=Object(k.a)(_),y=Object(o.a)(_,g),v={firstWeekContainsDate:f,weekStartsOn:m,locale:l,_originalDate:_};return s.match(Y).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,L.a[t])(e,l.formatLong,v):e}).join("").match(S).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return e.match(E)[1].replace(O,"'");var n=T[t];if(n)return!u.useAdditionalWeekYearTokens&&Object(D.b)(e)&&Object(D.c)(e),!u.useAdditionalDayOfYearTokens&&Object(D.a)(e)&&Object(D.c)(e),n(y,e,l.localize,v);if(t.match(C))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}},function(e,t,n){var r=n(335),a=n(336),o=n(337),i=n(338),s=n(339);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=i,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(241);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(27).Symbol;e.exports=r},function(e,t,n){var r=n(34)(Object,"create");e.exports=r},function(e,t,n){var r=n(359);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(89),a=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),o=(n(15),n(17)),i=n.n(o),s=n(97),u=n(67),l=n(56),d=n(73),c=n(269),f=n(31),p=n(49),h=n(23),m=n(50),_=n(272),g=n(273),y=n(72),v=n(99),b=n(271),M=n(20),w=n(18),T=n(270),L=n(75),k=n(26),D=n(16),x=n(74),S=n(259),Y=n(53),E=n(52),O=n(33),C=n(98),P=n(95),I=n(96),j=n(54),R=n(55),H=n(262),A=n(260),N=n(30),F=n(48),W=n(264),U=n(263),B=n(261),z=n(268),V=n(267),q=n(266),G=n(265),J=n(32),X=n(42),Q=n(94),K=n(3),Z=n(76),$=n(258),ee=n(51),te=n(77);var ne,re=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e,t){function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={p:r,P:function(e,t){var a,o=e.match(/(P+)(p+)?/),i=o[1],s=o[2];if(!s)return n(e,t);switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",n(i,t)).replace("{{time}}",r(s,t))}};t.default=a,e.exports=t.default}),ae=(ne=re)&&ne.__esModule&&Object.prototype.hasOwnProperty.call(ne,"default")?ne.default:ne,oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},se=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},le=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},de=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function fe(e){var t=e?"string"==typeof e||e instanceof String?Object($.a)(e):Object(K.a)(e):new Date;return he(t)?t:null}function pe(e,t,n,r){var a=null,o=ke(n)||Le(),i=!0;return Array.isArray(t)?(t.forEach(function(t){var n=Object(Z.a)(e,t,new Date,{locale:o});r&&(i=he(n)&&e===Object(l.a)(n,t,{awareOfUnicodeTokens:!0})),he(n)&&i&&(a=n)}),a):(a=Object(Z.a)(e,t,new Date,{locale:o}),r?i=he(a)&&e===Object(l.a)(a,t,{awareOfUnicodeTokens:!0}):he(a)||(t=t.match(ce).map(function(e){var t=e[0];if("p"===t||"P"===t){var n=ae[t];return o?n(e,o.formatLong):t}return e}).join(""),e.length>0&&(a=Object(Z.a)(e,t.slice(0,e.length),new Date)),he(a)||(a=new Date(e))),he(a)&&i?a:null)}function he(e){return Object(u.a)(e)&&Object(J.a)(e,new Date("1/1/1000"))}function me(e,t,n){if("en"===n)return Object(l.a)(e,t,{awareOfUnicodeTokens:!0});var r=ke(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'+n+'"].'),!r&&Le()&&ke(Le())&&(r=ke(Le())),Object(l.a)(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function _e(e,t){var n=t.hour,r=void 0===n?0:n,a=t.minute,o=void 0===a?0:a,i=t.second,s=void 0===i?0:i;return Object(E.a)(Object(Y.a)(Object(S.a)(e,s),o),r)}function ge(e,t){var n=ke(t||Le());return Object(F.a)(e,{locale:n})}function ye(e){return Object(W.a)(e)}function ve(e,t){return e&&t?Object(G.a)(e,t):!e&&!t}function be(e,t){return e&&t?Object(q.a)(e,t):!e&&!t}function Me(e,t){return e&&t?Object(V.a)(e,t):!e&&!t}function we(e,t){return e&&t?Object(z.a)(e,t):!e&&!t}function Te(e,t,n){var r=void 0;try{r=Object(Q.a)(e,{start:t,end:n})}catch(e){r=!1}return r}function Le(){return("undefined"!=typeof window?window:e).__localeId__}function ke(t){if("string"==typeof t){var n="undefined"!=typeof window?window:e;return n.__localeData__?n.__localeData__[t]:null}return t}function De(e,t){return me(Object(O.a)(fe(),e),"LLL",t)}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate;return Ee(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return Me(e,t)})||o&&!o.some(function(t){return Me(e,t)})||i&&!i(fe(e))||!1}function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate;return Ee(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return be(e,t)})||o&&!o.some(function(t){return be(e,t)})||i&&!i(fe(e))||!1}function Ye(e,t,n,r){var a=Object(D.a)(e),o=Object(k.a)(e),i=Object(D.a)(t),s=Object(k.a)(t),u=Object(D.a)(r);return a===i&&a===u?o<=n&&n<=s:a<i?u===a&&o<=n||u===i&&s>=n||u<i&&u>a:void 0}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Object(j.a)(e,n)<0||r&&Object(j.a)(e,r)>0}function Oe(e,t){for(var n=t.length,r=0;r<n;r++)if(Object(w.a)(t[r])===Object(w.a)(e)&&Object(M.a)(t[r])===Object(M.a)(e))return!0;return!1}function Ce(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var a=fe(),o=Object(E.a)(Object(Y.a)(a,Object(M.a)(e)),Object(w.a)(e)),i=Object(E.a)(Object(Y.a)(a,Object(M.a)(n)),Object(w.a)(n)),s=Object(E.a)(Object(Y.a)(a,Object(M.a)(r)),Object(w.a)(r)),u=void 0;try{u=!Object(Q.a)(o,{start:i,end:s})}catch(e){u=!1}return u}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,a=Object(y.a)(e,1);return n&&Object(R.a)(n,a)>0||r&&r.every(function(e){return Object(R.a)(e,a)>0})||!1}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,a=Object(h.a)(e,1);return n&&Object(R.a)(a,n)>0||r&&r.every(function(e){return Object(R.a)(a,e)>0})||!1}function je(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return Object(j.a)(e,t)>=0});return Object(P.a)(r)}return n?Object(P.a)(n):t}function Re(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return Object(j.a)(e,t)<=0});return Object(I.a)(r)}return n?Object(I.a)(n):t}function He(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,a=e.length;r<a;r++){var o=e[r];if(Object(s.a)(o)){var i=me(o,"MM.dd.yyyy"),u=n.get(i)||[];u.includes(t)||(u.push(t),n.set(i,u))}else if("object"===(void 0===o?"undefined":oe(o))){var l=Object.keys(o),d=l[0],c=o[l[0]];if("string"==typeof d&&c.constructor===Array)for(var f=0,p=c.length;f<p;f++){var h=me(c[f],"MM.dd.yyyy"),m=n.get(h)||[];m.includes(d)||(m.push(d),n.set(h,m))}}}return n}function Ae(e,t,n,r,a){for(var o=a.length,i=[],s=0;s<o;s++){var u=Object(d.a)(Object(c.a)(e,Object(w.a)(a[s])),Object(M.a)(a[s])),l=Object(d.a)(e,(n+1)*r);Object(J.a)(u,t)&&Object(X.a)(u,l)&&i.push(a[s])}return i}function Ne(e){return e<10?"0"+e:""+e}function Fe(e,t,n,r){for(var a=[],o=0;o<2*t+1;o++){var i=e+t-o,s=!0;n&&(s=Object(D.a)(n)<=i),r&&s&&(s=Object(D.a)(r)>=i),s&&a.push(i)}return a}var We=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map(function(t){return a.a.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},e===t?a.a.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=r.props.minDate?Object(D.a)(r.props.minDate):null,o=r.props.maxDate?Object(D.a)(r.props.maxDate):null;return o&&r.state.yearsList.find(function(e){return e===o})||t.unshift(a.a.createElement("div",{className:"react-datepicker__year-option",ref:"upcoming",key:"upcoming",onClick:r.incrementYears},a.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find(function(e){return e===n})||t.push(a.a.createElement("div",{className:"react-datepicker__year-option",ref:"previous",key:"previous",onClick:r.decrementYears},a.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map(function(t){return t+e});r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=n.yearDropdownItemNumber,i=n.scrollableYearDropdown,s=o||(i?10:5);return r.state={yearsList:Fe(r.props.year,s,r.props.minDate,r.props.maxDate)},r}return le(t,e),t.prototype.render=function(){var e=i()({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return a.a.createElement("div",{className:e},this.renderOptions())},t}(a.a.Component),Ue=Object(ee.a)(We),Be=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var e=r.props.minDate?Object(D.a)(r.props.minDate):1900,t=r.props.maxDate?Object(D.a)(r.props.maxDate):2100,n=[],o=e;o<=t;o++)n.push(a.a.createElement("option",{key:o,value:o},o));return n},r.onSelectChange=function(e){r.onChange(e.target.value)},r.renderSelectMode=function(){return a.a.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(e){return a.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return r.toggleDropdown(e)}},a.a.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),a.a.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))},r.renderDropdown=function(){return a.a.createElement(Ue,{key:"dropdown",ref:"options",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderScrollMode=function(){var e=r.state.dropdownVisible,t=[r.renderReadView(!e)];return e&&t.unshift(r.renderDropdown()),t},r.onChange=function(e){r.toggleDropdown(),e!==r.props.year&&r.props.onChange(e)},r.toggleDropdown=function(e){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,e)})},r.handleYearChange=function(e,t){r.onSelect(e,t),r.setOpen()},r.onSelect=function(e,t){r.props.onSelect&&r.props.onSelect(e,t)},r.setOpen=function(){r.props.setOpen&&r.props.setOpen(!0)},de(r,n)}return le(t,e),t.prototype.render=function(){var e=void 0;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return a.a.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--"+this.props.dropdownMode},e)},t}(a.a.Component),ze=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.renderOptions=function(){return r.props.monthNames.map(function(e,t){return a.a.createElement("div",{className:r.props.month===t?"react-datepicker__month-option --selected_month":"react-datepicker__month-option",key:e,ref:e,onClick:r.onChange.bind(r,t)},r.props.month===t?a.a.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)})},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){return r.props.onCancel()},de(r,n)}return le(t,e),t.prototype.render=function(){return a.a.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t}(a.a.Component),Ve=Object(ee.a)(ze),qe=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(e){return e.map(function(e,t){return a.a.createElement("option",{key:t,value:t},e)})},r.renderSelectMode=function(e){return a.a.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(e){return r.onChange(e.target.value)}},r.renderSelectOptions(e))},r.renderReadView=function(e,t){return a.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},a.a.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),a.a.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},t[r.props.month]))},r.renderDropdown=function(e){return a.a.createElement(Ve,{key:"dropdown",ref:"options",month:r.props.month,monthNames:e,onChange:r.onChange,onCancel:r.toggleDropdown})},r.renderScrollMode=function(e){var t=r.state.dropdownVisible,n=[r.renderReadView(!t,e)];return t&&n.unshift(r.renderDropdown(e)),n},r.onChange=function(e){r.toggleDropdown(),e!==r.props.month&&r.props.onChange(e)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},de(r,n)}return le(t,e),t.prototype.render=function(){var e=this,t=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(t){return De(t,e.props.locale)}:function(t){return n=t,r=e.props.locale,me(Object(O.a)(fe(),n),"LLLL",r);var n,r}),n=void 0;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode(t);break;case"select":n=this.renderSelectMode(t)}return a.a.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--"+this.props.dropdownMode},n)},t}(a.a.Component);function Ge(e,t){for(var n=[],r=ye(e),a=ye(t);!Object(J.a)(r,a);)n.push(fe(r)),r=Object(h.a)(r,1);return n}var Je=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.renderOptions=function(){return r.state.monthYearsList.map(function(e){var t=Object(x.a)(e),n=ve(r.props.date,e)&&be(r.props.date,e);return a.a.createElement("div",{className:n?"react-datepicker__month-year-option --selected_month-year":"react-datepicker__month-year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},n?a.a.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",me(e,r.props.dateFormat))})},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:Ge(r.props.minDate,r.props.maxDate)},r}return le(t,e),t.prototype.render=function(){var e=i()({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return a.a.createElement("div",{className:e},this.renderOptions())},t}(a.a.Component),Xe=Object(ee.a)(Je),Qe=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var e=ye(r.props.minDate),t=ye(r.props.maxDate),n=[];!Object(J.a)(e,t);){var o=Object(x.a)(e);n.push(a.a.createElement("option",{key:o,value:o},me(e,r.props.dateFormat,r.props.locale))),e=Object(h.a)(e,1)}return n},r.onSelectChange=function(e){r.onChange(e.target.value)},r.renderSelectMode=function(){return a.a.createElement("select",{value:Object(x.a)(ye(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(e){var t=me(r.props.date,r.props.dateFormat,r.props.locale);return a.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(e){return r.toggleDropdown(e)}},a.a.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),a.a.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},t))},r.renderDropdown=function(){return a.a.createElement(Xe,{key:"dropdown",ref:"options",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderScrollMode=function(){var e=r.state.dropdownVisible,t=[r.renderReadView(!e)];return e&&t.unshift(r.renderDropdown()),t},r.onChange=function(e){r.toggleDropdown();var t=fe(parseInt(e));ve(r.props.date,t)&&be(r.props.date,t)||r.props.onChange(t)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},de(r,n)}return le(t,e),t.prototype.render=function(){var e=void 0;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return a.a.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--"+this.props.dropdownMode},e)},t}(a.a.Component),Ke=function(e){function t(){var n,r;ie(this,t);for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){!r.isDisabled()&&r.props.onClick&&r.props.onClick(e)},r.handleMouseEnter=function(e){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(e)},r.isSameDay=function(e){return Me(r.props.day,e)},r.isKeyboardSelected=function(){return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)},r.isDisabled=function(){return xe(r.props.day,r.props)},r.getHighLightedClass=function(e){var t=r.props,n=t.day,a=t.highlightDates;if(!a)return!1;var o=me(n,"MM.dd.yyyy");return a.get(o)},r.isInRange=function(){var e=r.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Te(t,n,a)},r.isInSelectingRange=function(){var e=r.props,t=e.day,n=e.selectsStart,a=e.selectsEnd,o=e.selectingDate,i=e.startDate,s=e.endDate;return!(!n&&!a||!o||r.isDisabled())&&(n&&s&&(Object(X.a)(o,s)||we(o,s))?Te(t,o,s):!(!a||!i||!Object(J.a)(o,i)&&!we(o,i))&&Te(t,i,o))},r.isSelectingRangeStart=function(){if(!r.isInSelectingRange())return!1;var e=r.props,t=e.day,n=e.selectingDate,a=e.startDate;return Me(t,e.selectsStart?n:a)},r.isSelectingRangeEnd=function(){if(!r.isInSelectingRange())return!1;var e=r.props,t=e.day,n=e.selectingDate,a=e.endDate;return Me(t,e.selectsEnd?n:a)},r.isRangeStart=function(){var e=r.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Me(n,t)},r.isRangeEnd=function(){var e=r.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Me(a,t)},r.isWeekend=function(){var e=Object(T.a)(r.props.day);return 0===e||6===e},r.isOutsideMonth=function(){return void 0!==r.props.month&&r.props.month!==Object(k.a)(r.props.day)},r.getClassNames=function(e){var t,n=r.props.dayClassName?r.props.dayClassName(e):void 0;return i()("react-datepicker__day",n,"react-datepicker__day--"+me(r.props.day,"ddd",t),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--selected":r.isSameDay(r.props.selected),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isSameDay(fe()),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isOutsideMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))},de(r,n)}return le(t,e),t.prototype.render=function(){return a.a.createElement("div",{className:this.getClassNames(this.props.day),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,"aria-label":"day-"+Object(L.a)(this.props.day),role:"option"},this.props.renderDayContents?this.props.renderDayContents(Object(L.a)(this.props.day),this.props.day):Object(L.a)(this.props.day))},t}(a.a.Component),Ze=function(e){function t(){var n,r;ie(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=de(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){r.props.onClick&&r.props.onClick(e)},de(r,n)}return le(t,e),t.prototype.render=function(){var e={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!this.props.onClick};return a.a.createElement("div",{className:i()(e),"aria-label":"week-"+this.props.weekNumber,onClick:this.handleClick},this.props.weekNumber)},t}(a.a.Component),$e=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleWeekClick=function(e,t,n){"function"==typeof r.props.onWeekSelect&&r.props.onWeekSelect(e,t,n),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)},r.formatWeekNumber=function(e){return r.props.formatWeekNumber?r.props.formatWeekNumber(e):function(e){return Object(A.a)(e,1),ve(Object(B.a)(e),e)?Object(H.a)(e,Object(U.a)(e))+1:1}(e)},r.renderDays=function(){var e=ge(r.props.day,r.props.locale),t=[],n=r.formatWeekNumber(e);if(r.props.showWeekNumber){var o=r.props.onWeekSelect?r.handleWeekClick.bind(r,e,n):void 0;t.push(a.a.createElement(Ze,{key:"W",weekNumber:n,onClick:o}))}return t.concat([0,1,2,3,4,5,6].map(function(t){var n=Object(f.a)(e,t);return a.a.createElement(Ke,{key:t,day:n,month:r.props.month,onClick:r.handleDayClick.bind(r,n),onMouseEnter:r.handleDayMouseEnter.bind(r,n),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,inline:r.props.inline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation})}))},de(r,n)}return le(t,e),t.prototype.render=function(){return a.a.createElement("div",{className:"react-datepicker__week"},this.renderDays())},se(t,null,[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),t}(a.a.Component),et=6,tt=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,s=Array(o),u=0;u<o;u++)s[u]=arguments[u];return n=r=de(this,e.call.apply(e,[this].concat(s))),r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t,r.props.orderInDisplay)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleMouseLeave=function(){r.props.onMouseLeave&&r.props.onMouseLeave()},r.isRangeStart=function(e){var t=r.props,n=t.day,a=t.startDate,o=t.endDate;return!(!a||!o)&&be(Object(O.a)(n,e),a)},r.isRangeEnd=function(e){var t=r.props,n=t.day,a=t.startDate,o=t.endDate;return!(!a||!o)&&be(Object(O.a)(n,e),o)},r.isWeekInMonth=function(e){var t=r.props.day,n=Object(f.a)(e,6);return be(e,t)||be(n,t)},r.renderWeeks=function(){for(var e=[],t=r.props.fixedHeight,n=ge(ye(r.props.day),r.props.locale),o=0,i=!1;e.push(a.a.createElement($e,{key:o,day:n,month:Object(k.a)(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,inline:r.props.inline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents})),!i;){o++,n=Object(p.a)(n,1);var s=t&&o>=et,u=!t&&!r.isWeekInMonth(n);if(s||u){if(!r.props.peekNextMonth)break;i=!0}}return e},r.onMonthClick=function(e,t){r.handleDayClick(ye(Object(O.a)(r.props.day,t)))},r.getMonthClassNames=function(e){var t=r.props,n=t.day,a=t.startDate,o=t.endDate,s=t.selected,u=t.minDate,l=t.maxDate;return i()("react-datepicker__month-text","react-datepicker__month-"+e,{"react-datepicker__month--disabled":(u||l)&&Se(Object(O.a)(n,e),r.props),"react-datepicker__month--selected":Object(k.a)(n)===e&&Object(D.a)(n)===Object(D.a)(s),"react-datepicker__month--in-range":Ye(a,o,e,n),"react-datepicker__month--range-start":r.isRangeStart(e),"react-datepicker__month--range-end":r.isRangeEnd(e)})},r.renderMonths=function(){return[[0,1,2],[3,4,5],[6,7,8],[9,10,11]].map(function(e,t){return a.a.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map(function(e,t){return a.a.createElement("div",{key:t,onClick:function(t){r.onMonthClick(t.target,e)},className:r.getMonthClassNames(e)},De(e,r.props.locale))}))})},r.getClassNames=function(){var e=r.props,t=e.selectingDate,n=e.selectsStart,a=e.selectsEnd,o=e.showMonthYearPicker;return i()("react-datepicker__month",{"react-datepicker__month--selecting-range":t&&(n||a)},{"react-datepicker__monthPicker":o})},de(r,n)}return le(t,e),t.prototype.render=function(){var e=this.props.showMonthYearPicker;return a.a.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,role:"listbox","aria-label":"month-"+me(this.props.day,"yyyy-MM")},e?this.renderMonths():this.renderWeeks())},t}(a.a.Component),nt=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={height:null},r.handleClick=function(e){(r.props.minTime||r.props.maxTime)&&Ce(e,r.props)||r.props.excludeTimes&&Oe(e,r.props.excludeTimes)||r.props.includeTimes&&!Oe(e,r.props.includeTimes)||r.props.onChange(e)},r.liClasses=function(e,t,n){var a=["react-datepicker__time-list-item"];return t===Object(w.a)(e)&&n===Object(M.a)(e)&&a.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&Ce(e,r.props)||r.props.excludeTimes&&Oe(e,r.props.excludeTimes)||r.props.includeTimes&&!Oe(e,r.props.includeTimes))&&a.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Object(w.a)(e)+Object(M.a)(e))%r.props.intervals!=0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},r.renderTimes=function(){for(var e,t=[],n=r.props.format?r.props.format:"p",o=r.props.intervals,i=r.props.selected?r.props.selected:fe(),s=Object(w.a)(i),u=Object(M.a)(i),l=(e=fe(),Object(N.a)(e)),c=1440/o,f=r.props.injectTimes&&r.props.injectTimes.sort(function(e,t){return e-t}),p=0;p<c;p++){var h=Object(d.a)(l,p*o);if(t.push(h),f){var m=Ae(l,h,p,o,f);t=t.concat(m)}}return t.map(function(e,t){return a.a.createElement("li",{key:t,onClick:r.handleClick.bind(r,e),className:r.liClasses(e,s,u),ref:function(t){(s===Object(w.a)(e)&&u===Object(M.a)(e)||s===Object(w.a)(e)&&!r.centerLi)&&(r.centerLi=t)}},me(e,n,r.props.locale))})},de(r,n)}return le(t,e),t.prototype.componentDidMount=function(){this.list.scrollTop=t.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e=this,t=this.state.height;return a.a.createElement("div",{className:"react-datepicker__time-container "+(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},a.a.createElement("div",{className:"react-datepicker__header react-datepicker__header--time",ref:function(t){e.header=t}},a.a.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),a.a.createElement("div",{className:"react-datepicker__time"},a.a.createElement("div",{className:"react-datepicker__time-box"},a.a.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{}},this.renderTimes.bind(this)()))))},se(t,null,[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),t}(a.a.Component);nt.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)};var rt=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.onTimeChange=function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)},r.state={time:r.props.timeString},r}return le(t,e),t.prototype.render=function(){var e=this,t=this.state.time,n=this.props.timeString;return a.a.createElement("div",{className:"react-datepicker__input-time-container"},a.a.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),a.a.createElement("div",{className:"react-datepicker-time__input-container"},a.a.createElement("div",{className:"react-datepicker-time__input"},a.a.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:t,onChange:function(t){e.onTimeChange(t.target.value||n)}}))))},t}(a.a.Component);function at(e){var t=e.className,n=e.children,r=e.arrowProps,o=void 0===r?{}:r;return a.a.createElement("div",{className:t},a.a.createElement("div",ue({className:"react-datepicker__triangle"},o)),n)}var ot=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],it=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.className||"").split(/\s+/);return ot.some(function(e){return t.indexOf(e)>=0})},st=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.handleClickOutside=function(e){r.props.onClickOutside(e)},r.handleDropdownFocus=function(e){it(e.target)&&r.props.onDropdownFocus()},r.getDateInView=function(){var e=r.props,t=e.preSelection,n=e.selected,a=e.openToDate,o=je(r.props),i=Re(r.props),s=fe(),u=a||n||t;return u||(o&&Object(X.a)(s,o)?o:i&&Object(J.a)(s,i)?i:s)},r.increaseMonth=function(){r.setState({date:Object(h.a)(r.state.date,1)},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState({date:Object(y.a)(r.state.date,1)},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(e,t,n){return r.props.onSelect(e,t,n)},r.handleDayMouseEnter=function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearChange=function(e){r.props.onYearChange&&r.props.onYearChange(e)},r.handleMonthChange=function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0))},r.handleMonthYearChange=function(e){r.handleYearChange(e),r.handleMonthChange(e)},r.changeYear=function(e){r.setState({date:Object(C.a)(r.state.date,e)},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(e){r.setState({date:Object(O.a)(r.state.date,e)},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(e){r.setState({date:Object(C.a)(Object(O.a)(r.state.date,Object(k.a)(e)),Object(D.a)(e))},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=ge(e,r.props.locale),n=[];return r.props.showWeekNumbers&&n.push(a.a.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map(function(e){var n=Object(f.a)(t,e),o=r.formatWeekday(n,r.props.locale);return a.a.createElement("div",{key:e,className:"react-datepicker__day-name"},o)}))},r.formatWeekday=function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(me(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return me(e,"EEE",t)}(e,t):function(e,t){return me(e,"EEEEEE",t)}(e,t)},r.decreaseYear=function(){r.setState({date:Object(v.a)(r.state.date,1)},function(){return r.handleYearChange(r.state.date)})},r.renderPreviousButton=function(){if(!r.props.renderCustomHeader){var e=Pe(r.state.date,r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;return r.props.showMonthYearPicker&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null),a.a.createElement("button",{type:"button",className:t.join(" "),onClick:n},r.props.showMonthYearPicker?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel)}}},r.increaseYear=function(){r.setState({date:Object(m.a)(r.state.date,1)},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){if(!r.props.renderCustomHeader){var e=Ie(r.state.date,r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;return r.props.showMonthYearPicker&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null),a.a.createElement("button",{type:"button",className:t.join(" "),onClick:n},r.props.showMonthYearPicker?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel)}}},r.renderCurrentMonth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),a.a.createElement("div",{className:t.join(" ")},me(e,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return a.a.createElement(Be,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Object(D.a)(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderMonthDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return a.a.createElement(qe,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Object(k.a)(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})},r.renderMonthYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return a.a.createElement(Qe,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderTodayButton=function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return a.a.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Object(N.a)(fe()),e)}},r.props.todayButton)},r.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return a.a.createElement("div",{className:"react-datepicker__header"},r.renderCurrentMonth(t),a.a.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--"+r.props.dropdownMode,onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),a.a.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderCustomHeader=function(e){var t=e.monthDate;if(0!==e.i)return null;var n=Pe(r.state.date,r.props),o=Ie(r.state.date,r.props);return a.a.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(ue({},r.state,{changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,prevMonthButtonDisabled:n,nextMonthButtonDisabled:o})),a.a.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderYearHeader=function(){return a.a.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},Object(D.a)(r.state.date))},r.renderMonths=function(){if(!r.props.showTimeSelectOnly){for(var e=[],t=0;t<r.props.monthsShown;++t){var n=t-r.props.monthSelectedIn,o=Object(h.a)(r.state.date,n),i="month-"+t;e.push(a.a.createElement("div",{key:i,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.props.showMonthYearPicker?r.renderYearHeader({monthDate:o,i:t}):r.props.renderCustomHeader?r.renderCustomHeader({monthDate:o,i:t}):r.renderDefaultHeader({monthDate:o,i:t}),a.a.createElement(tt,{onChange:r.changeMonthYear,day:o,dayClassName:r.props.dayClassName,onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:t,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,inline:r.props.inline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker})))}return e}},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return a.a.createElement(nt,{selected:r.props.selected,onChange:r.props.onTimeChange,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale})},r.renderInputTimeSection=function(){var e=new Date(r.props.selected),t=Ne(e.getHours())+":"+Ne(e.getMinutes());if(r.props.showTimeInput)return a.a.createElement(rt,{timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange})},r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return le(t,e),se(t,null,[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month"}}}]),t.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},t.prototype.componentDidUpdate=function(e){this.props.preSelection&&!Me(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Me(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var e=this.props.container||at;return a.a.createElement(e,{className:i()("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly})},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children)},t}(a.a.Component),ut=function(e){function t(){return ie(this,t),de(this,e.apply(this,arguments))}return le(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hidePopper,r=e.popperComponent,o=e.popperModifiers,s=e.popperPlacement,u=e.popperProps,l=e.targetComponent,d=void 0;if(!n){var c=i()("react-datepicker-popper",t);d=a.a.createElement(te.b,ue({modifiers:o,placement:s},u),function(e){var t=e.ref,n=e.style,o=e.placement,i=e.arrowProps;return a.a.createElement("div",ue({ref:t,style:n},{className:c,"data-placement":o}),a.a.cloneElement(r,{arrowProps:i}))})}return this.props.popperContainer&&(d=a.a.createElement(this.props.popperContainer,{},d)),a.a.createElement(te.a,null,a.a.createElement(te.c,null,function(e){var t=e.ref;return a.a.createElement("div",{ref:t,className:"react-datepicker-wrapper"},l)}),d)},se(t,null,[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:{preventOverflow:{enabled:!0,escapeWithReference:!0,boundariesElement:"viewport"}},popperProps:{},popperPlacement:"bottom-start"}}}]),t}(a.a.Component),lt="react-datepicker-ignore-onclickoutside",dt=Object(ee.a)(st);var ct="Date input not valid.",ft=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:fe()},r.calcInitialState=function(){var e=r.getPreSelection(),t=je(r.props),n=Re(r.props),a=t&&Object(X.a)(e,t)?t:n&&Object(J.a)(e,n)?n:e;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:r.props.selected?r.props.selected:a,highlightDates:He(r.props.highlightDates),focused:!1}},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus()},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:ht},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){!t&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Object(s.a)(r.state.preSelection)},r.isCalendarOpen=function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){!r.state.open||r.props.withPortal||r.props.showTimeInput?r.props.onBlur(e):r.deferFocusInput(),r.setState({focused:!1})},r.handleCalendarClickOutside=function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(r,t),"function"==typeof a.isDefaultPrevented&&!a.isDefaultPrevented())){r.setState({inputValue:a.target.value,lastPreSelectChange:pt});var o=pe(a.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing);!o&&a.target.value||r.setSelected(o,a,!0)}},r.handleSelect=function(e,t,n){r.setState({preventFocus:!0},function(){return r.preventFocusTimeout=setTimeout(function(){return r.setState({preventFocus:!1})},50),r.preventFocusTimeout}),r.setSelected(e,t,void 0,n),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(e):r.props.inline||r.setOpen(!1)},r.setSelected=function(e,t,n,a){var o=e;if(null===o||!xe(o,r.props)){if(!we(r.props.selected,o)||r.props.allowSameDay){if(null!==o){if(r.props.selected){var i=r.props.selected;n&&(i=fe(o)),o=_e(o,{hour:Object(w.a)(i),minute:Object(M.a)(i),second:Object(b.a)(i)})}r.props.inline||r.setState({preSelection:o}),r.props.inline&&r.props.monthsShown>1&&!r.props.inlineFocusSelectedMonth&&r.setState({monthSelectedIn:a})}r.props.onChange(o,t)}r.props.onSelect(o,t),n||r.setState({inputValue:null})}},r.setPreSelection=function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,a=!0;e&&(t&&n?a=Te(e,r.props.minDate,r.props.maxDate):t?a=Object(J.a)(e,r.props.minDate):n&&(a=Object(X.a)(e,r.props.maxDate))),a&&r.setState({preSelection:e})},r.handleTimeChange=function(e){var t=_e(r.props.selected?r.props.selected:r.getPreSelection(),{hour:Object(w.a)(e),minute:Object(M.a)(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})},r.onInputClick=function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()},r.onInputKeyDown=function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){var n=fe(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===ht?(r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n)):r.setOpen(!1);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:ct});else if("Tab"===t)r.setOpen(!1,!0);else if(!r.props.disabledKeyboardNavigation){var a=void 0;switch(t){case"ArrowLeft":a=Object(_.a)(n,1);break;case"ArrowRight":a=Object(f.a)(n,1);break;case"ArrowUp":a=Object(g.a)(n,1);break;case"ArrowDown":a=Object(p.a)(n,1);break;case"PageUp":a=Object(y.a)(n,1);break;case"PageDown":a=Object(h.a)(n,1);break;case"Home":a=Object(v.a)(n,1);break;case"End":a=Object(m.a)(n,1)}if(!a)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:ct}));e.preventDefault(),r.setState({lastPreSelectChange:ht}),r.props.adjustDateOnChange&&r.setSelected(a),r.setPreSelection(a)}}else"ArrowDown"!==t&&"ArrowUp"!==t||r.onInputClick()},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.props.onChange(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.renderCalendar=function(){return r.props.inline||r.isCalendarOpen()?a.a.createElement(dt,{ref:function(e){r.calendar=e},locale:r.props.locale,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:lt,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker},r.props.children):null},r.renderDateInput=function(){var e,t,n,o,s,u,l=i()(r.props.className,((e={})[lt]=r.state.open,e)),d=r.props.customInput||a.a.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",f="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:(n=r.props.selected,o=r.props,s=o.dateFormat,u=o.locale,n&&me(n,Array.isArray(s)?s[0]:s,u)||"");return a.a.cloneElement(d,((t={})[c]=function(e){r.input=e},t.value=f,t.onBlur=r.handleBlur,t.onChange=r.handleChange,t.onClick=r.onInputClick,t.onFocus=r.handleFocus,t.onKeyDown=r.onInputKeyDown,t.id=r.props.id,t.name=r.props.name,t.autoFocus=r.props.autoFocus,t.placeholder=r.props.placeholderText,t.disabled=r.props.disabled,t.autoComplete=r.props.autoComplete,t.className=l,t.title=r.props.title,t.readOnly=r.props.readOnly,t.required=r.props.required,t.tabIndex=r.props.tabIndex,t))},r.renderClearButton=function(){return r.props.isClearable&&null!=r.props.selected?a.a.createElement("button",{type:"button",className:"react-datepicker__close-icon",onClick:r.onClearClick,title:r.props.clearButtonTitle,tabIndex:-1}):null},r.state=r.calcInitialState(),r}return le(t,e),se(t,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showMonthYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next month",timeInputLabel:"Time",renderDayContents:function(e){return e},inlineFocusSelectedMonth:!1}}}]),t.prototype.componentDidUpdate=function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Object(k.a)(n)!==Object(k.a)(r)||Object(D.a)(n)!==Object(D.a)(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:He(this.props.highlightDates)}),t.focused||we(e.selected,this.props.selected)||this.setState({inputValue:null})},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout()},t.prototype.render=function(){var e=this.renderCalendar();return this.props.inline&&!this.props.withPortal?e:this.props.withPortal?a.a.createElement("div",null,this.props.inline?null:a.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?a.a.createElement("div",{className:"react-datepicker__portal"},e):null):a.a.createElement(ut,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),popperModifiers:this.props.popperModifiers,targetComponent:a.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps})},t}(a.a.Component),pt="input",ht="navigate";t.a=ft}).call(this,n(44))},function(e,t,n){"use strict";function r(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function a(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var o={p:a,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),i=o[1],s=o[2];if(!s)return r(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(i,t)).replace("{{time}}",a(s,t))}};t.a=o},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),a=n(24);function o(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var i=Object(a.a)(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var u=Object(a.a)(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(38);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,-n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return!isNaN(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=t.getFullYear(),a=t.getMonth(),o=new Date(0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}},function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=a.width?String(a.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,u=a.width?String(a.width):e.defaultWidth;r=e.values[u]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t,n){var r=String(t),a=n||{},o=a.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=r.match(i);if(!s)return null;var u,l=s[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(d)?d.findIndex(function(e){return e.test(r)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(d,function(e){return e.test(r)}),u=e.valueCallback?e.valueCallback(u):u,{value:u=a.valueCallback?a.valueCallback(u):u,rest:r.slice(l.length)}}}var l,d={formatDistance:function(e,t,n){var a;return n=n||{},a="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+a:a+" ago":a},formatLong:o,formatRelative:function(e,t,n,r){return i[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(l={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},a=n.match(l.matchPattern);if(!a)return null;var o=a[0],i=n.match(l.parsePattern);if(!i)return null;var s=l.valueCallback?l.valueCallback(i[0]):i[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=d},function(e,t,n){"use strict";var r=n(3),a=n(24),o=n(65);n.d(t,"a",function(){return s});var i=6048e5;function s(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=Object(a.a)(t).getTime()-function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(o.a)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Object(a.a)(n)}(t).getTime();return Math.round(n/i)+1}},function(e,t,n){"use strict";var r=n(3),a=n(22),o=n(5),i=n(37);n.d(t,"a",function(){return u});var s=6048e5;function u(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(r.a)(e),u=Object(a.a)(n,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,s=r&&r.options&&r.options.firstWeekContainsDate,u=null==s?1:Object(o.a)(s),l=null==n.firstWeekContainsDate?u:Object(o.a)(n.firstWeekContainsDate),d=Object(i.a)(e,t),c=new Date(0);return c.setUTCFullYear(d,0,l),c.setUTCHours(0,0,0,0),Object(a.a)(c,t)}(n,t).getTime();return Math.round(u/s)+1}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(23);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,-n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(38),o=6e4;function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,n*o)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getTime()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDate()}},function(e,t,n){"use strict";var r=n(69),a=n(66),o=n(3);function i(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var s=n(64),u=n(19),l=n(25),d=n(5),c=n(37);function f(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},a=r.locale,i=a&&a.options&&a.options.weekStartsOn,s=null==i?0:Object(d.a)(i),u=null==r.weekStartsOn?s:Object(d.a)(r.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(o.a)(e),c=Object(d.a)(t),f=((c%7+7)%7<u?7:0)+c-l.getUTCDay();return l.setUTCDate(l.getUTCDate()+f),l}var p=n(70);var h=n(71);var m=n(24),_=n(22),g=36e5,y=6e4,v=1e3,b={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},M=/^([+-])(\d{2})(\d{2})?|Z/,w=/^([+-])(\d{2})(\d{2})|Z/,T=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,L=/^([+-])(\d{2}):(\d{2})|Z/,k=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function D(e,t,n){var r=t.match(e);if(!r)return null;var a=parseInt(r[0],10);return{value:n?n(a):a,rest:t.slice(r[0].length)}}function x(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(a*g+o*y+i*v),rest:t.slice(n[0].length)}}function S(e,t){return D(b.anyDigitsSigned,e,t)}function Y(e,t,n){switch(e){case 1:return D(b.singleDigit,t,n);case 2:return D(b.twoDigits,t,n);case 3:return D(b.threeDigits,t,n);case 4:return D(b.fourDigits,t,n);default:return D(new RegExp("^\\d{1,"+e+"}"),t,n)}}function E(e,t,n){switch(e){case 1:return D(b.singleDigitSigned,t,n);case 2:return D(b.twoDigitsSigned,t,n);case 3:return D(b.threeDigitsSigned,t,n);case 4:return D(b.fourDigitsSigned,t,n);default:return D(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function O(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function C(e,t){var n,r=t>0,a=r?t:1-t;if(a<=50)n=e||100;else{var o=a+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var P=[31,28,31,30,31,30,31,31,30,31,30,31],I=[31,29,31,30,31,30,31,31,30,31,30,31];function j(e){return e%400==0||e%4==0&&e%100!=0}var R={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var a=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return Y(4,e,a);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return Y(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var o=C(n.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var a=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return Y(4,e,a);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return Y(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var a=Object(c.a)(e,r);if(n.isTwoDigitYear){var o=C(n.year,a);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return E("R"===t?4:t.length,e)},set:function(e,t,n,r){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),Object(m.a)(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return E("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return Y(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return Y(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var a=function(e){return e-1};switch(t){case"M":return D(b.month,e,a);case"MM":return Y(2,e,a);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var a=function(e){return e-1};switch(t){case"L":return D(b.month,e,a);case"LL":return Y(2,e,a);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return D(b.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(_.a)(function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(e),a=Object(d.a)(t),i=Object(h.a)(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return D(b.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(m.a)(function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(o.a)(e),r=Object(d.a)(t),a=Object(p.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return D(b.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Y(t.length,e)}},validate:function(e,t,n){var r=j(e.getUTCFullYear()),a=e.getUTCMonth();return r?t>=1&&t<=I[a]:t>=1&&t<=P[a]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return D(b.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Y(t.length,e)}},validate:function(e,t,n){return j(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=f(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Y(t.length,e,a);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=f(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Y(t.length,e,a);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=f(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var a=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return Y(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:a})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(d.a)(t);n%7==0&&(n-=7);var r=Object(o.a)(e),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(O(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(O(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(O(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return D(b.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):a||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return D(b.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return D(b.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return D(b.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var a=n<=24?n%24:n;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return D(b.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return D(b.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Y(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return Y(t.length,e,function(e){return Math.floor(e*Math.pow(10,3-t.length))})},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return x(M,e);case"XX":return x(w,e);case"XXXX":return x(T,e);case"XXXXX":return x(k,e);case"XXX":default:return x(L,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return x(M,e);case"xx":return x(w,e);case"xxxx":return x(T,e);case"xxxxx":return x(k,e);case"xxx":default:return x(L,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return S(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return S(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};n.d(t,"a",function(){return z});var H=10,A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F=/^'(.*?)'?$/,W=/''/g,U=/\S/,B=/[a-zA-Z]/;function z(e,t,n,c){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var f=String(e),p=String(t),h=c||{},m=h.locale||r.a;if(!m.match)throw new RangeError("locale must contain match property");var _=m.options&&m.options.firstWeekContainsDate,g=null==_?1:Object(d.a)(_),y=null==h.firstWeekContainsDate?g:Object(d.a)(h.firstWeekContainsDate);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=m.options&&m.options.weekStartsOn,b=null==v?0:Object(d.a)(v),M=null==h.weekStartsOn?b:Object(d.a)(h.weekStartsOn);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===p)return""===f?Object(o.a)(n):new Date(NaN);var w,T={firstWeekContainsDate:y,weekStartsOn:M,locale:m},L=[{priority:H,set:V,index:0}],k=p.match(N).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,s.a[t])(e,m.formatLong,T):e}).join("").match(A),D=[];for(w=0;w<k.length;w++){var x=k[w];!h.useAdditionalWeekYearTokens&&Object(l.b)(x)&&Object(l.c)(x),!h.useAdditionalDayOfYearTokens&&Object(l.a)(x)&&Object(l.c)(x);var S=x[0],Y=R[S];if(Y){var E=Y.incompatibleTokens;if(Array.isArray(E)){for(var O=void 0,C=0;C<D.length;C++){var P=D[C].token;if(-1!==E.indexOf(P)||P===S){O=D[C];break}}if(O)throw new RangeError("The format string mustn't contain `".concat(O.fullToken,"` and `").concat(x,"` at the same time"))}else if("*"===Y.incompatibleTokens&&D.length)throw new RangeError("The format string mustn't contain `".concat(x,"` and any other token at the same time"));D.push({token:S,fullToken:x});var I=Y.parse(f,x,m.match,T);if(!I)return new Date(NaN);L.push({priority:Y.priority,set:Y.set,validate:Y.validate,value:I.value,index:L.length}),f=I.rest}else{if(S.match(B))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if("''"===x?x="'":"'"===S&&(x=x.match(F)[1].replace(W,"'")),0!==f.indexOf(x))return new Date(NaN);f=f.slice(x.length)}}if(f.length>0&&U.test(f))return new Date(NaN);var j=L.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return L.filter(function(t){return t.priority===e}).reverse()}).map(function(e){return e[0]}),z=Object(o.a)(n);if(isNaN(z))return new Date(NaN);var q=Object(a.a)(z,Object(u.a)(z)),G={};for(w=0;w<j.length;w++){var J=j[w];if(J.validate&&!J.validate(q,J.value,T))return new Date(NaN);var X=J.set(q,G,J.value,T);X[0]?(q=X[0],i(G,X[1])):q=X}return q}function V(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}},function(e,t,n){"use strict";var r=n(255),a=n.n(r),o=n(29),i=n.n(o),s=n(36),u=n.n(s),l=n(6),d=n.n(l),c=n(1),f=n.n(c),p=n(0),h=n(93),m=n(256),_=n.n(m)()({setReferenceNode:void 0,referenceNode:void 0}),g=function(e){function t(){var t;return t=e.call(this)||this,f()(d()(d()(t)),"setReferenceNode",function(e){e&&t.state.context.referenceNode!==e&&t.setState(function(t){var n=t.context;return{context:i()({},n,{referenceNode:e})}})}),t.state={context:{setReferenceNode:t.setReferenceNode,referenceNode:void 0}},t}return u()(t,e),t.prototype.render=function(){return p.createElement(_.Provider,{value:this.state.context},this.props.children)},t}(p.Component),y=function(e){return Array.isArray(e)?e[0]:e},v=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},M={},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,f()(d()(d()(t)),"state",{data:void 0,placement:void 0}),f()(d()(d()(t)),"popperInstance",void 0),f()(d()(d()(t)),"popperNode",null),f()(d()(d()(t)),"arrowNode",null),f()(d()(d()(t)),"setPopperNode",function(e){e&&t.popperNode!==e&&(v(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())}),f()(d()(d()(t)),"setArrowNode",function(e){t.arrowNode=e}),f()(d()(d()(t)),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),f()(d()(d()(t)),"getOptions",function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:i()({},t.props.modifiers,{arrow:i()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}}),f()(d()(d()(t)),"getPopperStyle",function(){return t.popperNode&&t.state.data?i()({position:t.state.data.offsets.popper.position},t.state.data.styles):b}),f()(d()(d()(t)),"getPopperPlacement",function(){return t.state.data?t.state.placement:void 0}),f()(d()(d()(t)),"getArrowStyle",function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:M}),f()(d()(d()(t)),"getOutOfBoundariesState",function(){return t.state.data?t.state.data.hide:void 0}),f()(d()(d()(t)),"destroyPopperInstance",function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)}),f()(d()(d()(t)),"updatePopperInstance",function(){t.destroyPopperInstance();var e=d()(d()(t)).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new h.a(n,e,t.getOptions()))}),f()(d()(d()(t)),"scheduleUpdate",function(){t.popperInstance&&t.popperInstance.scheduleUpdate()}),t}u()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){v(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return y(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(p.Component);f()(w,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});h.a.placements;function T(e){var t=e.referenceElement,n=a()(e,["referenceElement"]);return p.createElement(_.Consumer,null,function(e){var r=e.referenceNode;return p.createElement(w,i()({referenceElement:void 0!==t?t:r},n))})}var L=n(257),k=n.n(L),D=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,f()(d()(d()(t)),"refHandler",function(e){v(t.props.innerRef,e),v(t.props.setReferenceNode,e)}),t}return u()(t,e),t.prototype.render=function(){return k()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),y(this.props.children)({ref:this.refHandler})},t}(p.Component);function x(e){return p.createElement(_.Consumer,null,function(t){var n=t.setReferenceNode;return p.createElement(D,i()({setReferenceNode:n},e))})}n.d(t,"b",function(){return T}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return x})},function(e,t,n){"use strict";
|
26 |
/*
|
27 |
object-assign
|
28 |
(c) Sindre Sorhus
|
29 |
@license MIT
|
30 |
-
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,
|
31 |
/*!
|
32 |
* react-filepond v5.0.0
|
33 |
* A handy FilePond adapter component for React
|
@@ -36,7 +30,7 @@ object-assign
|
|
36 |
* https://pqina.nl/filepond
|
37 |
*
|
38 |
* Licensed under the MIT license.
|
39 |
-
*/Object.defineProperty(t,"__esModule",{value:!0}),t.File=t.FilePond=t.registerPlugin=void 0;var r,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),i=(r=o)&&r.__esModule?r:{default:r},s=n(282);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.registerPlugin=s.registerPlugin;var c=(0,s.supported)(),f=function(e){return e?i.default.Children.map(e,function(e){var t=e.props;if(t.src){var n={};return t.origin&&(n.type=t.origin),t.name&&(n.file={name:t.name,size:t.size,type:t.type}),t.metadata&&(n.metadata=t.metadata),{source:t.src,options:n}}return t.source&&t.type?{source:t.source,options:{type:t.type}}:t.source}):[]},p=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];t.FilePond=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,i.default.Component),a(t,[{key:"componentDidMount",value:function(){var e=this;c&&(this._pond=(0,s.create)(this._element,Object.assign({},this.props,{files:f(this.props.children)})),Object.keys(this._pond).filter(function(e){return!p.includes(e)}).forEach(function(t){e[t]=e._pond[t]}))}},{key:"componentWillUnmount",value:function(){this._pond&&this._pond.destroy()}},{key:"componentDidUpdate",value:function(e){if(this._pond){var t=Object.assign({},this.props),n=f(e.children),r=f(this.props.children);JSON.stringify(n)!==JSON.stringify(r)&&(t.files=r),this._pond.setOptions(t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.name,a=t.className,i=t.allowMultiple,s=t.required,u=t.captureMethod,l=t.acceptedFileTypes;return(0,o.createElement)("div",{className:"filepond--wrapper"},(0,o.createElement)("input",{type:"file",name:r,id:n,accept:l,multiple:i,required:s,className:a,capture:u,ref:function(t){return e._element=t}}))}}]),t}(),t.File=function(e){function t(){return u(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,i.default.Component),t}()},function(e,t,n){"use strict";var r,a,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=T(n(0)),l=T(n(15)),d=T(n(35)),c=T(n(17)),f=T(n(314)),p=T(n(315)),h=T(n(316)),m=T(n(317)),_=T(n(318)),g=T(n(319)),y=T(n(320)),v=T(n(321)),b=n(322),M=T(n(323)),w=T(n(324));function T(e){return e&&e.__esModule?e:{default:e}}var L=(0,f.default)(r=(0,p.default)(r=(0,h.default)(r=(0,m.default)(r=(0,_.default)(r=(0,g.default)((o=a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:(0,b.parseAria)(e),isEmptyTip:!1,disable:!1,originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.default.Component),s(t,[{key:"bind",value:function(e){var t=this;e.forEach(function(e){t[e]=t[e].bind(t)})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.insecure,n=e.resizeHide;t&&this.setStyleHeader(),this.bindListener(),this.bindWindowEvents(n)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.ariaProps,n=(0,b.parseAria)(e);Object.keys(n).some(function(e){return n[e]!==t[e]})&&this.setState({ariaProps:n})}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(),this.unbindWindowEvents()}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t=void 0;if(e){var n=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t=document.querySelectorAll('[data-tip][data-for="'+n+'"]')}else t=document.querySelectorAll("[data-tip]:not([data-for])");return(0,M.default)(t)}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,a=t.isCapture;this.getTargetArray(n).forEach(function(t){var n=e.isCapture(t),r=e.getEffect(t);null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n))}),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,a)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.getTargetArray(n).forEach(function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)}),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e=this.props,t=e.getContent,n=e.children,r=void 0;return t&&(r=Array.isArray(t)?t[0]&&t[0](this.state.originTooltip):t(this.state.originTooltip)),(0,v.default)(this.state.originTooltip,n,r,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(t&&!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget}))return;var n=this.props,r=n.multiline,a=n.getContent,o=e.currentTarget.getAttribute("data-tip"),i=e.currentTarget.getAttribute("data-multiline")||r||!1,s=e instanceof window.FocusEvent||t,u=!0;e.currentTarget.getAttribute("data-scroll-hide")?u="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(u=this.props.scrollHide);var l=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=s?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=(0,y.default)(e,e.currentTarget,d.default.findDOMNode(this),l,l,c,f),h=p.isNewState?p.newState.place:l;this.clearTimer();var m=e.currentTarget,_=this.state.show?m.getAttribute("data-delay-update")||this.props.delayUpdate:0,g=this,b=function(){g.setState({originTooltip:o,isMultiline:i,desiredPlace:l,place:h,type:m.getAttribute("data-type")||g.props.type||"dark",effect:c,offset:f,html:m.getAttribute("data-html")?"true"===m.getAttribute("data-html"):g.props.html||!1,delayShow:m.getAttribute("data-delay-show")||g.props.delayShow||0,delayHide:m.getAttribute("data-delay-hide")||g.props.delayHide||0,delayUpdate:m.getAttribute("data-delay-update")||g.props.delayUpdate||0,border:m.getAttribute("data-border")?"true"===m.getAttribute("data-border"):g.props.border||!1,extraClass:m.getAttribute("data-class")||g.props.class||g.props.className||"",disable:m.getAttribute("data-tip-disable")?"true"===m.getAttribute("data-tip-disable"):g.props.disable||!1,currentTarget:m},function(){u&&g.addScrollListener(g.state.currentTarget),g.updateTooltip(e),a&&Array.isArray(a)&&(g.intervalUpdateContent=setInterval(function(){if(g.mount){var e=g.props.getContent,t=(0,v.default)(o,"",e[0](),i),n=g.isEmptyTip(t);g.setState({isEmptyTip:n}),g.updatePosition()}},a[1]))})};_?this.delayReshow=setTimeout(b,_):b()}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,a=n.disable,o=this.props.afterShow,i=this.getTooltipContent(),s=parseInt(r,10),u=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(i)&&!a){var l=function(){if(Array.isArray(i)&&i.length>0||i){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:u,show:!0},function(){t.updatePosition(),n&&o&&o(e)})}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(l,s):l()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=this.state,a=r.delayHide,o=r.disable,i=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(t)if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return;var u=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(),t&&i&&i(e)}))};this.clearTimer(),a?this.delayHideLoop=setTimeout(u,parseInt(a,10)):u()}}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltip,t)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,a=t.place,o=t.desiredPlace,i=t.effect,s=t.offset,u=d.default.findDOMNode(this),l=(0,y.default)(n,r,u,a,o,i,s);if(l.isNewState)return this.setState(l.newState,function(){e.updatePosition()});u.style.left=l.position.left+"px",u.style.top=l.position.top+"px"}},{key:"setStyleHeader",value:function(){var e=document.getElementsByTagName("head")[0];if(!e.querySelector('style[id="react-tooltip"]')){var t=document.createElement("style");t.id="react-tooltip",t.innerHTML=w.default,n.nc&&t.setAttribute("nonce",n.nc),e.insertBefore(t,e.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,a=n.html,o=n.ariaProps,s=n.disable,l=this.getTooltipContent(),d=this.isEmptyTip(l),f=(0,c.default)("__react_component_tooltip",{show:this.state.show&&!s&&!d},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate},{allow_click:this.props.clickable}),p=this.props.wrapper;return t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper),a?u.default.createElement(p,i({className:f+" "+r,id:this.props.id,ref:function(t){return e.tooltipRef=t}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:l}})):u.default.createElement(p,i({className:f+" "+r,id:this.props.id},o,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),l)}}]),t}(),a.propTypes={children:l.default.any,place:l.default.string,type:l.default.string,effect:l.default.string,offset:l.default.object,multiline:l.default.bool,border:l.default.bool,insecure:l.default.bool,class:l.default.string,className:l.default.string,id:l.default.string,html:l.default.bool,delayHide:l.default.number,delayUpdate:l.default.number,delayShow:l.default.number,event:l.default.string,eventOff:l.default.string,watchWindow:l.default.bool,isCapture:l.default.bool,globalEventOff:l.default.string,getContent:l.default.any,afterShow:l.default.func,afterHide:l.default.func,disable:l.default.bool,scrollHide:l.default.bool,resizeHide:l.default.bool,wrapper:l.default.string,clickable:l.default.bool},a.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1},a.supportedWrappers=["div","span"],a.displayName="ReactTooltip",r=o))||r)||r)||r)||r)||r)||r;e.exports=L},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Droppable",{enumerable:!0,get:function(){return a.default}});var r=o(n(311)),a=o(n(312));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";(function(e){for(
|
40 |
/**!
|
41 |
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
42 |
* @version 1.15.0
|
@@ -61,36 +55,35 @@ object-assign
|
|
61 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
1 |
+
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(276)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function a(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function c(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function f(e,t){for(var n in t)c(t,n)&&(e[n]=t[n]);return c(t,"toString")&&(e.toString=t.toString),c(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Yt(e,t,n,r,!0).utc()}function h(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=r.call(t.parsedDateParts,function(e){return null!=e}),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function _(e){var t=p(NaN);return null!=e?f(h(t),e):h(t).userInvalidated=!0,t}r=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var g=a.momentProperties=[];function y(e,t){var n,r,a;if(s(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),s(t._i)||(e._i=t._i),s(t._f)||(e._f=t._f),s(t._l)||(e._l=t._l),s(t._strict)||(e._strict=t._strict),s(t._tzm)||(e._tzm=t._tzm),s(t._isUTC)||(e._isUTC=t._isUTC),s(t._offset)||(e._offset=t._offset),s(t._pf)||(e._pf=h(t)),s(t._locale)||(e._locale=t._locale),g.length>0)for(n=0;n<g.length;n++)s(a=t[r=g[n]])||(e[r]=a);return e}var v=!1;function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,a.updateOffset(this),v=!1)}function M(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function w(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function T(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=w(t)),n}function L(e,t,n){var r,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(r=0;r<a;r++)(n&&e[r]!==t[r]||!n&&T(e[r])!==T(t[r]))&&i++;return i+o}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function D(e,t){var n=!0;return f(function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){for(var r,o=[],i=0;i<arguments.length;i++){if(r="","object"==typeof arguments[i]){for(var s in r+="\n["+i+"] ",arguments[0])r+=s+": "+arguments[0][s]+", ";r=r.slice(0,-2)}else r=arguments[i];o.push(r)}k(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var x,E={};function S(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),E[e]||(k(t),E[e]=!0)}function Y(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,r=f({},e);for(n in t)c(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},f(r[n],e[n]),f(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)c(e,n)&&!c(t,n)&&i(e[n])&&(r[n]=f({},r[n]));return r}function C(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,x=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)c(e,t)&&n.push(t);return n};var P={};function I(e,t){var n=e.toLowerCase();P[n]=P[n+"s"]=P[t]=e}function j(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)c(e,n)&&(t=j(n))&&(r[t]=e[n]);return r}var H={};function A(e,t){H[e]=t}function N(e,t,n){var r=""+Math.abs(e),a=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var F=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},z={};function B(e,t,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),e&&(z[e]=a),t&&(z[t[0]]=function(){return N(a.apply(this,arguments),t[1],t[2])}),n&&(z[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function V(e,t){return e.isValid()?(t=q(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r,a=e.match(F);for(t=0,n=a.length;t<n;t++)z[a[t]]?a[t]=z[a[t]]:a[t]=(r=a[t]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=Y(a[r])?a[r].call(t,e):a[r];return o}}(t),U[t](e)):e.localeData().invalidDate()}function q(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(W.lastIndex=0;n>=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var G=/\d/,J=/\d\d/,X=/\d{3}/,Q=/\d{4}/,K=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ae=/\d+/,oe=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function de(e,t,n){ue[e]=Y(t)?t:function(e,r){return e&&n?n:t}}function ce(e,t){return c(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,a){return t||n||r||a})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n<e.length;n++)pe[e[n]]=r}function me(e,t){he(e,function(e,n,r,a){r._w=r._w||{},t(e,r._w,r,a)})}function _e(e,t,n){null!=t&&c(pe,e)&&pe[e](t,n._a,n,e)}var ge=0,ye=1,ve=2,be=3,Me=4,we=5,Te=6,Le=7,ke=8;function De(e){return xe(e)?366:365}function xe(e){return e%4==0&&e%100!=0||e%400==0}B("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),B(0,["YY",2],0,function(){return this.year()%100}),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),I("year","y"),A("year",1),de("Y",oe),de("YY",Z,J),de("YYYY",ne,Q),de("YYYYY",re,K),de("YYYYYY",re,K),he(["YYYYY","YYYYYY"],ge),he("YYYY",function(e,t){t[ge]=2===e.length?a.parseTwoDigitYear(e):T(e)}),he("YY",function(e,t){t[ge]=a.parseTwoDigitYear(e)}),he("Y",function(e,t){t[ge]=parseInt(e,10)}),a.parseTwoDigitYear=function(e){return T(e)+(T(e)>68?1900:2e3)};var Ee,Se=Ye("FullYear",!0);function Ye(e,t){return function(n){return null!=n?(Ce(this,e,n),a.updateOffset(this,t),this):Oe(this,e)}}function Oe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ce(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&xe(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Pe(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Pe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?xe(e)?29:28:31-r%7%2}Ee=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},B("M",["MM",2],"Mo",function(){return this.month()+1}),B("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),B("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),A("month",8),de("M",Z),de("MM",Z,J),de("MMM",function(e,t){return t.monthsShortRegex(e)}),de("MMMM",function(e,t){return t.monthsRegex(e)}),he(["M","MM"],function(e,t){t[ye]=T(e)-1}),he(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);null!=a?t[ye]=a:h(n).invalidMonth=e});var Ie=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,je="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function He(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=T(t);else if(!l(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Pe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Ae(e){return null!=e?(He(this,e),a.updateOffset(this,!0),this):Oe(this,"Month")}var Ne=le,Fe=le;function We(){function e(e,t){return t.length-e.length}var t,n,r=[],a=[],o=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),a.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),a.sort(e),o.sort(e),t=0;t<12;t++)r[t]=fe(r[t]),a[t]=fe(a[t]);for(t=0;t<24;t++)o[t]=fe(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Ue(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function ze(e,t,n){var r=7+t-n;return-(7+Ue(e,0,r).getUTCDay()-t)%7+r-1}function Be(e,t,n,r,a){var o,i,s=1+7*(t-1)+(7+n-r)%7+ze(e,r,a);return s<=0?i=De(o=e-1)+s:s>De(e)?(o=e+1,i=s-De(e)):(o=e,i=s),{year:o,dayOfYear:i}}function Ve(e,t,n){var r,a,o=ze(e.year(),t,n),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?r=i+qe(a=e.year()-1,t,n):i>qe(e.year(),t,n)?(r=i-qe(e.year(),t,n),a=e.year()+1):(a=e.year(),r=i),{week:r,year:a}}function qe(e,t,n){var r=ze(e,t,n),a=ze(e+1,t,n);return(De(e)-r+a)/7}function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),A("week",5),A("isoWeek",5),de("w",Z),de("ww",Z,J),de("W",Z),de("WW",Z,J),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),B("d",0,"do","day"),B("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),B("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),B("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),de("d",Z),de("e",Z),de("E",Z),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);null!=a?t.d=a:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=T(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Ze=le,$e=le;function et(){function e(e,t){return t.length-e.length}var t,n,r,a,o,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),o=this.weekdays(n,""),i.push(r),s.push(a),l.push(o),u.push(r),u.push(a),u.push(o);for(i.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){B(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,tt),B("k",["kk",2],0,function(){return this.hours()||24}),B("hmm",0,0,function(){return""+tt.apply(this)+N(this.minutes(),2)}),B("hmmss",0,0,function(){return""+tt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),B("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),B("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),nt("a",!0),nt("A",!1),I("hour","h"),A("hour",13),de("a",rt),de("A",rt),de("H",Z),de("h",Z),de("k",Z),de("HH",Z,J),de("hh",Z,J),de("kk",Z,J),de("hmm",$),de("hmmss",ee),de("Hmm",$),de("Hmmss",ee),he(["H","HH"],be),he(["k","kk"],function(e,t,n){var r=T(e);t[be]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[be]=T(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r,2)),t[we]=T(e.substr(a)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[be]=T(e.substr(0,r)),t[Me]=T(e.substr(r,2)),t[we]=T(e.substr(a))});var at,ot=Ye("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:je,monthsShort:Re,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Qe,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},st={},lt={};function ut(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=at._abbr,n(332)("./"+t),ct(r)}catch(e){}return st[t]}function ct(e,t){var n;return e&&((n=s(t)?pt(e):ft(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=st[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new C(O(r,t)),lt[e]&<[e].forEach(function(e){ft(e.name,e.config)}),ct(e),st[e]}return delete st[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!o(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,r,a,o=0;o<e.length;){for(t=(a=ut(e[o]).split("-")).length,n=(n=ut(e[o+1]))?n.split("-"):null;t>0;){if(r=dt(a.slice(0,t).join("-")))return r;if(n&&n.length>=t&&L(a,n,!0)>=t-1)break;t--}o++}return at}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[ve]<1||n[ve]>Pe(n[ge],n[ye])?ve:n[be]<0||n[be]>24||24===n[be]&&(0!==n[Me]||0!==n[we]||0!==n[Te])?be:n[Me]<0||n[Me]>59?Me:n[we]<0||n[we]>59?we:n[Te]<0||n[Te]>999?Te:-1,h(e)._overflowDayOfYear&&(t<ge||t>ve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Le),h(e)._overflowWeekday&&-1===t&&(t=ke),h(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function _t(e){var t,n,r,o,i,s=[];if(!e._d){for(r=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ye]&&function(e){var t,n,r,a,o,i,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,i=4,n=mt(t.GG,e._a[ge],Ve(Ot(),1,4).year),r=mt(t.W,1),((a=mt(t.E,1))<1||a>7)&&(l=!0);else{o=e._locale._week.dow,i=e._locale._week.doy;var u=Ve(Ot(),o,i);n=mt(t.gg,e._a[ge],u.year),r=mt(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+o,(t.e<0||t.e>6)&&(l=!0)):a=o}r<1||r>qe(n,o,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Be(n,r,a,o,i),e._a[ge]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=mt(e._a[ge],r[ge]),(e._dayOfYear>De(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ue(i,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[Me]&&0===e._a[we]&&0===e._a[Te]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?Ue:function(e,t,n,r,a,o,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,a,o,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,a,o,i),s}).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,bt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Mt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],wt=/^\/?Date\((\-?\d+)/i;function Tt(e){var t,n,r,a,o,i,s=e._i,l=gt.exec(s)||yt.exec(s);if(l){for(h(e).iso=!0,t=0,n=bt.length;t<n;t++)if(bt[t][1].exec(l[1])){a=bt[t][0],r=!1!==bt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=Mt.length;t<n;t++)if(Mt[t][1].exec(l[3])){o=(l[2]||" ")+Mt[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!vt.exec(l[4]))return void(e._isValid=!1);i="Z"}e._f=a+(o||"")+(i||""),Et(e)}else e._isValid=!1}var Lt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function kt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}var Dt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xt(e){var t,n,r,a,o,i,s,l=Lt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){var u=(t=l[4],n=l[3],r=l[2],a=l[5],o=l[6],i=l[7],s=[kt(t),Re.indexOf(n),parseInt(r,10),parseInt(a,10),parseInt(o,10)],i&&s.push(parseInt(i,10)),s);if(!function(e,t,n){return!e||Xe.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(h(n).weekdayMismatch=!0,n._isValid=!1,!1)}(l[1],u,e))return;e._a=u,e._tzm=function(e,t,n){if(e)return Dt[e];if(t)return 0;var r=parseInt(n,10),a=r%100;return(r-a)/100*60+a}(l[8],l[9],l[10]),e._d=Ue.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function Et(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,o,i,s=""+e._i,l=s.length,u=0;for(r=q(e._f,e._locale).match(F)||[],t=0;t<r.length;t++)o=r[t],(n=(s.match(ce(o,e))||[])[0])&&((i=s.substr(0,s.indexOf(n))).length>0&&h(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),u+=n.length),z[o]?(n?h(e).empty=!1:h(e).unusedTokens.push(o),_e(o,n,e)):e._strict&&!n&&h(e).unusedTokens.push(o);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[be]<=12&&!0===h(e).bigHour&&e._a[be]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),_t(e),ht(e)}else xt(e);else Tt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new b(ht(t)):(u(t)?e._d=t:o(n)?function(e){var t,n,r,a,o;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)o=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Et(t),m(t)&&(o+=h(t).charsLeftOver,o+=10*h(t).unusedTokens.length,h(t).score=o,(null==r||o<r)&&(r=o,n=t));f(e,n||t)}(e):n?Et(e):function(e){var t=e._i;s(t)?e._d=new Date(a.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=wt.exec(e._i);null===t?(Tt(e),!1===e._isValid&&(delete e._isValid,xt(e),!1===e._isValid&&(delete e._isValid,a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):o(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),_t(e)):i(t)?function(e){if(!e._d){var t=R(e._i);e._a=d([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),_t(e)}}(e):l(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),m(e)||(e._d=null),e))}function Yt(e,t,n,r,a){var s,l={};return!0!==n&&!1!==n||(r=n,n=void 0),(i(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||o(e)&&0===e.length)&&(e=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=n,l._i=e,l._f=t,l._strict=r,(s=new b(ht(St(l))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ot(e,t,n,r){return Yt(e,t,n,r,!1)}a.createFromInputFallback=D("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),a.ISO_8601=function(){},a.RFC_2822=function(){};var Ct=D("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:_()}),Pt=D("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Ot.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:_()});function It(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var jt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Rt(e){var t=R(e),n=t.year||0,r=t.quarter||0,a=t.month||0,o=t.week||t.isoWeek||0,i=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Ee.call(jt,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<jt.length;++r)if(e[jt[r]]){if(n)return!1;parseFloat(e[jt[r]])!==T(e[jt[r]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*l+1e3*s*60*60,this._days=+i+7*o,this._months=+a+3*r+12*n,this._data={},this._locale=pt(),this._bubble()}function Ht(e){return e instanceof Rt}function At(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Nt(e,t){B(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)})}Nt("Z",":"),Nt("ZZ",""),de("Z",se),de("ZZ",se),he(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Wt(se,e)});var Ft=/([\+\-]|\d\d)/gi;function Wt(e,t){var n=(t||"").match(e);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Ft)||["-",0,0],a=60*r[1]+T(r[2]);return 0===a?0:"+"===r[0]?a:-a}function Ut(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(M(e)||u(e)?e.valueOf():Ot(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),a.updateOffset(n,!1),n):Ot(e).local()}function zt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Bt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Vt=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,qt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Gt(e,t){var n,r,a,o,i,s,u=e,d=null;return Ht(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)?(u={},t?u[t]=e:u.milliseconds=e):(d=Vt.exec(e))?(n="-"===d[1]?-1:1,u={y:0,d:T(d[ve])*n,h:T(d[be])*n,m:T(d[Me])*n,s:T(d[we])*n,ms:T(At(1e3*d[Te]))*n}):(d=qt.exec(e))?(n="-"===d[1]?-1:1,u={y:Jt(d[2],n),M:Jt(d[3],n),w:Jt(d[4],n),d:Jt(d[5],n),h:Jt(d[6],n),m:Jt(d[7],n),s:Jt(d[8],n)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(o=Ot(u.from),i=Ot(u.to),a=o.isValid()&&i.isValid()?(i=Ut(i,o),o.isBefore(i)?s=Xt(o,i):((s=Xt(i,o)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0},(u={}).ms=a.milliseconds,u.M=a.months),r=new Rt(u),Ht(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Xt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Qt(e,t){return function(n,r){var a;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),Kt(this,Gt(n="string"==typeof n?+n:n,r),e),this}}function Kt(e,t,n,r){var o=t._milliseconds,i=At(t._days),s=At(t._months);e.isValid()&&(r=null==r||r,s&&He(e,Oe(e,"Month")+s*n),i&&Ce(e,"Date",Oe(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&a.updateOffset(e,i||s))}Gt.fn=Rt.prototype,Gt.invalid=function(){return Gt(NaN)};var Zt=Qt(1,"add"),$t=Qt(-1,"subtract");function en(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function tn(e){var t;return void 0===e?this._locale._abbr:(null!=(t=pt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var nn=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function rn(){return this._locale}var an=1e3,on=60*an,sn=60*on,ln=3506328*sn;function un(e,t){return(e%t+t)%t}function dn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ln:new Date(e,t,n).valueOf()}function cn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ln:Date.UTC(e,t,n)}function fn(e,t){B(0,[e,e.length],0,t)}function pn(e,t,n,r,a){var o;return null==e?Ve(this,r,a).year:(t>(o=qe(e,r,a))&&(t=o),function(e,t,n,r,a){var o=Be(e,t,n,r,a),i=Ue(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}.call(this,e,t,n,r,a))}B(0,["gg",2],0,function(){return this.weekYear()%100}),B(0,["GG",2],0,function(){return this.isoWeekYear()%100}),fn("gggg","weekYear"),fn("ggggg","weekYear"),fn("GGGG","isoWeekYear"),fn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),A("weekYear",1),A("isoWeekYear",1),de("G",oe),de("g",oe),de("GG",Z,J),de("gg",Z,J),de("GGGG",ne,Q),de("gggg",ne,Q),de("GGGGG",re,K),de("ggggg",re,K),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=a.parseTwoDigitYear(e)}),B("Q",0,"Qo","quarter"),I("quarter","Q"),A("quarter",7),de("Q",G),he("Q",function(e,t){t[ye]=3*(T(e)-1)}),B("D",["DD",2],"Do","date"),I("date","D"),A("date",9),de("D",Z),de("DD",Z,J),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ve),he("Do",function(e,t){t[ve]=T(e.match(Z)[0])});var hn=Ye("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),A("dayOfYear",4),de("DDD",te),de("DDDD",X),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),B("m",["mm",2],0,"minute"),I("minute","m"),A("minute",14),de("m",Z),de("mm",Z,J),he(["m","mm"],Me);var mn=Ye("Minutes",!1);B("s",["ss",2],0,"second"),I("second","s"),A("second",15),de("s",Z),de("ss",Z,J),he(["s","ss"],we);var _n,gn=Ye("Seconds",!1);for(B("S",0,0,function(){return~~(this.millisecond()/100)}),B(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,function(){return 10*this.millisecond()}),B(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),B(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),B(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),B(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),B(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),A("millisecond",16),de("S",te,G),de("SS",te,J),de("SSS",te,X),_n="SSSS";_n.length<=9;_n+="S")de(_n,ae);function yn(e,t){t[Te]=T(1e3*("0."+e))}for(_n="S";_n.length<=9;_n+="S")he(_n,yn);var vn=Ye("Milliseconds",!1);B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var bn=b.prototype;function Mn(e){return e}bn.add=Zt,bn.calendar=function(e,t){var n=e||Ot(),r=Ut(n,this).startOf("day"),o=a.calendarFormat(this,r)||"sameElse",i=t&&(Y(t[o])?t[o].call(this,n):t[o]);return this.format(i||this.localeData().calendar(o,this,Ot(n)))},bn.clone=function(){return new b(this)},bn.diff=function(e,t,n){var r,a,o;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(a=6e4*(r.utcOffset()-this.utcOffset()),t=j(t)){case"year":o=en(this,r)/12;break;case"month":o=en(this,r);break;case"quarter":o=en(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-a)/864e5;break;case"week":o=(this-r-a)/6048e5;break;default:o=this-r}return n?o:w(o)},bn.endOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?cn:dn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=sn-un(t+(this._isUTC?0:this.utcOffset()*on),sn)-1;break;case"minute":t=this._d.valueOf(),t+=on-un(t,on)-1;break;case"second":t=this._d.valueOf(),t+=an-un(t,an)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},bn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},bn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?Gt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.fromNow=function(e){return this.from(Ot(),e)},bn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?Gt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},bn.toNow=function(e){return this.to(Ot(),e)},bn.get=function(e){return Y(this[e=j(e)])?this[e]():this},bn.invalidAt=function(){return h(this).overflow},bn.isAfter=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},bn.isBefore=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},bn.isBetween=function(e,t,n,r){var a=M(e)?e:Ot(e),o=M(t)?t:Ot(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},bn.isSame=function(e,t){var n,r=M(e)?e:Ot(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=j(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},bn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},bn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},bn.isValid=function(){return m(this)},bn.lang=nn,bn.locale=tn,bn.localeData=rn,bn.max=Pt,bn.min=Ct,bn.parsingFlags=function(){return f({},h(this))},bn.set=function(e,t){if("object"==typeof e)for(var n=function(e){var t=[];for(var n in e)t.push({unit:n,priority:H[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=R(e)),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit]);else if(Y(this[e=j(e)]))return this[e](t);return this},bn.startOf=function(e){var t;if(void 0===(e=j(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?cn:dn;switch(e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=un(t+(this._isUTC?0:this.utcOffset()*on),sn);break;case"minute":t=this._d.valueOf(),t-=un(t,on);break;case"second":t=this._d.valueOf(),t-=un(t,an)}return this._d.setTime(t),a.updateOffset(this,!0),this},bn.subtract=$t,bn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},bn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},bn.toDate=function(){return new Date(this.valueOf())},bn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?V(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Y(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(n,"Z")):V(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},bn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+a)},bn.toJSON=function(){return this.isValid()?this.toISOString():null},bn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},bn.unix=function(){return Math.floor(this.valueOf()/1e3)},bn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},bn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},bn.year=Se,bn.isLeapYear=function(){return xe(this.year())},bn.weekYear=function(e){return pn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},bn.isoWeekYear=function(e){return pn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},bn.quarter=bn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},bn.month=Ae,bn.daysInMonth=function(){return Pe(this.year(),this.month())},bn.week=bn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},bn.isoWeek=bn.isoWeeks=function(e){var t=Ve(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},bn.weeksInYear=function(){var e=this.localeData()._week;return qe(this.year(),e.dow,e.doy)},bn.isoWeeksInYear=function(){return qe(this.year(),1,4)},bn.date=hn,bn.day=bn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},bn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},bn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},bn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},bn.hour=bn.hours=ot,bn.minute=bn.minutes=mn,bn.second=bn.seconds=gn,bn.millisecond=bn.milliseconds=vn,bn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?Kt(this,Gt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:zt(this)},bn.utc=function(e){return this.utcOffset(0,e)},bn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(zt(this),"m")),this},bn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},bn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},bn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},bn.isLocal=function(){return!!this.isValid()&&!this._isUTC},bn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},bn.isUtc=Bt,bn.isUTC=Bt,bn.zoneAbbr=function(){return this._isUTC?"UTC":""},bn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},bn.dates=D("dates accessor is deprecated. Use date instead.",hn),bn.months=D("months accessor is deprecated. Use month instead",Ae),bn.years=D("years accessor is deprecated. Use year instead",Se),bn.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),bn.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=St(e))._a){var t=e._isUTC?p(e._a):Ot(e._a);this._isDSTShifted=this.isValid()&&L(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var wn=C.prototype;function Tn(e,t,n,r){var a=pt(),o=p().set(r,t);return a[n](o,e)}function Ln(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return Tn(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Tn(e,r,n,"month");return a}function kn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var a,o=pt(),i=e?o._week.dow:0;if(null!=n)return Tn(t,(n+i)%7,r,"day");var s=[];for(a=0;a<7;a++)s[a]=Tn(t,(a+i)%7,r,"day");return s}wn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Y(r)?r.call(t,n):r},wn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},wn.invalidDate=function(){return this._invalidDate},wn.ordinal=function(e){return this._ordinal.replace("%d",e)},wn.preparse=Mn,wn.postformat=Mn,wn.relativeTime=function(e,t,n,r){var a=this._relativeTime[n];return Y(a)?a(e,t,n,r):a.replace(/%d/i,e)},wn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return Y(n)?n(t):n.replace(/%s/i,t)},wn.set=function(e){var t,n;for(n in e)Y(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},wn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},wn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},wn.monthsParse=function(e,t,n){var r,a,o;if(this._monthsParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ee.call(this._shortMonthsParse,i))?a:null:-1!==(a=Ee.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=Ee.call(this._shortMonthsParse,i))?a:-1!==(a=Ee.call(this._longMonthsParse,i))?a:null:-1!==(a=Ee.call(this._longMonthsParse,i))?a:-1!==(a=Ee.call(this._shortMonthsParse,i))?a:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},wn.monthsRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||We.call(this),e?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=Fe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},wn.monthsShortRegex=function(e){return this._monthsParseExact?(c(this,"_monthsRegex")||We.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},wn.week=function(e){return Ve(e,this._week.dow,this._week.doy).week},wn.firstDayOfYear=function(){return this._week.doy},wn.firstDayOfWeek=function(){return this._week.dow},wn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},wn.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},wn.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},wn.weekdaysParse=function(e,t,n){var r,a,o;if(this._weekdaysParseExact)return function(e,t,n){var r,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ee.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Ee.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=Ee.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=Ee.call(this._weekdaysParse,i))?a:-1!==(a=Ee.call(this._shortWeekdaysParse,i))?a:-1!==(a=Ee.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=Ee.call(this._shortWeekdaysParse,i))?a:-1!==(a=Ee.call(this._weekdaysParse,i))?a:-1!==(a=Ee.call(this._minWeekdaysParse,i))?a:null:-1!==(a=Ee.call(this._minWeekdaysParse,i))?a:-1!==(a=Ee.call(this._weekdaysParse,i))?a:-1!==(a=Ee.call(this._shortWeekdaysParse,i))?a:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},wn.weekdaysRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},wn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},wn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},wn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},wn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===T(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=D("moment.lang is deprecated. Use moment.locale instead.",ct),a.langData=D("moment.langData is deprecated. Use moment.localeData instead.",pt);var Dn=Math.abs;function xn(e,t,n,r){var a=Gt(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function En(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Yn(e){return 146097*e/4800}function On(e){return function(){return this.as(e)}}var Cn=On("ms"),Pn=On("s"),In=On("m"),jn=On("h"),Rn=On("d"),Hn=On("w"),An=On("M"),Nn=On("Q"),Fn=On("y");function Wn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Un=Wn("milliseconds"),zn=Wn("seconds"),Bn=Wn("minutes"),Vn=Wn("hours"),qn=Wn("days"),Gn=Wn("months"),Jn=Wn("years"),Xn=Math.round,Qn={ss:44,s:45,m:45,h:22,d:26,M:11},Kn=Math.abs;function Zn(e){return(e>0)-(e<0)||+e}function $n(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Kn(this._milliseconds)/1e3,r=Kn(this._days),a=Kn(this._months);e=w(n/60),t=w(e/60),n%=60,e%=60;var o=w(a/12),i=a%=12,s=r,l=t,u=e,d=n?n.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var f=c<0?"-":"",p=Zn(this._months)!==Zn(c)?"-":"",h=Zn(this._days)!==Zn(c)?"-":"",m=Zn(this._milliseconds)!==Zn(c)?"-":"";return f+"P"+(o?p+o+"Y":"")+(i?p+i+"M":"")+(s?h+s+"D":"")+(l||u||d?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(d?m+d+"S":"")}var er=Rt.prototype;return er.isValid=function(){return this._isValid},er.abs=function(){var e=this._data;return this._milliseconds=Dn(this._milliseconds),this._days=Dn(this._days),this._months=Dn(this._months),e.milliseconds=Dn(e.milliseconds),e.seconds=Dn(e.seconds),e.minutes=Dn(e.minutes),e.hours=Dn(e.hours),e.months=Dn(e.months),e.years=Dn(e.years),this},er.add=function(e,t){return xn(this,e,t,1)},er.subtract=function(e,t){return xn(this,e,t,-1)},er.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=j(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Yn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},er.asMilliseconds=Cn,er.asSeconds=Pn,er.asMinutes=In,er.asHours=jn,er.asDays=Rn,er.asWeeks=Hn,er.asMonths=An,er.asQuarters=Nn,er.asYears=Fn,er.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},er._bubble=function(){var e,t,n,r,a,o=this._milliseconds,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*En(Yn(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=w(o/1e3),l.seconds=e%60,t=w(e/60),l.minutes=t%60,n=w(t/60),l.hours=n%24,i+=w(n/24),a=w(Sn(i)),s+=a,i-=En(Yn(a)),r=w(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},er.clone=function(){return Gt(this)},er.get=function(e){return e=j(e),this.isValid()?this[e+"s"]():NaN},er.milliseconds=Un,er.seconds=zn,er.minutes=Bn,er.hours=Vn,er.days=qn,er.weeks=function(){return w(this.days()/7)},er.months=Gn,er.years=Jn,er.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Gt(e).abs(),a=Xn(r.as("s")),o=Xn(r.as("m")),i=Xn(r.as("h")),s=Xn(r.as("d")),l=Xn(r.as("M")),u=Xn(r.as("y")),d=a<=Qn.ss&&["s",a]||a<Qn.s&&["ss",a]||o<=1&&["m"]||o<Qn.m&&["mm",o]||i<=1&&["h"]||i<Qn.h&&["hh",i]||s<=1&&["d"]||s<Qn.d&&["dd",s]||l<=1&&["M"]||l<Qn.M&&["MM",l]||u<=1&&["y"]||["yy",u];return d[2]=t,d[3]=+e>0,d[4]=n,function(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}.apply(null,d)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},er.toISOString=$n,er.toString=$n,er.toJSON=$n,er.locale=tn,er.localeData=rn,er.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",$n),er.lang=nn,B("X",0,0,"unix"),B("x",0,0,"valueOf"),de("x",oe),de("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(T(e))}),a.version="2.24.0",t=Ot,a.fn=bn,a.min=function(){return It("isBefore",[].slice.call(arguments,0))},a.max=function(){return It("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=p,a.unix=function(e){return Ot(1e3*e)},a.months=function(e,t){return Ln(e,t,"months")},a.isDate=u,a.locale=ct,a.invalid=_,a.duration=Gt,a.isMoment=M,a.weekdays=function(e,t,n){return kn(e,t,n,"weekdays")},a.parseZone=function(){return Ot.apply(null,arguments).parseZone()},a.localeData=pt,a.isDuration=Ht,a.monthsShort=function(e,t){return Ln(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return kn(e,t,n,"weekdaysMin")},a.defineLocale=ft,a.updateLocale=function(e,t){if(null!=t){var n,r,a=it;null!=(r=dt(e))&&(a=r._config),t=O(a,t),(n=new C(t)).parentLocale=st[e],st[e]=n,ct(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},a.locales=function(){return x(st)},a.weekdaysShort=function(e,t,n){return kn(e,t,n,"weekdaysShort")},a.normalizeUnits=j,a.relativeTimeRounding=function(e){return void 0===e?Xn:"function"==typeof e&&(Xn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Qn[e]&&(void 0===t?Qn[e]:(Qn[e]=t,"s"===e&&(Qn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=bn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()}).call(this,n(82)(e))},function(e,t,n){"use strict";function r(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}n.d(t,"a",function(){return r})},function(e,t,n){e.exports=n(282)},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",function(){return r})},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(280),a=n(6);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?a(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(281);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,a)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise(function(a,o){var i=e.apply(t,r);function s(e){n(i,a,o,s,l,"next",e)}function l(e){n(i,a,o,s,l,"throw",e)}s(void 0)})}}},function(e,t,n){e.exports=n(284)},function(e,t,n){"use strict";t.__esModule=!0;var r=l(n(301));t.ToastContainer=r.default;var a=n(110);t.Bounce=a.Bounce,t.Slide=a.Slide,t.Zoom=a.Zoom,t.Flip=a.Flip;var o=n(44);t.ToastPosition=o.POSITION,t.ToastType=o.TYPE;var i=l(n(311));t.toast=i.default;var s=l(n(111));function l(e){return e&&e.__esModule?e:{default:e}}t.cssTransition=s.default},function(e,t,n){e.exports=n(302)()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getFullYear()}},function(e,t,n){var r;
|
2 |
/*!
|
3 |
Copyright (c) 2017 Jed Watson.
|
4 |
Licensed under the MIT License (MIT), see
|
5 |
http://jedwatson.github.io/classnames
|
6 |
+
*/!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=a.apply(null,r);i&&e.push(i)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getHours()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=6e4;function a(e){var t=new Date(e.getTime()),n=t.getTimezoneOffset();t.setSeconds(0,0);var a=t.getTime()%r;return n*r+a}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMinutes()}},function(e,t,n){"use strict";var r=n(103),a=n(285),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===o.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}e.exports={isArray:i,isArrayBuffer:function(e){return"[object ArrayBuffer]"===o.call(e)},isBuffer:a,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===o.call(e)},isFile:function(e){return"[object File]"===o.call(e)},isBlob:function(e){return"[object Blob]"===o.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,a=arguments.length;r<a;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,function(t,a){e[a]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},o=n.locale,i=o&&o.options&&o.options.weekStartsOn,s=null==i?0:Object(r.a)(i),l=null==n.weekStartsOn?s:Object(r.a)(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Object(a.a)(e),d=u.getUTCDay(),c=(d<l?7:0)+d-l;return u.setUTCDate(u.getUTCDate()-c),u.setUTCHours(0,0,0,0),u}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(3),o=n(68);function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),i=Object(r.a)(t),s=n.getMonth()+i,l=new Date(0);l.setFullYear(n.getFullYear(),s,1),l.setHours(0,0,0,0);var u=Object(o.a)(l);return n.setMonth(s,Math.min(u,n.getDate())),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=t.getUTCDay(),a=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return s});var r=["D","DD"],a=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function i(e){return-1!==a.indexOf(e)}function s(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMonth()}},function(e,t,n){var r=n(245),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return t.setHours(0,0,0,0),t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),o=Object(r.a)(t);return n.setDate(n.getDate()+o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e),a=Object(r.a)(t);return n.getTime()>a.getTime()}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(3),o=n(68);function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),i=Object(r.a)(t),s=n.getFullYear(),l=n.getDate(),u=new Date(0);u.setFullYear(s,i,15),u.setHours(0,0,0,0);var d=Object(o.a)(u);return n.setMonth(i,Math.min(l,d)),n}},function(e,t,n){var r=n(344),a=n(349);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(277)},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(3),o=n(22);function i(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(a.a)(e,t),i=n.getUTCFullYear(),s=t||{},l=s.locale,u=l&&l.options&&l.options.firstWeekContainsDate,d=null==u?1:Object(r.a)(u),c=null==s.firstWeekContainsDate?d:Object(r.a)(s.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(i+1,0,c),f.setUTCHours(0,0,0,0);var p=Object(o.a)(f,t),h=new Date(0);h.setUTCFullYear(i,0,c),h.setUTCHours(0,0,0,0);var m=Object(o.a)(h,t);return n.getTime()>=p.getTime()?i+1:n.getTime()>=m.getTime()?i:i-1}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e).getTime(),o=Object(r.a)(t);return new Date(n+o)}},function(e,t,n){"use strict";var r=n(41);function a(e,t){void 0===t&&(t={});var n=function(e){if(e&&"j"===e[0]&&":"===e[1])return e.substr(2);return e}(e);if(function(e,t){return void 0===t&&(t=!e||"{"!==e[0]&&"["!==e[0]&&'"'!==e[0]),!t}(n,t.doNotParse))try{return JSON.parse(n)}catch(e){}return e}var o=n(79),i=function(){function e(e){this.changeListeners=[],this.TESTING_ONETWO=2,this.cookies=function(e){return"string"==typeof e?r.parse(e):"object"==typeof e&&null!==e?e:{}}(e),this.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}return e.prototype._updateBrowserValues=function(){this.HAS_DOCUMENT_COOKIE&&(this.cookies=r.parse(document.cookie))},e.prototype._emitChange=function(e){for(var t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)},e.prototype.get=function(e,t){return void 0===t&&(t={}),this._updateBrowserValues(),a(this.cookies[e],t)},e.prototype.getAll=function(e){void 0===e&&(e={}),this._updateBrowserValues();var t={};for(var n in this.cookies)t[n]=a(this.cookies[n],e);return t},e.prototype.set=function(e,t,n){var a;"object"==typeof t&&(t=JSON.stringify(t)),this.cookies=o({},this.cookies,((a={})[e]=t,a)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(e,t,n)),this._emitChange({name:e,value:t,options:n})},e.prototype.remove=function(e,t){var n=t=o({},t,{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=o({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=r.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})},e.prototype.addChangeListener=function(e){this.changeListeners.push(e)},e.prototype.removeChangeListener=function(e){var t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1)},e}();t.a=i},function(e,t,n){
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
/*!
|
8 |
* Chart.js v2.8.0
|
9 |
* https://www.chartjs.org
|
10 |
* (c) 2019 Chart.js Contributors
|
11 |
* Released under the MIT License
|
12 |
*/
|
13 |
+
e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={rgb2hsl:n,rgb2hsv:a,rgb2hwb:o,rgb2cmyk:i,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:function(e){return y(u(e))},hsl2rgb:d,hsl2hsv:function(e){var t=e[0],n=e[1]/100,r=e[2]/100;return 0===r?[0,0,0]:[t,2*(n*=(r*=2)<=1?r:2-r)/(r+n)*100,(r+n)/2*100]},hsl2hwb:function(e){return o(d(e))},hsl2cmyk:function(e){return i(d(e))},hsl2keyword:function(e){return s(d(e))},hsv2rgb:c,hsv2hsl:function(e){var t,n,r=e[0],a=e[1]/100,o=e[2]/100;return t=a*o,[r,100*(t=(t/=(n=(2-a)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(e){return o(c(e))},hsv2cmyk:function(e){return i(c(e))},hsv2keyword:function(e){return s(c(e))},hwb2rgb:f,hwb2hsl:function(e){return n(f(e))},hwb2hsv:function(e){return a(f(e))},hwb2cmyk:function(e){return i(f(e))},hwb2keyword:function(e){return s(f(e))},cmyk2rgb:p,cmyk2hsl:function(e){return n(p(e))},cmyk2hsv:function(e){return a(p(e))},cmyk2hwb:function(e){return o(p(e))},cmyk2keyword:function(e){return s(p(e))},keyword2rgb:w,keyword2hsl:function(e){return n(w(e))},keyword2hsv:function(e){return a(w(e))},keyword2hwb:function(e){return o(w(e))},keyword2cmyk:function(e){return i(w(e))},keyword2lab:function(e){return u(w(e))},keyword2xyz:function(e){return l(w(e))},xyz2rgb:h,xyz2lab:m,xyz2lch:function(e){return y(m(e))},lab2xyz:_,lab2rgb:v,lab2lch:y,lch2lab:M,lch2xyz:function(e){return _(M(e))},lch2rgb:function(e){return v(M(e))}};function n(e){var t,n,r=e[0]/255,a=e[1]/255,o=e[2]/255,i=Math.min(r,a,o),s=Math.max(r,a,o),l=s-i;return s==i?t=0:r==s?t=(a-o)/l:a==s?t=2+(o-r)/l:o==s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(i+s)/2,[t,100*(s==i?0:n<=.5?l/(s+i):l/(2-s-i)),100*n]}function a(e){var t,n,r=e[0],a=e[1],o=e[2],i=Math.min(r,a,o),s=Math.max(r,a,o),l=s-i;return n=0==s?0:l/s*1e3/10,s==i?t=0:r==s?t=(a-o)/l:a==s?t=2+(o-r)/l:o==s&&(t=4+(r-a)/l),(t=Math.min(60*t,360))<0&&(t+=360),[t,n,s/255*1e3/10]}function o(e){var t=e[0],r=e[1],a=e[2];return[n(e)[0],1/255*Math.min(t,Math.min(r,a))*100,100*(a=1-1/255*Math.max(t,Math.max(r,a)))]}function i(e){var t,n=e[0]/255,r=e[1]/255,a=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-a)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-a-t)/(1-t)||0),100*t]}function s(e){return L[JSON.stringify(e)]}function l(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]}function u(e){var t=l(e),n=t[0],r=t[1],a=t[2];return r/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]}function d(e){var t,n,r,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100;if(0==s)return[o=255*l,o,o];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),a=[0,0,0];for(var u=0;u<3;u++)(r=i+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[u]=255*o;return a}function c(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,a=Math.floor(t)%6,o=t-Math.floor(t),i=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,a){case 0:return[r,l,i];case 1:return[s,r,i];case 2:return[i,r,l];case 3:return[i,s,r];case 4:return[l,i,r];case 5:return[r,i,s]}}function f(e){var t,n,a,o,i=e[0]/360,s=e[1]/100,l=e[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),a=6*i-(t=Math.floor(6*i)),0!=(1&t)&&(a=1-a),o=s+a*((n=1-l)-s),t){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function p(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,a=e[3]/100;return[255*(1-Math.min(1,t*(1-a)+a)),255*(1-Math.min(1,n*(1-a)+a)),255*(1-Math.min(1,r*(1-a)+a))]}function h(e){var t,n,r,a=e[0]/100,o=e[1]/100,i=e[2]/100;return n=-.9689*a+1.8758*o+.0415*i,r=.0557*a+-.204*o+1.057*i,t=(t=3.2406*a+-1.5372*o+-.4986*i)>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function _(e){var t,n,r,a,o=e[0],i=e[1],s=e[2];return o<=8?a=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),a=Math.pow(n/100,1/3)),[t=t/95.047<=.008856?t=95.047*(i/500+a-16/116)/7.787:95.047*Math.pow(i/500+a,3),n,r=r/108.883<=.008859?r=108.883*(a-s/200-16/116)/7.787:108.883*Math.pow(a-s/200,3)]}function y(e){var t,n=e[0],r=e[1],a=e[2];return(t=360*Math.atan2(a,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+a*a),t]}function v(e){return h(_(e))}function M(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]}function w(e){return T[e]}var T={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},L={};for(var k in T)L[JSON.stringify(T[k])]=k;var D=function(){return new O};for(var x in t){D[x+"Raw"]=function(e){return function(n){return"number"==typeof n&&(n=Array.prototype.slice.call(arguments)),t[e](n)}}(x);var E=/(\w+)2(\w+)/.exec(x),S=E[1],Y=E[2];(D[S]=D[S]||{})[Y]=D[x]=function(e){return function(n){"number"==typeof n&&(n=Array.prototype.slice.call(arguments));var r=t[e](n);if("string"==typeof r||void 0===r)return r;for(var a=0;a<r.length;a++)r[a]=Math.round(r[a]);return r}}(x)}var O=function(){this.convs={}};O.prototype.routeSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n))},O.prototype.setValues=function(e,t){return this.space=e,this.convs={},this.convs[e]=t,this},O.prototype.getValues=function(e){var t=this.convs[e];if(!t){var n=this.space,r=this.convs[n];t=D[n][e](r),this.convs[e]=t}return t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){O.prototype[e]=function(t){return this.routeSpace(e,arguments)}});var C=D,P={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},I={getRgba:j,getHsla:R,getRgb:function(e){var t=j(e);return t&&t.slice(0,3)},getHsl:function(e){var t=R(e);return t&&t.slice(0,3)},getHwb:H,getAlpha:function(e){var t=j(e);return t?t[3]:(t=R(e))?t[3]:(t=H(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+U(e[0])+U(e[1])+U(e[2])+(t>=0&&t<1?U(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?A(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:A,percentString:function(e,t){if(t<1||e[3]&&e[3]<1)return N(e,t);var n=Math.round(e[0]/255*100),r=Math.round(e[1]/255*100),a=Math.round(e[2]/255*100);return"rgb("+n+"%, "+r+"%, "+a+"%)"},percentaString:N,hslString:function(e,t){return t<1||e[3]&&e[3]<1?F(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:F,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return z[e.slice(0,3)]}};function j(e){if(e){var t=[0,0,0],n=1,r=e.match(/^#([a-fA-F0-9]{3,4})$/i),a="";if(r){a=(r=r[1])[3];for(var o=0;o<t.length;o++)t[o]=parseInt(r[o]+r[o],16);a&&(n=Math.round(parseInt(a+a,16)/255*100)/100)}else if(r=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(a=r[2],r=r[1],o=0;o<t.length;o++)t[o]=parseInt(r.slice(2*o,2*o+2),16);a&&(n=Math.round(parseInt(a,16)/255*100)/100)}else if(r=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=parseInt(r[o+1]);n=parseFloat(r[4])}else if(r=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<t.length;o++)t[o]=Math.round(2.55*parseFloat(r[o+1]));n=parseFloat(r[4])}else if(r=e.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(t=P[r[1]]))return}for(o=0;o<t.length;o++)t[o]=W(t[o],0,255);return n=n||0==n?W(n,0,1):1,t[3]=n,t}}function R(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[W(parseInt(t[1]),0,360),W(parseFloat(t[2]),0,100),W(parseFloat(t[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function H(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[W(parseInt(t[1]),0,360),W(parseFloat(t[2]),0,100),W(parseFloat(t[3]),0,100),W(isNaN(n)?1:n,0,1)]}}}function A(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function N(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function F(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function W(e,t,n){return Math.min(Math.max(t,e),n)}function U(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var z={};for(var B in P)z[P[B]]=B;var V=function(e){return e instanceof V?e:this instanceof V?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof e?(t=I.getRgba(e))?this.setValues("rgb",t):(t=I.getHsla(e))?this.setValues("hsl",t):(t=I.getHwb(e))&&this.setValues("hwb",t):"object"==typeof e&&(void 0!==(t=e).r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t)))):new V(e);var t};V.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])},alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return I.hexString(this.values.rgb)},rgbString:function(){return I.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return I.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return I.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return I.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return I.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return I.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return I.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var r=e[n]/255;t[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,r=void 0===t?.5:t,a=2*r-1,o=this.alpha()-n.alpha(),i=((a*o==-1?a:(a+o)/(1+a*o))+1)/2,s=1-i;return this.rgb(i*this.red()+s*n.red(),i*this.green()+s*n.green(),i*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new V,r=this.values,a=n.values;for(var o in r)r.hasOwnProperty(o)&&(e=r[o],"[object Array]"===(t={}.toString.call(e))?a[o]=e.slice(0):"[object Number]"===t?a[o]=e:console.error("unexpected color value:",e));return n}},V.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},V.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},V.prototype.getValues=function(e){for(var t=this.values,n={},r=0;r<e.length;r++)n[e.charAt(r)]=t[e][r];return 1!==t.alpha&&(n.a=t.alpha),n},V.prototype.setValues=function(e,t){var n,r,a=this.values,o=this.spaces,i=this.maxes,s=1;if(this.valid=!0,"alpha"===e)s=t;else if(t.length)a[e]=t.slice(0,e.length),s=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)a[e][n]=t[e.charAt(n)];s=t.a}else if(void 0!==t[o[e][0]]){var l=o[e];for(n=0;n<e.length;n++)a[e][n]=t[l[n]];s=t.alpha}if(a.alpha=Math.max(0,Math.min(1,void 0===s?a.alpha:s)),"alpha"===e)return!1;for(n=0;n<e.length;n++)r=Math.max(0,Math.min(i[e][n],a[e][n])),a[e][n]=Math.round(r);for(var u in o)u!==e&&(a[u]=C[e][u](a[e]));return!0},V.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n),this)},V.prototype.setChannel=function(e,t,n){var r=this.values[e];return void 0===n?r[t]:n===r[t]?this:(r[t]=n,this.setValues(e,r),this)},"undefined"!=typeof window&&(window.Color=V);var q,G=V,J={noop:function(){},uid:(q=0,function(){return q++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)},valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return J.valueOrDefault(J.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,r){var a,o,i;if(J.isArray(e))if(o=e.length,r)for(a=o-1;a>=0;a--)t.call(n,e[a],a);else for(a=0;a<o;a++)t.call(n,e[a],a);else if(J.isObject(e))for(o=(i=Object.keys(e)).length,a=0;a<o;a++)t.call(n,e[i[a]],i[a])},arrayEquals:function(e,t){var n,r,a,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(a=e[n],o=t[n],a instanceof Array&&o instanceof Array){if(!J.arrayEquals(a,o))return!1}else if(a!==o)return!1;return!0},clone:function(e){if(J.isArray(e))return e.map(J.clone);if(J.isObject(e)){for(var t={},n=Object.keys(e),r=n.length,a=0;a<r;++a)t[n[a]]=J.clone(e[n[a]]);return t}return e},_merger:function(e,t,n,r){var a=t[e],o=n[e];J.isObject(a)&&J.isObject(o)?J.merge(a,o,r):t[e]=J.clone(o)},_mergerIf:function(e,t,n){var r=t[e],a=n[e];J.isObject(r)&&J.isObject(a)?J.mergeIf(r,a):t.hasOwnProperty(e)||(t[e]=J.clone(a))},merge:function(e,t,n){var r,a,o,i,s,l=J.isArray(t)?t:[t],u=l.length;if(!J.isObject(e))return e;for(r=(n=n||{}).merger||J._merger,a=0;a<u;++a)if(t=l[a],J.isObject(t))for(s=0,i=(o=Object.keys(t)).length;s<i;++s)r(o[s],e,t,n);return e},mergeIf:function(e,t){return J.merge(e,t,{merger:J._mergerIf})},extend:function(e){for(var t=function(t,n){e[n]=t},n=1,r=arguments.length;n<r;++n)J.each(arguments[n],t);return e},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=t.prototype,n.prototype=new r,n.extend=J.inherits,e&&J.extend(n.prototype,e),n.__super__=t.prototype,n}},X=J;J.callCallback=J.callback,J.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},J.getValueOrDefault=J.valueOrDefault,J.getValueAtIndexOrDefault=J.valueAtIndexOrDefault;var Q={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:1===e?1:(n||(n=.3),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,r=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),r<1?(r=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/r),e<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-Q.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*Q.easeInBounce(2*e):.5*Q.easeOutBounce(2*e-1)+.5}},K={effects:Q};X.easingEffects=Q;var Z=Math.PI,$=Z/180,ee=2*Z,te=Z/2,ne=Z/4,re=2*Z/3,ae={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,r,a,o){if(o){var i=Math.min(o,a/2,r/2),s=t+i,l=n+i,u=t+r-i,d=n+a-i;e.moveTo(t,l),s<u&&l<d?(e.arc(s,l,i,-Z,-te),e.arc(u,l,i,-te,0),e.arc(u,d,i,0,te),e.arc(s,d,i,te,Z)):s<u?(e.moveTo(s,n),e.arc(u,l,i,-te,te),e.arc(s,l,i,te,Z+te)):l<d?(e.arc(s,l,i,-Z,0),e.arc(s,d,i,0,Z)):e.arc(s,l,i,-Z,Z),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,r,a)},drawPoint:function(e,t,n,r,a,o){var i,s,l,u,d,c=(o||0)*$;if(!t||"object"!=typeof t||"[object HTMLImageElement]"!==(i=t.toString())&&"[object HTMLCanvasElement]"!==i){if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(r,a,n,0,ee),e.closePath();break;case"triangle":e.moveTo(r+Math.sin(c)*n,a-Math.cos(c)*n),c+=re,e.lineTo(r+Math.sin(c)*n,a-Math.cos(c)*n),c+=re,e.lineTo(r+Math.sin(c)*n,a-Math.cos(c)*n),e.closePath();break;case"rectRounded":u=n-(d=.516*n),s=Math.cos(c+ne)*u,l=Math.sin(c+ne)*u,e.arc(r-s,a-l,d,c-Z,c-te),e.arc(r+l,a-s,d,c-te,c),e.arc(r+s,a+l,d,c,c+te),e.arc(r-l,a+s,d,c+te,c+Z),e.closePath();break;case"rect":if(!o){u=Math.SQRT1_2*n,e.rect(r-u,a-u,2*u,2*u);break}c+=ne;case"rectRot":s=Math.cos(c)*n,l=Math.sin(c)*n,e.moveTo(r-s,a-l),e.lineTo(r+l,a-s),e.lineTo(r+s,a+l),e.lineTo(r-l,a+s),e.closePath();break;case"crossRot":c+=ne;case"cross":s=Math.cos(c)*n,l=Math.sin(c)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s);break;case"star":s=Math.cos(c)*n,l=Math.sin(c)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s),c+=ne,s=Math.cos(c)*n,l=Math.sin(c)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l),e.moveTo(r+l,a-s),e.lineTo(r-l,a+s);break;case"line":s=Math.cos(c)*n,l=Math.sin(c)*n,e.moveTo(r-s,a-l),e.lineTo(r+s,a+l);break;case"dash":e.moveTo(r,a),e.lineTo(r+Math.cos(c)*n,a+Math.sin(c)*n)}e.fill(),e.stroke()}}else e.drawImage(t,r-t.width/2,a-t.height/2,t.width,t.height)},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,r){var a=n.steppedLine;if(a){if("middle"===a){var o=(t.x+n.x)/2;e.lineTo(o,r?n.y:t.y),e.lineTo(o,r?t.y:n.y)}else"after"===a&&!r||"after"!==a&&r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},oe=ae;X.clear=ae.clear,X.drawRoundedRectangle=function(e){e.beginPath(),ae.roundedRect.apply(ae,arguments)};var ie={_set:function(e,t){return X.merge(this[e]||(this[e]={}),t)}};ie._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var se=ie,le=X.valueOrDefault,ue={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,r,a;return X.isObject(e)?(t=+e.top||0,n=+e.right||0,r=+e.bottom||0,a=+e.left||0):t=n=r=a=+e||0,{top:t,right:n,bottom:r,left:a,height:t+r,width:a+n}},_parseFont:function(e){var t=se.global,n=le(e.fontSize,t.defaultFontSize),r={family:le(e.fontFamily,t.defaultFontFamily),lineHeight:X.options.toLineHeight(le(e.lineHeight,t.defaultLineHeight),n),size:n,style:le(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return r.string=function(e){return!e||X.isNullOrUndef(e.size)||X.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(r),r},resolve:function(e,t,n){var r,a,o;for(r=0,a=e.length;r<a;++r)if(void 0!==(o=e[r])&&(void 0!==t&&"function"==typeof o&&(o=o(t)),void 0!==n&&X.isArray(o)&&(o=o[n]),void 0!==o))return o}},de=X,ce=K,fe=oe,pe=ue;de.easing=ce,de.canvas=fe,de.options=pe;var he=function(e){de.extend(this,e),this.initialize.apply(this,arguments)};de.extend(he.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=de.clone(e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,r=t._start,a=t._view;return n&&1!==e?(a||(a=t._view={}),r||(r=t._start={}),function(e,t,n,r){var a,o,i,s,l,u,d,c,f,p=Object.keys(n);for(a=0,o=p.length;a<o;++a)if(u=n[i=p[a]],t.hasOwnProperty(i)||(t[i]=u),(s=t[i])!==u&&"_"!==i[0]){if(e.hasOwnProperty(i)||(e[i]=s),(d=typeof u)==typeof(l=e[i]))if("string"===d){if((c=G(l)).valid&&(f=G(u)).valid){t[i]=f.mix(c,r).rgbString();continue}}else if(de.isFinite(l)&&de.isFinite(u)){t[i]=l+(u-l)*r;continue}t[i]=u}}(r,a,n,e),t):(t._view=n,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return de.isNumber(this._model.x)&&de.isNumber(this._model.y)}}),he.extend=de.inherits;var me=he,_e=me.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),ge=_e;Object.defineProperty(_e.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(_e.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),se._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:de.noop,onComplete:de.noop}});var ye={animations:[],request:null,addAnimation:function(e,t,n,r){var a,o,i=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,r||(e.animating=!0),a=0,o=i.length;a<o;++a)if(i[a].chart===e)return void(i[a]=t);i.push(t),1===i.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=de.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=de.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,r,a=this.animations,o=0;o<a.length;)t=(e=a[o]).chart,n=e.numSteps,r=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(r,n),de.callback(e.render,[t,e],t),de.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(de.callback(e.onAnimationComplete,[e],t),t.animating=!1,a.splice(o,1)):++o}},ve=de.options.resolve,be=["push","pop","shift","splice","unshift"];function Me(e,t){var n=e._chartjs;if(n){var r=n.listeners,a=r.indexOf(t);-1!==a&&r.splice(a,1),r.length>0||(be.forEach(function(t){delete e[t]}),delete e._chartjs)}}var we=function(e,t){this.initialize(e,t)};de.extend(we.prototype,{datasetElementType:null,dataElementType:null,initialize:function(e,t){this.chart=e,this.index=t,this.linkScales(),this.addElements()},updateIndex:function(e){this.index=e},linkScales:function(){var e=this,t=e.getMeta(),n=e.getDataset();null!==t.xAxisID&&t.xAxisID in e.chart.scales||(t.xAxisID=n.xAxisID||e.chart.options.scales.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in e.chart.scales||(t.yAxisID=n.yAxisID||e.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this.update(!0)},destroy:function(){this._data&&Me(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),r=this.getDataset().data||[],a=n.data;for(e=0,t=r.length;e<t;++e)a[e]=a[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,r=n.getDataset(),a=r.data||(r.data=[]);n._data!==a&&(n._data&&Me(n._data,n),a&&Object.isExtensible(a)&&(t=n,(e=a)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),be.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),a=r.apply(this,t);return de.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),a}})}))),n._data=a),n.resyncElements()},update:de.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],r=n.length,a=0;a<r;++a)n[a].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,r=0;for(e.dataset&&e.dataset.draw();r<n;++r)t[r].draw()},removeHoverStyle:function(e){de.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,r=e.custom||{},a=e._model,o=de.getHoverColor;e.$previousStyle={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderWidth:a.borderWidth},a.backgroundColor=ve([r.hoverBackgroundColor,t.hoverBackgroundColor,o(a.backgroundColor)],void 0,n),a.borderColor=ve([r.hoverBorderColor,t.hoverBorderColor,o(a.borderColor)],void 0,n),a.borderWidth=ve([r.hoverBorderWidth,t.hoverBorderWidth,a.borderWidth],void 0,n)},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,r=t.length;r<n?e.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),we.extend=de.inherits;var Te=we;se._set("global",{elements:{arc:{backgroundColor:se.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var Le=me.extend({inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var r=de.getAngleFromPoint(n,{x:e,y:t}),a=r.angle,o=r.distance,i=n.startAngle,s=n.endAngle;s<i;)s+=2*Math.PI;for(;a>s;)a-=2*Math.PI;for(;a<i;)a+=2*Math.PI;var l=a>=i&&a<=s,u=o>=n.innerRadius&&o<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,r=n.startAngle,a=n.endAngle,o="inner"===n.borderAlign?.33:0;t.save(),t.beginPath(),t.arc(n.x,n.y,Math.max(n.outerRadius-o,0),r,a),t.arc(n.x,n.y,n.innerRadius,a,r,!0),t.closePath(),t.fillStyle=n.backgroundColor,t.fill(),n.borderWidth&&("inner"===n.borderAlign?(t.beginPath(),e=o/n.outerRadius,t.arc(n.x,n.y,n.outerRadius,r-e,a+e),n.innerRadius>o?(e=o/n.innerRadius,t.arc(n.x,n.y,n.innerRadius-o,a+e,r-e,!0)):t.arc(n.x,n.y,o,a+Math.PI/2,r-Math.PI/2),t.closePath(),t.clip(),t.beginPath(),t.arc(n.x,n.y,n.outerRadius,r,a),t.arc(n.x,n.y,n.innerRadius,a,r,!0),t.closePath(),t.lineWidth=2*n.borderWidth,t.lineJoin="round"):(t.lineWidth=n.borderWidth,t.lineJoin="bevel"),t.strokeStyle=n.borderColor,t.stroke()),t.restore()}}),ke=de.valueOrDefault,De=se.global.defaultColor;se._set("global",{elements:{line:{tension:.4,backgroundColor:De,borderWidth:3,borderColor:De,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var xe=me.extend({draw:function(){var e,t,n,r,a=this._view,o=this._chart.ctx,i=a.spanGaps,s=this._children.slice(),l=se.global,u=l.elements.line,d=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||u.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||u.borderDash),o.lineDashOffset=ke(a.borderDashOffset,u.borderDashOffset),o.lineJoin=a.borderJoinStyle||u.borderJoinStyle,o.lineWidth=ke(a.borderWidth,u.borderWidth),o.strokeStyle=a.borderColor||l.defaultColor,o.beginPath(),d=-1,e=0;e<s.length;++e)t=s[e],n=de.previousItem(s,e),r=t._view,0===e?r.skip||(o.moveTo(r.x,r.y),d=e):(n=-1===d?n:s[d],r.skip||(d!==e-1&&!i||-1===d?o.moveTo(r.x,r.y):de.canvas.lineTo(o,n._view,t._view),d=e));o.stroke(),o.restore()}}),Ee=de.valueOrDefault,Se=se.global.defaultColor;function Ye(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}se._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:Se,borderColor:Se,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var Oe=me.extend({inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:Ye,inXRange:Ye,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,r=t.pointStyle,a=t.rotation,o=t.radius,i=t.x,s=t.y,l=se.global,u=l.defaultColor;t.skip||(void 0===e||de.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||u,n.lineWidth=Ee(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||u,de.canvas.drawPoint(n,r,o,i,s,a))}}),Ce=se.global.defaultColor;function Pe(e){return e&&void 0!==e.width}function Ie(e){var t,n,r,a,o;return Pe(e)?(o=e.width/2,t=e.x-o,n=e.x+o,r=Math.min(e.y,e.base),a=Math.max(e.y,e.base)):(o=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),r=e.y-o,a=e.y+o),{left:t,top:r,right:n,bottom:a}}function je(e,t,n){return e===t?n:e===n?t:e}function Re(e,t,n){var r,a,o,i,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=je(t,"left","right")):e.base<e.y&&(t=je(t,"bottom","top")),n[t]=!0,n):n}(e);return de.isObject(s)?(r=+s.top||0,a=+s.right||0,o=+s.bottom||0,i=+s.left||0):r=a=o=i=+s||0,{t:l.top||r<0?0:r>n?n:r,r:l.right||a<0?0:a>t?t:a,b:l.bottom||o<0?0:o>n?n:o,l:l.left||i<0?0:i>t?t:i}}function He(e,t,n){var r=null===t,a=null===n,o=!(!e||r&&a)&&Ie(e);return o&&(r||t>=o.left&&t<=o.right)&&(a||n>=o.top&&n<=o.bottom)}se._set("global",{elements:{rectangle:{backgroundColor:Ce,borderColor:Ce,borderSkipped:"bottom",borderWidth:0}}});var Ae=me.extend({draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=Ie(e),n=t.right-t.left,r=t.bottom-t.top,a=Re(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b}}}(t),r=n.outer,a=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(r.x,r.y,r.w,r.h),r.w===a.w&&r.h===a.h||(e.save(),e.beginPath(),e.rect(r.x,r.y,r.w,r.h),e.clip(),e.fillStyle=t.borderColor,e.rect(a.x,a.y,a.w,a.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return He(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return Pe(n)?He(n,e,null):He(n,null,t)},inXRange:function(e){return He(this._view,e,null)},inYRange:function(e){return He(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return Pe(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return Pe(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),Ne={},Fe=Le,We=xe,Ue=Oe,ze=Ae;Ne.Arc=Fe,Ne.Line=We,Ne.Point=Ue,Ne.Rectangle=ze;var Be=de.options.resolve;se._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var Ve=Te.extend({dataElementType:Ne.Rectangle,initialize:function(){var e,t=this;Te.prototype.initialize.apply(t,arguments),(e=t.getMeta()).stack=t.getDataset().stack,e.bar=!0},update:function(e){var t,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=r.length;t<n;++t)this.updateElement(r[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=r.getDataset(),i=r._resolveElementOptions(e,t);e._xScale=r.getScaleForId(a.xAxisID),e._yScale=r.getScaleForId(a.yAxisID),e._datasetIndex=r.index,e._index=t,e._model={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderSkipped:i.borderSkipped,borderWidth:i.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[t]},r._updateElementGeometry(e,t,n),e.pivot()},_updateElementGeometry:function(e,t,n){var r=this,a=e._model,o=r._getValueScale(),i=o.getBasePixel(),s=o.isHorizontal(),l=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t),d=r.calculateBarIndexPixels(r.index,t,l);a.horizontal=s,a.base=n?i:u.base,a.x=s?n?i:u.head:d.center,a.y=s?d.center:n?i:u.head,a.height=s?d.size:void 0,a.width=s?void 0:d.size},_getStacks:function(e){var t,n,r=this.chart,a=this._getIndexScale().options.stacked,o=void 0===e?r.data.datasets.length:e+1,i=[];for(t=0;t<o;++t)(n=r.getDatasetMeta(t)).bar&&r.isDatasetVisible(t)&&(!1===a||!0===a&&-1===i.indexOf(n.stack)||void 0===a&&(void 0===n.stack||-1===i.indexOf(n.stack)))&&i.push(n.stack);return i},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),r=void 0!==t?n.indexOf(t):-1;return-1===r?n.length-1:r},getRuler:function(){var e,t,n=this._getIndexScale(),r=this.getStackCount(),a=this.index,o=n.isHorizontal(),i=o?n.left:n.top,s=i+(o?n.width:n.height),l=[];for(e=0,t=this.getMeta().data.length;e<t;++e)l.push(n.getPixelForValue(null,e,a));return{min:de.isNullOrUndef(n.options.barThickness)?function(e,t){var n,r,a,o,i=e.isHorizontal()?e.width:e.height,s=e.getTicks();for(a=1,o=t.length;a<o;++a)i=Math.min(i,Math.abs(t[a]-t[a-1]));for(a=0,o=s.length;a<o;++a)r=e.getPixelForTick(a),i=a>0?Math.min(i,r-n):i,n=r;return i}(n,l):-1,pixels:l,start:i,end:s,stackCount:r,scale:n}},calculateBarValuePixels:function(e,t){var n,r,a,o,i,s,l=this.chart,u=this.getMeta(),d=this._getValueScale(),c=d.isHorizontal(),f=l.data.datasets,p=+d.getRightValue(f[e].data[t]),h=d.options.minBarLength,m=d.options.stacked,_=u.stack,g=0;if(m||void 0===m&&void 0!==_)for(n=0;n<e;++n)(r=l.getDatasetMeta(n)).bar&&r.stack===_&&r.controller._getValueScaleId()===d.id&&l.isDatasetVisible(n)&&(a=+d.getRightValue(f[n].data[t]),(p<0&&a<0||p>=0&&a>0)&&(g+=a));return o=d.getPixelForValue(g),s=(i=d.getPixelForValue(g+p))-o,void 0!==h&&Math.abs(s)<h&&(s=h,i=p>=0&&!c||p<0&&c?o-h:o+h),{size:s,base:o,head:i,center:i+s/2}},calculateBarIndexPixels:function(e,t,n){var r=n.scale.options,a="flex"===r.barThickness?function(e,t,n){var r,a=t.pixels,o=a[e],i=e>0?a[e-1]:null,s=e<a.length-1?a[e+1]:null,l=n.categoryPercentage;return null===i&&(i=o-(null===s?t.end-t.start:s-o)),null===s&&(s=o+o-i),r=o-(o-Math.min(i,s))/2*l,{chunk:Math.abs(s-i)/2*l/t.stackCount,ratio:n.barPercentage,start:r}}(t,n,r):function(e,t,n){var r,a,o=n.barThickness,i=t.stackCount,s=t.pixels[e];return de.isNullOrUndef(o)?(r=t.min*n.categoryPercentage,a=n.barPercentage):(r=o*i,a=1),{chunk:r/i,ratio:a,start:s-r/2}}(t,n,r),o=this.getStackIndex(e,this.getMeta().stack),i=a.start+a.chunk*o+a.chunk/2,s=Math.min(de.valueOrDefault(r.maxBarThickness,1/0),a.chunk*a.ratio);return{base:i-s/2,head:i+s/2,center:i,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,r=this.getDataset(),a=n.length,o=0;for(de.canvas.clipArea(e.ctx,e.chartArea);o<a;++o)isNaN(t.getRightValue(r.data[o]))||n[o].draw();de.canvas.unclipArea(e.ctx)},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},l=o.options.elements.rectangle,u={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c=["backgroundColor","borderColor","borderSkipped","borderWidth"];for(n=0,r=c.length;n<r;++n)u[a=c[n]]=Be([s[a],i[a],l[a]],d,t);return u}}),qe=de.valueOrDefault,Ge=de.options.resolve;se._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.datasets[e.datasetIndex].label||"",r=t.datasets[e.datasetIndex].data[e.index];return n+": ("+e.xLabel+", "+e.yLabel+", "+r.r+")"}}}});var Je=Te.extend({dataElementType:Ne.Point,update:function(e){var t=this,n=t.getMeta().data;de.each(n,function(n,r){t.updateElement(n,r,e)})},updateElement:function(e,t,n){var r=this,a=r.getMeta(),o=e.custom||{},i=r.getScaleForId(a.xAxisID),s=r.getScaleForId(a.yAxisID),l=r._resolveElementOptions(e,t),u=r.getDataset().data[t],d=r.index,c=n?i.getPixelForDecimal(.5):i.getPixelForValue("object"==typeof u?u:NaN,t,d),f=n?s.getBasePixel():s.getPixelForValue(u,t,d);e._xScale=i,e._yScale=s,e._options=l,e._datasetIndex=d,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:o.skip||isNaN(c)||isNaN(f),x:c,y:f},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=qe(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=qe(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=qe(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},l=o.options.elements.point,u=i.data[t],d={},c={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},f=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"];for(n=0,r=f.length;n<r;++n)d[a=f[n]]=Ge([s[a],i[a],l[a]],c,t);return d.radius=Ge([s.radius,u?u.r:void 0,i.radius,l.radius],c,t),d}}),Xe=de.options.resolve,Qe=de.valueOrDefault;se._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),o=t.datasets[0],i=a.data[r],s=i&&i.custom||{},l=e.options.elements.arc;return{text:n,fillStyle:Xe([s.backgroundColor,o.backgroundColor,l.backgroundColor],void 0,r),strokeStyle:Xe([s.borderColor,o.borderColor,l.borderColor],void 0,r),lineWidth:Xe([s.borderWidth,o.borderWidth,l.borderWidth],void 0,r),hidden:isNaN(o.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o]&&(a.data[o].hidden=!a.data[o].hidden);i.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],r=": "+t.datasets[e.datasetIndex].data[e.index];return de.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var Ke=Te.extend({dataElementType:Ne.Arc,linkScales:de.noop,getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,r=this,a=r.chart,o=a.chartArea,i=a.options,s=o.right-o.left,l=o.bottom-o.top,u=Math.min(s,l),d={x:0,y:0},c=r.getMeta(),f=c.data,p=i.cutoutPercentage,h=i.circumference,m=r._getRingWeight(r.index);if(h<2*Math.PI){var _=i.rotation%(2*Math.PI),g=(_+=2*Math.PI*(_>=Math.PI?-1:_<-Math.PI?1:0))+h,y={x:Math.cos(_),y:Math.sin(_)},v={x:Math.cos(g),y:Math.sin(g)},b=_<=0&&g>=0||_<=2*Math.PI&&2*Math.PI<=g,M=_<=.5*Math.PI&&.5*Math.PI<=g||_<=2.5*Math.PI&&2.5*Math.PI<=g,w=_<=-Math.PI&&-Math.PI<=g||_<=Math.PI&&Math.PI<=g,T=_<=.5*-Math.PI&&.5*-Math.PI<=g||_<=1.5*Math.PI&&1.5*Math.PI<=g,L=p/100,k={x:w?-1:Math.min(y.x*(y.x<0?1:L),v.x*(v.x<0?1:L)),y:T?-1:Math.min(y.y*(y.y<0?1:L),v.y*(v.y<0?1:L))},D={x:b?1:Math.max(y.x*(y.x>0?1:L),v.x*(v.x>0?1:L)),y:M?1:Math.max(y.y*(y.y>0?1:L),v.y*(v.y>0?1:L))},x={width:.5*(D.x-k.x),height:.5*(D.y-k.y)};u=Math.min(s/x.width,l/x.height),d={x:-.5*(D.x+k.x),y:-.5*(D.y+k.y)}}for(t=0,n=f.length;t<n;++t)f[t]._options=r._resolveElementOptions(f[t],t);for(a.borderWidth=r.getMaxBorderWidth(),a.outerRadius=Math.max((u-a.borderWidth)/2,0),a.innerRadius=Math.max(p?a.outerRadius/100*p:0,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(r._getVisibleDatasetWeightTotal()||1),a.offsetX=d.x*a.outerRadius,a.offsetY=d.y*a.outerRadius,c.total=r.calculateTotal(),r.outerRadius=a.outerRadius-a.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-a.radiusLength*m,0),t=0,n=f.length;t<n;++t)r.updateElement(f[t],t,e)},updateElement:function(e,t,n){var r=this,a=r.chart,o=a.chartArea,i=a.options,s=i.animation,l=(o.left+o.right)/2,u=(o.top+o.bottom)/2,d=i.rotation,c=i.rotation,f=r.getDataset(),p=n&&s.animateRotate?0:e.hidden?0:r.calculateCircumference(f.data[t])*(i.circumference/(2*Math.PI)),h=n&&s.animateScale?0:r.innerRadius,m=n&&s.animateScale?0:r.outerRadius,_=e._options||{};de.extend(e,{_datasetIndex:r.index,_index:t,_model:{backgroundColor:_.backgroundColor,borderColor:_.borderColor,borderWidth:_.borderWidth,borderAlign:_.borderAlign,x:l+a.offsetX,y:u+a.offsetY,startAngle:d,endAngle:c,circumference:p,outerRadius:m,innerRadius:h,label:de.valueAtIndexOrDefault(f.label,t,a.data.labels[t])}});var g=e._model;n&&s.animateRotate||(g.startAngle=0===t?i.rotation:r.getMeta().data[t-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),r=0;return de.each(n.data,function(n,a){e=t.data[a],isNaN(e)||n.hidden||(r+=Math.abs(e))}),r},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?2*Math.PI*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,r,a,o,i,s,l,u=0,d=this.chart;if(!e)for(t=0,n=d.data.datasets.length;t<n;++t)if(d.isDatasetVisible(t)){e=(r=d.getDatasetMeta(t)).data,t!==this.index&&(o=r.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)a=e[t],"inner"!==(i=o?o._resolveElementOptions(a,t):a._options).borderAlign&&(s=i.borderWidth,u=(l=i.hoverBorderWidth)>(u=s>u?s:u)?l:u);return u},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=Qe(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=Qe(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=Qe(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=this.getDataset(),s=e.custom||{},l=o.options.elements.arc,u={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=c.length;n<r;++n)u[a=c[n]]=Xe([s[a],i[a],l[a]],d,t);return u},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(Qe(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});se._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}});var Ze=Ve.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),$e=de.valueOrDefault,et=de.options.resolve,tt=de.canvas._isPointInArea;function nt(e,t){return $e(e.showLine,t.showLines)}se._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var rt=Te.extend({datasetElementType:Ne.Line,dataElementType:Ne.Point,update:function(e){var t,n,r=this,a=r.getMeta(),o=a.dataset,i=a.data||[],s=r.getScaleForId(a.yAxisID),l=r.getDataset(),u=nt(l,r.chart.options);for(u&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=r.index,o._children=i,o._model=r._resolveLineOptions(o),o.pivot()),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e);for(u&&0!==o._model.tension&&r.updateBezierControlPoints(),t=0,n=i.length;t<n;++t)i[t].pivot()},updateElement:function(e,t,n){var r,a,o=this,i=o.getMeta(),s=e.custom||{},l=o.getDataset(),u=o.index,d=l.data[t],c=o.getScaleForId(i.yAxisID),f=o.getScaleForId(i.xAxisID),p=i.dataset._model,h=o._resolvePointOptions(e,t);r=f.getPixelForValue("object"==typeof d?d:NaN,t,u),a=n?c.getBasePixel():o.calculatePointY(d,t,u),e._xScale=f,e._yScale=c,e._options=h,e._datasetIndex=u,e._index=t,e._model={x:r,y:a,skip:s.skip||isNaN(r)||isNaN(a),radius:h.radius,pointStyle:h.pointStyle,rotation:h.rotation,backgroundColor:h.backgroundColor,borderColor:h.borderColor,borderWidth:h.borderWidth,tension:$e(s.tension,p?p.tension:0),steppedLine:!!p&&p.steppedLine,hitRadius:h.hitRadius}},_resolvePointOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},l=o.options.elements.point,u={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(c);for(n=0,r=f.length;n<r;++n)u[a=f[n]]=et([s[a],i[c[a]],i[a],l[a]],d,t);return u},_resolveLineOptions:function(e){var t,n,r,a=this.chart,o=a.data.datasets[this.index],i=e.custom||{},s=a.options,l=s.elements.line,u={},d=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill","cubicInterpolationMode"];for(t=0,n=d.length;t<n;++t)u[r=d[t]]=et([i[r],o[r],l[r]]);return u.spanGaps=$e(o.spanGaps,s.spanGaps),u.tension=$e(o.lineTension,l.tension),u.steppedLine=et([i.steppedLine,o.steppedLine,l.stepped]),u},calculatePointY:function(e,t,n){var r,a,o,i=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),u=0,d=0;if(l.options.stacked){for(r=0;r<n;r++)if(a=i.data.datasets[r],"line"===(o=i.getDatasetMeta(r)).type&&o.yAxisID===l.id&&i.isDatasetVisible(r)){var c=Number(l.getRightValue(a.data[t]));c<0?d+=c||0:u+=c||0}var f=Number(l.getRightValue(e));return f<0?l.getPixelForValue(d+f):l.getPixelForValue(u+f)}return l.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,r,a=this.chart,o=this.getMeta(),i=o.dataset._model,s=a.chartArea,l=o.data||[];function u(e,t,n){return Math.max(Math.min(e,n),t)}if(i.spanGaps&&(l=l.filter(function(e){return!e._model.skip})),"monotone"===i.cubicInterpolationMode)de.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,r=de.splineCurve(de.previousItem(l,e)._model,n,de.nextItem(l,e)._model,i.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(a.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)n=l[e]._model,tt(n,s)&&(e>0&&tt(l[e-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&tt(l[e+1]._model,s)&&(n.controlPointNextX=u(n.controlPointNextX,s.left,s.right),n.controlPointNextY=u(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),r=n.data||[],a=t.chartArea,o=r.length,i=0;for(nt(this.getDataset(),t.options)&&(e=(n.dataset._model.borderWidth||0)/2,de.canvas.clipArea(t.ctx,{left:a.left,right:a.right,top:a.top-e,bottom:a.bottom+e}),n.dataset.draw(),de.canvas.unclipArea(t.ctx));i<o;++i)r[i].draw(a)},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=$e(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=$e(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=$e(n.hoverBorderWidth,n.borderWidth),t.radius=$e(n.hoverRadius,n.radius)}}),at=de.options.resolve;se._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');var n=e.data,r=n.datasets,a=n.labels;if(r.length)for(var o=0;o<r[0].data.length;++o)t.push('<li><span style="background-color:'+r[0].backgroundColor[o]+'"></span>'),a[o]&&t.push(a[o]),t.push("</li>");return t.push("</ul>"),t.join("")},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,r){var a=e.getDatasetMeta(0),o=t.datasets[0],i=a.data[r].custom||{},s=e.options.elements.arc;return{text:n,fillStyle:at([i.backgroundColor,o.backgroundColor,s.backgroundColor],void 0,r),strokeStyle:at([i.borderColor,o.borderColor,s.borderColor],void 0,r),lineWidth:at([i.borderWidth,o.borderWidth,s.borderWidth],void 0,r),hidden:isNaN(o.data[r])||a.data[r].hidden,index:r}}):[]}},onClick:function(e,t){var n,r,a,o=t.index,i=this.chart;for(n=0,r=(i.data.datasets||[]).length;n<r;++n)(a=i.getDatasetMeta(n)).data[o].hidden=!a.data[o].hidden;i.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var ot=Te.extend({dataElementType:Ne.Arc,linkScales:de.noop,update:function(e){var t,n,r,a=this,o=a.getDataset(),i=a.getMeta(),s=a.chart.options.startAngle||0,l=a._starts=[],u=a._angles=[],d=i.data;for(a._updateRadius(),i.count=a.countVisibleElements(),t=0,n=o.data.length;t<n;t++)l[t]=s,r=a._computeAngle(t),u[t]=r,s+=r;for(t=0,n=d.length;t<n;++t)d[t]._options=a._resolveElementOptions(d[t],t),a.updateElement(d[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(a/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var r=this,a=r.chart,o=r.getDataset(),i=a.options,s=i.animation,l=a.scale,u=a.data.labels,d=l.xCenter,c=l.yCenter,f=i.startAngle,p=e.hidden?0:l.getDistanceFromCenterForValue(o.data[t]),h=r._starts[t],m=h+(e.hidden?0:r._angles[t]),_=s.animateScale?0:l.getDistanceFromCenterForValue(o.data[t]),g=e._options||{};de.extend(e,{_datasetIndex:r.index,_index:t,_scale:l,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:d,y:c,innerRadius:0,outerRadius:n?_:p,startAngle:n&&s.animateRotate?f:h,endAngle:n&&s.animateRotate?f:m,label:de.valueAtIndexOrDefault(u,t,u[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return de.each(t.data,function(t,r){isNaN(e.data[r])||t.hidden||n++}),n},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor,a=de.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=a(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=a(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=a(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(e,t){var n,r,a,o=this.chart,i=this.getDataset(),s=e.custom||{},l=o.options.elements.arc,u={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=c.length;n<r;++n)u[a=c[n]]=at([s[a],i[a],l[a]],d,t);return u},_computeAngle:function(e){var t=this,n=this.getMeta().count,r=t.getDataset(),a=t.getMeta();if(isNaN(r.data[e])||a.data[e].hidden)return 0;var o={chart:t.chart,dataIndex:e,dataset:r,datasetIndex:t.index};return at([t.chart.options.elements.arc.angle,2*Math.PI/n],o,e)}});se._set("pie",de.clone(se.doughnut)),se._set("pie",{cutoutPercentage:0});var it=Ke,st=de.valueOrDefault,lt=de.options.resolve;se._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}});var ut=Te.extend({datasetElementType:Ne.Line,dataElementType:Ne.Point,linkScales:de.noop,update:function(e){var t,n,r=this,a=r.getMeta(),o=a.dataset,i=a.data||[],s=r.chart.scale,l=r.getDataset();for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),o._scale=s,o._datasetIndex=r.index,o._children=i,o._loop=!0,o._model=r._resolveLineOptions(o),o.pivot(),t=0,n=i.length;t<n;++t)r.updateElement(i[t],t,e);for(r.updateBezierControlPoints(),t=0,n=i.length;t<n;++t)i[t].pivot()},updateElement:function(e,t,n){var r=this,a=e.custom||{},o=r.getDataset(),i=r.chart.scale,s=i.getPointPositionForValue(t,o.data[t]),l=r._resolvePointOptions(e,t),u=r.getMeta().dataset._model,d=n?i.xCenter:s.x,c=n?i.yCenter:s.y;e._scale=i,e._options=l,e._datasetIndex=r.index,e._index=t,e._model={x:d,y:c,skip:a.skip||isNaN(d)||isNaN(c),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:st(a.tension,u?u.tension:0),hitRadius:l.hitRadius}},_resolvePointOptions:function(e,t){var n,r,a,o=this.chart,i=o.data.datasets[this.index],s=e.custom||{},l=o.options.elements.point,u={},d={chart:o,dataIndex:t,dataset:i,datasetIndex:this.index},c={backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},f=Object.keys(c);for(n=0,r=f.length;n<r;++n)u[a=f[n]]=lt([s[a],i[c[a]],i[a],l[a]],d,t);return u},_resolveLineOptions:function(e){var t,n,r,a=this.chart,o=a.data.datasets[this.index],i=e.custom||{},s=a.options.elements.line,l={},u=["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"];for(t=0,n=u.length;t<n;++t)l[r=u[t]]=lt([i[r],o[r],s[r]]);return l.tension=st(o.lineTension,s.tension),l},updateBezierControlPoints:function(){var e,t,n,r,a=this.getMeta(),o=this.chart.chartArea,i=a.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(e=0,t=i.length;e<t;++e)n=i[e]._model,r=de.splineCurve(de.previousItem(i,e,!0)._model,n,de.nextItem(i,e,!0)._model,n.tension),n.controlPointPreviousX=s(r.previous.x,o.left,o.right),n.controlPointPreviousY=s(r.previous.y,o.top,o.bottom),n.controlPointNextX=s(r.next.x,o.left,o.right),n.controlPointNextY=s(r.next.y,o.top,o.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,r=de.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=st(n.hoverBackgroundColor,r(n.backgroundColor)),t.borderColor=st(n.hoverBorderColor,r(n.borderColor)),t.borderWidth=st(n.hoverBorderWidth,n.borderWidth),t.radius=st(n.hoverRadius,n.radius)}});se._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}});var dt={bar:Ve,bubble:Je,doughnut:Ke,horizontalBar:Ze,line:rt,polarArea:ot,pie:it,radar:ut,scatter:rt};function ct(e,t){return e.native?{x:e.x,y:e.y}:de.getRelativePosition(e,t)}function ft(e,t){var n,r,a,o,i;for(r=0,o=e.data.datasets.length;r<o;++r)if(e.isDatasetVisible(r))for(a=0,i=(n=e.getDatasetMeta(r)).data.length;a<i;++a){var s=n.data[a];s._view.skip||t(s)}}function pt(e,t){var n=[];return ft(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function ht(e,t,n,r){var a=Number.POSITIVE_INFINITY,o=[];return ft(e,function(e){if(!n||e.inRange(t.x,t.y)){var i=e.getCenterPoint(),s=r(t,i);s<a?(o=[e],a=s):s===a&&o.push(e)}}),o}function mt(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var a=t?Math.abs(e.x-r.x):0,o=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(o,2))}}function _t(e,t,n){var r=ct(t,e);n.axis=n.axis||"x";var a=mt(n.axis),o=n.intersect?pt(e,r):ht(e,r,!1,a),i=[];return o.length?(e.data.datasets.forEach(function(t,n){if(e.isDatasetVisible(n)){var r=e.getDatasetMeta(n).data[o[0]._index];r&&!r._view.skip&&i.push(r)}}),i):[]}var gt={modes:{single:function(e,t){var n=ct(t,e),r=[];return ft(e,function(e){if(e.inRange(n.x,n.y))return r.push(e),r}),r.slice(0,1)},label:_t,index:_t,dataset:function(e,t,n){var r=ct(t,e);n.axis=n.axis||"xy";var a=mt(n.axis),o=n.intersect?pt(e,r):ht(e,r,!1,a);return o.length>0&&(o=e.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(e,t){return _t(e,t,{intersect:!1})},point:function(e,t){return pt(e,ct(t,e))},nearest:function(e,t,n){var r=ct(t,e);n.axis=n.axis||"xy";var a=mt(n.axis);return ht(e,r,n.intersect,a)},x:function(e,t,n){var r=ct(t,e),a=[],o=!1;return ft(e,function(e){e.inXRange(r.x)&&a.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(a=[]),a},y:function(e,t,n){var r=ct(t,e),a=[],o=!1;return ft(e,function(e){e.inYRange(r.y)&&a.push(e),e.inRange(r.x,r.y)&&(o=!0)}),n.intersect&&!o&&(a=[]),a}}};function yt(e,t){return de.where(e,function(e){return e.position===t})}function vt(e,t){e.forEach(function(e,t){return e._tmpIndex_=t,e}),e.sort(function(e,n){var r=t?n:e,a=t?e:n;return r.weight===a.weight?r._tmpIndex_-a._tmpIndex_:r.weight-a.weight}),e.forEach(function(e){delete e._tmpIndex_})}function bt(e,t){de.each(e,function(e){t[e.position]+=e.isHorizontal()?e.height:e.width})}se._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var Mt,wt={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var r,a=["fullWidth","position","weight"],o=a.length,i=0;i<o;++i)r=a[i],n.hasOwnProperty(r)&&(t[r]=n[r])},update:function(e,t,n){if(e){var r=e.options.layout||{},a=de.options.toPadding(r.padding),o=a.left,i=a.right,s=a.top,l=a.bottom,u=yt(e.boxes,"left"),d=yt(e.boxes,"right"),c=yt(e.boxes,"top"),f=yt(e.boxes,"bottom"),p=yt(e.boxes,"chartArea");vt(u,!0),vt(d,!1),vt(c,!0),vt(f,!1);var h,m=u.concat(d),_=c.concat(f),g=m.concat(_),y=t-o-i,v=n-s-l,b=(t-y/2)/m.length,M=y,w=v,T={top:s,left:o,bottom:l,right:i},L=[];de.each(g,function(e){var t,n=e.isHorizontal();n?(t=e.update(e.fullWidth?y:M,v/2),w-=t.height):(t=e.update(b,w),M-=t.width),L.push({horizontal:n,width:t.width,box:e})}),h=function(e){var t=0,n=0,r=0,a=0;return de.each(e,function(e){if(e.getPadding){var o=e.getPadding();t=Math.max(t,o.top),n=Math.max(n,o.left),r=Math.max(r,o.bottom),a=Math.max(a,o.right)}}),{top:t,left:n,bottom:r,right:a}}(g),de.each(m,O),bt(m,T),de.each(_,O),bt(_,T),de.each(m,function(e){var t=de.findNextWhere(L,function(t){return t.box===e}),n={left:0,right:0,top:T.top,bottom:T.bottom};t&&e.update(t.width,w,n)}),bt(g,T={top:s,left:o,bottom:l,right:i});var k=Math.max(h.left-T.left,0);T.left+=k,T.right+=Math.max(h.right-T.right,0);var D=Math.max(h.top-T.top,0);T.top+=D,T.bottom+=Math.max(h.bottom-T.bottom,0);var x=n-T.top-T.bottom,E=t-T.left-T.right;E===M&&x===w||(de.each(m,function(e){e.height=x}),de.each(_,function(e){e.fullWidth||(e.width=E)}),w=x,M=E);var S=o+k,Y=s+D;de.each(u.concat(c),C),S+=M,Y+=w,de.each(d,C),de.each(f,C),e.chartArea={left:T.left,top:T.top,right:T.left+M,bottom:T.top+w},de.each(p,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(M,w)})}function O(e){var t=de.findNextWhere(L,function(t){return t.box===e});if(t)if(t.horizontal){var n={left:Math.max(T.left,h.left),right:Math.max(T.right,h.right),top:0,bottom:0};e.update(e.fullWidth?y:M,v/2,n)}else e.update(t.width,w)}function C(e){e.isHorizontal()?(e.left=e.fullWidth?o:T.left,e.right=e.fullWidth?t-i:T.left+M,e.top=Y,e.bottom=Y+e.height,Y=e.bottom):(e.left=S,e.right=S+e.width,e.top=T.top,e.bottom=T.top+w,S=e.right)}}},Tt=(Mt=Object.freeze({default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&Mt.default||Mt,Lt="$chartjs",kt="chartjs-size-monitor",Dt="chartjs-render-monitor",xt="chartjs-render-animation",Et=["animationstart","webkitAnimationStart"],St={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Yt(e,t){var n=de.getStyle(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var Ot=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(e){}return e}()&&{passive:!0};function Ct(e,t,n){e.addEventListener(t,n,Ot)}function Pt(e,t,n){e.removeEventListener(t,n,Ot)}function It(e,t,n,r,a){return{type:e,chart:t,native:a||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function jt(e){var t=document.createElement("div");return t.className=e||"",t}function Rt(e,t,n){var r,a,o,i,s=e[Lt]||(e[Lt]={}),l=s.resizer=function(e){var t=jt(kt),n=jt(kt+"-expand"),r=jt(kt+"-shrink");n.appendChild(jt()),r.appendChild(jt()),t.appendChild(n),t.appendChild(r),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var a=function(){t._reset(),e()};return Ct(n,"scroll",a.bind(n,"expand")),Ct(r,"scroll",a.bind(r,"shrink")),t}((r=function(){if(s.resizer){var r=n.options.maintainAspectRatio&&e.parentNode,a=r?r.clientWidth:0;t(It("resize",n)),r&&r.clientWidth<a&&n.canvas&&t(It("resize",n))}},o=!1,i=[],function(){i=Array.prototype.slice.call(arguments),a=a||this,o||(o=!0,de.requestAnimFrame.call(window,function(){o=!1,r.apply(a,i)}))}));!function(e,t){var n=e[Lt]||(e[Lt]={}),r=n.renderProxy=function(e){e.animationName===xt&&t()};de.each(Et,function(t){Ct(e,t,r)}),n.reflow=!!e.offsetParent,e.classList.add(Dt)}(e,function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}})}function Ht(e){var t=e[Lt]||{},n=t.resizer;delete t.resizer,function(e){var t=e[Lt]||{},n=t.renderProxy;n&&(de.each(Et,function(t){Pt(e,t,n)}),delete t.renderProxy),e.classList.remove(Dt)}(e),n&&n.parentNode&&n.parentNode.removeChild(n)}var At={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(){this._loaded||(this._loaded=!0,this.disableCSSInjection||function(e,t){var n=e._style||document.createElement("style");e._style||(e._style=n,t="/* Chart.js */\n"+t,n.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(n)),n.appendChild(document.createTextNode(t))}(this,Tt))},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return this._ensureLoaded(),n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[Lt]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===a||""===a){var o=Yt(e,"width");void 0!==o&&(e.width=o)}if(null===r||""===r)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var i=Yt(e,"height");void 0!==o&&(e.height=i)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t[Lt]){var n=t[Lt].initial;["height","width"].forEach(function(e){var r=n[e];de.isNullOrUndef(r)?t.removeAttribute(e):t.setAttribute(e,r)}),de.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t[Lt]}},addEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=n[Lt]||(n[Lt]={});Ct(r,t,(a.proxies||(a.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=St[e.type]||e.type,r=de.getRelativePosition(e,t);return It(n,t,r.x,r.y,e)}(t,e))})}else Rt(r,n,e)},removeEventListener:function(e,t,n){var r=e.canvas;if("resize"!==t){var a=((n[Lt]||{}).proxies||{})[e.id+"_"+t];a&&Pt(r,t,a)}else Ht(r)}};de.addEvent=Ct,de.removeEvent=Pt;var Nt=At._enabled?At:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}},Ft=de.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Nt);se._set("global",{plugins:{}});var Wt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var r,a,o,i,s,l=this.descriptors(e),u=l.length;for(r=0;r<u;++r)if("function"==typeof(s=(o=(a=l[r]).plugin)[t])&&((i=[e].concat(n||[])).push(a.options),!1===s.apply(o,i)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],r=[],a=e&&e.config||{},o=a.options&&a.options.plugins||{};return this._plugins.concat(a.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,a=o[t];!1!==a&&(!0===a&&(a=de.clone(se.global.plugins[t])),n.push(e),r.push({plugin:e,options:a||{}}))}}),t.descriptors=r,t.id=this._cacheId,r},_invalidate:function(e){delete e.$plugins}},Ut={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=de.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?de.merge({},[se.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=de.extend(this.defaults[e],t))},addScalesToLayout:function(e){de.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,wt.addBox(e,t)})}},zt=de.valueOrDefault;se._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:de.noop,title:function(e,t){var n="",r=t.labels,a=r?r.length:0;if(e.length>0){var o=e[0];o.label?n=o.label:o.xLabel?n=o.xLabel:a>0&&o.index<a&&(n=r[o.index])}return n},afterTitle:de.noop,beforeBody:de.noop,beforeLabel:de.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),de.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:de.noop,afterBody:de.noop,beforeFooter:de.noop,footer:de.noop,afterFooter:de.noop}}});var Bt={average:function(e){if(!e.length)return!1;var t,n,r=0,a=0,o=0;for(t=0,n=e.length;t<n;++t){var i=e[t];if(i&&i.hasValue()){var s=i.tooltipPosition();r+=s.x,a+=s.y,++o}}return{x:r/o,y:a/o}},nearest:function(e,t){var n,r,a,o=t.x,i=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n];if(l&&l.hasValue()){var u=l.getCenterPoint(),d=de.distanceBetweenPoints(t,u);d<s&&(s=d,a=l)}}if(a){var c=a.tooltipPosition();o=c.x,i=c.y}return{x:o,y:i}}};function Vt(e,t){return t&&(de.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function qt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Gt(e){var t=se.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,bodyFontColor:e.bodyFontColor,_bodyFontFamily:zt(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:zt(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:zt(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:zt(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:zt(e.titleFontStyle,t.defaultFontStyle),titleFontSize:zt(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:zt(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:zt(e.footerFontStyle,t.defaultFontStyle),footerFontSize:zt(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Jt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Xt(e){return Vt([],qt(e))}var Qt=me.extend({initialize:function(){this._model=Gt(this._options),this._lastActive=[]},getTitle:function(){var e=this,t=e._options,n=t.callbacks,r=n.beforeTitle.apply(e,arguments),a=n.title.apply(e,arguments),o=n.afterTitle.apply(e,arguments),i=[];return i=Vt(i,qt(r)),i=Vt(i,qt(a)),i=Vt(i,qt(o))},getBeforeBody:function(){return Xt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,r=n._options.callbacks,a=[];return de.each(e,function(e){var o={before:[],lines:[],after:[]};Vt(o.before,qt(r.beforeLabel.call(n,e,t))),Vt(o.lines,r.label.call(n,e,t)),Vt(o.after,qt(r.afterLabel.call(n,e,t))),a.push(o)}),a},getAfterBody:function(){return Xt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this,t=e._options.callbacks,n=t.beforeFooter.apply(e,arguments),r=t.footer.apply(e,arguments),a=t.afterFooter.apply(e,arguments),o=[];return o=Vt(o,qt(n)),o=Vt(o,qt(r)),o=Vt(o,qt(a))},update:function(e){var t,n,r,a,o,i,s,l,u,d,c=this,f=c._options,p=c._model,h=c._model=Gt(f),m=c._active,_=c._data,g={xAlign:p.xAlign,yAlign:p.yAlign},y={x:p.x,y:p.y},v={width:p.width,height:p.height},b={x:p.caretX,y:p.caretY};if(m.length){h.opacity=1;var M=[],w=[];b=Bt[f.position].call(c,m,c._eventPosition);var T=[];for(t=0,n=m.length;t<n;++t)T.push((r=m[t],a=void 0,o=void 0,i=void 0,s=void 0,l=void 0,u=void 0,d=void 0,a=r._xScale,o=r._yScale||r._scale,i=r._index,s=r._datasetIndex,l=r._chart.getDatasetMeta(s).controller,u=l._getIndexScale(),d=l._getValueScale(),{xLabel:a?a.getLabelForIndex(i,s):"",yLabel:o?o.getLabelForIndex(i,s):"",label:u?""+u.getLabelForIndex(i,s):"",value:d?""+d.getLabelForIndex(i,s):"",index:i,datasetIndex:s,x:r._model.x,y:r._model.y}));f.filter&&(T=T.filter(function(e){return f.filter(e,_)})),f.itemSort&&(T=T.sort(function(e,t){return f.itemSort(e,t,_)})),de.each(T,function(e){M.push(f.callbacks.labelColor.call(c,e,c._chart)),w.push(f.callbacks.labelTextColor.call(c,e,c._chart))}),h.title=c.getTitle(T,_),h.beforeBody=c.getBeforeBody(T,_),h.body=c.getBody(T,_),h.afterBody=c.getAfterBody(T,_),h.footer=c.getFooter(T,_),h.x=b.x,h.y=b.y,h.caretPadding=f.caretPadding,h.labelColors=M,h.labelTextColors=w,h.dataPoints=T,v=function(e,t){var n=e._chart.ctx,r=2*t.yPadding,a=0,o=t.body,i=o.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0);i+=t.beforeBody.length+t.afterBody.length;var s=t.title.length,l=t.footer.length,u=t.titleFontSize,d=t.bodyFontSize,c=t.footerFontSize;r+=s*u,r+=s?(s-1)*t.titleSpacing:0,r+=s?t.titleMarginBottom:0,r+=i*d,r+=i?(i-1)*t.bodySpacing:0,r+=l?t.footerMarginTop:0,r+=l*c,r+=l?(l-1)*t.footerSpacing:0;var f=0,p=function(e){a=Math.max(a,n.measureText(e).width+f)};return n.font=de.fontString(u,t._titleFontStyle,t._titleFontFamily),de.each(t.title,p),n.font=de.fontString(d,t._bodyFontStyle,t._bodyFontFamily),de.each(t.beforeBody.concat(t.afterBody),p),f=t.displayColors?d+2:0,de.each(o,function(e){de.each(e.before,p),de.each(e.lines,p),de.each(e.after,p)}),f=0,n.font=de.fontString(c,t._footerFontStyle,t._footerFontFamily),de.each(t.footer,p),{width:a+=2*t.xPadding,height:r}}(this,h),y=function(e,t,n,r){var a=e.x,o=e.y,i=e.caretSize,s=e.caretPadding,l=e.cornerRadius,u=n.xAlign,d=n.yAlign,c=i+s,f=l+s;return"right"===u?a-=t.width:"center"===u&&((a-=t.width/2)+t.width>r.width&&(a=r.width-t.width),a<0&&(a=0)),"top"===d?o+=c:o-="bottom"===d?t.height+c:t.height/2,"center"===d?"left"===u?a+=c:"right"===u&&(a-=c):"left"===u?a-=f:"right"===u&&(a+=f),{x:a,y:o}}(h,v,g=function(e,t){var n,r,a,o,i,s=e._model,l=e._chart,u=e._chart.chartArea,d="center",c="center";s.y<t.height?c="top":s.y>l.height-t.height&&(c="bottom");var f=(u.left+u.right)/2,p=(u.top+u.bottom)/2;"center"===c?(n=function(e){return e<=f},r=function(e){return e>f}):(n=function(e){return e<=t.width/2},r=function(e){return e>=l.width-t.width/2}),a=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},o=function(e){return e-t.width-s.caretSize-s.caretPadding<0},i=function(e){return e<=p?"top":"bottom"},n(s.x)?(d="left",a(s.x)&&(d="center",c=i(s.y))):r(s.x)&&(d="right",o(s.x)&&(d="center",c=i(s.y)));var h=e._options;return{xAlign:h.xAlign?h.xAlign:d,yAlign:h.yAlign?h.yAlign:c}}(this,v),c._chart)}else h.opacity=0;return h.xAlign=g.xAlign,h.yAlign=g.yAlign,h.x=y.x,h.y=y.y,h.width=v.width,h.height=v.height,h.caretX=b.x,h.caretY=b.y,c._model=h,e&&f.custom&&f.custom.call(c,h),c},drawCaret:function(e,t){var n=this._chart.ctx,r=this._view,a=this.getCaretPosition(e,t,r);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)},getCaretPosition:function(e,t,n){var r,a,o,i,s,l,u=n.caretSize,d=n.cornerRadius,c=n.xAlign,f=n.yAlign,p=e.x,h=e.y,m=t.width,_=t.height;if("center"===f)s=h+_/2,"left"===c?(a=(r=p)-u,o=r,i=s+u,l=s-u):(a=(r=p+m)+u,o=r,i=s-u,l=s+u);else if("left"===c?(r=(a=p+d+u)-u,o=a+u):"right"===c?(r=(a=p+m-d-u)-u,o=a+u):(r=(a=n.caretX)-u,o=a+u),"top"===f)s=(i=h)-u,l=i;else{s=(i=h+_)+u,l=i;var g=o;o=r,r=g}return{x1:r,x2:a,x3:o,y1:i,y2:s,y3:l}},drawTitle:function(e,t,n){var r=t.title;if(r.length){e.x=Jt(t,t._titleAlign),n.textAlign=t._titleAlign,n.textBaseline="top";var a,o,i=t.titleFontSize,s=t.titleSpacing;for(n.fillStyle=t.titleFontColor,n.font=de.fontString(i,t._titleFontStyle,t._titleFontFamily),a=0,o=r.length;a<o;++a)n.fillText(r[a],e.x,e.y),e.y+=i+s,a+1===r.length&&(e.y+=t.titleMarginBottom-s)}},drawBody:function(e,t,n){var r,a=t.bodyFontSize,o=t.bodySpacing,i=t._bodyAlign,s=t.body,l=t.displayColors,u=t.labelColors,d=0,c=l?Jt(t,"left"):0;n.textAlign=i,n.textBaseline="top",n.font=de.fontString(a,t._bodyFontStyle,t._bodyFontFamily),e.x=Jt(t,i);var f=function(t){n.fillText(t,e.x+d,e.y),e.y+=a+o};n.fillStyle=t.bodyFontColor,de.each(t.beforeBody,f),d=l&&"right"!==i?"center"===i?a/2+1:a+2:0,de.each(s,function(o,i){r=t.labelTextColors[i],n.fillStyle=r,de.each(o.before,f),de.each(o.lines,function(o){l&&(n.fillStyle=t.legendColorBackground,n.fillRect(c,e.y,a,a),n.lineWidth=1,n.strokeStyle=u[i].borderColor,n.strokeRect(c,e.y,a,a),n.fillStyle=u[i].backgroundColor,n.fillRect(c+1,e.y+1,a-2,a-2),n.fillStyle=r),f(o)}),de.each(o.after,f)}),d=0,de.each(t.afterBody,f),e.y-=o},drawFooter:function(e,t,n){var r=t.footer;r.length&&(e.x=Jt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=t._footerAlign,n.textBaseline="top",n.fillStyle=t.footerFontColor,n.font=de.fontString(t.footerFontSize,t._footerFontStyle,t._footerFontFamily),de.each(r,function(r){n.fillText(r,e.x,e.y),e.y+=t.footerFontSize+t.footerSpacing}))},drawBackground:function(e,t,n,r){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var a=t.xAlign,o=t.yAlign,i=e.x,s=e.y,l=r.width,u=r.height,d=t.cornerRadius;n.beginPath(),n.moveTo(i+d,s),"top"===o&&this.drawCaret(e,r),n.lineTo(i+l-d,s),n.quadraticCurveTo(i+l,s,i+l,s+d),"center"===o&&"right"===a&&this.drawCaret(e,r),n.lineTo(i+l,s+u-d),n.quadraticCurveTo(i+l,s+u,i+l-d,s+u),"bottom"===o&&this.drawCaret(e,r),n.lineTo(i+d,s+u),n.quadraticCurveTo(i,s+u,i,s+u-d),"center"===o&&"left"===a&&this.drawCaret(e,r),n.lineTo(i,s+d),n.quadraticCurveTo(i,s,i+d,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},r={x:t.x,y:t.y},a=Math.abs(t.opacity<.001)?0:t.opacity,o=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;this._options.enabled&&o&&(e.save(),e.globalAlpha=a,this.drawBackground(r,t,e,n),r.y+=t.yPadding,this.drawTitle(r,t,e),this.drawBody(r,t,e),this.drawFooter(r,t,e),e.restore())}},handleEvent:function(e){var t,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(e,r.mode,r),(t=!de.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}}),Kt=Bt,Zt=Qt;Zt.positioners=Kt;var $t=de.valueOrDefault;function en(){return de.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){if("xAxes"===e||"yAxes"===e){var a,o,i,s=n[e].length;for(t[e]||(t[e]=[]),a=0;a<s;++a)i=n[e][a],o=$t(i.type,"xAxes"===e?"category":"linear"),a>=t[e].length&&t[e].push({}),!t[e][a].type||i.type&&i.type!==t[e][a].type?de.merge(t[e][a],[Ut.getScaleDefaults(o),i]):de.merge(t[e][a],i)}else de._merger(e,t,n,r)}})}function tn(){return de.merge({},[].slice.call(arguments),{merger:function(e,t,n,r){var a=t[e]||{},o=n[e];"scales"===e?t[e]=en(a,o):"scale"===e?t[e]=de.merge(a,[Ut.getScaleDefaults(o.type),o]):de._merger(e,t,n,r)}})}function nn(e){var t=e.options;de.each(e.scales,function(t){wt.removeBox(e,t)}),t=tn(se.global,se[e.config.type],t),e.options=e.config.options=t,e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.tooltip._options=t.tooltips,e.tooltip.initialize()}function rn(e){return"top"===e||"bottom"===e}se._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var an=function(e,t){return this.construct(e,t),this};de.extend(an.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||{}).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=tn(se.global,se[e.type],e.options||{}),e}(t);var r=Ft.acquireContext(e,t),a=r&&r.canvas,o=a&&a.height,i=a&&a.width;n.id=de.uid(),n.ctx=r,n.canvas=a,n.config=t,n.width=i,n.height=o,n.aspectRatio=o?i/o:null,n.options=t.options,n._bufferedRender=!1,n.chart=n,n.controller=n,an.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),r&&a?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return Wt.notify(e,"beforeInit"),de.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.ensureScalesHaveIDs(),e.buildOrUpdateScales(),e.initToolTip(),Wt.notify(e,"afterInit"),e},clear:function(){return de.canvas.clear(this),this},stop:function(){return ye.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,r=t.canvas,a=n.maintainAspectRatio&&t.aspectRatio||null,o=Math.max(0,Math.floor(de.getMaximumWidth(r))),i=Math.max(0,Math.floor(a?o/a:de.getMaximumHeight(r)));if((t.width!==o||t.height!==i)&&(r.width=t.width=o,r.height=t.height=i,r.style.width=o+"px",r.style.height=i+"px",de.retinaScale(t,n.devicePixelRatio),!e)){var s={width:o,height:i};Wt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;de.each(t.xAxes,function(e,t){e.id=e.id||"x-axis-"+t}),de.each(t.yAxes,function(e,t){e.id=e.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},r=[],a=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(r=r.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&r.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),de.each(r,function(t){var r=t.options,o=r.id,i=$t(r.type,t.dtype);rn(r.position)!==rn(t.dposition)&&(r.position=t.dposition),a[o]=!0;var s=null;if(o in n&&n[o].type===i)(s=n[o]).options=r,s.ctx=e.ctx,s.chart=e;else{var l=Ut.getScaleConstructor(i);if(!l)return;s=new l({id:o,type:i,options:r,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),de.each(a,function(e,t){e||delete n[t]}),e.scales=n,Ut.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,t=[];return de.each(e.data.datasets,function(n,r){var a=e.getDatasetMeta(r),o=n.type||e.config.type;if(a.type&&a.type!==o&&(e.destroyDatasetMeta(r),a=e.getDatasetMeta(r)),a.type=o,a.controller)a.controller.updateIndex(r),a.controller.linkScales();else{var i=dt[a.type];if(void 0===i)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new i(e,r),t.push(a.controller)}},e),t},resetElements:function(){var e=this;de.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),nn(t),Wt._invalidate(t),!1!==Wt.notify(t,"beforeUpdate")){t.tooltip._data=t.data;var n=t.buildOrUpdateControllers();de.each(t.data.datasets,function(e,n){t.getDatasetMeta(n).controller.buildOrUpdateElements()},t),t.updateLayout(),t.options.animation&&t.options.animation.duration&&de.each(n,function(e){e.reset()}),t.updateDatasets(),t.tooltip.initialize(),t.lastActive=[],Wt.notify(t,"afterUpdate"),t._bufferedRender?t._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:t.render(e)}},updateLayout:function(){!1!==Wt.notify(this,"beforeLayout")&&(wt.update(this,this.width,this.height),Wt.notify(this,"afterScaleUpdate"),Wt.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==Wt.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);Wt.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==Wt.notify(this,"beforeDatasetUpdate",[n])&&(t.controller.update(),Wt.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,r=$t(e.duration,n&&n.duration),a=e.lazy;if(!1!==Wt.notify(t,"beforeRender")){var o=function(e){Wt.notify(t,"afterRender"),de.callback(n&&n.onComplete,[e],t)};if(n&&r){var i=new ge({numSteps:r/16.66,easing:e.easing||n.easing,render:function(e,t){var n=de.easing.effects[t.easing],r=t.currentStep,a=r/t.numSteps;e.draw(n(a),a,r)},onAnimationProgress:n.onProgress,onAnimationComplete:o});ye.addAnimation(t,i,r,a)}else t.draw(),o(new ge({numSteps:0,chart:t}));return t}},draw:function(e){var t=this;t.clear(),de.isNullOrUndef(e)&&(e=1),t.transition(e),t.width<=0||t.height<=0||!1!==Wt.notify(t,"beforeDraw",[e])&&(de.each(t.boxes,function(e){e.draw(t.chartArea)},t),t.drawDatasets(e),t._drawTooltip(e),Wt.notify(t,"afterDraw",[e]))},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},drawDatasets:function(e){var t=this;if(!1!==Wt.notify(t,"beforeDatasetsDraw",[e])){for(var n=(t.data.datasets||[]).length-1;n>=0;--n)t.isDatasetVisible(n)&&t.drawDataset(n,e);Wt.notify(t,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,easingValue:t};!1!==Wt.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(t),Wt.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==Wt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),Wt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return gt.modes.single(this,e)},getElementsAtEvent:function(e){return gt.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return gt.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var r=gt.modes[t];return"function"==typeof r?r(this,e,n):[]},getDatasetAtEvent:function(e){return gt.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],r=n._meta&&n._meta[t];r&&(r.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,r=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);r&&(n.unbindEvents(),de.canvas.clear(n),Ft.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Wt.notify(n,"destroy"),delete an.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Zt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};de.each(e.options.events,function(r){Ft.addEventListener(e,r,n),t[r]=n}),e.options.responsive&&(n=function(){e.resize()},Ft.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,de.each(t,function(t,n){Ft.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var r,a,o,i=n?"setHoverStyle":"removeHoverStyle";for(a=0,o=e.length;a<o;++a)(r=e[a])&&this.getDatasetMeta(r._datasetIndex).controller[i](r)},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==Wt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var r=t.handleEvent(e);n&&(r=n._start?n.handleEvent(e):r|n.handleEvent(e)),Wt.notify(t,"afterEvent",[e]);var a=t._bufferedRequest;return a?t.render(a):r&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,r=n.options||{},a=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===e.type?n.active=[]:n.active=n.getElementsAtEventForMode(e,a.mode,a),de.callback(r.onHover||r.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||r.onClick&&r.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,a.mode,!1),n.active.length&&a.mode&&n.updateHoverStyle(n.active,a.mode,!0),t=!de.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),an.instances={};var on=an;function sn(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function ln(e){this.options=e||{}}an.Controller=an,an.types={},de.configMerge=tn,de.scaleMerge=en,de.extend(ln.prototype,{formats:sn,parse:sn,format:sn,add:sn,diff:sn,startOf:sn,endOf:sn,_create:function(e){return e}}),ln.override=function(e){de.extend(ln.prototype,e)};var un={_date:ln},dn={formatters:{values:function(e){return de.isArray(e)?e:""+e},linear:function(e,t,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&e!==Math.floor(e)&&(r=e-Math.floor(e));var a=de.log10(Math.abs(r)),o="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var i=de.log10(Math.abs(e));o=e.toExponential(Math.floor(i)-Math.floor(a))}else{var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),o=e.toFixed(s)}else o="0";return o},logarithmic:function(e,t,n){var r=e/Math.pow(10,Math.floor(de.log10(e)));return 0===e?"0":1===r||2===r||5===r||0===t||t===n.length-1?e.toExponential():""}}},cn=de.valueOrDefault,fn=de.valueAtIndexOrDefault;function pn(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(e[t].label);return r}function hn(e,t,n){return de.isArray(t)?de.longestText(e,n,t):e.measureText(t).width}se._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:dn.formatters.values,minor:{},major:{}}});var mn=me.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var e=this.options.ticks;for(var t in!1===e.minor&&(e.minor={display:!1}),!1===e.major&&(e.major={display:!1}),e)"major"!==t&&"minor"!==t&&(void 0===e.minor[t]&&(e.minor[t]=e[t]),void 0===e.major[t]&&(e.major[t]=e[t]))},beforeUpdate:function(){de.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var r,a,o,i,s,l,u=this;for(u.beforeUpdate(),u.maxWidth=e,u.maxHeight=t,u.margins=de.extend({left:0,right:0,top:0,bottom:0},n),u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),s=u.buildTicks()||[],s=u.afterBuildTicks(s)||s,u.beforeTickToLabelConversion(),o=u.convertTicksToLabels(s)||u.ticks,u.afterTickToLabelConversion(),u.ticks=o,r=0,a=o.length;r<a;++r)i=o[r],(l=s[r])?l.label=i:s.push(l={label:i,major:!1});return u._ticks=s,u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){de.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){de.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){de.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){de.callback(this.options.beforeDataLimits,[this])},determineDataLimits:de.noop,afterDataLimits:function(){de.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){de.callback(this.options.beforeBuildTicks,[this])},buildTicks:de.noop,afterBuildTicks:function(e){var t=this;return de.isArray(e)&&e.length?de.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=de.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){de.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){de.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){de.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e=this,t=e.ctx,n=e.options.ticks,r=pn(e._ticks),a=de.options._parseFont(n);t.font=a.string;var o=n.minRotation||0;if(r.length&&e.options.display&&e.isHorizontal())for(var i,s=de.longestText(t,a.string,r,e.longestTextCache),l=s,u=e.getPixelForTick(1)-e.getPixelForTick(0)-6;l>u&&o<n.maxRotation;){var d=de.toRadians(o);if(i=Math.cos(d),Math.sin(d)*s>e.maxHeight){o--;break}o++,l=i*s}e.labelRotation=o},afterCalculateTickRotation:function(){de.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){de.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=pn(e._ticks),r=e.options,a=r.ticks,o=r.scaleLabel,i=r.gridLines,s=e._isVisible(),l=r.position,u=e.isHorizontal(),d=de.options._parseFont,c=d(a),f=r.gridLines.tickMarkLength;if(t.width=u?e.isFullWidth()?e.maxWidth-e.margins.left-e.margins.right:e.maxWidth:s&&i.drawTicks?f:0,t.height=u?s&&i.drawTicks?f:0:e.maxHeight,o.display&&s){var p=d(o),h=de.options.toPadding(o.padding),m=p.lineHeight+h.height;u?t.height+=m:t.width+=m}if(a.display&&s){var _=de.longestText(e.ctx,c.string,n,e.longestTextCache),g=de.numberOfLabelLines(n),y=.5*c.size,v=e.options.ticks.padding;if(e._maxLabelLines=g,e.longestLabelWidth=_,u){var b=de.toRadians(e.labelRotation),M=Math.cos(b),w=Math.sin(b)*_+c.lineHeight*g+y;t.height=Math.min(e.maxHeight,t.height+w+v),e.ctx.font=c.string;var T,L,k=hn(e.ctx,n[0],c.string),D=hn(e.ctx,n[n.length-1],c.string),x=e.getPixelForTick(0)-e.left,E=e.right-e.getPixelForTick(n.length-1);0!==e.labelRotation?(T="bottom"===l?M*k:M*y,L="bottom"===l?M*y:M*D):(T=k/2,L=D/2),e.paddingLeft=Math.max(T-x,0)+3,e.paddingRight=Math.max(L-E,0)+3}else a.mirror?_=0:_+=v+y,t.width=Math.min(e.maxWidth,t.width+_),e.paddingTop=c.size/2,e.paddingBottom=c.size/2}e.handleMargins(),e.width=t.width,e.height=t.height},handleMargins:function(){var e=this;e.margins&&(e.paddingLeft=Math.max(e.paddingLeft-e.margins.left,0),e.paddingTop=Math.max(e.paddingTop-e.margins.top,0),e.paddingRight=Math.max(e.paddingRight-e.margins.right,0),e.paddingBottom=Math.max(e.paddingBottom-e.margins.bottom,0))},afterFit:function(){de.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(de.isNullOrUndef(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},getLabelForIndex:de.noop,getPixelForValue:de.noop,getValueForPixel:de.noop,getPixelForTick:function(e){var t=this,n=t.options.offset;if(t.isHorizontal()){var r=(t.width-(t.paddingLeft+t.paddingRight))/Math.max(t._ticks.length-(n?0:1),1),a=r*e+t.paddingLeft;n&&(a+=r/2);var o=t.left+a;return o+=t.isFullWidth()?t.margins.left:0}var i=t.height-(t.paddingTop+t.paddingBottom);return t.top+e*(i/(t._ticks.length-1))},getPixelForDecimal:function(e){var t=this;if(t.isHorizontal()){var n=(t.width-(t.paddingLeft+t.paddingRight))*e+t.paddingLeft,r=t.left+n;return r+=t.isFullWidth()?t.margins.left:0}return t.top+e*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,r=this,a=r.isHorizontal(),o=r.options.ticks.minor,i=e.length,s=!1,l=o.maxTicksLimit,u=r._tickSize()*(i-1),d=a?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.PaddingBottom),c=[];for(u>d&&(s=1+Math.floor(u/d)),i>l&&(s=Math.max(s,1+Math.floor(i/l))),t=0;t<i;t++)n=e[t],s>1&&t%s>0&&delete n.label,c.push(n);return c},_tickSize:function(){var e=this,t=e.isHorizontal(),n=e.options.ticks.minor,r=de.toRadians(e.labelRotation),a=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),i=n.autoSkipPadding||0,s=e.longestLabelWidth+i||0,l=de.options._parseFont(n),u=e._maxLabelLines*l.lineHeight+i||0;return t?u*a>s*o?s/a:u/o:u*o<s*a?u/a:s/o},_isVisible:function(){var e,t,n,r=this.chart,a=this.options.display;if("auto"!==a)return!!a;for(e=0,t=r.data.datasets.length;e<t;++e)if(r.isDatasetVisible(e)&&((n=r.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},draw:function(e){var t=this,n=t.options;if(t._isVisible()){var r,a,o,i=t.chart,s=t.ctx,l=se.global.defaultFontColor,u=n.ticks.minor,d=n.ticks.major||u,c=n.gridLines,f=n.scaleLabel,p=n.position,h=0!==t.labelRotation,m=u.mirror,_=t.isHorizontal(),g=de.options._parseFont,y=u.display&&u.autoSkip?t._autoSkip(t.getTicks()):t.getTicks(),v=cn(u.fontColor,l),b=g(u),M=b.lineHeight,w=cn(d.fontColor,l),T=g(d),L=u.padding,k=u.labelOffset,D=c.drawTicks?c.tickMarkLength:0,x=cn(f.fontColor,l),E=g(f),S=de.options.toPadding(f.padding),Y=de.toRadians(t.labelRotation),O=[],C=c.drawBorder?fn(c.lineWidth,0,0):0,P=de._alignPixel;if("top"===p?(r=P(i,t.bottom,C),a=t.bottom-D,o=r-C/2):"bottom"===p?(r=P(i,t.top,C),a=r+C/2,o=t.top+D):"left"===p?(r=P(i,t.right,C),a=t.right-D,o=r-C/2):(r=P(i,t.left,C),a=r+C/2,o=t.left+D),de.each(y,function(r,s){if(!de.isNullOrUndef(r.label)){var l,u,d,f,g,y,v,b,w,T,x,E,S,I,j,R,H=r.label;s===t.zeroLineIndex&&n.offset===c.offsetGridLines?(l=c.zeroLineWidth,u=c.zeroLineColor,d=c.zeroLineBorderDash||[],f=c.zeroLineBorderDashOffset||0):(l=fn(c.lineWidth,s),u=fn(c.color,s),d=c.borderDash||[],f=c.borderDashOffset||0);var A=de.isArray(H)?H.length:1,N=function(e,t,n){var r=e.getPixelForTick(t);return n&&(1===e.getTicks().length?r-=e.isHorizontal()?Math.max(r-e.left,e.right-r):Math.max(r-e.top,e.bottom-r):r-=0===t?(e.getPixelForTick(1)-r)/2:(r-e.getPixelForTick(t-1))/2),r}(t,s,c.offsetGridLines);if(_){var F=D+L;N<t.left-1e-7&&(u="rgba(0,0,0,0)"),g=v=w=x=P(i,N,l),y=a,b=o,S=t.getPixelForTick(s)+k,"top"===p?(T=P(i,e.top,C)+C/2,E=e.bottom,j=((h?1:.5)-A)*M,R=h?"left":"center",I=t.bottom-F):(T=e.top,E=P(i,e.bottom,C)-C/2,j=(h?0:.5)*M,R=h?"right":"center",I=t.top+F)}else{var W=(m?0:D)+L;N<t.top-1e-7&&(u="rgba(0,0,0,0)"),g=a,v=o,y=b=T=E=P(i,N,l),I=t.getPixelForTick(s)+k,j=(1-A)*M/2,"left"===p?(w=P(i,e.left,C)+C/2,x=e.right,R=m?"left":"right",S=t.right-W):(w=e.left,x=P(i,e.right,C)-C/2,R=m?"right":"left",S=t.left+W)}O.push({tx1:g,ty1:y,tx2:v,ty2:b,x1:w,y1:T,x2:x,y2:E,labelX:S,labelY:I,glWidth:l,glColor:u,glBorderDash:d,glBorderDashOffset:f,rotation:-1*Y,label:H,major:r.major,textOffset:j,textAlign:R})}}),de.each(O,function(e){var t=e.glWidth,n=e.glColor;if(c.display&&t&&n&&(s.save(),s.lineWidth=t,s.strokeStyle=n,s.setLineDash&&(s.setLineDash(e.glBorderDash),s.lineDashOffset=e.glBorderDashOffset),s.beginPath(),c.drawTicks&&(s.moveTo(e.tx1,e.ty1),s.lineTo(e.tx2,e.ty2)),c.drawOnChartArea&&(s.moveTo(e.x1,e.y1),s.lineTo(e.x2,e.y2)),s.stroke(),s.restore()),u.display){s.save(),s.translate(e.labelX,e.labelY),s.rotate(e.rotation),s.font=e.major?T.string:b.string,s.fillStyle=e.major?w:v,s.textBaseline="middle",s.textAlign=e.textAlign;var r=e.label,a=e.textOffset;if(de.isArray(r))for(var o=0;o<r.length;++o)s.fillText(""+r[o],0,a),a+=M;else s.fillText(r,0,a);s.restore()}}),f.display){var I,j,R=0,H=E.lineHeight/2;if(_)I=t.left+(t.right-t.left)/2,j="bottom"===p?t.bottom-H-S.bottom:t.top+H+S.top;else{var A="left"===p;I=A?t.left+H+S.top:t.right-H-S.top,j=t.top+(t.bottom-t.top)/2,R=A?-.5*Math.PI:.5*Math.PI}s.save(),s.translate(I,j),s.rotate(R),s.textAlign="center",s.textBaseline="middle",s.fillStyle=x,s.font=E.string,s.fillText(f.labelString,0,0),s.restore()}if(C){var N,F,W,U,z=C,B=fn(c.lineWidth,y.length-1,0);_?(N=P(i,t.left,z)-z/2,F=P(i,t.right,B)+B/2,W=U=r):(W=P(i,t.top,z)-z/2,U=P(i,t.bottom,B)+B/2,N=F=r),s.lineWidth=C,s.strokeStyle=fn(c.color,0),s.beginPath(),s.moveTo(N,W),s.lineTo(F,U),s.stroke()}}}}),_n=mn.extend({getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels},determineDataLimits:function(){var e,t=this,n=t.getLabels();t.minIndex=0,t.maxIndex=n.length-1,void 0!==t.options.ticks.min&&(e=n.indexOf(t.options.ticks.min),t.minIndex=-1!==e?e:t.minIndex),void 0!==t.options.ticks.max&&(e=n.indexOf(t.options.ticks.max),t.maxIndex=-1!==e?e:t.maxIndex),t.min=n[t.minIndex],t.max=n[t.maxIndex]},buildTicks:function(){var e=this,t=e.getLabels();e.ticks=0===e.minIndex&&e.maxIndex===t.length-1?t:t.slice(e.minIndex,e.maxIndex+1)},getLabelForIndex:function(e,t){var n=this,r=n.chart;return r.getDatasetMeta(t).controller._getValueScaleId()===n.id?n.getRightValue(r.data.datasets[t].data[e]):n.ticks[e-n.minIndex]},getPixelForValue:function(e,t){var n,r=this,a=r.options.offset,o=Math.max(r.maxIndex+1-r.minIndex-(a?0:1),1);if(null!=e&&(n=r.isHorizontal()?e.x:e.y),void 0!==n||void 0!==e&&isNaN(t)){e=n||e;var i=r.getLabels().indexOf(e);t=-1!==i?i:t}if(r.isHorizontal()){var s=r.width/o,l=s*(t-r.minIndex);return a&&(l+=s/2),r.left+l}var u=r.height/o,d=u*(t-r.minIndex);return a&&(d+=u/2),r.top+d},getPixelForTick:function(e){return this.getPixelForValue(this.ticks[e],e+this.minIndex,null)},getValueForPixel:function(e){var t=this,n=t.options.offset,r=Math.max(t._ticks.length-(n?0:1),1),a=t.isHorizontal(),o=(a?t.width:t.height)/r;return e-=a?t.left:t.top,n&&(e-=o/2),(e<=0?0:Math.round(e/o))+t.minIndex},getBasePixel:function(){return this.bottom}}),gn={position:"bottom"};_n._defaults=gn;var yn=de.noop,vn=de.isNullOrUndef,bn=mn.extend({getRightValue:function(e){return"string"==typeof e?+e:mn.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=de.sign(e.min),r=de.sign(e.max);n<0&&r<0?e.max=0:n>0&&r>0&&(e.min=0)}var a=void 0!==t.min||void 0!==t.suggestedMin,o=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(null===e.min?e.min=t.suggestedMin:e.min=Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(null===e.max?e.max=t.suggestedMax:e.max=Math.max(e.max,t.suggestedMax)),a!==o&&e.min>=e.max&&(a?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,r=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:yn,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:de.valueOrDefault(t.fixedStepSize,t.stepSize)},a=e.ticks=function(e,t){var n,r,a,o,i=[],s=e.stepSize,l=s||1,u=e.maxTicks-1,d=e.min,c=e.max,f=e.precision,p=t.min,h=t.max,m=de.niceNum((h-p)/u/l)*l;if(m<1e-14&&vn(d)&&vn(c))return[p,h];(o=Math.ceil(h/m)-Math.floor(p/m))>u&&(m=de.niceNum(o*m/u/l)*l),s||vn(f)?n=Math.pow(10,de._decimalPlaces(m)):(n=Math.pow(10,f),m=Math.ceil(m*n)/n),r=Math.floor(p/m)*m,a=Math.ceil(h/m)*m,s&&(!vn(d)&&de.almostWhole(d/m,m/1e3)&&(r=d),!vn(c)&&de.almostWhole(c/m,m/1e3)&&(a=c)),o=(a-r)/m,o=de.almostEquals(o,Math.round(o),m/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,a=Math.round(a*n)/n,i.push(vn(d)?r:d);for(var _=1;_<o;++_)i.push(Math.round((r+_*m)*n)/n);return i.push(vn(c)?a:c),i}(r,e);e.handleDirectionalChanges(),e.max=de.max(a),e.min=de.min(a),t.reverse?(a.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),mn.prototype.convertTicksToLabels.call(e)}}),Mn={position:"left",ticks:{callback:dn.formatters.linear}},wn=bn.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,a=e.isHorizontal();function o(t){return a?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null;var i=t.stacked;if(void 0===i&&de.each(r,function(e,t){if(!i){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&o(r)&&void 0!==r.stack&&(i=!0)}}),t.stacked||i){var s={};de.each(r,function(r,a){var i=n.getDatasetMeta(a),l=[i.type,void 0===t.stacked&&void 0===i.stack?a:"",i.stack].join(".");void 0===s[l]&&(s[l]={positiveValues:[],negativeValues:[]});var u=s[l].positiveValues,d=s[l].negativeValues;n.isDatasetVisible(a)&&o(i)&&de.each(r.data,function(n,r){var a=+e.getRightValue(n);isNaN(a)||i.data[r].hidden||(u[r]=u[r]||0,d[r]=d[r]||0,t.relativePoints?u[r]=100:a<0?d[r]+=a:u[r]+=a)})}),de.each(s,function(t){var n=t.positiveValues.concat(t.negativeValues),r=de.min(n),a=de.max(n);e.min=null===e.min?r:Math.min(e.min,r),e.max=null===e.max?a:Math.max(e.max,a)})}else de.each(r,function(t,r){var a=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(a)&&de.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||a.data[n].hidden||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r))})});e.min=isFinite(e.min)&&!isNaN(e.min)?e.min:0,e.max=isFinite(e.max)&&!isNaN(e.max)?e.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=de.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){var t=this,n=t.start,r=+t.getRightValue(e),a=t.end-n;return t.isHorizontal()?t.left+t.width/a*(r-n):t.bottom-t.height/a*(r-n)},getValueForPixel:function(e){var t=this,n=t.isHorizontal(),r=n?t.width:t.height,a=(n?e-t.left:t.bottom-e)/r;return t.start+(t.end-t.start)*a},getPixelForTick:function(e){return this.getPixelForValue(this.ticksAsNumbers[e])}}),Tn=Mn;wn._defaults=Tn;var Ln=de.valueOrDefault,kn={position:"left",ticks:{callback:dn.formatters.logarithmic}};function Dn(e,t){return de.isFinite(e)&&e>=0?e:t}var xn=mn.extend({determineDataLimits:function(){var e=this,t=e.options,n=e.chart,r=n.data.datasets,a=e.isHorizontal();function o(t){return a?t.xAxisID===e.id:t.yAxisID===e.id}e.min=null,e.max=null,e.minNotZero=null;var i=t.stacked;if(void 0===i&&de.each(r,function(e,t){if(!i){var r=n.getDatasetMeta(t);n.isDatasetVisible(t)&&o(r)&&void 0!==r.stack&&(i=!0)}}),t.stacked||i){var s={};de.each(r,function(r,a){var i=n.getDatasetMeta(a),l=[i.type,void 0===t.stacked&&void 0===i.stack?a:"",i.stack].join(".");n.isDatasetVisible(a)&&o(i)&&(void 0===s[l]&&(s[l]=[]),de.each(r.data,function(t,n){var r=s[l],a=+e.getRightValue(t);isNaN(a)||i.data[n].hidden||a<0||(r[n]=r[n]||0,r[n]+=a)}))}),de.each(s,function(t){if(t.length>0){var n=de.min(t),r=de.max(t);e.min=null===e.min?n:Math.min(e.min,n),e.max=null===e.max?r:Math.max(e.max,r)}})}else de.each(r,function(t,r){var a=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(a)&&de.each(t.data,function(t,n){var r=+e.getRightValue(t);isNaN(r)||a.data[n].hidden||r<0||(null===e.min?e.min=r:r<e.min&&(e.min=r),null===e.max?e.max=r:r>e.max&&(e.max=r),0!==r&&(null===e.minNotZero||r<e.minNotZero)&&(e.minNotZero=r))})});this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=Dn(t.min,e.min),e.max=Dn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(de.log10(e.min))-1),e.max=Math.pow(10,Math.floor(de.log10(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(de.log10(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(de.log10(e.min))+1):10),null===e.minNotZero&&(e.min>0?e.minNotZero=e.min:e.max<1?e.minNotZero=Math.pow(10,Math.floor(de.log10(e.max))):e.minNotZero=1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),r={min:Dn(t.min),max:Dn(t.max)},a=e.ticks=function(e,t){var n,r,a=[],o=Ln(e.min,Math.pow(10,Math.floor(de.log10(t.min)))),i=Math.floor(de.log10(t.max)),s=Math.ceil(t.max/Math.pow(10,i));0===o?(n=Math.floor(de.log10(t.minNotZero)),r=Math.floor(t.minNotZero/Math.pow(10,n)),a.push(o),o=r*Math.pow(10,n)):(n=Math.floor(de.log10(o)),r=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{a.push(o),10==++r&&(r=1,l=++n>=0?1:l),o=Math.round(r*Math.pow(10,n)*l)/l}while(n<i||n===i&&r<s);var u=Ln(e.max,o);return a.push(u),a}(r,e);e.max=de.max(a),e.min=de.min(a),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&a.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),mn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){return this.getPixelForValue(this.tickValues[e])},_getFirstTickValue:function(e){var t=Math.floor(de.log10(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},getPixelForValue:function(e){var t,n,r,a,o,i=this,s=i.options.ticks,l=s.reverse,u=de.log10,d=i._getFirstTickValue(i.minNotZero),c=0;return e=+i.getRightValue(e),l?(r=i.end,a=i.start,o=-1):(r=i.start,a=i.end,o=1),i.isHorizontal()?(t=i.width,n=l?i.right:i.left):(t=i.height,o*=-1,n=l?i.top:i.bottom),e!==r&&(0===r&&(t-=c=Ln(s.fontSize,se.global.defaultFontSize),r=d),0!==e&&(c+=t/(u(a)-u(r))*(u(e)-u(r))),n+=o*c),n},getValueForPixel:function(e){var t,n,r,a,o=this,i=o.options.ticks,s=i.reverse,l=de.log10,u=o._getFirstTickValue(o.minNotZero);if(s?(n=o.end,r=o.start):(n=o.start,r=o.end),o.isHorizontal()?(t=o.width,a=s?o.right-e:e-o.left):(t=o.height,a=s?e-o.top:o.bottom-e),a!==n){if(0===n){var d=Ln(i.fontSize,se.global.defaultFontSize);a-=d,t-=d,n=u}a*=l(r)-l(n),a/=t,a=Math.pow(10,l(n)+a)}return a}}),En=kn;xn._defaults=En;var Sn=de.valueOrDefault,Yn=de.valueAtIndexOrDefault,On=de.options.resolve,Cn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:dn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function Pn(e){var t=e.options;return t.angleLines.display||t.pointLabels.display?e.chart.data.labels.length:0}function In(e){var t=e.ticks;return t.display&&e.display?Sn(t.fontSize,se.global.defaultFontSize)+2*t.backdropPaddingY:0}function jn(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function Rn(e){return 0===e||180===e?"center":e<180?"left":"right"}function Hn(e,t,n,r){var a,o,i=n.y+r/2;if(de.isArray(t))for(a=0,o=t.length;a<o;++a)e.fillText(t[a],n.x,i),i+=r;else e.fillText(t,n.x,i)}function An(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Nn(e){return de.isNumber(e)?e:0}var Fn=bn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=In(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;de.each(t.data.datasets,function(a,o){if(t.isDatasetVisible(o)){var i=t.getDatasetMeta(o);de.each(a.data,function(t,a){var o=+e.getRightValue(t);isNaN(o)||i.data[a].hidden||(n=Math.min(o,n),r=Math.max(o,r))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=r===Number.NEGATIVE_INFINITY?0:r,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/In(this.options))},convertTicksToLabels:function(){var e=this;bn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,r,a=de.options._parseFont(e.options.pointLabels),o={l:0,r:e.width,t:0,b:e.height-e.paddingTop},i={};e.ctx.font=a.string,e._pointLabelSizes=[];var s,l,u,d=Pn(e);for(t=0;t<d;t++){r=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=a.lineHeight,u=e.pointLabels[t]||"",n=de.isArray(u)?{w:de.longestText(s,s.font,u),h:u.length*l}:{w:s.measureText(u).width,h:l},e._pointLabelSizes[t]=n;var c=e.getIndexAngle(t),f=de.toDegrees(c)%360,p=jn(f,r.x,n.w,0,180),h=jn(f,r.y,n.h,90,270);p.start<o.l&&(o.l=p.start,i.l=c),p.end>o.r&&(o.r=p.end,i.r=c),h.start<o.t&&(o.t=h.start,i.t=c),h.end>o.b&&(o.b=h.end,i.b=c)}e.setReductions(e.drawingArea,o,i)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var r=this,a=t.l/Math.sin(n.l),o=Math.max(t.r-r.width,0)/Math.sin(n.r),i=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);a=Nn(a),o=Nn(o),i=Nn(i),s=Nn(s),r.drawingArea=Math.min(Math.floor(e-(a+o)/2),Math.floor(e-(i+s)/2)),r.setCenterPoint(a,o,i,s)},setCenterPoint:function(e,t,n,r){var a=this,o=a.width-t-a.drawingArea,i=e+a.drawingArea,s=n+a.drawingArea,l=a.height-a.paddingTop-r-a.drawingArea;a.xCenter=Math.floor((i+o)/2+a.left),a.yCenter=Math.floor((s+l)/2+a.top+a.paddingTop)},getIndexAngle:function(e){return e*(2*Math.PI/Pn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(null===e)return 0;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var e=this.min,t=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0)},draw:function(){var e=this,t=e.options,n=t.gridLines,r=t.ticks;if(t.display){var a=e.ctx,o=this.getIndexAngle(0),i=de.options._parseFont(r);(t.angleLines.display||t.pointLabels.display)&&function(e){var t=e.ctx,n=e.options,r=n.angleLines,a=n.gridLines,o=n.pointLabels,i=Sn(r.lineWidth,a.lineWidth),s=Sn(r.color,a.color),l=In(n);t.save(),t.lineWidth=i,t.strokeStyle=s,t.setLineDash&&(t.setLineDash(On([r.borderDash,a.borderDash,[]])),t.lineDashOffset=On([r.borderDashOffset,a.borderDashOffset,0]));var u=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),d=de.options._parseFont(o);t.font=d.string,t.textBaseline="middle";for(var c=Pn(e)-1;c>=0;c--){if(r.display&&i&&s){var f=e.getPointPosition(c,u);t.beginPath(),t.moveTo(e.xCenter,e.yCenter),t.lineTo(f.x,f.y),t.stroke()}if(o.display){var p=0===c?l/2:0,h=e.getPointPosition(c,u+p+5),m=Yn(o.fontColor,c,se.global.defaultFontColor);t.fillStyle=m;var _=e.getIndexAngle(c),g=de.toDegrees(_);t.textAlign=Rn(g),An(g,e._pointLabelSizes[c],h),Hn(t,e.pointLabels[c]||"",h,d.lineHeight)}}t.restore()}(e),de.each(e.ticks,function(t,s){if(s>0||r.reverse){var l=e.getDistanceFromCenterForValue(e.ticksAsNumbers[s]);if(n.display&&0!==s&&function(e,t,n,r){var a,o=e.ctx,i=t.circular,s=Pn(e),l=Yn(t.color,r-1),u=Yn(t.lineWidth,r-1);if((i||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(t.borderDash||[]),o.lineDashOffset=t.borderDashOffset||0),o.beginPath(),i)o.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{a=e.getPointPosition(0,n),o.moveTo(a.x,a.y);for(var d=1;d<s;d++)a=e.getPointPosition(d,n),o.lineTo(a.x,a.y)}o.closePath(),o.stroke(),o.restore()}}(e,n,l,s),r.display){var u=Sn(r.fontColor,se.global.defaultFontColor);if(a.font=i.string,a.save(),a.translate(e.xCenter,e.yCenter),a.rotate(o),r.showLabelBackdrop){var d=a.measureText(t).width;a.fillStyle=r.backdropColor,a.fillRect(-d/2-r.backdropPaddingX,-l-i.size/2-r.backdropPaddingY,d+2*r.backdropPaddingX,i.size+2*r.backdropPaddingY)}a.textAlign="center",a.textBaseline="middle",a.fillStyle=u,a.fillText(t,0,-l),a.restore()}}})}}}),Wn=Cn;Fn._defaults=Wn;var Un=de.valueOrDefault,zn=Number.MIN_SAFE_INTEGER||-9007199254740991,Bn=Number.MAX_SAFE_INTEGER||9007199254740991,Vn={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,15,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,15,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},qn=Object.keys(Vn);function Gn(e,t){return e-t}function Jn(e){var t,n,r,a={},o=[];for(t=0,n=e.length;t<n;++t)a[r=e[t]]||(a[r]=!0,o.push(r));return o}function Xn(e,t,n,r){var a=function(e,t,n){for(var r,a,o,i=0,s=e.length-1;i>=0&&i<=s;){if(a=e[(r=i+s>>1)-1]||null,o=e[r],!a)return{lo:null,hi:o};if(o[t]<n)i=r+1;else{if(!(a[t]>n))return{lo:a,hi:o};s=r-1}}return{lo:o,hi:null}}(e,t,n),o=a.lo?a.hi?a.lo:e[e.length-2]:e[0],i=a.lo?a.hi?a.hi:e[e.length-1]:e[1],s=i[t]-o[t],l=s?(n-o[t])/s:0,u=(i[r]-o[r])*l;return o[r]+u}function Qn(e,t){var n=e._adapter,r=e.options.time,a=r.parser,o=a||r.format,i=t;return"function"==typeof a&&(i=a(i)),de.isFinite(i)||(i="string"==typeof o?n.parse(i,o):n.parse(i)),null!==i?+i:(a||"function"!=typeof o||(i=o(t),de.isFinite(i)||(i=n.parse(i))),i)}function Kn(e,t){if(de.isNullOrUndef(t))return null;var n=e.options.time,r=Qn(e,e.getRightValue(t));return null===r?r:(n.round&&(r=+e._adapter.startOf(r,n.round)),r)}function Zn(e){for(var t=qn.indexOf(e)+1,n=qn.length;t<n;++t)if(Vn[qn[t]].common)return qn[t]}function $n(e,t,n,r){var a,o=e._adapter,i=e.options,s=i.time,l=s.unit||function(e,t,n,r){var a,o,i,s=qn.length;for(a=qn.indexOf(e);a<s-1;++a)if(i=(o=Vn[qn[a]]).steps?o.steps[o.steps.length-1]:Bn,o.common&&Math.ceil((n-t)/(i*o.size))<=r)return qn[a];return qn[s-1]}(s.minUnit,t,n,r),u=Zn(l),d=Un(s.stepSize,s.unitStepSize),c="week"===l&&s.isoWeekday,f=i.ticks.major.enabled,p=Vn[l],h=t,m=n,_=[];for(d||(d=function(e,t,n,r){var a,o,i,s=t-e,l=Vn[n],u=l.size,d=l.steps;if(!d)return Math.ceil(s/(r*u));for(a=0,o=d.length;a<o&&(i=d[a],!(Math.ceil(s/(u*i))<=r));++a);return i}(t,n,l,r)),c&&(h=+o.startOf(h,"isoWeek",c),m=+o.startOf(m,"isoWeek",c)),h=+o.startOf(h,c?"day":l),(m=+o.startOf(m,c?"day":l))<n&&(m=+o.add(m,1,l)),a=h,f&&u&&!c&&!s.round&&(a=+o.startOf(a,u),a=+o.add(a,~~((h-a)/(p.size*d))*d,l));a<m;a=+o.add(a,d,l))_.push(+a);return _.push(+a),_}var er=mn.extend({initialize:function(){this.mergeTicksOptions(),mn.prototype.initialize.call(this)},update:function(){var e=this,t=e.options,n=t.time||(t.time={}),r=e._adapter=new un._date(t.adapters.date);return n.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),de.mergeIf(n.displayFormats,r.formats()),mn.prototype.update.apply(e,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),mn.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,r,a,o,i=this,s=i.chart,l=i._adapter,u=i.options.time,d=u.unit||"day",c=Bn,f=zn,p=[],h=[],m=[],_=s.data.labels||[];for(e=0,n=_.length;e<n;++e)m.push(Kn(i,_[e]));for(e=0,n=(s.data.datasets||[]).length;e<n;++e)if(s.isDatasetVisible(e))if(a=s.data.datasets[e].data,de.isObject(a[0]))for(h[e]=[],t=0,r=a.length;t<r;++t)o=Kn(i,a[t]),p.push(o),h[e][t]=o;else{for(t=0,r=m.length;t<r;++t)p.push(m[t]);h[e]=m.slice(0)}else h[e]=[];m.length&&(m=Jn(m).sort(Gn),c=Math.min(c,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=Jn(p).sort(Gn),c=Math.min(c,p[0]),f=Math.max(f,p[p.length-1])),c=Kn(i,u.min)||c,f=Kn(i,u.max)||f,c=c===Bn?+l.startOf(Date.now(),d):c,f=f===zn?+l.endOf(Date.now(),d)+1:f,i.min=Math.min(c,f),i.max=Math.max(c+1,f),i._horizontal=i.isHorizontal(),i._table=[],i._timestamps={data:p,datasets:h,labels:m}},buildTicks:function(){var e,t,n,r=this,a=r.min,o=r.max,i=r.options,s=i.time,l=[],u=[];switch(i.ticks.source){case"data":l=r._timestamps.data;break;case"labels":l=r._timestamps.labels;break;case"auto":default:l=$n(r,a,o,r.getLabelCapacity(a))}for("ticks"===i.bounds&&l.length&&(a=l[0],o=l[l.length-1]),a=Kn(r,s.min)||a,o=Kn(r,s.max)||o,e=0,t=l.length;e<t;++e)(n=l[e])>=a&&n<=o&&u.push(n);return r.min=a,r.max=o,r._unit=s.unit||function(e,t,n,r,a){var o,i;for(o=qn.length-1;o>=qn.indexOf(n);o--)if(i=qn[o],Vn[i].common&&e._adapter.diff(a,r,i)>=t.length)return i;return qn[n?qn.indexOf(n):0]}(r,u,s.minUnit,r.min,r.max),r._majorUnit=Zn(r._unit),r._table=function(e,t,n,r){if("linear"===r||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var a,o,i,s,l,u=[],d=[t];for(a=0,o=e.length;a<o;++a)(s=e[a])>t&&s<n&&d.push(s);for(d.push(n),a=0,o=d.length;a<o;++a)l=d[a+1],i=d[a-1],s=d[a],void 0!==i&&void 0!==l&&Math.round((l+i)/2)===s||u.push({time:s,pos:a/(o-1)});return u}(r._timestamps.data,a,o,i.distribution),r._offsets=function(e,t,n,r,a){var o,i,s=0,l=0;return a.offset&&t.length&&(a.time.min||(o=Xn(e,"time",t[0],"pos"),s=1===t.length?1-o:(Xn(e,"time",t[1],"pos")-o)/2),a.time.max||(i=Xn(e,"time",t[t.length-1],"pos"),l=1===t.length?i:(i-Xn(e,"time",t[t.length-2],"pos"))/2)),{start:s,end:l}}(r._table,u,0,0,i),i.ticks.reverse&&u.reverse(),function(e,t,n){var r,a,o,i,s=[];for(r=0,a=t.length;r<a;++r)o=t[r],i=!!n&&o===+e._adapter.startOf(o,n),s.push({value:o,major:i});return s}(r,u,r._majorUnit)},getLabelForIndex:function(e,t){var n=this,r=n._adapter,a=n.chart.data,o=n.options.time,i=a.labels&&e<a.labels.length?a.labels[e]:"",s=a.datasets[t].data[e];return de.isObject(s)&&(i=n.getRightValue(s)),o.tooltipFormat?r.format(Qn(n,i),o.tooltipFormat):"string"==typeof i?i:r.format(Qn(n,i),o.displayFormats.datetime)},tickFormatFunction:function(e,t,n,r){var a=this._adapter,o=this.options,i=o.time.displayFormats,s=i[this._unit],l=this._majorUnit,u=i[l],d=+a.startOf(e,l),c=o.ticks.major,f=c.enabled&&l&&u&&e===d,p=a.format(e,r||(f?u:s)),h=f?c:o.ticks.minor,m=Un(h.callback,h.userCallback);return m?m(p,t,n):p},convertTicksToLabels:function(e){var t,n,r=[];for(t=0,n=e.length;t<n;++t)r.push(this.tickFormatFunction(e[t].value,t,e));return r},getPixelForOffset:function(e){var t=this,n=t.options.ticks.reverse,r=t._horizontal?t.width:t.height,a=t._horizontal?n?t.right:t.left:n?t.bottom:t.top,o=Xn(t._table,"time",e,"pos"),i=r*(t._offsets.start+o)/(t._offsets.start+1+t._offsets.end);return n?a-i:a+i},getPixelForValue:function(e,t,n){var r=null;if(void 0!==t&&void 0!==n&&(r=this._timestamps.datasets[n][t]),null===r&&(r=Kn(this,e)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this,n=t._horizontal?t.width:t.height,r=t._horizontal?t.left:t.top,a=(n?(e-r)/n:0)*(t._offsets.start+1+t._offsets.start)-t._offsets.end,o=Xn(t._table,"pos",a,"time");return t._adapter._create(o)},getLabelWidth:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=de.toRadians(t.maxRotation),a=Math.cos(r),o=Math.sin(r);return n*a+Un(t.fontSize,se.global.defaultFontSize)*o},getLabelCapacity:function(e){var t=this,n=t.options.time.displayFormats.millisecond,r=t.tickFormatFunction(e,0,[],n),a=t.getLabelWidth(r),o=t.isHorizontal()?t.width:t.height,i=Math.floor(o/a);return i>0?i:1}}),tr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};er._defaults=tr;var nr={category:_n,linear:wn,logarithmic:xn,radialLinear:Fn,time:er},rr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};un._date.override("function"==typeof e?{_id:"moment",formats:function(){return rr},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,r){return e(t).add(n,r).valueOf()},diff:function(t,n,r){return e.duration(e(t).diff(e(n))).as(r)},startOf:function(t,n,r){return t=e(t),"isoWeek"===n?t.isoWeekday(r).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),se._set("global",{plugins:{filler:{propagate:!0}}});var ar={dataset:function(e){var t=e.fill,n=e.chart,r=n.getDatasetMeta(t),a=r&&n.isDatasetVisible(t)&&r.dataset._children||[],o=a.length||0;return o?function(e,t){return t<o&&a[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,r=t?t.y:null;return function(e){return{x:null===n?e.x:n,y:null===r?e.y:r}}}};function or(e,t,n){var r,a=e._model||{},o=a.fill;if(void 0===o&&(o=!!a.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=t+r),!(r===t||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function ir(e){var t,n=e.el._model||{},r=e.el._scale||{},a=e.fill,o=null;if(isFinite(a))return null;if("start"===a?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===a?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),null!=o){if(void 0!==o.x&&void 0!==o.y)return o;if(de.isFinite(o))return{x:(t=r.isHorizontal())?o:null,y:t?null:o}}return null}function sr(e,t,n){var r,a=e[t].fill,o=[t];if(!n)return a;for(;!1!==a&&-1===o.indexOf(a);){if(!isFinite(a))return a;if(!(r=e[a]))return!1;if(r.visible)return a;o.push(a),a=r.fill}return!1}function lr(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),ar[n](e))}function ur(e){return e&&!e.skip}function dr(e,t,n,r,a){var o;if(r&&a){for(e.moveTo(t[0].x,t[0].y),o=1;o<r;++o)de.canvas.lineTo(e,t[o-1],t[o]);for(e.lineTo(n[a-1].x,n[a-1].y),o=a-1;o>0;--o)de.canvas.lineTo(e,n[o],n[o-1],!0)}}var cr={id:"filler",afterDatasetsUpdate:function(e,t){var n,r,a,o,i=(e.data.datasets||[]).length,s=t.propagate,l=[];for(r=0;r<i;++r)o=null,(a=(n=e.getDatasetMeta(r)).dataset)&&a._model&&a instanceof Ne.Line&&(o={visible:e.isDatasetVisible(r),fill:or(a,r,i),chart:e,el:a}),n.$filler=o,l.push(o);for(r=0;r<i;++r)(o=l[r])&&(o.fill=sr(l,r,s),o.boundary=ir(o),o.mapper=lr(o))},beforeDatasetDraw:function(e,t){var n=t.meta.$filler;if(n){var r=e.ctx,a=n.el,o=a._view,i=a._children||[],s=n.mapper,l=o.backgroundColor||se.global.defaultColor;s&&l&&i.length&&(de.canvas.clipArea(r,e.chartArea),function(e,t,n,r,a,o){var i,s,l,u,d,c,f,p=t.length,h=r.spanGaps,m=[],_=[],g=0,y=0;for(e.beginPath(),i=0,s=p+!!o;i<s;++i)d=n(u=t[l=i%p]._view,l,r),c=ur(u),f=ur(d),c&&f?(g=m.push(u),y=_.push(d)):g&&y&&(h?(c&&m.push(u),f&&_.push(d)):(dr(e,m,_,g,y),g=y=0,m=[],_=[]));dr(e,m,_,g,y),e.closePath(),e.fillStyle=a,e.fill()}(r,i,s,o,l,a._loop),de.canvas.unclipArea(r))}}},fr=de.noop,pr=de.valueOrDefault;function hr(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}se._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,r=this.chart,a=r.getDatasetMeta(n);a.hidden=null===a.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data;return de.isArray(t.datasets)?t.datasets.map(function(t,n){return{text:t.label,fillStyle:de.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!e.isDatasetVisible(n),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:n}},this):[]}}},legendCallback:function(e){var t=[];t.push('<ul class="'+e.id+'-legend">');for(var n=0;n<e.data.datasets.length;n++)t.push('<li><span style="background-color:'+e.data.datasets[n].backgroundColor+'"></span>'),e.data.datasets[n].label&&t.push(e.data.datasets[n].label),t.push("</li>");return t.push("</ul>"),t.join("")}});var mr=me.extend({initialize:function(e){de.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:fr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:fr,beforeSetDimensions:fr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:fr,beforeBuildLabels:fr,buildLabels:function(){var e=this,t=e.options.labels||{},n=de.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:fr,beforeFit:fr,fit:function(){var e=this,t=e.options,n=t.labels,r=t.display,a=e.ctx,o=de.options._parseFont(n),i=o.size,s=e.legendHitBoxes=[],l=e.minSize,u=e.isHorizontal();if(u?(l.width=e.maxWidth,l.height=r?10:0):(l.width=r?10:0,l.height=e.maxHeight),r)if(a.font=o.string,u){var d=e.lineWidths=[0],c=0;a.textAlign="left",a.textBaseline="top",de.each(e.legendItems,function(e,t){var r=hr(n,i)+i/2+a.measureText(e.text).width;(0===t||d[d.length-1]+r+n.padding>l.width)&&(c+=i+n.padding,d[d.length-(t>0?0:1)]=n.padding),s[t]={left:0,top:0,width:r,height:i},d[d.length-1]+=r+n.padding}),l.height+=c}else{var f=n.padding,p=e.columnWidths=[],h=n.padding,m=0,_=0,g=i+f;de.each(e.legendItems,function(e,t){var r=hr(n,i)+i/2+a.measureText(e.text).width;t>0&&_+g>l.height-f&&(h+=m+n.padding,p.push(m),m=0,_=0),m=Math.max(m,r),_+=g,s[t]={left:0,top:0,width:r,height:i}}),h+=m,p.push(m),l.width+=h}e.width=l.width,e.height=l.height},afterFit:fr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,r=se.global,a=r.defaultColor,o=r.elements.line,i=e.width,s=e.lineWidths;if(t.display){var l,u=e.ctx,d=pr(n.fontColor,r.defaultFontColor),c=de.options._parseFont(n),f=c.size;u.textAlign="left",u.textBaseline="middle",u.lineWidth=.5,u.strokeStyle=d,u.fillStyle=d,u.font=c.string;var p=hr(n,f),h=e.legendHitBoxes,m=e.isHorizontal();l=m?{x:e.left+(i-s[0])/2+n.padding,y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+n.padding,line:0};var _=f+n.padding;de.each(e.legendItems,function(r,d){var c=u.measureText(r.text).width,g=p+f/2+c,y=l.x,v=l.y;m?d>0&&y+g+n.padding>e.left+e.minSize.width&&(v=l.y+=_,l.line++,y=l.x=e.left+(i-s[l.line])/2+n.padding):d>0&&v+_>e.top+e.minSize.height&&(y=l.x=y+e.columnWidths[l.line]+n.padding,v=l.y=e.top+n.padding,l.line++),function(e,n,r){if(!(isNaN(p)||p<=0)){u.save();var i=pr(r.lineWidth,o.borderWidth);if(u.fillStyle=pr(r.fillStyle,a),u.lineCap=pr(r.lineCap,o.borderCapStyle),u.lineDashOffset=pr(r.lineDashOffset,o.borderDashOffset),u.lineJoin=pr(r.lineJoin,o.borderJoinStyle),u.lineWidth=i,u.strokeStyle=pr(r.strokeStyle,a),u.setLineDash&&u.setLineDash(pr(r.lineDash,o.borderDash)),t.labels&&t.labels.usePointStyle){var s=p*Math.SQRT2/2,l=e+p/2,d=n+f/2;de.canvas.drawPoint(u,r.pointStyle,s,l,d)}else 0!==i&&u.strokeRect(e,n,p,f),u.fillRect(e,n,p,f);u.restore()}}(y,v,r),h[d].left=y,h[d].top=v,function(e,t,n,r){var a=f/2,o=p+a+e,i=t+a;u.fillText(n.text,o,i),n.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(o,i),u.lineTo(o+r,i),u.stroke())}(y,v,r,c),m?l.x+=g+n.padding:l.y+=_})}},_getLegendItemAt:function(e,t){var n,r,a,o=this;if(e>=o.left&&e<=o.right&&t>=o.top&&t<=o.bottom)for(a=o.legendHitBoxes,n=0;n<a.length;++n)if(e>=(r=a[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(e){var t,n=this,r=n.options,a="mouseup"===e.type?"click":e.type;if("mousemove"===a){if(!r.onHover&&!r.onLeave)return}else{if("click"!==a)return;if(!r.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===a?t&&r.onClick&&r.onClick.call(n,e.native,t):(r.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),r.onHover&&t&&r.onHover.call(n,e.native,t))}});function _r(e,t){var n=new mr({ctx:e.ctx,options:t,chart:e});wt.configure(e,n,t),wt.addBox(e,n),e.legend=n}var gr={id:"legend",_element:mr,beforeInit:function(e){var t=e.options.legend;t&&_r(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(de.mergeIf(t,se.global.legend),n?(wt.configure(e,n,t),n.options=t):_r(e,t)):n&&(wt.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},yr=de.noop;se._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var vr=me.extend({initialize:function(e){de.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:yr,update:function(e,t,n){var r=this;return r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:yr,beforeSetDimensions:yr,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:yr,beforeBuildLabels:yr,buildLabels:yr,afterBuildLabels:yr,beforeFit:yr,fit:function(){var e=this,t=e.options,n=t.display,r=e.minSize,a=de.isArray(t.text)?t.text.length:1,o=de.options._parseFont(t),i=n?a*o.lineHeight+2*t.padding:0;e.isHorizontal()?(r.width=e.maxWidth,r.height=i):(r.width=i,r.height=e.maxHeight),e.width=r.width,e.height=r.height},afterFit:yr,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r,a,o,i=de.options._parseFont(n),s=i.lineHeight,l=s/2+n.padding,u=0,d=e.top,c=e.left,f=e.bottom,p=e.right;t.fillStyle=de.valueOrDefault(n.fontColor,se.global.defaultFontColor),t.font=i.string,e.isHorizontal()?(a=c+(p-c)/2,o=d+l,r=p-c):(a="left"===n.position?c+l:p-l,o=d+(f-d)/2,r=f-d,u=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(a,o),t.rotate(u),t.textAlign="center",t.textBaseline="middle";var h=n.text;if(de.isArray(h))for(var m=0,_=0;_<h.length;++_)t.fillText(h[_],0,m,r),m+=s;else t.fillText(h,0,0,r);t.restore()}}});function br(e,t){var n=new vr({ctx:e.ctx,options:t,chart:e});wt.configure(e,n,t),wt.addBox(e,n),e.titleBlock=n}var Mr={},wr=cr,Tr=gr,Lr={id:"title",_element:vr,beforeInit:function(e){var t=e.options.title;t&&br(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(de.mergeIf(t,se.global.title),n?(wt.configure(e,n,t),n.options=t):br(e,t)):n&&(wt.removeBox(e,n),delete e.titleBlock)}};for(var kr in Mr.filler=wr,Mr.legend=Tr,Mr.title=Lr,on.helpers=de,function(){function e(e,t,n){var r;return"string"==typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}function t(e){return null!=e&&"none"!==e}function n(n,r,a){var o=document.defaultView,i=de._getParentNode(n),s=o.getComputedStyle(n)[r],l=o.getComputedStyle(i)[r],u=t(s),d=t(l),c=Number.POSITIVE_INFINITY;return u||d?Math.min(u?e(s,n,a):c,d?e(l,i,a):c):"none"}de.where=function(e,t){if(de.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return de.each(e,function(e){t(e)&&n.push(e)}),n},de.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var r=0,a=e.length;r<a;++r)if(t.call(n,e[r],r,e))return r;return-1},de.findNextWhere=function(e,t,n){de.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<e.length;r++){var a=e[r];if(t(a))return a}},de.findPreviousWhere=function(e,t,n){de.isNullOrUndef(n)&&(n=e.length);for(var r=n-1;r>=0;r--){var a=e[r];if(t(a))return a}},de.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},de.almostEquals=function(e,t,n){return Math.abs(e-t)<n},de.almostWhole=function(e,t){var n=Math.round(e);return n-t<e&&n+t>e},de.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},de.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},de.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},de.log10=Math.log10?function(e){return Math.log10(e)}:function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t},de.toRadians=function(e){return e*(Math.PI/180)},de.toDegrees=function(e){return e*(180/Math.PI)},de._decimalPlaces=function(e){if(de.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},de.getAngleFromPoint=function(e,t){var n=t.x-e.x,r=t.y-e.y,a=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:a}},de.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},de.aliasPixel=function(e){return e%2==0?0:.5},de._alignPixel=function(e,t,n){var r=e.currentDevicePixelRatio,a=n/2;return Math.round((t-a)*r)/r+a},de.splineCurve=function(e,t,n,r){var a=e.skip?t:e,o=t,i=n.skip?t:n,s=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),l=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),u=s/(s+l),d=l/(s+l),c=r*(u=isNaN(u)?0:u),f=r*(d=isNaN(d)?0:d);return{previous:{x:o.x-c*(i.x-a.x),y:o.y-c*(i.y-a.y)},next:{x:o.x+f*(i.x-a.x),y:o.y+f*(i.y-a.y)}}},de.EPSILON=Number.EPSILON||1e-14,de.splineCurveMonotone=function(e){var t,n,r,a,o,i,s,l,u,d=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),c=d.length;for(t=0;t<c;++t)if(!(r=d[t]).model.skip){if(n=t>0?d[t-1]:null,(a=t<c-1?d[t+1]:null)&&!a.model.skip){var f=a.model.x-r.model.x;r.deltaK=0!==f?(a.model.y-r.model.y)/f:0}!n||n.model.skip?r.mK=r.deltaK:!a||a.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(t=0;t<c-1;++t)r=d[t],a=d[t+1],r.model.skip||a.model.skip||(de.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=a.mK=0:(o=r.mK/r.deltaK,i=a.mK/r.deltaK,(l=Math.pow(o,2)+Math.pow(i,2))<=9||(s=3/Math.sqrt(l),r.mK=o*s*r.deltaK,a.mK=i*s*r.deltaK)));for(t=0;t<c;++t)(r=d[t]).model.skip||(n=t>0?d[t-1]:null,a=t<c-1?d[t+1]:null,n&&!n.model.skip&&(u=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-u,r.model.controlPointPreviousY=r.model.y-u*r.mK),a&&!a.model.skip&&(u=(a.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+u,r.model.controlPointNextY=r.model.y+u*r.mK))},de.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},de.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},de.niceNum=function(e,t){var n=Math.floor(de.log10(e)),r=e/Math.pow(10,n);return(t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},de.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},de.getRelativePosition=function(e,t){var n,r,a=e.originalEvent||e,o=e.target||e.srcElement,i=o.getBoundingClientRect(),s=a.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=a.clientX,r=a.clientY);var l=parseFloat(de.getStyle(o,"padding-left")),u=parseFloat(de.getStyle(o,"padding-top")),d=parseFloat(de.getStyle(o,"padding-right")),c=parseFloat(de.getStyle(o,"padding-bottom")),f=i.right-i.left-l-d,p=i.bottom-i.top-u-c;return{x:n=Math.round((n-i.left-l)/f*o.width/t.currentDevicePixelRatio),y:r=Math.round((r-i.top-u)/p*o.height/t.currentDevicePixelRatio)}},de.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},de.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},de._calculatePadding=function(e,t,n){return(t=de.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},de._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},de.getMaximumWidth=function(e){var t=de._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,r=n-de._calculatePadding(t,"padding-left",n)-de._calculatePadding(t,"padding-right",n),a=de.getConstraintWidth(e);return isNaN(a)?r:Math.min(r,a)},de.getMaximumHeight=function(e){var t=de._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,r=n-de._calculatePadding(t,"padding-top",n)-de._calculatePadding(t,"padding-bottom",n),a=de.getConstraintHeight(e);return isNaN(a)?r:Math.min(r,a)},de.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},de.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var r=e.canvas,a=e.height,o=e.width;r.height=a*n,r.width=o*n,e.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=a+"px",r.style.width=o+"px")}},de.fontString=function(e,t,n){return t+" "+e+"px "+n},de.longestText=function(e,t,n,r){var a=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(a=r.data={},o=r.garbageCollect=[],r.font=t),e.font=t;var i=0;de.each(n,function(t){null!=t&&!0!==de.isArray(t)?i=de.measureText(e,a,o,i,t):de.isArray(t)&&de.each(t,function(t){null==t||de.isArray(t)||(i=de.measureText(e,a,o,i,t))})});var s=o.length/2;if(s>n.length){for(var l=0;l<s;l++)delete a[o[l]];o.splice(0,s)}return i},de.measureText=function(e,t,n,r,a){var o=t[a];return o||(o=t[a]=e.measureText(a).width,n.push(a)),o>r&&(r=o),r},de.numberOfLabelLines=function(e){var t=1;return de.each(e,function(e){de.isArray(e)&&e.length>t&&(t=e.length)}),t},de.color=G?function(e){return e instanceof CanvasGradient&&(e=se.global.defaultColor),G(e)}:function(e){return console.error("Color.js not found!"),e},de.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:de.color(e).saturate(.5).darken(.1).rgbString()}}(),on._adapters=un,on.Animation=ge,on.animationService=ye,on.controllers=dt,on.DatasetController=Te,on.defaults=se,on.Element=me,on.elements=Ne,on.Interaction=gt,on.layouts=wt,on.platform=Ft,on.plugins=Wt,on.Scale=mn,on.scaleService=Ut,on.Ticks=dn,on.Tooltip=Zt,on.helpers.each(nr,function(e,t){on.scaleService.registerScaleType(t,e,e._defaults)}),Mr)Mr.hasOwnProperty(kr)&&on.plugins.register(Mr[kr]);on.platform.initialize();var Dr=on;return"undefined"!=typeof window&&(window.Chart=on),on.Chart=on,on.Legend=Mr.legend._element,on.Title=Mr.title._element,on.pluginService=on.plugins,on.PluginBase=on.Element.extend({}),on.canvasHelpers=on.helpers.canvas,on.layoutService=on.layouts,on.LinearScaleBase=bn,on.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){on[e]=function(t,n){return new on(t,on.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),Dr}(function(){try{return n(2)}catch(e){}}())},function(e,t,n){"use strict";
|
14 |
/*!
|
15 |
* cookie
|
16 |
* Copyright(c) 2012-2014 Roman Shtylman
|
17 |
* Copyright(c) 2015 Douglas Christopher Wilson
|
18 |
* MIT Licensed
|
19 |
+
*/t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},a=t||{},i=e.split(o),l=a.decode||r,u=0;u<i.length;u++){var d=i[u],c=d.indexOf("=");if(!(c<0)){var f=d.substr(0,c).trim(),p=d.substr(++c,d.length).trim();'"'==p[0]&&(p=p.slice(1,-1)),null==n[f]&&(n[f]=s(p,l))}}return n},t.serialize=function(e,t,n){var r=n||{},o=r.encode||a;if("function"!=typeof o)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=o(t);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var l=e+"="+s;if(null!=r.maxAge){var u=r.maxAge-0;if(isNaN(u))throw new Error("maxAge should be a Number");l+="; Max-Age="+Math.floor(u)}if(r.domain){if(!i.test(r.domain))throw new TypeError("option domain is invalid");l+="; Domain="+r.domain}if(r.path){if(!i.test(r.path))throw new TypeError("option path is invalid");l+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");l+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(l+="; HttpOnly");r.secure&&(l+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=decodeURIComponent,a=encodeURIComponent,o=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e),a=Object(r.a)(t);return n.getTime()<a.getTime()}},function(e,t,n){var r=n(83);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";t.__esModule=!0,t.ACTION=t.TYPE=t.POSITION=void 0;t.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"};t.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};t.ACTION={SHOW:0,CLEAR:1,DID_MOUNT:2,WILL_UNMOUNT:3,ON_CHANGE:4}},function(e,t,n){var r=n(59),a=n(345),o=n(346),i="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:i:l&&l in Object(e)?a(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),a=n(5);function o(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},o=n.locale,i=o&&o.options&&o.options.weekStartsOn,s=null==i?0:Object(a.a)(i),l=null==n.weekStartsOn?s:Object(a.a)(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Object(r.a)(e),d=u.getDay(),c=(d<l?7:0)+d-l;return u.setDate(u.getDate()-c),u.setHours(0,0,0,0),u}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(31);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=7*Object(r.a)(t);return Object(a.a)(e,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(23);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,12*n)}},function(e,t,n){"use strict";var r=n(0),a=n(35);function o(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var i=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}};var s,l,u=(void 0===s&&(s=0),function(){return++s}),d={},c={},f=["touchstart","touchmove"],p="ignore-react-onclickoutside";function h(e,t){var n=null;return-1!==f.indexOf(t)&&l&&(n={passive:!e.props.preventDefault}),n}t.a=function(e,t){var n,s,f=e.displayName||e.name||"Component";return s=n=function(n){var s,p;function m(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(a.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!c[r._uid]){void 0===l&&(l=i()),c[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),d[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(o(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach(function(e){document.addEventListener(e,d[r._uid],h(r,e))})}},r.disableOnClickOutside=function(){delete c[r._uid];var e=d[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach(function(t){return document.removeEventListener(t,e,h(r,t))}),delete d[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=u(),r}p=n,(s=m).prototype=Object.create(p.prototype),s.prototype.constructor=s,s.__proto__=p;var _=m.prototype;return _.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},_.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+f+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},_.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},_.componentWillUnmount=function(){this.disableOnClickOutside()},_.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},m}(r.Component),n.displayName="OnClickOutside("+f+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:p,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},s}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),o=Object(r.a)(t);return n.setHours(o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(3);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),o=Object(r.a)(t);return n.setMinutes(o),n}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(19),a=n(30),o=864e5;function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(a.a)(e),i=Object(a.a)(t),s=n.getTime()-Object(r.a)(n),l=i.getTime()-Object(r.a)(i);return Math.round((s-l)/o)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e),a=Object(r.a)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())}},function(e,t,n){"use strict";var r=n(67),a=n(69),o=n(66),i=n(3);function s(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var l={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return s("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):s(n+1,2)},d:function(e,t){return s(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return s(e.getUTCHours()%12||12,t.length)},H:function(e,t){return s(e.getUTCHours(),t.length)},m:function(e,t){return s(e.getUTCMinutes(),t.length)},s:function(e,t){return s(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return s(Math.floor(r*Math.pow(10,n-3)),t.length)}},u=864e5;var d=n(70),c=n(65),f=n(71),p=n(37),h="midnight",m="noon",_="morning",g="afternoon",y="evening",v="night";function b(e,t){var n=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),o=r%60;if(0===o)return n+String(a);var i=t||"";return n+String(a)+i+s(o,2)}function M(e,t){return e%60==0?(e>0?"-":"+")+s(Math.abs(e)/60,2):w(e,t)}function w(e,t){var n=t||"",r=e>0?"-":"+",a=Math.abs(e);return r+s(Math.floor(a/60),2)+n+s(a%60,2)}var T={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return n.ordinalNumber(a,{unit:"year"})}return l.y(e,t)},Y:function(e,t,n,r){var a=Object(p.a)(e,r),o=a>0?a:1-a;return"YY"===t?s(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):s(o,t.length)},R:function(e,t){return s(Object(c.a)(e),t.length)},u:function(e,t){return s(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return s(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return s(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return l.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return s(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var a=Object(f.a)(e,r);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):s(a,t.length)},I:function(e,t,n){var r=Object(d.a)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):s(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):l.d(e,t)},D:function(e,t,n){var r=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(i.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/u)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):s(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return s(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});case"eeee":default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var a=e.getUTCDay(),o=(a-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return s(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});case"cccc":default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),a=0===r?7:r;switch(t){case"i":return String(a);case"ii":return s(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,a=e.getUTCHours();switch(r=12===a?m:0===a?h:a/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,a=e.getUTCHours();switch(r=a>=17?y:a>=12?g:a>=4?_:v,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return l.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):l.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):s(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):l.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):l.s(e,t)},S:function(e,t){return l.S(e,t)},X:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();if(0===a)return"Z";switch(t){case"X":return M(a);case"XXXX":case"XX":return w(a);case"XXXXX":case"XXX":default:return w(a,":")}},x:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return M(a);case"xxxx":case"xx":return w(a);case"xxxxx":case"xxx":default:return w(a,":")}},O:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+b(a,":");case"OOOO":default:return"GMT"+w(a,":")}},z:function(e,t,n,r){var a=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+b(a,":");case"zzzz":default:return"GMT"+w(a,":")}},t:function(e,t,n,r){var a=r._originalDate||e;return s(Math.floor(a.getTime()/1e3),t.length)},T:function(e,t,n,r){return s((r._originalDate||e).getTime(),t.length)}},L=n(64),k=n(19),D=n(25),x=n(5);n.d(t,"a",function(){return P});var E=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,S=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y=/^'(.*?)'?$/,O=/''/g,C=/[a-zA-Z]/;function P(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var s=String(t),l=n||{},u=l.locale||a.a,d=u.options&&u.options.firstWeekContainsDate,c=null==d?1:Object(x.a)(d),f=null==l.firstWeekContainsDate?c:Object(x.a)(l.firstWeekContainsDate);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=u.options&&u.options.weekStartsOn,h=null==p?0:Object(x.a)(p),m=null==l.weekStartsOn?h:Object(x.a)(l.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!u.localize)throw new RangeError("locale must contain localize property");if(!u.formatLong)throw new RangeError("locale must contain formatLong property");var _=Object(i.a)(e);if(!Object(r.a)(_))throw new RangeError("Invalid time value");var g=Object(k.a)(_),y=Object(o.a)(_,g),v={firstWeekContainsDate:f,weekStartsOn:m,locale:u,_originalDate:_};return s.match(S).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,L.a[t])(e,u.formatLong,v):e}).join("").match(E).map(function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return e.match(Y)[1].replace(O,"'");var n=T[t];if(n)return!l.useAdditionalWeekYearTokens&&Object(D.b)(e)&&Object(D.c)(e),!l.useAdditionalDayOfYearTokens&&Object(D.a)(e)&&Object(D.c)(e),n(y,e,u.localize,v);if(t.match(C))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e}).join("")}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(334),a=n(335),o=n(336),i=n(337),s=n(338);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(243);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(27).Symbol;e.exports=r},function(e,t,n){var r=n(34)(Object,"create");e.exports=r},function(e,t,n){var r=n(358);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(90),a=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}},function(e,t,n){"use strict";(function(e){var r=n(0),a=n.n(r),o=(n(15),n(17)),i=n.n(o),s=n(99),l=n(67),u=n(55),d=n(73),c=n(270),f=n(31),p=n(48),h=n(23),m=n(49),_=n(273),g=n(274),y=n(72),v=n(101),b=n(272),M=n(20),w=n(18),T=n(271),L=n(75),k=n(26),D=n(16),x=n(74),E=n(260),S=n(52),Y=n(51),O=n(33),C=n(100),P=n(97),I=n(98),j=n(53),R=n(54),H=n(263),A=n(261),N=n(30),F=n(47),W=n(265),U=n(264),z=n(262),B=n(269),V=n(268),q=n(267),G=n(266),J=n(32),X=n(42),Q=n(96),K=n(3),Z=n(77),$=n(259),ee=n(50),te=n(78);var ne,re=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e,t){function n(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function r(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={p:r,P:function(e,t){var a,o=e.match(/(P+)(p+)?/),i=o[1],s=o[2];if(!s)return n(e,t);switch(i){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"})}return a.replace("{{date}}",n(i,t)).replace("{{time}}",r(s,t))}};t.default=a,e.exports=t.default}),ae=(ne=re)&&ne.__esModule&&Object.prototype.hasOwnProperty.call(ne,"default")?ne.default:ne,oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ie=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},se=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},de=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},ce=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function fe(e){var t=e?"string"==typeof e||e instanceof String?Object($.a)(e):Object(K.a)(e):new Date;return he(t)?t:null}function pe(e,t,n,r){var a=null,o=ke(n)||Le(),i=!0;return Array.isArray(t)?(t.forEach(function(t){var n=Object(Z.a)(e,t,new Date,{locale:o});r&&(i=he(n)&&e===Object(u.a)(n,t,{awareOfUnicodeTokens:!0})),he(n)&&i&&(a=n)}),a):(a=Object(Z.a)(e,t,new Date,{locale:o}),r?i=he(a)&&e===Object(u.a)(a,t,{awareOfUnicodeTokens:!0}):he(a)||(t=t.match(ce).map(function(e){var t=e[0];if("p"===t||"P"===t){var n=ae[t];return o?n(e,o.formatLong):t}return e}).join(""),e.length>0&&(a=Object(Z.a)(e,t.slice(0,e.length),new Date)),he(a)||(a=new Date(e))),he(a)&&i?a:null)}function he(e){return Object(l.a)(e)&&Object(J.a)(e,new Date("1/1/1000"))}function me(e,t,n){if("en"===n)return Object(u.a)(e,t,{awareOfUnicodeTokens:!0});var r=ke(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'+n+'"].'),!r&&Le()&&ke(Le())&&(r=ke(Le())),Object(u.a)(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function _e(e,t){var n=t.hour,r=void 0===n?0:n,a=t.minute,o=void 0===a?0:a,i=t.second,s=void 0===i?0:i;return Object(Y.a)(Object(S.a)(Object(E.a)(e,s),o),r)}function ge(e,t){var n=ke(t||Le());return Object(F.a)(e,{locale:n})}function ye(e){return Object(W.a)(e)}function ve(e,t){return e&&t?Object(G.a)(e,t):!e&&!t}function be(e,t){return e&&t?Object(q.a)(e,t):!e&&!t}function Me(e,t){return e&&t?Object(V.a)(e,t):!e&&!t}function we(e,t){return e&&t?Object(B.a)(e,t):!e&&!t}function Te(e,t,n){var r=void 0;try{r=Object(Q.a)(e,{start:t,end:n})}catch(e){r=!1}return r}function Le(){return("undefined"!=typeof window?window:e).__localeId__}function ke(t){if("string"==typeof t){var n="undefined"!=typeof window?window:e;return n.__localeData__?n.__localeData__[t]:null}return t}function De(e,t){return me(Object(O.a)(fe(),e),"LLL",t)}function xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate;return Ye(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return Me(e,t)})||o&&!o.some(function(t){return Me(e,t)})||i&&!i(fe(e))||!1}function Ee(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate,a=t.excludeDates,o=t.includeDates,i=t.filterDate;return Ye(e,{minDate:n,maxDate:r})||a&&a.some(function(t){return be(e,t)})||o&&!o.some(function(t){return be(e,t)})||i&&!i(fe(e))||!1}function Se(e,t,n,r){var a=Object(D.a)(e),o=Object(k.a)(e),i=Object(D.a)(t),s=Object(k.a)(t),l=Object(D.a)(r);return a===i&&a===l?o<=n&&n<=s:a<i?l===a&&o<=n||l===i&&s>=n||l<i&&l>a:void 0}function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&Object(j.a)(e,n)<0||r&&Object(j.a)(e,r)>0}function Oe(e,t){for(var n=t.length,r=0;r<n;r++)if(Object(w.a)(t[r])===Object(w.a)(e)&&Object(M.a)(t[r])===Object(M.a)(e))return!0;return!1}function Ce(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var a=fe(),o=Object(Y.a)(Object(S.a)(a,Object(M.a)(e)),Object(w.a)(e)),i=Object(Y.a)(Object(S.a)(a,Object(M.a)(n)),Object(w.a)(n)),s=Object(Y.a)(Object(S.a)(a,Object(M.a)(r)),Object(w.a)(r)),l=void 0;try{l=!Object(Q.a)(o,{start:i,end:s})}catch(e){l=!1}return l}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.minDate,r=t.includeDates,a=Object(y.a)(e,1);return n&&Object(R.a)(n,a)>0||r&&r.every(function(e){return Object(R.a)(e,a)>0})||!1}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.maxDate,r=t.includeDates,a=Object(h.a)(e,1);return n&&Object(R.a)(a,n)>0||r&&r.every(function(e){return Object(R.a)(a,e)>0})||!1}function je(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return Object(j.a)(e,t)>=0});return Object(P.a)(r)}return n?Object(P.a)(n):t}function Re(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(e){return Object(j.a)(e,t)<=0});return Object(I.a)(r)}return n?Object(I.a)(n):t}function He(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,a=e.length;r<a;r++){var o=e[r];if(Object(s.a)(o)){var i=me(o,"MM.dd.yyyy"),l=n.get(i)||[];l.includes(t)||(l.push(t),n.set(i,l))}else if("object"===(void 0===o?"undefined":oe(o))){var u=Object.keys(o),d=u[0],c=o[u[0]];if("string"==typeof d&&c.constructor===Array)for(var f=0,p=c.length;f<p;f++){var h=me(c[f],"MM.dd.yyyy"),m=n.get(h)||[];m.includes(d)||(m.push(d),n.set(h,m))}}}return n}function Ae(e,t,n,r,a){for(var o=a.length,i=[],s=0;s<o;s++){var l=Object(d.a)(Object(c.a)(e,Object(w.a)(a[s])),Object(M.a)(a[s])),u=Object(d.a)(e,(n+1)*r);Object(J.a)(l,t)&&Object(X.a)(l,u)&&i.push(a[s])}return i}function Ne(e){return e<10?"0"+e:""+e}function Fe(e,t,n,r){for(var a=[],o=0;o<2*t+1;o++){var i=e+t-o,s=!0;n&&(s=Object(D.a)(n)<=i),r&&s&&(s=Object(D.a)(r)>=i),s&&a.push(i)}return a}var We=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));r.renderOptions=function(){var e=r.props.year,t=r.state.yearsList.map(function(t){return a.a.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},e===t?a.a.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)}),n=r.props.minDate?Object(D.a)(r.props.minDate):null,o=r.props.maxDate?Object(D.a)(r.props.maxDate):null;return o&&r.state.yearsList.find(function(e){return e===o})||t.unshift(a.a.createElement("div",{className:"react-datepicker__year-option",ref:"upcoming",key:"upcoming",onClick:r.incrementYears},a.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&r.state.yearsList.find(function(e){return e===n})||t.push(a.a.createElement("div",{className:"react-datepicker__year-option",ref:"previous",key:"previous",onClick:r.decrementYears},a.a.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},r.onChange=function(e){r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(e){var t=r.state.yearsList.map(function(t){return t+e});r.setState({yearsList:t})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var o=n.yearDropdownItemNumber,i=n.scrollableYearDropdown,s=o||(i?10:5);return r.state={yearsList:Fe(r.props.year,s,r.props.minDate,r.props.maxDate)},r}return ue(t,e),t.prototype.render=function(){var e=i()({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return a.a.createElement("div",{className:e},this.renderOptions())},t}(a.a.Component),Ue=Object(ee.a)(We),ze=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var e=r.props.minDate?Object(D.a)(r.props.minDate):1900,t=r.props.maxDate?Object(D.a)(r.props.maxDate):2100,n=[],o=e;o<=t;o++)n.push(a.a.createElement("option",{key:o,value:o},o));return n},r.onSelectChange=function(e){r.onChange(e.target.value)},r.renderSelectMode=function(){return a.a.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(e){return a.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return r.toggleDropdown(e)}},a.a.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),a.a.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))},r.renderDropdown=function(){return a.a.createElement(Ue,{key:"dropdown",ref:"options",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderScrollMode=function(){var e=r.state.dropdownVisible,t=[r.renderReadView(!e)];return e&&t.unshift(r.renderDropdown()),t},r.onChange=function(e){r.toggleDropdown(),e!==r.props.year&&r.props.onChange(e)},r.toggleDropdown=function(e){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,e)})},r.handleYearChange=function(e,t){r.onSelect(e,t),r.setOpen()},r.onSelect=function(e,t){r.props.onSelect&&r.props.onSelect(e,t)},r.setOpen=function(){r.props.setOpen&&r.props.setOpen(!0)},de(r,n)}return ue(t,e),t.prototype.render=function(){var e=void 0;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return a.a.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--"+this.props.dropdownMode},e)},t}(a.a.Component),Be=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.renderOptions=function(){return r.props.monthNames.map(function(e,t){return a.a.createElement("div",{className:r.props.month===t?"react-datepicker__month-option --selected_month":"react-datepicker__month-option",key:e,ref:e,onClick:r.onChange.bind(r,t)},r.props.month===t?a.a.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)})},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){return r.props.onCancel()},de(r,n)}return ue(t,e),t.prototype.render=function(){return a.a.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())},t}(a.a.Component),Ve=Object(ee.a)(Be),qe=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(e){return e.map(function(e,t){return a.a.createElement("option",{key:t,value:t},e)})},r.renderSelectMode=function(e){return a.a.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(e){return r.onChange(e.target.value)}},r.renderSelectOptions(e))},r.renderReadView=function(e,t){return a.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},a.a.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),a.a.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},t[r.props.month]))},r.renderDropdown=function(e){return a.a.createElement(Ve,{key:"dropdown",ref:"options",month:r.props.month,monthNames:e,onChange:r.onChange,onCancel:r.toggleDropdown})},r.renderScrollMode=function(e){var t=r.state.dropdownVisible,n=[r.renderReadView(!t,e)];return t&&n.unshift(r.renderDropdown(e)),n},r.onChange=function(e){r.toggleDropdown(),e!==r.props.month&&r.props.onChange(e)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},de(r,n)}return ue(t,e),t.prototype.render=function(){var e=this,t=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(t){return De(t,e.props.locale)}:function(t){return n=t,r=e.props.locale,me(Object(O.a)(fe(),n),"LLLL",r);var n,r}),n=void 0;switch(this.props.dropdownMode){case"scroll":n=this.renderScrollMode(t);break;case"select":n=this.renderSelectMode(t)}return a.a.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--"+this.props.dropdownMode},n)},t}(a.a.Component);function Ge(e,t){for(var n=[],r=ye(e),a=ye(t);!Object(J.a)(r,a);)n.push(fe(r)),r=Object(h.a)(r,1);return n}var Je=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.renderOptions=function(){return r.state.monthYearsList.map(function(e){var t=Object(x.a)(e),n=ve(r.props.date,e)&&be(r.props.date,e);return a.a.createElement("div",{className:n?"react-datepicker__month-year-option --selected_month-year":"react-datepicker__month-year-option",key:t,ref:t,onClick:r.onChange.bind(r,t)},n?a.a.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",me(e,r.props.dateFormat))})},r.onChange=function(e){return r.props.onChange(e)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:Ge(r.props.minDate,r.props.maxDate)},r}return ue(t,e),t.prototype.render=function(){var e=i()({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return a.a.createElement("div",{className:e},this.renderOptions())},t}(a.a.Component),Xe=Object(ee.a)(Je),Qe=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={dropdownVisible:!1},r.renderSelectOptions=function(){for(var e=ye(r.props.minDate),t=ye(r.props.maxDate),n=[];!Object(J.a)(e,t);){var o=Object(x.a)(e);n.push(a.a.createElement("option",{key:o,value:o},me(e,r.props.dateFormat,r.props.locale))),e=Object(h.a)(e,1)}return n},r.onSelectChange=function(e){r.onChange(e.target.value)},r.renderSelectMode=function(){return a.a.createElement("select",{value:Object(x.a)(ye(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())},r.renderReadView=function(e){var t=me(r.props.date,r.props.dateFormat,r.props.locale);return a.a.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(e){return r.toggleDropdown(e)}},a.a.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),a.a.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},t))},r.renderDropdown=function(){return a.a.createElement(Xe,{key:"dropdown",ref:"options",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderScrollMode=function(){var e=r.state.dropdownVisible,t=[r.renderReadView(!e)];return e&&t.unshift(r.renderDropdown()),t},r.onChange=function(e){r.toggleDropdown();var t=fe(parseInt(e));ve(r.props.date,t)&&be(r.props.date,t)||r.props.onChange(t)},r.toggleDropdown=function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})},de(r,n)}return ue(t,e),t.prototype.render=function(){var e=void 0;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return a.a.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--"+this.props.dropdownMode},e)},t}(a.a.Component),Ke=function(e){function t(){var n,r;ie(this,t);for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){!r.isDisabled()&&r.props.onClick&&r.props.onClick(e)},r.handleMouseEnter=function(e){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(e)},r.isSameDay=function(e){return Me(r.props.day,e)},r.isKeyboardSelected=function(){return!r.props.disabledKeyboardNavigation&&!r.props.inline&&!r.isSameDay(r.props.selected)&&r.isSameDay(r.props.preSelection)},r.isDisabled=function(){return xe(r.props.day,r.props)},r.getHighLightedClass=function(e){var t=r.props,n=t.day,a=t.highlightDates;if(!a)return!1;var o=me(n,"MM.dd.yyyy");return a.get(o)},r.isInRange=function(){var e=r.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Te(t,n,a)},r.isInSelectingRange=function(){var e=r.props,t=e.day,n=e.selectsStart,a=e.selectsEnd,o=e.selectingDate,i=e.startDate,s=e.endDate;return!(!n&&!a||!o||r.isDisabled())&&(n&&s&&(Object(X.a)(o,s)||we(o,s))?Te(t,o,s):!(!a||!i||!Object(J.a)(o,i)&&!we(o,i))&&Te(t,i,o))},r.isSelectingRangeStart=function(){if(!r.isInSelectingRange())return!1;var e=r.props,t=e.day,n=e.selectingDate,a=e.startDate;return Me(t,e.selectsStart?n:a)},r.isSelectingRangeEnd=function(){if(!r.isInSelectingRange())return!1;var e=r.props,t=e.day,n=e.selectingDate,a=e.endDate;return Me(t,e.selectsEnd?n:a)},r.isRangeStart=function(){var e=r.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Me(n,t)},r.isRangeEnd=function(){var e=r.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Me(a,t)},r.isWeekend=function(){var e=Object(T.a)(r.props.day);return 0===e||6===e},r.isOutsideMonth=function(){return void 0!==r.props.month&&r.props.month!==Object(k.a)(r.props.day)},r.getClassNames=function(e){var t,n=r.props.dayClassName?r.props.dayClassName(e):void 0;return i()("react-datepicker__day",n,"react-datepicker__day--"+me(r.props.day,"ddd",t),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--selected":r.isSameDay(r.props.selected),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isSameDay(fe()),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isOutsideMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"))},de(r,n)}return ue(t,e),t.prototype.render=function(){return a.a.createElement("div",{className:this.getClassNames(this.props.day),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,"aria-label":"day-"+Object(L.a)(this.props.day),role:"option"},this.props.renderDayContents?this.props.renderDayContents(Object(L.a)(this.props.day),this.props.day):Object(L.a)(this.props.day))},t}(a.a.Component),Ze=function(e){function t(){var n,r;ie(this,t);for(var a=arguments.length,o=Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=r=de(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){r.props.onClick&&r.props.onClick(e)},de(r,n)}return ue(t,e),t.prototype.render=function(){var e={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!this.props.onClick};return a.a.createElement("div",{className:i()(e),"aria-label":"week-"+this.props.weekNumber,onClick:this.handleClick},this.props.weekNumber)},t}(a.a.Component),$e=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleWeekClick=function(e,t,n){"function"==typeof r.props.onWeekSelect&&r.props.onWeekSelect(e,t,n),r.props.shouldCloseOnSelect&&r.props.setOpen(!1)},r.formatWeekNumber=function(e){return r.props.formatWeekNumber?r.props.formatWeekNumber(e):function(e){return Object(A.a)(e,1),ve(Object(z.a)(e),e)?Object(H.a)(e,Object(U.a)(e))+1:1}(e)},r.renderDays=function(){var e=ge(r.props.day,r.props.locale),t=[],n=r.formatWeekNumber(e);if(r.props.showWeekNumber){var o=r.props.onWeekSelect?r.handleWeekClick.bind(r,e,n):void 0;t.push(a.a.createElement(Ze,{key:"W",weekNumber:n,onClick:o}))}return t.concat([0,1,2,3,4,5,6].map(function(t){var n=Object(f.a)(e,t);return a.a.createElement(Ke,{key:t,day:n,month:r.props.month,onClick:r.handleDayClick.bind(r,n),onMouseEnter:r.handleDayMouseEnter.bind(r,n),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,inline:r.props.inline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation})}))},de(r,n)}return ue(t,e),t.prototype.render=function(){return a.a.createElement("div",{className:"react-datepicker__week"},this.renderDays())},se(t,null,[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),t}(a.a.Component),et=6,tt=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return n=r=de(this,e.call.apply(e,[this].concat(s))),r.handleDayClick=function(e,t){r.props.onDayClick&&r.props.onDayClick(e,t,r.props.orderInDisplay)},r.handleDayMouseEnter=function(e){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleMouseLeave=function(){r.props.onMouseLeave&&r.props.onMouseLeave()},r.isRangeStart=function(e){var t=r.props,n=t.day,a=t.startDate,o=t.endDate;return!(!a||!o)&&be(Object(O.a)(n,e),a)},r.isRangeEnd=function(e){var t=r.props,n=t.day,a=t.startDate,o=t.endDate;return!(!a||!o)&&be(Object(O.a)(n,e),o)},r.isWeekInMonth=function(e){var t=r.props.day,n=Object(f.a)(e,6);return be(e,t)||be(n,t)},r.renderWeeks=function(){for(var e=[],t=r.props.fixedHeight,n=ge(ye(r.props.day),r.props.locale),o=0,i=!1;e.push(a.a.createElement($e,{key:o,day:n,month:Object(k.a)(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,inline:r.props.inline,highlightDates:r.props.highlightDates,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,showWeekNumber:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents})),!i;){o++,n=Object(p.a)(n,1);var s=t&&o>=et,l=!t&&!r.isWeekInMonth(n);if(s||l){if(!r.props.peekNextMonth)break;i=!0}}return e},r.onMonthClick=function(e,t){r.handleDayClick(ye(Object(O.a)(r.props.day,t)))},r.getMonthClassNames=function(e){var t=r.props,n=t.day,a=t.startDate,o=t.endDate,s=t.selected,l=t.minDate,u=t.maxDate;return i()("react-datepicker__month-text","react-datepicker__month-"+e,{"react-datepicker__month--disabled":(l||u)&&Ee(Object(O.a)(n,e),r.props),"react-datepicker__month--selected":Object(k.a)(n)===e&&Object(D.a)(n)===Object(D.a)(s),"react-datepicker__month--in-range":Se(a,o,e,n),"react-datepicker__month--range-start":r.isRangeStart(e),"react-datepicker__month--range-end":r.isRangeEnd(e)})},r.renderMonths=function(){return[[0,1,2],[3,4,5],[6,7,8],[9,10,11]].map(function(e,t){return a.a.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map(function(e,t){return a.a.createElement("div",{key:t,onClick:function(t){r.onMonthClick(t.target,e)},className:r.getMonthClassNames(e)},De(e,r.props.locale))}))})},r.getClassNames=function(){var e=r.props,t=e.selectingDate,n=e.selectsStart,a=e.selectsEnd,o=e.showMonthYearPicker;return i()("react-datepicker__month",{"react-datepicker__month--selecting-range":t&&(n||a)},{"react-datepicker__monthPicker":o})},de(r,n)}return ue(t,e),t.prototype.render=function(){var e=this.props.showMonthYearPicker;return a.a.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,role:"listbox","aria-label":"month-"+me(this.props.day,"yyyy-MM")},e?this.renderMonths():this.renderWeeks())},t}(a.a.Component),nt=function(e){function t(){var n,r;ie(this,t);for(var o=arguments.length,i=Array(o),s=0;s<o;s++)i[s]=arguments[s];return n=r=de(this,e.call.apply(e,[this].concat(i))),r.state={height:null},r.handleClick=function(e){(r.props.minTime||r.props.maxTime)&&Ce(e,r.props)||r.props.excludeTimes&&Oe(e,r.props.excludeTimes)||r.props.includeTimes&&!Oe(e,r.props.includeTimes)||r.props.onChange(e)},r.liClasses=function(e,t,n){var a=["react-datepicker__time-list-item"];return t===Object(w.a)(e)&&n===Object(M.a)(e)&&a.push("react-datepicker__time-list-item--selected"),((r.props.minTime||r.props.maxTime)&&Ce(e,r.props)||r.props.excludeTimes&&Oe(e,r.props.excludeTimes)||r.props.includeTimes&&!Oe(e,r.props.includeTimes))&&a.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*Object(w.a)(e)+Object(M.a)(e))%r.props.intervals!=0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},r.renderTimes=function(){for(var e,t=[],n=r.props.format?r.props.format:"p",o=r.props.intervals,i=r.props.selected?r.props.selected:fe(),s=Object(w.a)(i),l=Object(M.a)(i),u=(e=fe(),Object(N.a)(e)),c=1440/o,f=r.props.injectTimes&&r.props.injectTimes.sort(function(e,t){return e-t}),p=0;p<c;p++){var h=Object(d.a)(u,p*o);if(t.push(h),f){var m=Ae(u,h,p,o,f);t=t.concat(m)}}return t.map(function(e,t){return a.a.createElement("li",{key:t,onClick:r.handleClick.bind(r,e),className:r.liClasses(e,s,l),ref:function(t){(s===Object(w.a)(e)&&l===Object(M.a)(e)||s===Object(w.a)(e)&&!r.centerLi)&&(r.centerLi=t)}},me(e,n,r.props.locale))})},de(r,n)}return ue(t,e),t.prototype.componentDidMount=function(){this.list.scrollTop=t.calcCenterPosition(this.props.monthRef?this.props.monthRef.clientHeight-this.header.clientHeight:this.list.clientHeight,this.centerLi),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e=this,t=this.state.height;return a.a.createElement("div",{className:"react-datepicker__time-container "+(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},a.a.createElement("div",{className:"react-datepicker__header react-datepicker__header--time",ref:function(t){e.header=t}},a.a.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),a.a.createElement("div",{className:"react-datepicker__time"},a.a.createElement("div",{className:"react-datepicker__time-box"},a.a.createElement("ul",{className:"react-datepicker__time-list",ref:function(t){e.list=t},style:t?{height:t}:{}},this.renderTimes.bind(this)()))))},se(t,null,[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),t}(a.a.Component);nt.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)};var rt=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.onTimeChange=function(e){r.setState({time:e});var t=new Date;t.setHours(e.split(":")[0]),t.setMinutes(e.split(":")[1]),r.props.onChange(t)},r.state={time:r.props.timeString},r}return ue(t,e),t.prototype.render=function(){var e=this,t=this.state.time,n=this.props.timeString;return a.a.createElement("div",{className:"react-datepicker__input-time-container"},a.a.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),a.a.createElement("div",{className:"react-datepicker-time__input-container"},a.a.createElement("div",{className:"react-datepicker-time__input"},a.a.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:t,onChange:function(t){e.onTimeChange(t.target.value||n)}}))))},t}(a.a.Component);function at(e){var t=e.className,n=e.children,r=e.arrowProps,o=void 0===r?{}:r;return a.a.createElement("div",{className:t},a.a.createElement("div",le({className:"react-datepicker__triangle"},o)),n)}var ot=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],it=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.className||"").split(/\s+/);return ot.some(function(e){return t.indexOf(e)>=0})},st=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.handleClickOutside=function(e){r.props.onClickOutside(e)},r.handleDropdownFocus=function(e){it(e.target)&&r.props.onDropdownFocus()},r.getDateInView=function(){var e=r.props,t=e.preSelection,n=e.selected,a=e.openToDate,o=je(r.props),i=Re(r.props),s=fe(),l=a||n||t;return l||(o&&Object(X.a)(s,o)?o:i&&Object(J.a)(s,i)?i:s)},r.increaseMonth=function(){r.setState({date:Object(h.a)(r.state.date,1)},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState({date:Object(y.a)(r.state.date,1)},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(e,t,n){return r.props.onSelect(e,t,n)},r.handleDayMouseEnter=function(e){r.setState({selectingDate:e}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(e)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:null}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearChange=function(e){r.props.onYearChange&&r.props.onYearChange(e)},r.handleMonthChange=function(e){r.props.onMonthChange&&r.props.onMonthChange(e),r.props.adjustDateOnChange&&(r.props.onSelect&&r.props.onSelect(e),r.props.setOpen&&r.props.setOpen(!0))},r.handleMonthYearChange=function(e){r.handleYearChange(e),r.handleMonthChange(e)},r.changeYear=function(e){r.setState({date:Object(C.a)(r.state.date,e)},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(e){r.setState({date:Object(O.a)(r.state.date,e)},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(e){r.setState({date:Object(C.a)(Object(O.a)(r.state.date,Object(k.a)(e)),Object(D.a)(e))},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=ge(e,r.props.locale),n=[];return r.props.showWeekNumbers&&n.push(a.a.createElement("div",{key:"W",className:"react-datepicker__day-name"},r.props.weekLabel||"#")),n.concat([0,1,2,3,4,5,6].map(function(e){var n=Object(f.a)(t,e),o=r.formatWeekday(n,r.props.locale);return a.a.createElement("div",{key:e,className:"react-datepicker__day-name"},o)}))},r.formatWeekday=function(e,t){return r.props.formatWeekDay?function(e,t,n){return t(me(e,"EEEE",n))}(e,r.props.formatWeekDay,t):r.props.useWeekdaysShort?function(e,t){return me(e,"EEE",t)}(e,t):function(e,t){return me(e,"EEEEEE",t)}(e,t)},r.decreaseYear=function(){r.setState({date:Object(v.a)(r.state.date,1)},function(){return r.handleYearChange(r.state.date)})},r.renderPreviousButton=function(){if(!r.props.renderCustomHeader){var e=Pe(r.state.date,r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--previous"],n=r.decreaseMonth;return r.props.showMonthYearPicker&&(n=r.decreaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--previous--disabled"),n=null),a.a.createElement("button",{type:"button",className:t.join(" "),onClick:n},r.props.showMonthYearPicker?r.props.previousYearButtonLabel:r.props.previousMonthButtonLabel)}}},r.increaseYear=function(){r.setState({date:Object(m.a)(r.state.date,1)},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){if(!r.props.renderCustomHeader){var e=Ie(r.state.date,r.props);if((r.props.forceShowMonthNavigation||r.props.showDisabledMonthNavigation||!e)&&!r.props.showTimeSelectOnly){var t=["react-datepicker__navigation","react-datepicker__navigation--next"];r.props.showTimeSelect&&t.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&t.push("react-datepicker__navigation--next--with-today-button");var n=r.increaseMonth;return r.props.showMonthYearPicker&&(n=r.increaseYear),e&&r.props.showDisabledMonthNavigation&&(t.push("react-datepicker__navigation--next--disabled"),n=null),a.a.createElement("button",{type:"button",className:t.join(" "),onClick:n},r.props.showMonthYearPicker?r.props.nextYearButtonLabel:r.props.nextMonthButtonLabel)}}},r.renderCurrentMonth=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.date,t=["react-datepicker__current-month"];return r.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),a.a.createElement("div",{className:t.join(" ")},me(e,r.props.dateFormat,r.props.locale))},r.renderYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showYearDropdown&&!e)return a.a.createElement(ze,{adjustDateOnChange:r.props.adjustDateOnChange,date:r.state.date,onSelect:r.props.onSelect,setOpen:r.props.setOpen,dropdownMode:r.props.dropdownMode,onChange:r.changeYear,minDate:r.props.minDate,maxDate:r.props.maxDate,year:Object(D.a)(r.state.date),scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})},r.renderMonthDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthDropdown&&!e)return a.a.createElement(qe,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,onChange:r.changeMonth,month:Object(k.a)(r.state.date),useShortMonthInDropdown:r.props.useShortMonthInDropdown})},r.renderMonthYearDropdown=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.showMonthYearDropdown&&!e)return a.a.createElement(Qe,{dropdownMode:r.props.dropdownMode,locale:r.props.locale,dateFormat:r.props.dateFormat,onChange:r.changeMonthYear,minDate:r.props.minDate,maxDate:r.props.maxDate,date:r.state.date,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown})},r.renderTodayButton=function(){if(r.props.todayButton&&!r.props.showTimeSelectOnly)return a.a.createElement("div",{className:"react-datepicker__today-button",onClick:function(e){return r.props.onSelect(Object(N.a)(fe()),e)}},r.props.todayButton)},r.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return a.a.createElement("div",{className:"react-datepicker__header"},r.renderCurrentMonth(t),a.a.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--"+r.props.dropdownMode,onFocus:r.handleDropdownFocus},r.renderMonthDropdown(0!==n),r.renderMonthYearDropdown(0!==n),r.renderYearDropdown(0!==n)),a.a.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderCustomHeader=function(e){var t=e.monthDate;if(0!==e.i)return null;var n=Pe(r.state.date,r.props),o=Ie(r.state.date,r.props);return a.a.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},r.props.renderCustomHeader(le({},r.state,{changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,prevMonthButtonDisabled:n,nextMonthButtonDisabled:o})),a.a.createElement("div",{className:"react-datepicker__day-names"},r.header(t)))},r.renderYearHeader=function(){return a.a.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},Object(D.a)(r.state.date))},r.renderMonths=function(){if(!r.props.showTimeSelectOnly){for(var e=[],t=0;t<r.props.monthsShown;++t){var n=t-r.props.monthSelectedIn,o=Object(h.a)(r.state.date,n),i="month-"+t;e.push(a.a.createElement("div",{key:i,ref:function(e){r.monthContainer=e},className:"react-datepicker__month-container"},r.props.showMonthYearPicker?r.renderYearHeader({monthDate:o,i:t}):r.props.renderCustomHeader?r.renderCustomHeader({monthDate:o,i:t}):r.renderDefaultHeader({monthDate:o,i:t}),a.a.createElement(tt,{onChange:r.changeMonthYear,day:o,dayClassName:r.props.dayClassName,onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,onWeekSelect:r.props.onWeekSelect,orderInDisplay:t,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,highlightDates:r.props.highlightDates,selectingDate:r.state.selectingDate,includeDates:r.props.includeDates,inline:r.props.inline,fixedHeight:r.props.fixedHeight,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,showWeekNumbers:r.props.showWeekNumbers,startDate:r.props.startDate,endDate:r.props.endDate,peekNextMonth:r.props.peekNextMonth,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,showMonthYearPicker:r.props.showMonthYearPicker})))}return e}},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return a.a.createElement(nt,{selected:r.props.selected,onChange:r.props.onTimeChange,format:r.props.timeFormat,includeTimes:r.props.includeTimes,intervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,todayButton:r.props.todayButton,showMonthDropdown:r.props.showMonthDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,monthRef:r.state.monthContainer,injectTimes:r.props.injectTimes,locale:r.props.locale})},r.renderInputTimeSection=function(){var e=new Date(r.props.selected),t=Ne(e.getHours())+":"+Ne(e.getMinutes());if(r.props.showTimeInput)return a.a.createElement(rt,{timeString:t,timeInputLabel:r.props.timeInputLabel,onChange:r.props.onTimeChange})},r.state={date:r.getDateInView(),selectingDate:null,monthContainer:null},r}return ue(t,e),se(t,null,[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,monthSelectedIn:0,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month"}}}]),t.prototype.componentDidMount=function(){var e=this;this.props.showTimeSelect&&(this.assignMonthContainer=void e.setState({monthContainer:e.monthContainer}))},t.prototype.componentDidUpdate=function(e){this.props.preSelection&&!Me(this.props.preSelection,e.preSelection)?this.setState({date:this.props.preSelection}):this.props.openToDate&&!Me(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate})},t.prototype.render=function(){var e=this.props.container||at;return a.a.createElement(e,{className:i()("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly})},this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.props.children)},t}(a.a.Component),lt=function(e){function t(){return ie(this,t),de(this,e.apply(this,arguments))}return ue(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hidePopper,r=e.popperComponent,o=e.popperModifiers,s=e.popperPlacement,l=e.popperProps,u=e.targetComponent,d=void 0;if(!n){var c=i()("react-datepicker-popper",t);d=a.a.createElement(te.b,le({modifiers:o,placement:s},l),function(e){var t=e.ref,n=e.style,o=e.placement,i=e.arrowProps;return a.a.createElement("div",le({ref:t,style:n},{className:c,"data-placement":o}),a.a.cloneElement(r,{arrowProps:i}))})}return this.props.popperContainer&&(d=a.a.createElement(this.props.popperContainer,{},d)),a.a.createElement(te.a,null,a.a.createElement(te.c,null,function(e){var t=e.ref;return a.a.createElement("div",{ref:t,className:"react-datepicker-wrapper"},u)}),d)},se(t,null,[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:{preventOverflow:{enabled:!0,escapeWithReference:!0,boundariesElement:"viewport"}},popperProps:{},popperPlacement:"bottom-start"}}}]),t}(a.a.Component),ut="react-datepicker-ignore-onclickoutside",dt=Object(ee.a)(st);var ct="Date input not valid.",ft=function(e){function t(n){ie(this,t);var r=de(this,e.call(this,n));return r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:fe()},r.calcInitialState=function(){var e=r.getPreSelection(),t=je(r.props),n=Re(r.props),a=t&&Object(X.a)(e,t)?t:n&&Object(J.a)(e,n)?n:e;return{open:r.props.startOpen||!1,preventFocus:!1,preSelection:r.props.selected?r.props.selected:a,highlightDates:He(r.props.highlightDates),focused:!1}},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){r.input&&r.input.focus&&r.input.focus()},r.setBlur=function(){r.input&&r.input.blur&&r.input.blur(),r.cancelFocusInput()},r.setOpen=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:ht},function(){e||r.setState(function(e){return{focused:!!t&&e.focused}},function(){!t&&r.setBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return Object(s.a)(r.state.preSelection)},r.isCalendarOpen=function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(e){r.state.preventFocus||(r.props.onFocus(e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=null},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){!r.state.open||r.props.withPortal||r.props.showTimeInput?r.props.onBlur(e):r.deferFocusInput(),r.setState({focused:!1})},r.handleCalendarClickOutside=function(e){r.props.inline||r.setOpen(!1),r.props.onClickOutside(e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(r,t),"function"==typeof a.isDefaultPrevented&&!a.isDefaultPrevented())){r.setState({inputValue:a.target.value,lastPreSelectChange:pt});var o=pe(a.target.value,r.props.dateFormat,r.props.locale,r.props.strictParsing);!o&&a.target.value||r.setSelected(o,a,!0)}},r.handleSelect=function(e,t,n){r.setState({preventFocus:!0},function(){return r.preventFocusTimeout=setTimeout(function(){return r.setState({preventFocus:!1})},50),r.preventFocusTimeout}),r.setSelected(e,t,void 0,n),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(e):r.props.inline||r.setOpen(!1)},r.setSelected=function(e,t,n,a){var o=e;if(null===o||!xe(o,r.props)){if(!we(r.props.selected,o)||r.props.allowSameDay){if(null!==o){if(r.props.selected){var i=r.props.selected;n&&(i=fe(o)),o=_e(o,{hour:Object(w.a)(i),minute:Object(M.a)(i),second:Object(b.a)(i)})}r.props.inline||r.setState({preSelection:o}),r.props.inline&&r.props.monthsShown>1&&!r.props.inlineFocusSelectedMonth&&r.setState({monthSelectedIn:a})}r.props.onChange(o,t)}r.props.onSelect(o,t),n||r.setState({inputValue:null})}},r.setPreSelection=function(e){var t=void 0!==r.props.minDate,n=void 0!==r.props.maxDate,a=!0;e&&(t&&n?a=Te(e,r.props.minDate,r.props.maxDate):t?a=Object(J.a)(e,r.props.minDate):n&&(a=Object(X.a)(e,r.props.maxDate))),a&&r.setState({preSelection:e})},r.handleTimeChange=function(e){var t=_e(r.props.selected?r.props.selected:r.getPreSelection(),{hour:Object(w.a)(e),minute:Object(M.a)(e)});r.setState({preSelection:t}),r.props.onChange(t),r.props.shouldCloseOnSelect&&r.setOpen(!1),r.props.showTimeInput&&r.setOpen(!0),r.setState({inputValue:null})},r.onInputClick=function(){r.props.disabled||r.props.readOnly||r.setOpen(!0),r.props.onInputClick()},r.onInputKeyDown=function(e){r.props.onKeyDown(e);var t=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){var n=fe(r.state.preSelection);if("Enter"===t)e.preventDefault(),r.inputOk()&&r.state.lastPreSelectChange===ht?(r.handleSelect(n,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(n)):r.setOpen(!1);else if("Escape"===t)e.preventDefault(),r.setOpen(!1),r.inputOk()||r.props.onInputError({code:1,msg:ct});else if("Tab"===t)r.setOpen(!1,!0);else if(!r.props.disabledKeyboardNavigation){var a=void 0;switch(t){case"ArrowLeft":a=Object(_.a)(n,1);break;case"ArrowRight":a=Object(f.a)(n,1);break;case"ArrowUp":a=Object(g.a)(n,1);break;case"ArrowDown":a=Object(p.a)(n,1);break;case"PageUp":a=Object(y.a)(n,1);break;case"PageDown":a=Object(h.a)(n,1);break;case"Home":a=Object(v.a)(n,1);break;case"End":a=Object(m.a)(n,1)}if(!a)return void(r.props.onInputError&&r.props.onInputError({code:1,msg:ct}));e.preventDefault(),r.setState({lastPreSelectChange:ht}),r.props.adjustDateOnChange&&r.setSelected(a),r.setPreSelection(a)}}else"ArrowDown"!==t&&"ArrowUp"!==t||r.onInputClick()},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.props.onChange(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.renderCalendar=function(){return r.props.inline||r.isCalendarOpen()?a.a.createElement(dt,{ref:function(e){r.calendar=e},locale:r.props.locale,adjustDateOnChange:r.props.adjustDateOnChange,setOpen:r.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,dateFormat:r.props.dateFormatCalendar,useWeekdaysShort:r.props.useWeekdaysShort,formatWeekDay:r.props.formatWeekDay,dropdownMode:r.props.dropdownMode,selected:r.props.selected,preSelection:r.state.preSelection,onSelect:r.handleSelect,onWeekSelect:r.props.onWeekSelect,openToDate:r.props.openToDate,minDate:r.props.minDate,maxDate:r.props.maxDate,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,startDate:r.props.startDate,endDate:r.props.endDate,excludeDates:r.props.excludeDates,filterDate:r.props.filterDate,onClickOutside:r.handleCalendarClickOutside,formatWeekNumber:r.props.formatWeekNumber,highlightDates:r.state.highlightDates,includeDates:r.props.includeDates,includeTimes:r.props.includeTimes,injectTimes:r.props.injectTimes,inline:r.props.inline,peekNextMonth:r.props.peekNextMonth,showMonthDropdown:r.props.showMonthDropdown,useShortMonthInDropdown:r.props.useShortMonthInDropdown,showMonthYearDropdown:r.props.showMonthYearDropdown,showWeekNumbers:r.props.showWeekNumbers,showYearDropdown:r.props.showYearDropdown,withPortal:r.props.withPortal,forceShowMonthNavigation:r.props.forceShowMonthNavigation,showDisabledMonthNavigation:r.props.showDisabledMonthNavigation,scrollableYearDropdown:r.props.scrollableYearDropdown,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,todayButton:r.props.todayButton,weekLabel:r.props.weekLabel,outsideClickIgnoreClass:ut,fixedHeight:r.props.fixedHeight,monthsShown:r.props.monthsShown,monthSelectedIn:r.state.monthSelectedIn,onDropdownFocus:r.handleDropdownFocus,onMonthChange:r.props.onMonthChange,onYearChange:r.props.onYearChange,dayClassName:r.props.dayClassName,showTimeSelect:r.props.showTimeSelect,showTimeSelectOnly:r.props.showTimeSelectOnly,onTimeChange:r.handleTimeChange,timeFormat:r.props.timeFormat,timeIntervals:r.props.timeIntervals,minTime:r.props.minTime,maxTime:r.props.maxTime,excludeTimes:r.props.excludeTimes,timeCaption:r.props.timeCaption,className:r.props.calendarClassName,container:r.props.calendarContainer,yearDropdownItemNumber:r.props.yearDropdownItemNumber,previousMonthButtonLabel:r.props.previousMonthButtonLabel,nextMonthButtonLabel:r.props.nextMonthButtonLabel,timeInputLabel:r.props.timeInputLabel,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderCustomHeader:r.props.renderCustomHeader,popperProps:r.props.popperProps,renderDayContents:r.props.renderDayContents,onDayMouseEnter:r.props.onDayMouseEnter,onMonthMouseLeave:r.props.onMonthMouseLeave,showTimeInput:r.props.showTimeInput,showMonthYearPicker:r.props.showMonthYearPicker},r.props.children):null},r.renderDateInput=function(){var e,t,n,o,s,l,u=i()(r.props.className,((e={})[ut]=r.state.open,e)),d=r.props.customInput||a.a.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",f="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:(n=r.props.selected,o=r.props,s=o.dateFormat,l=o.locale,n&&me(n,Array.isArray(s)?s[0]:s,l)||"");return a.a.cloneElement(d,((t={})[c]=function(e){r.input=e},t.value=f,t.onBlur=r.handleBlur,t.onChange=r.handleChange,t.onClick=r.onInputClick,t.onFocus=r.handleFocus,t.onKeyDown=r.onInputKeyDown,t.id=r.props.id,t.name=r.props.name,t.autoFocus=r.props.autoFocus,t.placeholder=r.props.placeholderText,t.disabled=r.props.disabled,t.autoComplete=r.props.autoComplete,t.className=u,t.title=r.props.title,t.readOnly=r.props.readOnly,t.required=r.props.required,t.tabIndex=r.props.tabIndex,t))},r.renderClearButton=function(){return r.props.isClearable&&null!=r.props.selected?a.a.createElement("button",{type:"button",className:"react-datepicker__close-icon",onClick:r.onClearClick,title:r.props.clearButtonTitle,tabIndex:-1}):null},r.state=r.calcInitialState(),r}return ue(t,e),se(t,null,[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showMonthYearPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next month",timeInputLabel:"Time",renderDayContents:function(e){return e},inlineFocusSelectedMonth:!1}}}]),t.prototype.componentDidUpdate=function(e,t){var n,r;e.inline&&(n=e.selected,r=this.props.selected,n&&r?Object(k.a)(n)!==Object(k.a)(r)||Object(D.a)(n)!==Object(D.a)(r):n!==r)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:He(this.props.highlightDates)}),t.focused||we(e.selected,this.props.selected)||this.setState({inputValue:null})},t.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout()},t.prototype.render=function(){var e=this.renderCalendar();return this.props.inline&&!this.props.withPortal?e:this.props.withPortal?a.a.createElement("div",null,this.props.inline?null:a.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),this.state.open||this.props.inline?a.a.createElement("div",{className:"react-datepicker__portal"},e):null):a.a.createElement(lt,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),popperModifiers:this.props.popperModifiers,targetComponent:a.a.createElement("div",{className:"react-datepicker__input-container"},this.renderDateInput(),this.renderClearButton()),popperContainer:this.props.popperContainer,popperComponent:e,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps})},t}(a.a.Component),pt="input",ht="navigate";t.a=ft}).call(this,n(56))},function(e,t,n){"use strict";function r(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function a(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var o={p:a,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),i=o[1],s=o[2];if(!s)return r(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(i,t)).replace("{{time}}",a(s,t))}};t.a=o},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(3),a=n(24);function o(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=t.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var i=Object(a.a)(o),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var l=Object(a.a)(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=l.getTime()?n:n-1}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(38);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,-n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return!isNaN(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=t.getFullYear(),a=t.getMonth(),o=new Date(0);return o.setFullYear(n,a+1,0),o.setHours(0,0,0,0),o.getDate()}},function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function a(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var o={date:a({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:a({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:a({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r,a=n||{};if("formatting"===(a.context?String(a.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=a.width?String(a.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var s=e.defaultWidth,l=a.width?String(a.width):e.defaultWidth;r=e.values[l]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function l(e){return function(t,n){var r=String(t),a=n||{},o=a.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=r.match(i);if(!s)return null;var l,u=s[0],d=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(d)?d.findIndex(function(e){return e.test(r)}):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(d,function(e){return e.test(r)}),l=e.valueCallback?e.valueCallback(l):l,{value:l=a.valueCallback?a.valueCallback(l):l,rest:r.slice(u.length)}}}var u,d={formatDistance:function(e,t,n){var a;return n=n||{},a="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+a:a+" ago":a},formatLong:o,formatRelative:function(e,t,n,r){return i[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},a=n.match(u.matchPattern);if(!a)return null;var o=a[0],i=n.match(u.parsePattern);if(!i)return null;var s=u.valueCallback?u.valueCallback(i[0]):i[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=d},function(e,t,n){"use strict";var r=n(3),a=n(24),o=n(65);n.d(t,"a",function(){return s});var i=6048e5;function s(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e),n=Object(a.a)(t).getTime()-function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(o.a)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Object(a.a)(n)}(t).getTime();return Math.round(n/i)+1}},function(e,t,n){"use strict";var r=n(3),a=n(22),o=n(5),i=n(37);n.d(t,"a",function(){return l});var s=6048e5;function l(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Object(r.a)(e),l=Object(a.a)(n,t).getTime()-function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=t||{},r=n.locale,s=r&&r.options&&r.options.firstWeekContainsDate,l=null==s?1:Object(o.a)(s),u=null==n.firstWeekContainsDate?l:Object(o.a)(n.firstWeekContainsDate),d=Object(i.a)(e,t),c=new Date(0);return c.setUTCFullYear(d,0,u),c.setUTCHours(0,0,0,0),Object(a.a)(c,t)}(n,t).getTime();return Math.round(l/s)+1}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(5),a=n(23);function o(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,-n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(5),a=n(38),o=6e4;function i(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(a.a)(e,n*o)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getTime()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n(3);function a(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDate()}},function(e,t,n){var r=n(423),a=n(424),o=n(425);e.exports=function(e,t){return r(e)||a(e,t)||o()}},function(e,t,n){"use strict";var r=n(69),a=n(66),o=n(3);function i(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var s=n(64),l=n(19),u=n(25),d=n(5),c=n(37);function f(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=n||{},a=r.locale,i=a&&a.options&&a.options.weekStartsOn,s=null==i?0:Object(d.a)(i),l=null==r.weekStartsOn?s:Object(d.a)(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Object(o.a)(e),c=Object(d.a)(t),f=((c%7+7)%7<l?7:0)+c-u.getUTCDay();return u.setUTCDate(u.getUTCDate()+f),u}var p=n(70);var h=n(71);var m=n(24),_=n(22),g=36e5,y=6e4,v=1e3,b={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},M=/^([+-])(\d{2})(\d{2})?|Z/,w=/^([+-])(\d{2})(\d{2})|Z/,T=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,L=/^([+-])(\d{2}):(\d{2})|Z/,k=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function D(e,t,n){var r=t.match(e);if(!r)return null;var a=parseInt(r[0],10);return{value:n?n(a):a,rest:t.slice(r[0].length)}}function x(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,a=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,i=n[5]?parseInt(n[5],10):0;return{value:r*(a*g+o*y+i*v),rest:t.slice(n[0].length)}}function E(e,t){return D(b.anyDigitsSigned,e,t)}function S(e,t,n){switch(e){case 1:return D(b.singleDigit,t,n);case 2:return D(b.twoDigits,t,n);case 3:return D(b.threeDigits,t,n);case 4:return D(b.fourDigits,t,n);default:return D(new RegExp("^\\d{1,"+e+"}"),t,n)}}function Y(e,t,n){switch(e){case 1:return D(b.singleDigitSigned,t,n);case 2:return D(b.twoDigitsSigned,t,n);case 3:return D(b.threeDigitsSigned,t,n);case 4:return D(b.fourDigitsSigned,t,n);default:return D(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function O(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function C(e,t){var n,r=t>0,a=r?t:1-t;if(a<=50)n=e||100;else{var o=a+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var P=[31,28,31,30,31,30,31,31,30,31,30,31],I=[31,29,31,30,31,30,31,31,30,31,30,31];function j(e){return e%400==0||e%4==0&&e%100!=0}var R={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var a=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return S(4,e,a);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return S(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var a=e.getUTCFullYear();if(n.isTwoDigitYear){var o=C(n.year,a);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var a=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return S(4,e,a);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:a});default:return S(t.length,e,a)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var a=Object(c.a)(e,r);if(n.isTwoDigitYear){var o=C(n.year,a);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r)}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(_.a)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return Y("R"===t?4:t.length,e)},set:function(e,t,n,r){var a=new Date(0);return a.setUTCFullYear(n,0,4),a.setUTCHours(0,0,0,0),Object(m.a)(a)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return Y("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return S(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return S(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var a=function(e){return e-1};switch(t){case"M":return D(b.month,e,a);case"MM":return S(2,e,a);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var a=function(e){return e-1};switch(t){case"L":return D(b.month,e,a);case"LL":return S(2,e,a);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:a});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return D(b.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(_.a)(function(e,t,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Object(o.a)(e),a=Object(d.a)(t),i=Object(h.a)(r,n)-a;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return D(b.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(m.a)(function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(o.a)(e),r=Object(d.a)(t),a=Object(p.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*a),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return D(b.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return S(t.length,e)}},validate:function(e,t,n){var r=j(e.getUTCFullYear()),a=e.getUTCMonth();return r?t>=1&&t<=I[a]:t>=1&&t<=P[a]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return D(b.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return S(t.length,e)}},validate:function(e,t,n){return j(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=f(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return S(t.length,e,a);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=f(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var a=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return S(t.length,e,a);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:a});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=f(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var a=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return S(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:a})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:a})||n.day(e,{width:"short",context:"formatting",valueCallback:a})||n.day(e,{width:"narrow",context:"formatting",valueCallback:a})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(d.a)(t);n%7==0&&(n-=7);var r=Object(o.a)(e),a=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+a),r}(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(O(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(O(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(O(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return D(b.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var a=e.getUTCHours()>=12;return a&&n<12?e.setUTCHours(n+12,0,0,0):a||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return D(b.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return D(b.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return D(b.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var a=n<=24?n%24:n;return e.setUTCHours(a,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return D(b.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return D(b.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return S(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return S(t.length,e,function(e){return Math.floor(e*Math.pow(10,3-t.length))})},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return x(M,e);case"XX":return x(w,e);case"XXXX":return x(T,e);case"XXXXX":return x(k,e);case"XXX":default:return x(L,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return x(M,e);case"xx":return x(w,e);case"xxxx":return x(T,e);case"xxxxx":return x(k,e);case"xxx":default:return x(L,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return E(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return E(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};n.d(t,"a",function(){return B});var H=10,A=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,F=/^'(.*?)'?$/,W=/''/g,U=/\S/,z=/[a-zA-Z]/;function B(e,t,n,c){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var f=String(e),p=String(t),h=c||{},m=h.locale||r.a;if(!m.match)throw new RangeError("locale must contain match property");var _=m.options&&m.options.firstWeekContainsDate,g=null==_?1:Object(d.a)(_),y=null==h.firstWeekContainsDate?g:Object(d.a)(h.firstWeekContainsDate);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=m.options&&m.options.weekStartsOn,b=null==v?0:Object(d.a)(v),M=null==h.weekStartsOn?b:Object(d.a)(h.weekStartsOn);if(!(M>=0&&M<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===p)return""===f?Object(o.a)(n):new Date(NaN);var w,T={firstWeekContainsDate:y,weekStartsOn:M,locale:m},L=[{priority:H,set:V,index:0}],k=p.match(N).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,s.a[t])(e,m.formatLong,T):e}).join("").match(A),D=[];for(w=0;w<k.length;w++){var x=k[w];!h.useAdditionalWeekYearTokens&&Object(u.b)(x)&&Object(u.c)(x),!h.useAdditionalDayOfYearTokens&&Object(u.a)(x)&&Object(u.c)(x);var E=x[0],S=R[E];if(S){var Y=S.incompatibleTokens;if(Array.isArray(Y)){for(var O=void 0,C=0;C<D.length;C++){var P=D[C].token;if(-1!==Y.indexOf(P)||P===E){O=D[C];break}}if(O)throw new RangeError("The format string mustn't contain `".concat(O.fullToken,"` and `").concat(x,"` at the same time"))}else if("*"===S.incompatibleTokens&&D.length)throw new RangeError("The format string mustn't contain `".concat(x,"` and any other token at the same time"));D.push({token:E,fullToken:x});var I=S.parse(f,x,m.match,T);if(!I)return new Date(NaN);L.push({priority:S.priority,set:S.set,validate:S.validate,value:I.value,index:L.length}),f=I.rest}else{if(E.match(z))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");if("''"===x?x="'":"'"===E&&(x=x.match(F)[1].replace(W,"'")),0!==f.indexOf(x))return new Date(NaN);f=f.slice(x.length)}}if(f.length>0&&U.test(f))return new Date(NaN);var j=L.map(function(e){return e.priority}).sort(function(e,t){return t-e}).filter(function(e,t,n){return n.indexOf(e)===t}).map(function(e){return L.filter(function(t){return t.priority===e}).reverse()}).map(function(e){return e[0]}),B=Object(o.a)(n);if(isNaN(B))return new Date(NaN);var q=Object(a.a)(B,Object(l.a)(B)),G={};for(w=0;w<j.length;w++){var J=j[w];if(J.validate&&!J.validate(q,J.value,T))return new Date(NaN);var X=J.set(q,G,J.value,T);X[0]?(q=X[0],i(G,X[1])):q=X}return q}function V(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}},function(e,t,n){"use strict";var r=n(257),a=n.n(r),o=n(29),i=n.n(o),s=n(6),l=n.n(s),u=n(36),d=n.n(u),c=n(1),f=n.n(c),p=n(0),h=n(95),m=n(258),_=n.n(m)()({setReferenceNode:void 0,referenceNode:void 0}),g=function(e){function t(){var t;return t=e.call(this)||this,f()(l()(t),"setReferenceNode",function(e){e&&t.state.context.referenceNode!==e&&t.setState(function(t){var n=t.context;return{context:i()({},n,{referenceNode:e})}})}),t.state={context:{setReferenceNode:t.setReferenceNode,referenceNode:void 0}},t}return d()(t,e),t.prototype.render=function(){return p.createElement(_.Provider,{value:this.state.context},this.props.children)},t}(p.Component),y=function(e){return Array.isArray(e)?e[0]:e},v=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},b={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},M={},w=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(t),"state",{data:void 0,placement:void 0}),f()(l()(t),"popperInstance",void 0),f()(l()(t),"popperNode",null),f()(l()(t),"arrowNode",null),f()(l()(t),"setPopperNode",function(e){e&&t.popperNode!==e&&(v(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())}),f()(l()(t),"setArrowNode",function(e){t.arrowNode=e}),f()(l()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),f()(l()(t),"getOptions",function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:i()({},t.props.modifiers,{arrow:i()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}}),f()(l()(t),"getPopperStyle",function(){return t.popperNode&&t.state.data?i()({position:t.state.data.offsets.popper.position},t.state.data.styles):b}),f()(l()(t),"getPopperPlacement",function(){return t.state.data?t.state.placement:void 0}),f()(l()(t),"getArrowStyle",function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:M}),f()(l()(t),"getOutOfBoundariesState",function(){return t.state.data?t.state.data.hide:void 0}),f()(l()(t),"destroyPopperInstance",function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)}),f()(l()(t),"updatePopperInstance",function(){t.destroyPopperInstance();var e=l()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new h.a(n,e,t.getOptions()))}),f()(l()(t),"scheduleUpdate",function(){t.popperInstance&&t.popperInstance.scheduleUpdate()}),t}d()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement!==e.placement||this.props.referenceElement!==e.referenceElement||this.props.positionFixed!==e.positionFixed?this.updatePopperInstance():this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){v(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return y(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(p.Component);f()(w,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});h.a.placements;function T(e){var t=e.referenceElement,n=a()(e,["referenceElement"]);return p.createElement(_.Consumer,null,function(e){var r=e.referenceNode;return p.createElement(w,i()({referenceElement:void 0!==t?t:r},n))})}var L=n(93),k=n.n(L),D=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,f()(l()(t),"refHandler",function(e){v(t.props.innerRef,e),v(t.props.setReferenceNode,e)}),t}d()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){v(this.props.innerRef,null)},n.render=function(){return k()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),y(this.props.children)({ref:this.refHandler})},t}(p.Component);function x(e){return p.createElement(_.Consumer,null,function(t){var n=t.setReferenceNode;return p.createElement(D,i()({setReferenceNode:n},e))})}n.d(t,"b",function(){return T}),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return x})},function(e,t,n){"use strict";
|
20 |
/*
|
21 |
object-assign
|
22 |
(c) Sindre Sorhus
|
23 |
@license MIT
|
24 |
+
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),u=1;u<arguments.length;u++){for(var d in n=Object(arguments[u]))a.call(n,d)&&(l[d]=n[d]);if(r){s=r(n);for(var c=0;c<s.length;c++)o.call(n,s[c])&&(l[s[c]]=n[s[c]])}}return l}},function(e,t,n){"use strict";(function(t){var r=n(21),a=n(287),o={"Content-Type":"application/x-www-form-urlencoded"};function i(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n(105):void 0!==t&&(s=n(105)),s),transformRequest:[function(e,t){return a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(i(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(i(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],function(e){l.headers[e]={}}),r.forEach(["post","put","patch"],function(e){l.headers[e]=r.merge(o)}),e.exports=l}).call(this,n(104))},function(e,t,n){"use strict";t.__esModule=!0,t.isValidDelay=a,t.objectValues=function(e){return Object.keys(e).map(function(t){return e[t]})},t.falseOrElement=t.falseOrDelay=void 0;var r=n(0);function a(e){return"number"==typeof e&&!isNaN(e)&&e>0}function o(e){return e.isRequired=function(t,n,r){if(void 0===t[n])return new Error("The prop "+n+" is marked as required in \n "+r+", but its value is undefined.");e(t,n,r)},e}var i=o(function(e,t,n){var r=e[t];return!1===r||a(r)?null:new Error(n+" expect "+t+" \n to be a valid Number > 0 or equal to false. "+r+" given.")});t.falseOrDelay=i;var s=o(function(e,t,n){var a=e[t];return!1===a||(0,r.isValidElement)(a)?null:new Error(n+" expect "+t+" \n to be a valid react element or equal to false. "+a+" given.")});t.falseOrElement=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(333),a=n(46);e.exports=function e(t,n,o,i,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!=t&&n!=n:r(t,n,o,i,e,s))}},function(e,t,n){var r=n(34)(n(27),"Map");e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(350),a=n(357),o=n(359),i=n(360),s=n(361);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=i,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(378),a=n(385),o=n(252);e.exports=function(e){return o(e)?r(e):a(e)}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(28),a=n(90),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(45),a=n(46),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||a(e)&&r(e)==o}},function(e,t,n){"use strict";
|
25 |
/*!
|
26 |
* react-filepond v5.0.0
|
27 |
* A handy FilePond adapter component for React
|
30 |
* https://pqina.nl/filepond
|
31 |
*
|
32 |
* Licensed under the MIT license.
|
33 |
+
*/Object.defineProperty(t,"__esModule",{value:!0}),t.File=t.FilePond=t.registerPlugin=void 0;var r,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),i=(r=o)&&r.__esModule?r:{default:r},s=n(283);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}t.registerPlugin=s.registerPlugin;var c=(0,s.supported)(),f=function(e){return e?i.default.Children.map(e,function(e){var t=e.props;if(t.src){var n={};return t.origin&&(n.type=t.origin),t.name&&(n.file={name:t.name,size:t.size,type:t.type}),t.metadata&&(n.metadata=t.metadata),{source:t.src,options:n}}return t.source&&t.type?{source:t.source,options:{type:t.type}}:t.source}):[]},p=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"];t.FilePond=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,i.default.Component),a(t,[{key:"componentDidMount",value:function(){var e=this;c&&(this._pond=(0,s.create)(this._element,Object.assign({},this.props,{files:f(this.props.children)})),Object.keys(this._pond).filter(function(e){return!p.includes(e)}).forEach(function(t){e[t]=e._pond[t]}))}},{key:"componentWillUnmount",value:function(){this._pond&&this._pond.destroy()}},{key:"componentDidUpdate",value:function(e){if(this._pond){var t=Object.assign({},this.props),n=f(e.children),r=f(this.props.children);JSON.stringify(n)!==JSON.stringify(r)&&(t.files=r),this._pond.setOptions(t)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.id,r=t.name,a=t.className,i=t.allowMultiple,s=t.required,l=t.captureMethod,u=t.acceptedFileTypes;return(0,o.createElement)("div",{className:"filepond--wrapper"},(0,o.createElement)("input",{type:"file",name:r,id:n,accept:u,multiple:i,required:s,className:a,capture:l,ref:function(t){return e._element=t}}))}}]),t}(),t.File=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,i.default.Component),t}()},function(e,t,n){"use strict";var r,a,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=T(n(0)),u=T(n(15)),d=T(n(35)),c=T(n(17)),f=T(n(315)),p=T(n(316)),h=T(n(317)),m=T(n(318)),_=T(n(319)),g=T(n(320)),y=T(n(321)),v=T(n(322)),b=n(323),M=T(n(324)),w=T(n(325));function T(e){return e&&e.__esModule?e:{default:e}}var L=(0,f.default)(r=(0,p.default)(r=(0,h.default)(r=(0,m.default)(r=(0,_.default)(r=(0,g.default)((o=a=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={place:e.place||"top",desiredPlace:e.place||"top",type:"dark",effect:"float",show:!1,border:!1,offset:{},extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:(0,b.parseAria)(e),isEmptyTip:!1,disable:!1,originTooltip:null,isMultiline:!1},n.bind(["showTooltip","updateTooltip","hideTooltip","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),n.mount=!0,n.delayShowLoop=null,n.delayHideLoop=null,n.delayReshow=null,n.intervalUpdateContent=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.default.Component),s(t,[{key:"bind",value:function(e){var t=this;e.forEach(function(e){t[e]=t[e].bind(t)})}},{key:"componentDidMount",value:function(){var e=this.props,t=e.insecure,n=e.resizeHide;t&&this.setStyleHeader(),this.bindListener(),this.bindWindowEvents(n)}},{key:"componentWillReceiveProps",value:function(e){var t=this.state.ariaProps,n=(0,b.parseAria)(e);Object.keys(n).some(function(e){return n[e]!==t[e]})&&this.setState({ariaProps:n})}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(),this.unbindWindowEvents()}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t=void 0;if(e){var n=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t=document.querySelectorAll('[data-tip][data-for="'+n+'"]')}else t=document.querySelectorAll("[data-tip]:not([data-for])");return(0,M.default)(t)}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,a=t.isCapture;this.getTargetArray(n).forEach(function(t){var n=e.isCapture(t),r=e.getEffect(t);null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n))}),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,a)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.getTargetArray(n).forEach(function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)}),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e=this.props,t=e.getContent,n=e.children,r=void 0;return t&&(r=Array.isArray(t)?t[0]&&t[0](this.state.originTooltip):t(this.state.originTooltip)),(0,v.default)(this.state.originTooltip,n,r,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(t&&!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget}))return;var n=this.props,r=n.multiline,a=n.getContent,o=e.currentTarget.getAttribute("data-tip"),i=e.currentTarget.getAttribute("data-multiline")||r||!1,s=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide);var u=e.currentTarget.getAttribute("data-place")||this.props.place||"top",c=s?"solid":this.getEffect(e.currentTarget),f=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},p=(0,y.default)(e,e.currentTarget,d.default.findDOMNode(this),u,u,c,f),h=p.isNewState?p.newState.place:u;this.clearTimer();var m=e.currentTarget,_=this.state.show?m.getAttribute("data-delay-update")||this.props.delayUpdate:0,g=this,b=function(){g.setState({originTooltip:o,isMultiline:i,desiredPlace:u,place:h,type:m.getAttribute("data-type")||g.props.type||"dark",effect:c,offset:f,html:m.getAttribute("data-html")?"true"===m.getAttribute("data-html"):g.props.html||!1,delayShow:m.getAttribute("data-delay-show")||g.props.delayShow||0,delayHide:m.getAttribute("data-delay-hide")||g.props.delayHide||0,delayUpdate:m.getAttribute("data-delay-update")||g.props.delayUpdate||0,border:m.getAttribute("data-border")?"true"===m.getAttribute("data-border"):g.props.border||!1,extraClass:m.getAttribute("data-class")||g.props.class||g.props.className||"",disable:m.getAttribute("data-tip-disable")?"true"===m.getAttribute("data-tip-disable"):g.props.disable||!1,currentTarget:m},function(){l&&g.addScrollListener(g.state.currentTarget),g.updateTooltip(e),a&&Array.isArray(a)&&(g.intervalUpdateContent=setInterval(function(){if(g.mount){var e=g.props.getContent,t=(0,v.default)(o,"",e[0](),i),n=g.isEmptyTip(t);g.setState({isEmptyTip:n}),g.updatePosition()}},a[1]))})};_?this.delayReshow=setTimeout(b,_):b()}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,a=n.disable,o=this.props.afterShow,i=this.getTooltipContent(),s=parseInt(r,10),l=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!this.isEmptyTip(i)&&!a){var u=function(){if(Array.isArray(i)&&i.length>0||i){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:l,show:!0},function(){t.updatePosition(),n&&o&&o(e)})}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(u,s):u()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=this.state,a=r.delayHide,o=r.disable,i=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(t)if(!this.getTargetArray(this.props.id).some(function(t){return t===e.currentTarget})||!this.state.show)return;var l=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},function(){n.removeScrollListener(),t&&i&&i(e)}))};this.clearTimer(),a?this.delayHideLoop=setTimeout(l,parseInt(a,10)):l()}}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltip,t)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,a=t.place,o=t.desiredPlace,i=t.effect,s=t.offset,l=d.default.findDOMNode(this),u=(0,y.default)(n,r,l,a,o,i,s);if(u.isNewState)return this.setState(u.newState,function(){e.updatePosition()});l.style.left=u.position.left+"px",l.style.top=u.position.top+"px"}},{key:"setStyleHeader",value:function(){var e=document.getElementsByTagName("head")[0];if(!e.querySelector('style[id="react-tooltip"]')){var t=document.createElement("style");t.id="react-tooltip",t.innerHTML=w.default,n.nc&&t.setAttribute("nonce",n.nc),e.insertBefore(t,e.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,a=n.html,o=n.ariaProps,s=n.disable,u=this.getTooltipContent(),d=this.isEmptyTip(u),f=(0,c.default)("__react_component_tooltip",{show:this.state.show&&!s&&!d},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate},{allow_click:this.props.clickable}),p=this.props.wrapper;return t.supportedWrappers.indexOf(p)<0&&(p=t.defaultProps.wrapper),a?l.default.createElement(p,i({className:f+" "+r,id:this.props.id,ref:function(t){return e.tooltipRef=t}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:u}})):l.default.createElement(p,i({className:f+" "+r,id:this.props.id},o,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),u)}}]),t}(),a.propTypes={children:u.default.any,place:u.default.string,type:u.default.string,effect:u.default.string,offset:u.default.object,multiline:u.default.bool,border:u.default.bool,insecure:u.default.bool,class:u.default.string,className:u.default.string,id:u.default.string,html:u.default.bool,delayHide:u.default.number,delayUpdate:u.default.number,delayShow:u.default.number,event:u.default.string,eventOff:u.default.string,watchWindow:u.default.bool,isCapture:u.default.bool,globalEventOff:u.default.string,getContent:u.default.any,afterShow:u.default.func,afterHide:u.default.func,disable:u.default.bool,scrollHide:u.default.bool,resizeHide:u.default.bool,wrapper:u.default.string,clickable:u.default.bool},a.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1},a.supportedWrappers=["div","span"],a.displayName="ReactTooltip",r=o))||r)||r)||r)||r)||r)||r;e.exports=L},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Droppable",{enumerable:!0,get:function(){return a.default}});var r=o(n(312)),a=o(n(313));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";(function(e){for(
|
34 |
/**!
|
35 |
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
36 |
* @version 1.15.0
|
55 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|