Cloudflare - Version 3.2.0

Version Description

  • 2017-3-1 =

Added

  • Bypass Cache By Cookie functionality.
  • HTTP/2 Server Push functionality (disabled by default).

Changed

  • Lowered the plugin size.
  • Automatic Cache Management feature includes purging taxonomies.
  • Automatic Cache Management feature supports sites which use both HTTP and HTTPS.

Fixed

  • Admin bar disappearing from the plugin.
  • Bug where spinner was loading forever.
  • Bug where the backend errors where not being shown in the frontend.
  • Issues where IE11 was not working properly.
Download this release

Release Info

Developer furkan811
Plugin Icon 128x128 Cloudflare
Version 3.2.0
Comparing to
See all releases

Code changes from version 3.1.1 to 3.2.0

CONTRIBUTING.md ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contributing to Cloudflare Plugins
2
+
3
+ 👍🎉 First off, thanks for taking the time to contribute! 🎉👍
4
+
5
+ ## How To Contribute
6
+
7
+ We welcome community contribution to this repository. To help add functionality or address issues, please take the following steps:
8
+
9
+ * Fork the repository from the master branch.
10
+ * Create a new branch for your features / fixes.
11
+ * Make the changes you wish to see.
12
+ * Add tests for all changes.
13
+ * Create a pull request with details of what changes have been made, explanation of new behaviour, and link to issue that is addressed.
14
+ * Addressing (with @...) one or more of the maintainers in the description of the pull request
15
+ * Ensure documentation contains the correct information.
16
+ * Pull requests will be reviewed and hopefully merged into a release.
17
+
18
+ ## Before Contributing
19
+
20
+ Cloudflare has multiple plugins using shared codebases.
21
+
22
+ [WordPress](https://github.com/cloudflare/Cloudflare-WordPress), [CPanel](https://github.com/cloudflare/CloudFlare-CPanel), [Magento](https://github.com/cloudflare/CloudFlare-Magento) are the main repositories of the plugins. Every plugin has a config.js file which allows them to control the frontend of the plugin.
23
+
24
+ Below are Cloudflare maintained repositories the plugins depend on.
25
+
26
+ * [cloudflare-frontend](https://github.com/cloudflare/CloudFlare-FrontEnd) is a generic frontend used in plugins. You can add/remove cards simply by editing [config](https://github.com/cloudflare/CloudFlare-FrontEnd/blob/master/config.js) file.
27
+ * [cf-ui](https://github.com/cloudflare/cf-ui) is a Cloudflare UI Framework where cloudflare-frontend is using.
28
+ * [cloudflare-plugin-backend](https://github.com/cloudflare/cloudflare-plugin-backend) is a generic backend plugins use.
29
+ * [cf-ip-rewrite](https://github.com/cloudflare/cf-ip-rewrite) allows to rewrite Cloudflare IP's in Application level.
30
+ * [mod_cloudflare](https://github.com/cloudflare/mod_cloudflare) allows Apache to rewrite Cloudflare IP's with user IP's. It is not used in plugins itself but it maybe be a better alternative then `cf-ip-rewrite`.
31
+
32
+ ## WordPress Plugin Specific Details
33
+
34
+ Cloudflare WordPress Plugin uses PHPUnit for testing. WordPress specific function are mocked inside [WordPressWrapper](https://github.com/cloudflare/Cloudflare-WordPress/blob/master/src/WordPress/WordPressWrapper.php) class. Everything under `src/` directory should have unit test written.
35
+
36
+ ## Frontend Updates
37
+
38
+ Each plugin may use different Frontend [versions]((https://github.com/cloudflare/CloudFlare-FrontEnd/releases)). When publishing a Frontend release we copy the following files to other plugins;
39
+
40
+ * `assets/`
41
+ * `fonts/`
42
+ * `lang/`
43
+ * `stylesheets/`
44
+ * `compiled.js` which is created when `gulp compress` command is called within Frontend repository.
45
+
46
+ ## Translations
47
+
48
+ The plugins use a common language file which is located [here](https://github.com/cloudflare/CloudFlare-FrontEnd/tree/master/lang). English translation is always up to date where as other translations are not. If you have any issues or questions regarding with translations feel free to open an [issue](https://github.com/cloudflare/CloudFlare-FrontEnd/issues).
README.md CHANGED
@@ -1,5 +1,7 @@
1
  # Cloudflare’s Plugin for WordPress
2
 
 
 
3
  Cloudflare’s WordPress plugin brings all of the benefits of Cloudflare into your WordPress dashboard for configuration, including a one-click application of default settings specifically optimized for WordPress.
4
 
5
  By enabling Cloudflare on your WordPress website, you’ll find performance and security gains such as doubling your page load speeds, DDoS protection, web application firewall with WordPress-specific rulesets, free SSL, and SEO improvements.
@@ -7,7 +9,7 @@ By enabling Cloudflare on your WordPress website, you’ll find performance and
7
  ## Table of Contents
8
 
9
  [Description](#description)
10
- [Installation](#description)
11
  [Support](#support)
12
  [Features](#features)
13
  [FAQ](#faq)
@@ -20,66 +22,63 @@ The WordPress plugin for Cloudflare offers all of the benefits of Cloudflare, wi
20
 
21
  ## Features
22
 
23
- ### One-click WordPress-optimized settings
24
- One-click application of WordPress-optimized settings is the easiest way to setup Cloudflare’s performance and security on your WordPress site. You can review the recommended settings that are applied, here: https://support.cloudflare.com/hc/en-us/articles/227342487
 
 
 
25
 
26
- ### Web application firewall (WAF) rulesets
27
  Cloudflare’s web application firewall (WAF), available on all of Cloudflare’s paid plans, has built-in rulesets specifically built to mitigate against WordPress threats and vulnerabilities. Cloudflare’s WAF provides confidence that your website is always protected, even against the latest threats and vulnerabilities targeting WordPress websites.
28
 
29
- ### Automatic cache purge on website updates
 
30
  Cloudflare’s plugin for WordPress automatically refreshes the Cloudflare cache upon making changes to your website appearance. This means that you can focus on your website, while we take care of ensuring that the freshest content is always available to your visitors.
31
 
32
  ### Additional Features
33
- - Header rewrites to prevent a redirect loop when Cloudflare’s Universal SSL is enabled.
34
- - Change Cloudflare settings from within the plugin without needing to navigate to the Cloudflare.com dashboard. You can change settings for cache purge, security level, Always Online™, and image optimization.
35
- - View analytics such as total visitors, bandwidth saved, and threats blocked.
36
- - Support for HTTP2/Server Push.
 
37
 
38
  ## Installation
39
- 1. To install the Cloudflare plugin into your WordPress admin panel, please visit: https://wordpress.org/plugins/cloudflare/ and click “Download” or download the plugin from this GitHub repo.
40
- - To install the plugin after downloading it via GitHub, navigate to Plugins >> Add New >> Upload Plugin and upload the Cloudflare-Wordpress-master.zip file.
41
 
 
 
42
  2. Once you’ve installed the plugin, activate it through the WordPress plugin panel.
43
-
44
- 3. If you're upgrading from the old plugin, and had previously inputted your API Key, you'll be automatically logged-in after updating the plugin.
45
-
46
  4. If this is the first time installing Cloudflare's WordPress plugin, please navigate to the plugin settings inside of your WordPress admin panel after activating, and input your Cloudflare username and API key; to find your API key, follow these instructions. If you do not already have a Cloudflare account, you’ll see the option to create one.
47
-
48
  5. After successfully logging into the plugin, click the “Apply Default Settings” button within the plugin’s dashboard. Clicking “Apply” will enable specific Cloudflare settings, optimized for the WordPress platform. These settings can be found here.
49
-
50
  6. Once this setting has been applied, that’s it! Your website is now on the Cloudflare network and optimized for the WordPress platform. You’ll also begin to see improved website load speeds, bandwidth savings, and protection against hackers, spammers, and bots.
51
 
52
  ## FAQ
 
53
  ### Do I need a Cloudflare account to use the plugin?
 
54
  Yes, on install and activation the plugin, first time users will be asked to enter their email address (used to sign-up for an account at cloudflare.com) and their user API key. This is needed to support all the features offered by the plugin.
55
 
56
  ### What settings are applied when I click "Apply Default Settings" in Cloudflare's WordPress plugin?
57
- You can review the recommended settings that are applied, here: https://support.cloudflare.com/hc/en-us/articles/227342487
 
58
 
59
  ### Does the plugin work if I have Varnish enabled?
60
- Yes, Cloudflare works with, and helps speed up your site even more, if you have Varnish enabled.
61
 
62
- ### Why am I getting “Cloudflare plugin requires php5-curl to be installed” error?
63
- Make sure that the php5-curl extension is installed on your system.
64
 
65
  ## Support
66
- ### Visit Our Knowledge Base
67
- Before submitting a support ticket, check out our knowledge base to see if your question has already been answered: https://support.cloudflare.com/hc/en-us/sections/200820268-Content-Management-System-CMS-
68
 
69
- ### File a Support Ticket
70
- For all support inquiries regarding Cloudflare’s WordPress plugin, please login to your Cloudflare account, file a support ticket, include any screenshots or details: https://support.cloudflare.com/hc/en-us/requests/new
 
 
 
 
 
71
 
72
  ## Contributions
73
- We welcome community contribution to this repository. To help add functionality or address issues, please take the following steps:
74
- - Fork the repository from the master branch.
75
- - Create a new branch for your features / fixes.
76
- - Make the changes you wish to see.
77
- - Add tests for all changes.
78
- - Create a pull request with details of what changes have been made, explanation of new behaviour, and link to issue that is addressed.
79
- - Ensure documentation contains the correct information.
80
- - Pull requests will be reviewed and hopefully merged into a release.
81
 
82
- ## Changelog
83
 
84
- See [changelog](https://en-gb.wordpress.org/plugins/cloudflare/changelog/)
85
 
 
1
  # Cloudflare’s Plugin for WordPress
2
 
3
+ [![Build Status](https://travis-ci.org/cloudflare/Cloudflare-WordPress.svg?branch=master)](https://travis-ci.org/cloudflare/Cloudflare-WordPress)
4
+
5
  Cloudflare’s WordPress plugin brings all of the benefits of Cloudflare into your WordPress dashboard for configuration, including a one-click application of default settings specifically optimized for WordPress.
6
 
7
  By enabling Cloudflare on your WordPress website, you’ll find performance and security gains such as doubling your page load speeds, DDoS protection, web application firewall with WordPress-specific rulesets, free SSL, and SEO improvements.
9
  ## Table of Contents
10
 
11
  [Description](#description)
12
+ [Installation](#installation)
13
  [Support](#support)
14
  [Features](#features)
15
  [FAQ](#faq)
22
 
23
  ## Features
24
 
25
+ ### One-click WordPress-optimized settings
26
+
27
+ One-click application of WordPress-optimized settings is the easiest way to setup Cloudflare’s performance and security on your WordPress site. You can review the recommended settings that are applied, here: <https://support.cloudflare.com/hc/en-us/articles/227342487>
28
+
29
+ ### Web application firewall (WAF) rulesets
30
 
 
31
  Cloudflare’s web application firewall (WAF), available on all of Cloudflare’s paid plans, has built-in rulesets specifically built to mitigate against WordPress threats and vulnerabilities. Cloudflare’s WAF provides confidence that your website is always protected, even against the latest threats and vulnerabilities targeting WordPress websites.
32
 
33
+ ### Automatic cache purge on website updates
34
+
35
  Cloudflare’s plugin for WordPress automatically refreshes the Cloudflare cache upon making changes to your website appearance. This means that you can focus on your website, while we take care of ensuring that the freshest content is always available to your visitors.
36
 
37
  ### Additional Features
38
+
39
+ - Header rewrites to prevent a redirect loop when Cloudflare’s Universal SSL is enabled.
40
+ - Change Cloudflare settings from within the plugin without needing to navigate to the Cloudflare.com dashboard. You can change settings for cache purge, security level, Always Online™, and image optimization.
41
+ - View analytics such as total visitors, bandwidth saved, and threats blocked.
42
+ - Support for HTTP2/Server Push.
43
 
44
  ## Installation
 
 
45
 
46
+ 1. To install the Cloudflare plugin into your WordPress admin panel, please visit: <https://wordpress.org/plugins/cloudflare/> and click “Download” or download the plugin from this GitHub repo.
47
+ - To install the plugin after downloading it via GitHub, navigate to Plugins → Add New → Upload Plugin and upload the Cloudflare-WordPress-master.zip file.
48
  2. Once you’ve installed the plugin, activate it through the WordPress plugin panel.
49
+ 3. If you're upgrading from the old plugin, and had previously inputted your API Key, you'll be automatically logged-in after updating the plugin.
 
 
50
  4. If this is the first time installing Cloudflare's WordPress plugin, please navigate to the plugin settings inside of your WordPress admin panel after activating, and input your Cloudflare username and API key; to find your API key, follow these instructions. If you do not already have a Cloudflare account, you’ll see the option to create one.
 
51
  5. After successfully logging into the plugin, click the “Apply Default Settings” button within the plugin’s dashboard. Clicking “Apply” will enable specific Cloudflare settings, optimized for the WordPress platform. These settings can be found here.
 
52
  6. Once this setting has been applied, that’s it! Your website is now on the Cloudflare network and optimized for the WordPress platform. You’ll also begin to see improved website load speeds, bandwidth savings, and protection against hackers, spammers, and bots.
53
 
54
  ## FAQ
55
+
56
  ### Do I need a Cloudflare account to use the plugin?
57
+
58
  Yes, on install and activation the plugin, first time users will be asked to enter their email address (used to sign-up for an account at cloudflare.com) and their user API key. This is needed to support all the features offered by the plugin.
59
 
60
  ### What settings are applied when I click "Apply Default Settings" in Cloudflare's WordPress plugin?
61
+
62
+ You can review the recommended settings that are applied, here: <https://support.cloudflare.com/hc/en-us/articles/227342487>
63
 
64
  ### Does the plugin work if I have Varnish enabled?
 
65
 
66
+ Yes, Cloudflare works with, and helps speed up your site even more, if you have Varnish enabled.
 
67
 
68
  ## Support
 
 
69
 
70
+ ### Visit Our Knowledge Base
71
+
72
+ Before submitting a support ticket, check out our knowledge base to see if your question has already been answered: <https://support.cloudflare.com/hc/en-us/sections/200820268-Content-Management-System-CMS->
73
+
74
+ ### File a Support Ticket
75
+
76
+ For all support inquiries regarding Cloudflare’s WordPress plugin, please login to your Cloudflare account, file a support ticket, include any screenshots or details: <https://support.cloudflare.com/hc/en-us/requests/new>
77
 
78
  ## Contributions
 
 
 
 
 
 
 
 
79
 
80
+ We welcome community contribution to this repository. [CONTRIBUTING.md](CONTRIBUTING.md) will help you start contributing.
81
 
82
+ ## Changelog
83
 
84
+ See [changelog](https://wordpress.org/plugins/cloudflare/changelog/)
assets/details-arrows.png CHANGED
Binary file
assets/hero-bg-clouds.png DELETED
Binary file
assets/layers-2x.png CHANGED
Binary file
assets/layers.png CHANGED
Binary file
assets/select2-cf-white.png DELETED
Binary file
assets/select2x2-cf-white.png DELETED
Binary file
assets/select2x2-cf.png CHANGED
Binary file
assets/throbber.gif DELETED
Binary file
assets/yjs-background.jpg DELETED
Binary file
assets/yjs-background_2x.jpg DELETED
Binary file
cloudflare.loader.php CHANGED
@@ -20,12 +20,14 @@ if ($is_cf) {
20
  }
21
  }
22
 
23
- // Enable HTTP2 Server Push
24
- // add_action('init', array('\CF\Hooks\HTTP2ServerPush', 'init'));
25
-
26
  // Initiliaze Hooks class which contains WordPress hook functions
27
  $cloudflareHooks = new \CF\WordPress\Hooks();
28
 
 
 
 
 
 
29
  if (is_admin()) {
30
  //Register proxy AJAX endpoint
31
  add_action('wp_ajax_cloudflare_proxy', array($cloudflareHooks, 'initProxy'));
20
  }
21
  }
22
 
 
 
 
23
  // Initiliaze Hooks class which contains WordPress hook functions
24
  $cloudflareHooks = new \CF\WordPress\Hooks();
25
 
26
+ // Enable HTTP2 Server Push
27
+ if (defined('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE') && CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE) {
28
+ add_action('init', array($cloudflareHooks, 'http2ServerPushInit'));
29
+ }
30
+
31
  if (is_admin()) {
32
  //Register proxy AJAX endpoint
33
  add_action('wp_ajax_cloudflare_proxy', array($cloudflareHooks, 'initProxy'));
cloudflare.php CHANGED
@@ -3,11 +3,14 @@
3
  Plugin Name: Cloudflare
4
  Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
  Description: Cloudflare speeds up and protects your WordPress site.
6
- Version: 3.1.1
7
  Author: John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
8
  License: BSD-3-Clause
9
  */
10
 
 
 
 
11
  // Exit if accessed directly
12
  if (!defined('ABSPATH')) {
13
  exit;
@@ -23,7 +26,7 @@ if (version_compare(PHP_VERSION, CLOUDFLARE_MIN_PHP_VERSION, '<')) {
23
  require_once ABSPATH.'wp-admin/includes/plugin.php';
24
 
25
  deactivate_plugins(plugin_basename(__FILE__), true);
26
- wp_die('<p>The Cloudflare plugin requires a php version of at least '.CLOUDFLARE_MIN_PHP_VERSION.' you have '.PHP_VERSION.'.</p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => true));
27
  }
28
 
29
  // Plugin uses namespaces. To support old PHP version which doesn't support
3
  Plugin Name: Cloudflare
4
  Plugin URI: https://blog.cloudflare.com/new-wordpress-plugin/
5
  Description: Cloudflare speeds up and protects your WordPress site.
6
+ Version: 3.2.0
7
  Author: John Wineman, Furkan Yilmaz, Junade Ali (Cloudflare Team)
8
  License: BSD-3-Clause
9
  */
10
 
11
+ // To enable HTTP2 Server Push feature, add the following line to wp-config.php file
12
+ // define('CLOUDFLARE_HTTP2_SERVER_PUSH_ACTIVE', true);
13
+
14
  // Exit if accessed directly
15
  if (!defined('ABSPATH')) {
16
  exit;
26
  require_once ABSPATH.'wp-admin/includes/plugin.php';
27
 
28
  deactivate_plugins(plugin_basename(__FILE__), true);
29
+ wp_die('<p>The Cloudflare plugin requires a PHP version of at least '.CLOUDFLARE_MIN_PHP_VERSION.'; you have '.PHP_VERSION.'.</p>', 'Plugin Activation Error', array('response' => 200, 'back_link' => true));
30
  }
31
 
32
  // Plugin uses namespaces. To support old PHP version which doesn't support
compiled.js CHANGED
@@ -1,34 +1,49 @@
1
- !function(){var e=void 0;!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){},{}],2:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(f===setTimeout)return setTimeout(e,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(e,0);try{return f(e,0)}catch(t){try{return f.call(null,e,0)}catch(t){return f.call(this,e,0)}}}function a(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function s(){y&&h&&(y=!1,h.length?g=h.concat(g):m=-1,g.length&&u())}function u(){if(!y){var e=i(s);y=!0;for(var t=g.length;t;){for(h=g,g=[];++m<t;)h&&h[m].run();m=-1,t=g.length}h=null,y=!1,a(e)}}function c(e,t){this.fun=e,this.array=t}function l(){}var f,p,d=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(e){f=r}try{p="function"==typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var h,g=[],y=!1,m=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];g.push(new c(e,t)),1!==g.length||y||i(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],3:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.disabled,n=e.loading,r=this.props.submit?"submit":"button",o="cf-btn cf-btn--"+this.props.type;n&&(o+=" cf-btn--loading");var i=(void 0!==t?t:n)||!1;return a.createElement("button",{type:r,className:o,disabled:i,onClick:this.props.onClick},this.props.children)},t}(a.Component);u.propTypes={onClick:s.func.isRequired,submit:s.bool,type:s.oneOf(["default","primary","success","warning","danger"]).isRequired,disabled:s.bool,loading:s.bool},u.defaultProps={type:"default",submit:!1},t.exports=u},{react:514}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-btn__group"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],5:[function(e,t,n){"use strict";n.Button=e("./Button"),n.ButtonGroup=e("./ButtonGroup")},{"./Button":3,"./ButtonGroup":4}],6:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("section",{className:"cf-card"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],7:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__content"},a.createElement("h3",{className:"cf-card__title"},this.props.title),this.props.children,this.props.footerMessage?a.createElement("div",{className:"cf-card__footer_message"},this.props.footerMessage):null)},t}(a.Component);u.propTypes={title:s.any.isRequired,footerMessage:s.string},t.exports=u},{react:514}],8:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__control"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],9:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("./CardSection"),c=e("./CardToolbar"),l=e("./CardToolbarLink"),f=e("./CardPropTypes"),p=0,d=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i._cardId=p++,a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e=this,t=[],n=[];this.props.drawers.forEach(function(r){var o=r.id===e.props.active,i="card-"+e._cardId+"-drawer-"+r.id;t.push(a.createElement(l,{key:r.id,id:i,isActive:o,onClick:e.props.onClick.bind(null,r.id)},r.name));var s="cf-card__drawer";o&&(s+=" cf-card__drawer--active"),n.push(a.createElement("div",{key:r.id,role:"tabpanel","aria-labelledby":i,"aria-hidden":o?"false":"true",className:s},o&&r.content))});var r="cf-card__drawers_container";return this.props.active&&(r+=" cf-card__drawers_container--open"),a.createElement(u,null,a.createElement(c,{controls:this.props.controls,links:t}),a.createElement("div",{className:r},n))},t}(a.Component);d.propTypes={onClick:s.func.isRequired,active:s.string,drawers:f.cardDrawers.isRequired,controls:s.any},t.exports=d},{"./CardPropTypes":12,"./CardSection":13,"./CardToolbar":14,"./CardToolbarLink":15,react:514}],10:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__loading_text"})},t}(a.Component);t.exports=s},{react:514}],11:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__messages"},this.props.messages.map(function(e,t){return a.createElement("div",{key:t,role:"alert",className:"cf-card__message cf-card__message--"+e.type},e.content)}))},t}(a.Component);u.propTypes={messages:s.arrayOf(s.shape({type:s.oneOf(["info","success","error","warning"]),content:s.any.isRequired})).isRequired},t.exports=u},{react:514}],12:[function(e,t,n){"use strict";var r=e("react"),o=r.PropTypes,i=o.shape({id:o.string.isRequired,name:o.string.isRequired,content:o.any.isRequired}),a=o.arrayOf(i);t.exports={cardDrawer:i,cardDrawers:a}},{react:514}],13:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__section cf-card__section--"+this.props.status},this.props.children)},t}(a.Component);u.propTypes={status:s.oneOf(["default","error"])},u.defaultProps={status:"default"},t.exports=u},{react:514}],14:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-card__toolbar"},a.createElement("div",{className:"cf-card__toolbar_controls"},this.props.controls),a.createElement("div",{className:"cf-card__toolbar_links",role:"tablist"},this.props.links))},t}(a.Component);u.propTypes={controls:s.any,links:s.any},t.exports=u},{react:514}],15:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=e("cf-component-link"),u=a.PropTypes,c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleClick=function(e){e.preventDefault(),i.props.onClick()},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-card__toolbar_link";return this.props.isActive&&(e+=" cf-card__toolbar_link--open"),a.createElement(s,{role:"tab",id:this.props.id,className:e,onClick:this.handleClick},this.props.children)},t}(a.Component);c.propTypes={onClick:u.func.isRequired,isActive:u.bool.isRequired,id:u.string},t.exports=c},{"cf-component-link":18,react:514}],16:[function(e,t,n){"use strict";n.Card=e("./Card"),n.CardContent=e("./CardContent"),n.CardControl=e("./CardControl"),n.CardDrawers=e("./CardDrawers"),n.CardLoadingText=e("./CardLoadingText"),n.CardMessages=e("./CardMessages"),n.CardPropTypes=e("./CardPropTypes"),n.CardSection=e("./CardSection")},{"./Card":6,"./CardContent":7,"./CardControl":8,"./CardDrawers":9,"./CardLoadingText":10,"./CardMessages":11,"./CardPropTypes":12,"./CardSection":13}],17:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}var s=e("react"),u=s.PropTypes,c=e("cf-util-route-handler"),l=c.routeTo,f=function(e){function t(n,r){if(o(this,t),!n.to&&!n.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var a=i(this,e.call(this,n,r));return a.handleClick=function(e){e.preventDefault(),a.props.disabled||(a.props.to?l(a.props.to):a.props.onClick(e))},a}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.tagName,n=e.to,o=e.children,i=e.className,a=e.disabled,u=r(e,["tagName","to","children","className","disabled"]);return u.href||"a"!==t||(u.href=n||"#!"),u.role||(n&&"a"!==t?u.role="link":n||(u.role="button")),u.className="cf-link",a&&(u.className+=" cf-link--disabled",u.disabled=!0),i&&(u.className+=" "+i),u.onClick=this.handleClick,s.createElement(t,u,o)},t}(s.Component);f.propTypes={to:u.string,onClick:u.func,tagName:u.string,disabled:u.bool},f.defaultProps={tagName:"a"},t.exports=f},{"cf-util-route-handler":19,react:514}],18:[function(e,t,n){"use strict";t.exports=e("./Link")},{"./Link":17}],19:[function(e,t,n){"use strict";t.exports=e("./routeHandler")},{"./routeHandler":20}],20:[function(e,t,n){"use strict";function r(e){return a?void console.error("Warning: Route Handler: Only one handler is allowed at a time"):void(a=e)}function o(e){return a?void a(e):void console.error("Warning: Route Handler: A handler needs to be setup before you can route")}function i(){a=null}var a=void 0;t.exports={handleRoutes:r,routeTo:o,__resetRouteHandler:i}},{}],21:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.checked)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-checkbox";return this.props.checked&&(e+=" cf-checkbox--checked"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{type:"checkbox",className:"cf-checkbox__input",id:this.props.name,name:this.props.name,value:this.props.value,checked:this.props.checked,onChange:this.handleChange}),this.props.label&&a.createElement("span",{className:"cf-checkbox__label"},this.props.label))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired,checked:s.bool.isRequired,onChange:s.func.isRequired},t.exports=u},{react:514}],22:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("./Checkbox"),c=e("lodash/includes"),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e,t){var n=i.props.options.filter(function(n){return n.value===e?t:c(i.props.values,n.value)}).map(function(e){return e.value});i.props.onChange(n)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"cf-checkbox__group"},this.props.options.map(function(t){return a.createElement(u,{key:t.name,label:t.label,name:t.name,value:t.value,checked:c(e.props.values,t.value),onChange:function(n){return e.handleChange(t.value,n)}})}))},t}(a.Component);l.propTypes={values:s.arrayOf(s.string).isRequired,onChange:s.func.isRequired,options:s.arrayOf(s.shape({label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired})).isRequired},t.exports=l},{"./Checkbox":21,"lodash/includes":36,react:514}],23:[function(e,t,n){"use strict";n.Checkbox=e("./Checkbox"),n.CheckboxGroup=e("./CheckboxGroup")},{"./Checkbox":21,"./CheckboxGroup":22}],24:[function(e,t,n){function r(e,t){var n=a(e)||i(e)?o(e.length,String):[],r=n.length,u=!!r;for(var l in e)!t&&!c.call(e,l)||u&&("length"==l||s(l,r))||n.push(l);return n}var o=e("./_baseTimes"),i=e("./isArguments"),a=e("./isArray"),s=e("./_isIndex"),u=Object.prototype,c=u.hasOwnProperty;t.exports=r},{"./_baseTimes":30,"./_isIndex":32,"./isArguments":37,"./isArray":38}],25:[function(e,t,n){function r(e,t){for(var n=-1,r=e?e.length:0,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}t.exports=r},{}],26:[function(e,t,n){function r(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}t.exports=r},{}],27:[function(e,t,n){function r(e,t,n){if(t!==t)return o(e,i,n);for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var o=e("./_baseFindIndex"),i=e("./_baseIsNaN");t.exports=r},{"./_baseFindIndex":26,"./_baseIsNaN":28}],28:[function(e,t,n){function r(e){return e!==e}t.exports=r},{}],29:[function(e,t,n){function r(e){if(!o(e))return i(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var o=e("./_isPrototype"),i=e("./_nativeKeys"),a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./_isPrototype":33,"./_nativeKeys":34}],30:[function(e,t,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=r},{}],31:[function(e,t,n){function r(e,t){return o(t,function(t){return e[t]})}var o=e("./_arrayMap");t.exports=r},{"./_arrayMap":25}],32:[function(e,t,n){function r(e,t){return t=null==t?o:t,!!t&&("number"==typeof e||i.test(e))&&e>-1&&e%1==0&&e<t}var o=9007199254740991,i=/^(?:0|[1-9]\d*)$/;t.exports=r},{}],33:[function(e,t,n){function r(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||o;return e===n}var o=Object.prototype;t.exports=r},{}],34:[function(e,t,n){var r=e("./_overArg"),o=r(Object.keys,Object);t.exports=o},{"./_overArg":35}],35:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],36:[function(e,t,n){function r(e,t,n,r){e=i(e)?e:u(e),n=n&&!r?s(n):0;var l=e.length;return n<0&&(n=c(l+n,0)),a(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&o(e,t,n)>-1}var o=e("./_baseIndexOf"),i=e("./isArrayLike"),a=e("./isString"),s=e("./toInteger"),u=e("./values"),c=Math.max;t.exports=r},{"./_baseIndexOf":27,"./isArrayLike":39,"./isString":45,"./toInteger":49,"./values":51}],37:[function(e,t,n){function r(e){return o(e)&&s.call(e,"callee")&&(!c.call(e,"callee")||u.call(e)==i)}var o=e("./isArrayLikeObject"),i="[object Arguments]",a=Object.prototype,s=a.hasOwnProperty,u=a.toString,c=a.propertyIsEnumerable;t.exports=r},{"./isArrayLikeObject":40}],38:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],39:[function(e,t,n){function r(e){return null!=e&&i(e.length)&&!o(e)}var o=e("./isFunction"),i=e("./isLength");t.exports=r},{"./isFunction":41,"./isLength":42}],40:[function(e,t,n){function r(e){return i(e)&&o(e)}var o=e("./isArrayLike"),i=e("./isObjectLike");t.exports=r},{"./isArrayLike":39,"./isObjectLike":44}],41:[function(e,t,n){function r(e){var t=o(e)?u.call(e):"";return t==i||t==a}var o=e("./isObject"),i="[object Function]",a="[object GeneratorFunction]",s=Object.prototype,u=s.toString;t.exports=r},{"./isObject":43}],42:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}var o=9007199254740991;t.exports=r},{}],43:[function(e,t,n){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=r},{}],44:[function(e,t,n){function r(e){return!!e&&"object"==typeof e}t.exports=r},{}],45:[function(e,t,n){function r(e){return"string"==typeof e||!o(e)&&i(e)&&u.call(e)==a}var o=e("./isArray"),i=e("./isObjectLike"),a="[object String]",s=Object.prototype,u=s.toString;t.exports=r},{"./isArray":38,"./isObjectLike":44}],46:[function(e,t,n){function r(e){return"symbol"==typeof e||o(e)&&s.call(e)==i}var o=e("./isObjectLike"),i="[object Symbol]",a=Object.prototype,s=a.toString;t.exports=r},{"./isObjectLike":44}],47:[function(e,t,n){function r(e){return a(e)?o(e):i(e)}var o=e("./_arrayLikeKeys"),i=e("./_baseKeys"),a=e("./isArrayLike");t.exports=r},{"./_arrayLikeKeys":24,"./_baseKeys":29,"./isArrayLike":39}],48:[function(e,t,n){function r(e){if(!e)return 0===e?e:0;if(e=o(e),e===i||e===-i){var t=e<0?-1:1;return t*a}return e===e?e:0}var o=e("./toNumber"),i=1/0,a=1.7976931348623157e308;t.exports=r},{"./toNumber":50}],49:[function(e,t,n){function r(e){var t=o(e),n=t%1;return t===t?n?t-n:t:0}var o=e("./toFinite");t.exports=r},{"./toFinite":48}],50:[function(e,t,n){function r(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=c.test(e);return n||l.test(e)?f(e.slice(2),n?2:8):u.test(e)?a:+e}var o=e("./isObject"),i=e("./isSymbol"),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;t.exports=r},{"./isObject":43,"./isSymbol":46}],51:[function(e,t,n){function r(e){return e?o(e,i(e)):[]}var o=e("./_baseValues"),i=e("./keys");t.exports=r},{"./_baseValues":31,"./keys":47}],52:[function(e,t,n){(function(n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("./DropdownRegistry"),c=e("exenv"),l=c.canUseDOM,f=function(e){function t(n,i){r(this,t);var a=o(this,e.call(this,n,i));return a.handleDocumentKeydown=function(e){var t=e.keyCode;40===t?(e.preventDefault(),a.dropdownRegistry.focusNext()):38===t?(e.preventDefault(),a.dropdownRegistry.focusPrev()):27===t&&a.props.onClose()},a.handleDocumentClick=function(e){a.props.onClose()},a.dropdownRegistry=new u,a}return i(t,e),t.prototype.getChildContext=function(){return{dropdownRegistry:this.dropdownRegistry}},t.prototype.componentDidMount=function(){l&&(n.document.addEventListener("keydown",this.handleDocumentKeydown),n.document.addEventListener("click",this.handleDocumentClick))},t.prototype.componentWillUnmount=function(){l&&(n.document.removeEventListener("keydown",this.handleDocumentKeydown),n.document.removeEventListener("click",this.handleDocumentClick))},t.prototype.render=function(){return a.createElement("ul",{role:"menu",className:"cf-dropdown cf-dropdown--"+this.props.align},this.props.children)},t}(a.Component);f.propTypes={onClose:s.func.isRequired,align:s.oneOf(["left","right"])},f.defaultProps={align:"left"},f.childContextTypes={dropdownRegistry:s.instanceOf(u).isRequired},t.exports=f}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./DropdownRegistry":54,exenv:61,react:514}],53:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("react-dom"),c=u.findDOMNode,l=e("cf-component-link"),f=e("./DropdownRegistry"),p=function(e){function t(n,i){if(r(this,t),!n.to&&!n.onClick)throw new Error("<DropdownLink/> requires either a `to` or `onClick` prop");var a=o(this,e.call(this,n,i));return a.handleLinkFocus=function(e){a.dropdownRegistry.setFocusedChild(a)},a.handleLinkBlur=function(e){a.dropdownRegistry.removeFocusedChild()},a.dropdownRegistry=i.dropdownRegistry,a}return i(t,e),t.prototype.componentWillMount=function(){this.dropdownRegistry.addChild(this)},t.prototype.componentWillUnmount=function(){this.dropdownRegistry.removeChild(this)},t.prototype.focus=function(){c(this.refs.link).focus()},t.prototype.render=function(){return a.createElement("li",{className:"cf-dropdown__link",role:"menuitem"},a.createElement(l,{ref:"link",to:this.props.to,onClick:this.props.onClick,onFocus:this.handleLinkFocus,onBlur:this.handleLinkBlur},this.props.children))},t}(a.Component);p.propTypes={to:s.string,onClick:s.func},p.contextTypes={dropdownRegistry:s.instanceOf(f).isRequired},t.exports=p},{"./DropdownRegistry":54,"cf-component-link":58,react:514,"react-dom":279}],54:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(){r(this,e),this._links=[],this._currentFocusIndex=-1}return e.prototype.addChild=function(e){this._links.push(e)},e.prototype.removeChild=function(e){this._links.splice(this._links.indexOf(e),1)},e.prototype._focusChildAt=function(e){this._links[e]&&this._links[e].focus()},e.prototype.focusNext=function(){this._focusChildAt(this._currentFocusIndex+1)},e.prototype.focusPrev=function(){this._focusChildAt(this._currentFocusIndex-1)},e.prototype.setFocusedChild=function(e){this._currentFocusIndex=this._links.indexOf(e)},e.prototype.removeFocusedChild=function(e){this._currentFocusIndex=-1},e}();t.exports=o},{}],55:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-dropdown__separator",role:"separator"})},t}(a.Component);t.exports=s},{react:514}],56:[function(e,t,n){"use strict";n.Dropdown=e("./Dropdown"),n.DropdownLink=e("./DropdownLink"),n.DropdownSeparator=e("./DropdownSeparator")},{"./Dropdown":52,"./DropdownLink":53,"./DropdownSeparator":55}],57:[function(e,t,n){arguments[4][17][0].apply(n,arguments)},{"cf-util-route-handler":59,dup:17,react:514}],58:[function(e,t,n){arguments[4][18][0].apply(n,arguments)},{"./Link":57,dup:18}],59:[function(e,t,n){arguments[4][19][0].apply(n,arguments)},{"./routeHandler":60,dup:19}],60:[function(e,t,n){arguments[4][20][0].apply(n,arguments)},{dup:20}],61:[function(t,n,r){!function(){"use strict";var t=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:t,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen};"function"==typeof e&&"object"==typeof e.amd&&e.amd?e(function(){
2
- return r}):"undefined"!=typeof n&&n.exports?n.exports=r:window.ExecutionEnvironment=r}()},{}],62:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-flex";return this.props.spacing&&(e+=" cf-flex--"+this.props.spacing),a.createElement("div",{className:e},this.props.children)},t}(a.Component);u.propTypes={spacing:s.oneOf([!1,"thin","wide"]).isRequired},t.exports=u},{react:514}],63:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-flex__item";return this.props.collapse&&(e+=" cf-flex__item--collapse"),a.createElement("div",{className:e},this.props.children)},t}(a.Component);u.propTypes={collapse:s.bool},u.defaultProps={collapse:!1},t.exports=u},{react:514}],64:[function(e,t,n){"use strict";n.Flex=e("./Flex"),n.FlexItem=e("./FlexItem")},{"./Flex":62,"./FlexItem":63}],65:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-form cf-form--"+this.props.layout;return a.createElement("form",{className:e,onSubmit:this.props.onSubmit},this.props.children)},t}(a.Component);u.propTypes={layout:s.oneOf(["horizontal","vertical"]).isRequired,onSubmit:s.func.isRequired},t.exports=u},{react:514}],66:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return this.props.field.invalid?a.createElement("div",{className:"cf-form__field-error"},Object.keys(this.props.validations).map(function(t){return a.createElement("p",{key:t},e.props.validations[t])})):a.createElement("noscript",null)},t}(a.Component);u.propTypes={field:s.object.isRequired,validations:s.object.isRequired},t.exports=u},{react:514}],67:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("fieldset",{className:"cf-form__fieldset"},a.createElement("legend",{className:"cf-form__fieldset_legend"},this.props.legend),a.createElement("div",{className:"cf-form__fieldset_content"},this.props.children))},t}(a.Component);u.propTypes={legend:s.string.isRequired},t.exports=u},{react:514}],68:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=(a.PropTypes,function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-form__footer"},this.props.children)},t}(a.Component));t.exports=s},{react:514}],69:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-form__header"},a.createElement("h3",{className:"cf-form__title"},this.props.title))},t}(a.Component);u.propTypes={title:s.string.isRequired},t.exports=u},{react:514}],70:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-form__label";return this.props.hidden&&(e+=" cf-form__label--hidden"),a.createElement("label",{className:e},this.props.children)},t}(a.Component);u.propTypes={hidden:s.bool},t.exports=u},{react:514}],71:[function(e,t,n){"use strict";n.Form=e("./Form"),n.FormHeader=e("./FormHeader"),n.FormFooter=e("./FormFooter"),n.FormFieldset=e("./FormFieldset"),n.FormLabel=e("./FormLabel"),n.FormFieldError=e("./FormFieldError")},{"./Form":65,"./FormFieldError":66,"./FormFieldset":67,"./FormFooter":68,"./FormHeader":69,"./FormLabel":70}],72:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="h"+this.props.size,t="cf-heading cf-heading--"+this.props.size;return a.createElement(e,{className:t},this.props.children)},t}(a.Component);u.propTypes={size:s.oneOf([1,2,3,4,5,6]).isRequired},t.exports=u},{react:514}],73:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("small",{className:"cf-heading__caption"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],74:[function(e,t,n){"use strict";n.Heading=e("./Heading"),n.HeadingCaption=e("./HeadingCaption")},{"./Heading":72,"./HeadingCaption":73}],75:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-input cf-input--"+this.props.type;return this.props.invalid&&(e+=" cf-input--invalid"),a.createElement("input",{type:this.props.type,className:e,name:this.props.name,value:this.props.value,onChange:this.handleChange,placeholder:this.props.placeholder})},t}(a.Component);u.propTypes={type:s.oneOf(["text","email","number","password","search"]),name:s.string.isRequired,value:s.string.isRequired,onChange:s.func.isRequired,placeholder:s.string,invalid:s.bool},u.defaultProps={type:"text"},t.exports=u},{react:514}],76:[function(e,t,n){"use strict";t.exports=e("./Input")},{"./Input":75}],77:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=(100*this.props.width).toPrecision(5)+"%";return a.createElement("div",{className:"cf-layout__column",style:{width:e}},this.props.children)},t}(a.Component);u.propTypes={width:s.number.isRequired},t.exports=u},{react:514}],78:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-layout__container"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],79:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-layout__row"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],80:[function(e,t,n){"use strict";n.LayoutContainer=e("./LayoutContainer"),n.LayoutRow=e("./LayoutRow"),n.LayoutColumn=e("./LayoutColumn")},{"./LayoutColumn":77,"./LayoutContainer":78,"./LayoutRow":79}],81:[function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}var s=e("react"),u=s.PropTypes,c=e("cf-util-route-handler"),l=c.routeTo,f=function(e){function t(n,r){if(o(this,t),!n.to&&!n.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var a=i(this,e.call(this,n,r));return a.handleClick=function(e){e.preventDefault(),a.props.disabled||(a.props.to?l(a.props.to):a.props.onClick(e))},a}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.tagName,n=e.to,o=e.children,i=e.className,a=e.disabled,u=r(e,["tagName","to","children","className","disabled"]);return u.href||"a"!==t||(u.href=n||"#!"),u.role||(n&&"a"!==t?u.role="link":n||(u.role="button")),u.className="cf-link",a&&(u.className+=" cf-link--disabled",u.disabled=!0),i&&(u.className+=" "+i),u.onClick=this.handleClick,s.createElement(t,u,o)},t}(s.Component);f.propTypes={to:u.string,onClick:u.func,tagName:u.string,disabled:u.bool},f.defaultProps={tagName:"a"},t.exports=f},{"cf-util-route-handler":83,react:514}],82:[function(e,t,n){arguments[4][18][0].apply(n,arguments)},{"./Link":81,dup:18}],83:[function(e,t,n){"use strict";function r(e){if(i)throw new Error("Only one handler is allowed at a time");i=e}function o(e){if(!i)throw new Error("A handler needs to be setup before you can route");i(e)}n.__esModule=!0,n.handleRoutes=r,n.routeTo=o;var i=void 0},{}],84:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="ul",t="cf-list";return this.props.ordered&&(e="ol",t+=" cf-list--ordered"),this.props.unstyled&&(t+=" cf-list--unstyled"),a.createElement(e,{className:t},this.props.children)},t}(a.Component);u.propTypes={ordered:s.bool,unstyled:s.bool},u.defaultProps={ordered:!1,unstyled:!1},t.exports=u},{react:514}],85:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("li",{className:"cf-list__item"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],86:[function(e,t,n){"use strict";n.List=e("./List"),n.ListItem=e("./ListItem")},{"./List":84,"./ListItem":85}],87:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=e("cf-component-icon"),u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement(s,{type:"loading",label:"Loading"})},t}(a.Component);t.exports=u},{"cf-component-icon":90,react:514}],88:[function(e,t,n){"use strict";t.exports=e("./Loading")},{"./Loading":87}],89:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("./options"),c=u.TYPES,l=u.SIZES,f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-icon cf-icon--"+this.props.type;return this.props.size&&(e+=" cf-icon--"+this.props.size),this.props.border&&(e+=" cf-icon--border"),this.props.spin&&(e+=" cf-icon--spin"),this.props.muted&&(e+=" cf-icon--muted"),this.props.white&&(e+=" cf-icon--white"),a.createElement("i",{className:e},this.props.label&&a.createElement("span",{className:"cf-icon__label"},this.props.label))},t}(a.Component);f.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,type:s.oneOf(c).isRequired,size:s.oneOf(l),border:s.bool,spin:s.bool,muted:s.bool,white:s.bool},t.exports=f},{"./options":91,react:514}],90:[function(e,t,n){"use strict";t.exports=e("./Icon")},{"./Icon":89}],91:[function(e,t,n){"use strict";n.TYPES="caret-up chevron-up caret-down chevron-down caret-left chevron-left caret-right chevron-right ok-sign exclamation-sign info-sign pause time ok clipboard bolt chart drive filter flowchart hamburger lock list file shield plus happy sad search wrench remove remove-sign speech gear help widen calendar facebook twitter googleplus linkedin resize-horizontal upload loading close".split(" "),n.SIZES="2x 3x 4x large xlarge".split(" ")},{}],92:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("react-modal2").default,c=e("react-gateway"),l=c.Gateway,f=e("react-addons-css-transition-group"),p=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e="cf-modal";return"confirm"===this.props.type&&(e+=" cf-modal--confirm"),a.createElement(l,{into:"modal"},a.createElement(f,{transitionName:"cf-transition-modal",transitionAppear:!0,transitionAppearTimeout:200,transitionEnterTimeout:200,transitionLeaveTimeout:200},this.props.isOpen&&a.createElement("div",{className:"cf-modal__backdrop-scroller"},a.createElement("div",{className:"cf-modal__backdrop-outer"},a.createElement(u,{ref:"modal",key:"modal",backdropClassName:"cf-modal__backdrop",modalClassName:e,closeOnEsc:this.props.closeOnEsc,closeOnBackdropClick:this.props.closeOnBackdropClick,onClose:this.props.onRequestClose},this.props.children)))))},t}(a.Component);p.propTypes={type:s.oneOf(["confirm"]),isOpen:s.bool.isRequired,onRequestClose:s.func.isRequired,closeOnEsc:s.bool,closeOnBackdropClick:s.bool},p.defaultProps={closeOnEsc:!0,closeOnBackdropClick:!0},t.exports=p},{react:514,"react-addons-css-transition-group":275,"react-gateway":284,"react-modal2":101}],93:[function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:"cf-modal__actions"},e.children)}var o=e("react");t.exports=r},{react:514}],94:[function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:"cf-modal__body"},e.children)}var o=e("react");t.exports=r},{react:514}],95:[function(e,t,n){"use strict";function r(e){return o.createElement("span",{className:"cf-modal__close",onClick:e.onClick})}var o=e("react"),i=o.PropTypes;r.propTypes={onClick:i.func.isRequired},t.exports=r},{react:514}],96:[function(e,t,n){"use strict";function r(e){var t="cf-modal__footer";return e.simple&&(t+=" cf-modal__footer--simple"),o.createElement("div",{className:t},e.children)}var o=e("react"),i=o.PropTypes;r.propTypes={simple:i.bool},r.defaultProps={simple:!1},t.exports=r},{react:514}],97:[function(e,t,n){"use strict";function r(e){return o.createElement("header",{className:"cf-modal__header"},e.children)}var o=e("react");t.exports=r},{react:514}],98:[function(e,t,n){"use strict";function r(e){return o.createElement("h4",{className:"cf-modal__title"},e.children)}var o=e("react");t.exports=r},{react:514}],99:[function(e,t,n){"use strict";n.Modal=e("./Modal"),n.ModalActions=e("./ModalActions"),n.ModalBody=e("./ModalBody"),n.ModalClose=e("./ModalClose"),n.ModalFooter=e("./ModalFooter"),n.ModalHeader=e("./ModalHeader"),n.ModalTitle=e("./ModalTitle")},{"./Modal":92,"./ModalActions":93,"./ModalBody":94,"./ModalClose":95,"./ModalFooter":96,"./ModalHeader":97,"./ModalTitle":98}],100:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e,t){h.default.storeFocus(),e&&e.setAttribute("aria-hidden","true"),p.default.scopeFocus(t)}function u(e){p.default.unscopeFocus(),e&&e.removeAttribute("aria-hidden"),h.default.restoreFocus()}n.__esModule=!0;var c=e("react"),l=r(c),f=e("a11y-focus-scope"),p=r(f),d=e("a11y-focus-store"),h=r(d),g=e("exenv"),y=r(g),m=function(e){function t(){var n,r,a;o(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=r=i(this,e.call.apply(e,[this].concat(u))),r.handleDocumentKeydown=function(e){r.props.closeOnEsc&&27===e.keyCode&&r.props.onClose()},r.handleBackdropClick=function(){r.props.closeOnBackdropClick&&r.props.onClose()},r.handleModalClick=function(e){e.stopPropagation()},a=n,i(r,a)}return a(t,e),t.getApplicationElement=function(){console.warn("`ReactModal2.getApplicationElement` needs to be set for accessibility reasons")},t.prototype.componentDidMount=function(){y.default.canUseDOM&&(s(t.getApplicationElement(),this.refs.modal),document.addEventListener("keydown",this.handleDocumentKeydown))},t.prototype.componentWillUnmount=function(){y.default.canUseDOM&&(u(t.getApplicationElement()),document.removeEventListener("keydown",this.handleDocumentKeydown))},t.prototype.render=function(){return l.default.createElement("div",{ref:"backdrop",className:this.props.backdropClassName,style:this.props.backdropStyles,onClick:this.handleBackdropClick},l.default.createElement("div",{ref:"modal",className:this.props.modalClassName,style:this.props.modalStyles,onClick:this.handleModalClick,tabIndex:"-1"},this.props.children))},t}(l.default.Component);m.propTypes={onClose:l.default.PropTypes.func.isRequired,closeOnEsc:l.default.PropTypes.bool,closeOnBackdropClick:l.default.PropTypes.bool,backdropClassName:l.default.PropTypes.string,backdropStyles:l.default.PropTypes.object,modalClassName:l.default.PropTypes.string,modalStyles:l.default.PropTypes.object},m.defaultProps={closeOnEsc:!0,closeOnBackdropClick:!0},n.default=m},{"a11y-focus-scope":102,"a11y-focus-store":105,exenv:106,react:514}],101:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.default=void 0;var o=e("./Modal"),i=r(o);n.default=i.default},{"./Modal":100}],102:[function(e,t,n){"use strict";function r(e){function t(){(i(e)[0]||e).focus()}function n(n){e===n.target||e.contains(n.target)||t()}return s||(a.polyfill(),s=!0),t(),document.addEventListener("focusin",n),function(){document.removeEventListener("focusin",n)}}var o,i=e("tabbable"),a=e("focusin"),s=!1;n.scopeFocus=function(e){o&&o(),o=r(e)},n.unscopeFocus=function(){o&&o(),o=null}},{focusin:103,tabbable:104}],103:[function(e,t,n){function r(){function e(e){var t="focus"===e.type?"focusin":"focusout",n=new window.CustomEvent(t,{bubbles:!0,cancelable:!1});n.c1Generated=!0,e.target.dispatchEvent(n)}function t(n){n.c1Generated||(r.removeEventListener("focus",e,!0),r.removeEventListener("blur",e,!0),r.removeEventListener("focusin",t,!0),r.removeEventListener("focusout",t,!0)),setTimeout(function(){r.removeEventListener("focusin",t,!0),r.removeEventListener("focusout",t,!0)})}var n=window,r=n.document;void 0===n.onfocusin&&(r.addEventListener("focus",e,!0),r.addEventListener("blur",e,!0),r.addEventListener("focusin",t,!0),r.addEventListener("focusout",t,!0))}t.exports={polyfill:r}},{}],104:[function(e,t,n){function r(){var e=[];return function t(n){if(n===document.documentElement)return!1;for(var r=0,o=e.length;r<o;r++)if(e[r][0]===n)return e[r][1];var i=!1,a=window.getComputedStyle(n);return"hidden"===a.visibility||"none"===a.display?i=!0:n.parentNode&&(i=t(n.parentNode)),e.push([n,i]),i}}t.exports=function(e){for(var t,n,o=[],i=[],a=r(),s=e.querySelectorAll("input, select, a[href], textarea, button, [tabindex]"),u=0,c=s.length;u<c;u++)t=s[u],n=t.tabIndex,n<0||"INPUT"===t.tagName&&"hidden"===t.type||t.disabled||a(t)||(0===n?o.push(t):i.push({tabIndex:n,node:t}));var l=i.sort(function(e,t){return e.tabIndex-t.tabIndex}).map(function(e){return e.node});return Array.prototype.push.apply(l,o),l}},{}],105:[function(e,t,n){"use strict";var r;n.storeFocus=function(){r=document.activeElement},n.clearStoredFocus=function(){r=null},n.restoreFocus=function(){if(r){try{r.focus()}catch(e){}r=null}}},{}],106:[function(e,t,n){arguments[4][61][0].apply(n,arguments)},{dup:61}],107:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("raf"),c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.state={persist:i.props.persist,timeoutId:null},a=n,o(i,a)}return i(t,e),t.prototype.componentDidMount=function(){var e=this;this._raf=u(function(){e._raf=u(function(){e._raf=null,e.startTimeout()})})},t.prototype.componentWillUnmount=function(){this.stopTimeout()},t.prototype.startTimeout=function(){var e=this;if(!this.state.persist){this.stopTimeout();var t=setTimeout(function(){return e.props.onClose()},this.props.delay);this.setState({timeoutId:t})}},t.prototype.stopTimeout=function(){this._raf&&(u.cancel(this._raf),this._raf=null),this.state.timeoutId&&(clearTimeout(this.state.timeoutId),this.setState({timeoutId:null}))},t.prototype.handleMouseEnter=function(){this.stopTimeout()},t.prototype.handleMouseLeave=function(){this.startTimeout()},t.prototype.handleClickClose=function(){this.props.onClose()},t.prototype.handleClick=function(){this.stopTimeout(),this.setState({
3
- persist:!0})},t.prototype.render=function(){var e="cf-notifications__item",t=void 0;if(e+=" cf-notifications__item--"+this.props.type,this.state.persist)e+=" cf-notifications__item--persist";else{var n="cf-notifications__item_progress",r={};this.state.timeoutId&&(n+=" cf-notifications__item_progress--active",r.transitionDuration=this.props.delay+"ms"),t=a.createElement("span",{className:n,style:r})}var o=void 0;return this.props.closable&&(o=a.createElement("span",{className:"cf-notifications__item_close",onClick:this.handleClickClose.bind(this)})),a.createElement("div",{role:"alert",className:e,onClick:this.handleClick.bind(this),onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this)},t,o,a.createElement("span",{className:"cf-notifications__item_message"},this.props.message))},t}(a.Component);c.propTypes={type:s.oneOf(["success","error","info","warning"]),message:s.string.isRequired,closable:s.bool,delay:s.number,persist:s.bool,onClose:s.func.isRequired},c.defaultProps={closable:!0,delay:4e3,persist:!1},t.exports=c},{raf:111,react:514}],108:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-notifications__global_container"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],109:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-notifications"},this.props.children)},t}(a.Component);t.exports=s},{react:514}],110:[function(e,t,n){"use strict";n.NotificationList=e("./NotificationList"),n.Notification=e("./Notification"),n.NotificationGlobalContainer=e("./NotificationGlobalContainer")},{"./Notification":107,"./NotificationGlobalContainer":108,"./NotificationList":109}],111:[function(e,t,n){(function(n){for(var r=e("performance-now"),o="undefined"==typeof window?n:window,i=["moz","webkit"],a="AnimationFrame",s=o["request"+a],u=o["cancel"+a]||o["cancelRequest"+a],c=0;!s&&c<i.length;c++)s=o[i[c]+"Request"+a],u=o[i[c]+"Cancel"+a]||o[i[c]+"CancelRequest"+a];if(!s||!u){var l=0,f=0,p=[],d=1e3/60;s=function(e){if(0===p.length){var t=r(),n=Math.max(0,d-(t-l));l=n+t,setTimeout(function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(e){setTimeout(function(){throw e},0)}},Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},u=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}t.exports=function(e){return s.call(o,e)},t.exports.cancel=function(){u.apply(o,arguments)},t.exports.polyfill=function(){o.requestAnimationFrame=s,o.cancelAnimationFrame=u}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"performance-now":112}],112:[function(e,t,n){(function(e){(function(){var n,r,o;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-o)/1e6},r=e.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n()):Date.now?(t.exports=function(){return Date.now()-o},o=Date.now()):(t.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:2}],113:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-radio";return this.props.checked&&(e+=" cf-radio--checked"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{type:"radio",className:"cf-radio__input",id:this.props.name,name:this.props.name,value:this.props.value,checked:this.props.checked,onChange:this.handleChange}),this.props.label&&a.createElement("span",{className:"cf-radio__label"},this.props.label))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired,checked:s.bool.isRequired,onChange:s.func.isRequired},t.exports=u},{react:514}],114:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("./Radio"),c=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this;return a.createElement("div",{className:"cf-radio__group"},this.props.options.map(function(t){return a.createElement(u,{key:t.name,label:t.label,name:t.name,value:t.value,checked:e.props.value===t.value,onChange:e.props.onChange})}))},t}(a.Component);c.propTypes={value:s.string.isRequired,onChange:s.func.isRequired,options:s.arrayOf(s.shape({label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string.isRequired,value:s.string.isRequired})).isRequired},t.exports=c},{"./Radio":113,react:514}],115:[function(e,t,n){"use strict";n.Radio=e("./Radio"),n.RadioGroup=e("./RadioGroup")},{"./Radio":113,"./RadioGroup":114}],116:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("react-select"),c=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){return a.createElement("div",{className:"cf-select"},this.props.label&&a.createElement("label",null,this.props.label),a.createElement(u,{searchable:this.props.searchable,clearable:this.props.searchable,backspaceRemoves:this.props.searchable,onChange:this.props.onChange,onBlur:this.props.onBlur,onFocus:this.props.onFocus,multi:this.props.multi,value:this.props.value,options:this.props.options,placeholder:this.props.placeholder}))},t}(a.Component);c.propTypes={label:s.string,onChange:s.func.isRequired,onBlur:s.func,onFocus:s.func,multi:s.bool,searchable:s.bool,value:s.any,options:s.arrayOf(s.shape({label:s.string.isRequired,value:s.any.isRequired})),placeholder:s.string},c.defaultProps={multi:!1,searchable:!1},t.exports=c},{react:514,"react-select":119}],117:[function(e,t,n){"use strict";t.exports=e("./Select")},{"./Select":116}],118:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"Option",propTypes:{addLabelText:r.PropTypes.string,className:r.PropTypes.string,mouseDown:r.PropTypes.func,mouseEnter:r.PropTypes.func,mouseLeave:r.PropTypes.func,option:r.PropTypes.object.isRequired,renderFunc:r.PropTypes.func},blockEvent:function(e){e.preventDefault(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href):window.location.href=e.target.href)},handleMouseDown:function(e){this.props.mouseDown(this.props.option,e)},handleMouseEnter:function(e){this.props.mouseEnter(this.props.option,e)},handleMouseLeave:function(e){this.props.mouseLeave(this.props.option,e)},render:function(){var e=this.props.option,t=e.create?this.props.addLabelText.replace("{label}",e.label):this.props.renderFunc(e),n=o(this.props.className,e.className);return e.disabled?r.createElement("div",{className:n,onMouseDown:this.blockEvent,onClick:this.blockEvent},t):r.createElement("div",{className:n,style:e.style,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onClick:this.handleMouseDown,title:e.title},t)}});t.exports=i},{classnames:122,react:514}],119:[function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=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},i=e("react"),a=e("react-dom"),s=e("react-input-autosize"),u=e("classnames"),c=e("./Value"),l=e("./SingleValue"),f=e("./Option"),p=0,d=i.createClass({displayName:"Select",propTypes:{addLabelText:i.PropTypes.string,allowCreate:i.PropTypes.bool,asyncOptions:i.PropTypes.func,autoload:i.PropTypes.bool,backspaceRemoves:i.PropTypes.bool,cacheAsyncResults:i.PropTypes.bool,className:i.PropTypes.string,clearAllText:i.PropTypes.string,clearValueText:i.PropTypes.string,clearable:i.PropTypes.bool,delimiter:i.PropTypes.string,disabled:i.PropTypes.bool,filterOption:i.PropTypes.func,filterOptions:i.PropTypes.func,ignoreCase:i.PropTypes.bool,inputProps:i.PropTypes.object,isLoading:i.PropTypes.bool,labelKey:i.PropTypes.string,matchPos:i.PropTypes.string,matchProp:i.PropTypes.string,multi:i.PropTypes.bool,name:i.PropTypes.string,newOptionCreator:i.PropTypes.func,noResultsText:i.PropTypes.string,onBlur:i.PropTypes.func,onChange:i.PropTypes.func,onFocus:i.PropTypes.func,onInputChange:i.PropTypes.func,onOptionLabelClick:i.PropTypes.func,optionComponent:i.PropTypes.func,optionRenderer:i.PropTypes.func,options:i.PropTypes.array,placeholder:i.PropTypes.string,searchable:i.PropTypes.bool,searchingText:i.PropTypes.string,searchPromptText:i.PropTypes.string,singleValueComponent:i.PropTypes.func,value:i.PropTypes.any,valueComponent:i.PropTypes.func,valueKey:i.PropTypes.string,valueRenderer:i.PropTypes.func},getDefaultProps:function(){return{addLabelText:'Add "{label}"?',allowCreate:!1,asyncOptions:void 0,autoload:!0,backspaceRemoves:!0,cacheAsyncResults:!0,className:void 0,clearAllText:"Clear all",clearValueText:"Clear value",clearable:!0,delimiter:",",disabled:!1,ignoreCase:!0,inputProps:{},isLoading:!1,labelKey:"label",matchPos:"any",matchProp:"any",name:void 0,newOptionCreator:void 0,noResultsText:"No results found",onChange:void 0,onInputChange:void 0,onOptionLabelClick:void 0,optionComponent:f,options:void 0,placeholder:"Select...",searchable:!0,searchingText:"Searching...",searchPromptText:"Type to search",singleValueComponent:l,value:void 0,valueComponent:c,valueKey:"value"}},getInitialState:function(){return{isFocused:!1,isLoading:!1,isOpen:!1,options:this.props.options}},componentWillMount:function(){var e=this;this._optionsCache={},this._optionsFilterString="",this._closeMenuIfClickedOutside=function(t){if(e.state.isOpen){var n=a.findDOMNode(e.refs.selectMenuContainer),r=a.findDOMNode(e.refs.control),o=e.clickedOutsideElement(n,t),i=e.clickedOutsideElement(r,t);o&&i&&e.setState({isOpen:!1},e._unbindCloseMenuIfClickedOutside)}},this._bindCloseMenuIfClickedOutside=function(){!document.addEventListener&&document.attachEvent?document.attachEvent("onclick",e._closeMenuIfClickedOutside):document.addEventListener("click",e._closeMenuIfClickedOutside)},this._unbindCloseMenuIfClickedOutside=function(){!document.removeEventListener&&document.detachEvent?document.detachEvent("onclick",e._closeMenuIfClickedOutside):document.removeEventListener("click",e._closeMenuIfClickedOutside)},this.setState(this.getStateFromValue(this.props.value))},componentDidMount:function(){this.props.asyncOptions&&this.props.autoload&&this.autoloadAsyncOptions()},componentWillUnmount:function(){clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this.state.isOpen&&this._unbindCloseMenuIfClickedOutside()},componentWillReceiveProps:function(e){var t=this,n=!1;if(JSON.stringify(e.options)!==JSON.stringify(this.props.options)&&(n=!0,this.setState({options:e.options,filteredOptions:this.filterOptions(e.options)})),e.value!==this.state.value||e.placeholder!==this.props.placeholder||n){var r=function(n){t.setState(t.getStateFromValue(e.value,n&&n.options||e.options,e.placeholder))};this.props.asyncOptions?this.loadAsyncOptions(e.value,{},r):r()}},componentDidUpdate:function(){var e=this;if(!this.props.disabled&&this._focusAfterUpdate&&(clearTimeout(this._blurTimeout),clearTimeout(this._focusTimeout),this._focusTimeout=setTimeout(function(){e.isMounted()&&(e.getInputNode().focus(),e._focusAfterUpdate=!1)},50)),this._focusedOptionReveal){if(this.refs.focused&&this.refs.menu){var t=a.findDOMNode(this.refs.focused),n=a.findDOMNode(this.refs.menu),r=t.getBoundingClientRect(),o=n.getBoundingClientRect();(r.bottom>o.bottom||r.top<o.top)&&(n.scrollTop=t.offsetTop+t.clientHeight-n.offsetHeight)}this._focusedOptionReveal=!1}},focus:function(){this.getInputNode().focus()},clickedOutsideElement:function(e,t){for(var n=t.target?t.target:t.srcElement;null!=n;){if(n===e)return!1;n=n.offsetParent}return!0},getStateFromValue:function(e,t,n){var r=this;t||(t=this.state.options),n||(n=this.props.placeholder),this._optionsFilterString="";var o,i=this.initValuesArray(e,t),a=this.filterOptions(t,i),s=null;return!this.props.multi&&i.length?(o=i[0],s=i[0][this.props.valueKey]):(o=this.getFirstFocusableOption(a),s=i.map(function(e){return e[r.props.valueKey]}).join(this.props.delimiter)),{value:s,values:i,inputValue:"",filteredOptions:a,placeholder:!this.props.multi&&i.length?i[0][this.props.labelKey]:n,focusedOption:o}},getFirstFocusableOption:function(e){for(var t=0;t<e.length;++t)if(!e[t].disabled)return e[t]},initValuesArray:function(e,t){var n=this;return Array.isArray(e)||(e="string"==typeof e?""===e?[]:this.props.multi?e.split(this.props.delimiter):[e]:void 0!==e&&null!==e?[e]:[]),e.map(function(e){if("string"==typeof e||"number"==typeof e){var o;for(var i in t)if(t.hasOwnProperty(i)&&t[i]&&(t[i][n.props.valueKey]===e||"number"==typeof t[i][n.props.valueKey]&&t[i][n.props.valueKey].toString()===e))return t[i];return o={},r(o,n.props.valueKey,e),r(o,n.props.labelKey,e),o}return e})},setValue:function(e,t){(t||void 0===t)&&(this._focusAfterUpdate=!0);var n=this.getStateFromValue(e);n.isOpen=!1,this.fireChangeEvent(n),this.setState(n)},selectValue:function(e){this.props.multi?e&&this.addValue(e):this.setValue(e),this._unbindCloseMenuIfClickedOutside()},addValue:function(e){this.setValue(this.state.values.concat(e))},popValue:function(){this.setValue(this.state.values.slice(0,this.state.values.length-1))},removeValue:function(e){this.setValue(this.state.values.filter(function(t){return t!==e}))},clearValue:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.setValue(null))},resetValue:function(){this.setValue(""===this.state.value?null:this.state.value)},getInputNode:function(){var e=this.refs.input;return this.props.searchable?e:a.findDOMNode(e)},fireChangeEvent:function(e){e.value!==this.state.value&&this.props.onChange&&this.props.onChange(e.value,e.values)},handleMouseDown:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button))return e.stopPropagation(),e.preventDefault(),this.state.isOpen&&!this.props.searchable?void this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside):void(this.state.isFocused?this.setState({isOpen:!0},this._bindCloseMenuIfClickedOutside):(this._openAfterFocus=!0,this.getInputNode().focus()))},handleMouseDownOnMenu:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault())},handleMouseDownOnArrow:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||this.state.isOpen&&(e.stopPropagation(),e.preventDefault(),this.setState({isOpen:!1},this._unbindCloseMenuIfClickedOutside))},handleInputFocus:function(e){var t=this,n=this.state.isOpen||this._openAfterFocus;this.setState({isFocused:!0,isOpen:n},function(){n?t._bindCloseMenuIfClickedOutside():t._unbindCloseMenuIfClickedOutside()}),this._openAfterFocus=!1,this.props.onFocus&&this.props.onFocus(e)},handleInputBlur:function(e){var t=this,n=a.findDOMNode(this.refs.menu);document.activeElement.isEqualNode(n)||(this._blurTimeout=setTimeout(function(){!t._focusAfterUpdate&&t.isMounted()&&t.setState({inputValue:"",isFocused:!1,isOpen:!1})},50),this.props.onBlur&&this.props.onBlur(e))},handleKeyDown:function(e){if(!this.props.disabled){switch(e.keyCode){case 8:return void(!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue()));case 9:if(e.shiftKey||!this.state.isOpen||!this.state.focusedOption)return;this.selectFocusedOption();break;case 13:if(!this.state.isOpen)return;this.selectFocusedOption();break;case 27:this.state.isOpen?this.resetValue():this.props.clearable&&this.clearValue(e);break;case 38:this.focusPreviousOption();break;case 40:this.focusNextOption();break;case 188:if(!this.props.allowCreate||!this.props.multi)return;e.preventDefault(),e.stopPropagation(),this.selectFocusedOption();break;default:return}e.preventDefault()}},_getNewFocusedOption:function(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===this.state.focusedOption)return e[t];return this.getFirstFocusableOption(e)},handleInputChange:function(e){if(this._optionsFilterString=e.target.value,this.props.onInputChange&&this.props.onInputChange(e.target.value),this.props.asyncOptions)this.setState({isLoading:!0,inputValue:e.target.value}),this.loadAsyncOptions(e.target.value,{isLoading:!1,isOpen:!0},this._bindCloseMenuIfClickedOutside);else{var t=this.filterOptions(this.state.options);this.setState({isOpen:!0,inputValue:e.target.value,filteredOptions:t,focusedOption:this._getNewFocusedOption(t)},this._bindCloseMenuIfClickedOutside)}},autoloadAsyncOptions:function(){var e=this;this.setState({isLoading:!0}),this.loadAsyncOptions("",{isLoading:!1},function(){e.setValue(e.props.value,!1)})},loadAsyncOptions:function(e,t,n){void 0===e&&(e="");var r=this,o=this._currentRequestId=p++;if(this.props.cacheAsyncResults)for(var i=0;i<=e.length;i++){var a=e.slice(0,i);if(this._optionsCache[a]&&(e===a||this._optionsCache[a].complete)){var s=this._optionsCache[a].options,u=this.filterOptions(s),c={options:s,filteredOptions:u,focusedOption:this._getNewFocusedOption(u)};for(var l in t)t.hasOwnProperty(l)&&(c[l]=t[l]);return this.setState(c),void(n&&n.call(this,c))}}var f=function(i,a){if(i)throw i;if(r.props.cacheAsyncResults&&(r._optionsCache[e]=a),o===r._currentRequestId){var s=r.filterOptions(a.options),u={options:a.options,filteredOptions:s,focusedOption:r._getNewFocusedOption(s)};for(var c in t)t.hasOwnProperty(c)&&(u[c]=t[c]);r.setState(u),n&&n.call(r,u)}},d=this.props.asyncOptions(e,f);d&&"function"==typeof d.then&&d.then(function(e){f(null,e)},function(e){f(e)})},filterOptions:function(e,t){var n=this,r=this._optionsFilterString,o=(t||this.state.values).map(function(e){return e[n.props.valueKey]});if(this.props.filterOptions)return this.props.filterOptions.call(this,e,r,o);var i=function(e){if(this.props.multi&&o.indexOf(e[this.props.valueKey])>-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,r);var t=String(e[this.props.valueKey]),n=String(e[this.props.labelKey]);return this.props.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase(),r=r.toLowerCase()),r&&"start"!==this.props.matchPos?"label"!==this.props.matchProp&&t.indexOf(r)>=0||"value"!==this.props.matchProp&&n.indexOf(r)>=0:"label"!==this.props.matchProp&&t.substr(0,r.length)===r||"value"!==this.props.matchProp&&n.substr(0,r.length)===r};return(e||[]).filter(i,this)},selectFocusedOption:function(){return this.props.allowCreate&&!this.state.focusedOption?this.selectValue(this.state.inputValue):this.state.focusedOption?this.selectValue(this.state.focusedOption):void 0},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusAdjacentOption:function(e){this._focusedOptionReveal=!0;var t=this.state.filteredOptions.filter(function(e){return!e.disabled});if(!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this.state.focusedOption||t["next"===e?0:t.length-1]},this._bindCloseMenuIfClickedOutside);if(t.length){for(var n=-1,r=0;r<t.length;r++)if(this.state.focusedOption===t[r]){n=r;break}var o=t[0];"next"===e&&n>-1&&n<t.length-1?o=t[n+1]:"previous"===e&&(o=n>0?t[n-1]:t[t.length-1]),this.setState({focusedOption:o})}},unfocusOption:function(e){this.state.focusedOption===e&&this.setState({focusedOption:null})},renderOptionLabel:function(e){return e[this.props.labelKey]},buildMenu:function(){var e=this.state.focusedOption?this.state.focusedOption[this.props.valueKey]:null,t=this.props.optionRenderer||this.renderOptionLabel;this.state.filteredOptions.length>0&&(e=null==e?this.state.filteredOptions[0]:e);var n=this.state.filteredOptions;if(this.props.allowCreate&&this.state.inputValue.trim()){var r=this.state.inputValue;n=n.slice();var o=this.props.newOptionCreator?this.props.newOptionCreator(r):{value:r,label:r,create:!0};n.unshift(o)}var a=Object.keys(n).map(function(r){var o=n[r],a=this.state.value===o[this.props.valueKey],s=e===o[this.props.valueKey],c=u({"Select-option":!0,"is-selected":a,"is-focused":s,"is-disabled":o.disabled}),l=s?"focused":null,f=i.createElement(this.props.optionComponent,{key:"option-"+o[this.props.valueKey],className:c,renderFunc:t,mouseDown:this.selectValue,mouseEnter:this.focusOption,mouseLeave:this.unfocusOption,addLabelText:this.props.addLabelText,option:o,ref:l});return f},this);if(a.length)return a;var s,c;return this.isLoading()?(c="Select-searching",s=this.props.searchingText):this.state.inputValue||!this.props.asyncOptions?(c="Select-noresults",s=this.props.noResultsText):(c="Select-search-prompt",s=this.props.searchPromptText),i.createElement("div",{className:c},s)},handleOptionLabelClick:function(e,t){this.props.onOptionLabelClick&&this.props.onOptionLabelClick(e,t)},isLoading:function(){return this.props.isLoading||this.state.isLoading},render:function(){var e=u("Select",this.props.className,{"Select--multi":this.props.multi,"is-searchable":this.props.searchable,"is-open":this.state.isOpen,"is-focused":this.state.isFocused,"is-loading":this.isLoading(),"is-disabled":this.props.disabled,"has-value":this.state.value}),t=[];if(this.props.multi&&this.state.values.forEach(function(e){var n=this.props.valueRenderer||this.renderOptionLabel,r=this.handleOptionLabelClick.bind(this,e),o=this.removeValue.bind(this,e),a=i.createElement(this.props.valueComponent,{key:e[this.props.valueKey],option:e,renderer:n,optionLabelClick:!!this.props.onOptionLabelClick,onOptionLabelClick:r,onRemove:o,disabled:this.props.disabled});t.push(a)},this),!(this.state.inputValue||this.props.multi&&t.length)){var n=this.state.values[0]||null;if(this.props.valueRenderer&&this.state.values.length)t.push(i.createElement(c,{key:0,option:n,renderer:this.props.valueRenderer,disabled:this.props.disabled}));else{var r=i.createElement(this.props.singleValueComponent,{key:"placeholder",value:n,placeholder:this.state.placeholder});t.push(r)}}var a,l,f=this.isLoading()?i.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},i.createElement("span",{className:"Select-loading"})):null,p=this.props.clearable&&this.state.value&&!this.props.disabled&&!this.isLoading()?i.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchEnd:this.clearValue,onClick:this.clearValue},i.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})):null,d=i.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},i.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}));this.state.isOpen&&(l={ref:"menu",className:"Select-menu",onMouseDown:this.handleMouseDownOnMenu},a=i.createElement("div",{ref:"selectMenuContainer",className:"Select-menu-outer"},i.createElement("div",l,this.buildMenu())));var h,g={ref:"input",className:"Select-input "+(this.props.inputProps.className||""),tabIndex:this.props.tabIndex||0,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};for(var y in this.props.inputProps)this.props.inputProps.hasOwnProperty(y)&&"className"!==y&&(g[y]=this.props.inputProps[y]);return this.props.disabled?this.props.multi&&this.state.values.length||(h=i.createElement("div",{className:"Select-input"}," ")):h=this.props.searchable?i.createElement(s,o({value:this.state.inputValue,onChange:this.handleInputChange,minWidth:"5"},g)):i.createElement("div",g," "),i.createElement("div",{ref:"wrapper",className:e},i.createElement("input",{type:"hidden",ref:"value",name:this.props.name,value:this.state.value,disabled:this.props.disabled}),i.createElement("div",{className:"Select-control",ref:"control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},t,h,f,p,d),a)}});t.exports=d},{"./Option":118,"./SingleValue":120,"./Value":121,classnames:122,react:514,"react-dom":279,"react-input-autosize":123}],120:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"SingleValue",propTypes:{placeholder:r.PropTypes.string,value:r.PropTypes.object},render:function(){var e=o("Select-placeholder",this.props.value&&this.props.value.className);return r.createElement("div",{className:e,style:this.props.value&&this.props.value.style,title:this.props.value&&this.props.value.title},this.props.placeholder)}});t.exports=i},{classnames:122,react:514}],121:[function(e,t,n){"use strict";var r=e("react"),o=e("classnames"),i=r.createClass({displayName:"Value",propTypes:{disabled:r.PropTypes.bool,onOptionLabelClick:r.PropTypes.func,onRemove:r.PropTypes.func,option:r.PropTypes.object.isRequired,optionLabelClick:r.PropTypes.bool,renderer:r.PropTypes.func},blockEvent:function(e){e.stopPropagation()},handleOnRemove:function(e){this.props.disabled||this.props.onRemove(e)},render:function(){var e=this.props.option.label;return this.props.renderer&&(e=this.props.renderer(this.props.option)),this.props.onRemove||this.props.optionLabelClick?(this.props.optionLabelClick&&(e=r.createElement("a",{className:o("Select-item-label__a",this.props.option.className),onMouseDown:this.blockEvent,onTouchEnd:this.props.onOptionLabelClick,onClick:this.props.onOptionLabelClick,style:this.props.option.style,title:this.props.option.title},e)),r.createElement("div",{className:o("Select-item",this.props.option.className),style:this.props.option.style,title:this.props.option.title},r.createElement("span",{className:"Select-item-icon",onMouseDown:this.blockEvent,onClick:this.handleOnRemove,onTouchEnd:this.handleOnRemove},"×"),r.createElement("span",{className:"Select-item-label"},e))):r.createElement("div",{className:o("Select-value",this.props.option.className),style:this.props.option.style,title:this.props.option.title},e)}});t.exports=i},{classnames:122,react:514}],122:[function(t,n,r){!function(){"use strict";function t(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o))e.push(t.apply(null,o));else if("object"===i)for(var a in o)r.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}var r={}.hasOwnProperty;"undefined"!=typeof n&&n.exports?n.exports=t:"function"==typeof e&&"object"==typeof e.amd&&e.amd?e("classnames",[],function(){return t}):window.classNames=t}()},{}],123:[function(e,t,n){"use strict";var r=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},o=e("react"),i={position:"absolute",visibility:"hidden",height:0,width:0,overflow:"scroll",whiteSpace:"pre"},a=("undefined"!=typeof window?function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}().bind(window):void 0,o.createClass({displayName:"AutosizeInput",propTypes:{value:o.PropTypes.any,defaultValue:o.PropTypes.any,onChange:o.PropTypes.func,style:o.PropTypes.object,className:o.PropTypes.string,minWidth:o.PropTypes.oneOfType([o.PropTypes.number,o.PropTypes.string]),inputStyle:o.PropTypes.object,inputClassName:o.PropTypes.string},getDefaultProps:function(){return{minWidth:1}},getInitialState:function(){return{inputWidth:this.props.minWidth}},componentDidMount:function(){this.copyInputStyles(),this.updateInputWidth()},componentDidUpdate:function(){this.updateInputWidth()},copyInputStyles:function(){if(this.isMounted()&&window.getComputedStyle){var e=window.getComputedStyle(this.refs.input);if(e){var t=this.refs.sizer;if(t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,this.props.placeholder){var n=this.refs.placeholderSizer;n.style.fontSize=e.fontSize,n.style.fontFamily=e.fontFamily,n.style.fontWeight=e.fontWeight,n.style.fontStyle=e.fontStyle,n.style.letterSpacing=e.letterSpacing}}}},updateInputWidth:function(){if(this.isMounted()&&"undefined"!=typeof this.refs.sizer.scrollWidth){var e=void 0;e=this.props.placeholder?Math.max(this.refs.sizer.scrollWidth,this.refs.placeholderSizer.scrollWidth)+2:this.refs.sizer.scrollWidth+2,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}},getInput:function(){return this.refs.input},focus:function(){this.refs.input.focus()},
4
- blur:function(){this.refs.input.blur()},select:function(){this.refs.input.select()},render:function(){var e=this.props.defaultValue||this.props.value||"",t=this.props.style||{};t.display||(t.display="inline-block");var n=r({},this.props.inputStyle);n.width=this.state.inputWidth+"px",n.boxSizing="content-box";var a=this.props.placeholder?o.createElement("div",{ref:"placeholderSizer",style:i},this.props.placeholder):null;return o.createElement("div",{className:this.props.className,style:t},o.createElement("input",r({},this.props,{ref:"input",className:this.props.inputClassName,style:n})),o.createElement("div",{ref:"sizer",style:i},e),a)}}));t.exports=a},{react:514}],124:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table";return this.props.striped&&(e+=" cf-table--striped"),this.props.hover&&(e+=" cf-table--hover"),this.props.bordered&&(e+=" cf-table--bordered"),this.props.condensed&&(e+=" cf-table--condensed"),u.default.createElement("table",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={striped:s.PropTypes.bool,hover:s.PropTypes.bool,bordered:s.PropTypes.bool,condensed:s.PropTypes.bool},c.defaultProps={striped:!1,hover:!1,bordered:!0,condensed:!1},n.default=c},{react:514}],125:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("tbody",{className:"cf-table__body"},this.props.children)},t}(u.default.Component);n.default=c},{react:514}],126:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__cell";return this.props.sortable&&(e+=" cf-table__cell--sortable"),u.default.createElement("td",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={sortable:s.PropTypes.bool,editable:s.PropTypes.bool},n.default=c},{react:514}],127:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("tfoot",{className:"cf-table__foot"},this.props.children)},t}(u.default.Component);n.default=c},{react:514}],128:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("thead",{className:"cf-table__head"},this.props.children)},t}(u.default.Component);n.default=c},{react:514}],129:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__cell cf-table__cell--head";return this.props.sortable&&(e+=" cf-table__cell--sortable"),u.default.createElement("th",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={sortable:s.PropTypes.bool,editable:s.PropTypes.bool},n.default=c},{react:514}],130:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e="cf-table__row cf-table__row--"+this.props.type;return this.props.accent&&(e+=" cf-table__row--accent-"+this.props.accent),u.default.createElement("tr",{className:e},this.props.children)},t}(u.default.Component);c.propTypes={type:s.PropTypes.oneOf(["default","info","success","warning","error"]),accent:s.PropTypes.oneOf([!1,"gray","orange","pink","red","green","purple"])},c.defaultProps={type:"default",accent:!1},n.default=c},{react:514}],131:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.TableRow=n.TableHeadCell=n.TableHead=n.TableFoot=n.TableCell=n.TableBody=n.Table=void 0;var o=e("./Table"),i=r(o),a=e("./TableBody"),s=r(a),u=e("./TableCell"),c=r(u),l=e("./TableFoot"),f=r(l),p=e("./TableHead"),d=r(p),h=e("./TableHeadCell"),g=r(h),y=e("./TableRow"),m=r(y);n.Table=i.default,n.TableBody=s.default,n.TableCell=c.default,n.TableFoot=f.default,n.TableHead=d.default,n.TableHeadCell=g.default,n.TableRow=m.default},{"./Table":124,"./TableBody":125,"./TableCell":126,"./TableFoot":127,"./TableHead":128,"./TableHeadCell":129,"./TableRow":130}],132:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("cf-component-viewport"),c=e("cf-component-select"),l=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.getChildContext=function(){return{activeTab:this.props.activeTab}},t.prototype.handleChange=function(e){e!==this.props.active&&this.props.onChange(e)},t.prototype.handleKeyDown=function(e,t){13===t.which&&this.handleChange(e)},t.prototype.render=function(){var e=this;return a.createElement("section",{className:"cf-tabs"},a.createElement(u,{size:"mobile"},a.createElement(c,{onChange:this.handleChange,value:this.props.activeTab,options:this.props.tabs.map(function(e){return{value:e.id,label:e.label}})})),a.createElement(u,{not:!0,size:"mobile"},a.createElement("ul",{className:"cf-tabs__group",role:"tablist"},this.props.tabs.map(function(t){var n=t.id===e.props.activeTab,r="cf-tabs__item";return n&&(r+=" cf-tabs__item--active"),a.createElement("li",{key:t.id,role:"tab",tabIndex:0,"aria-controls":t.id,"aria-selected":n,className:r,onKeyDown:e.handleKeyDown.bind(e,t.id),onClick:e.handleChange.bind(e,t.id)},t.label)}))),this.props.children)},t}(a.Component);l.propTypes={onChange:s.func.isRequired,activeTab:s.string.isRequired,tabs:s.arrayOf(s.shape({id:s.string.isRequired,label:s.string.isRequired})).isRequired},l.childContextTypes={activeTab:s.string.isRequired},t.exports=l},{"cf-component-select":117,"cf-component-viewport":137,react:514}],133:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.context.activeTab===this.props.id;return a.createElement("div",{className:"cf-tabs__panel",role:"tabpanel","aria-labelledby":this.props.id,"aria-hidden":!e,style:{display:e?"block":"none"}},this.props.children)},t}(a.Component);u.propTypes={id:s.string.isRequired},u.contextTypes={activeTab:s.string.isRequired},t.exports=u},{react:514}],134:[function(e,t,n){"use strict";n.Tabs=e("./Tabs"),n.TabsPanel=e("./TabsPanel")},{"./Tabs":132,"./TabsPanel":133}],135:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("react-responsive"),c=e("./buildMediaQuery"),l={mobile:{minWidth:null,maxWidth:"15.6em"},mobileWide:{minWidth:"15.6em",maxWidth:"32.4em"},tablet:{minWidth:"32.4em",maxWidth:"49.2em"},desktop:{minWidth:"49.2em",maxWidth:"66em"},desktopLarge:{minWidth:"66em",maxWidth:null}},f=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=this.props,t=e.size,n=e.not,r=c(l[t],n);return a.createElement(u,{query:r},this.props.children)},t}(a.Component);f.propTypes={not:s.bool,size:s.oneOf(["mobile","mobileWide","tablet","desktop","desktopLarge"]).isRequired},f.defaultProps={not:!1},t.exports=f},{"./buildMediaQuery":136,react:514,"react-responsive":142}],136:[function(e,t,n){"use strict";function r(e,t){var n=e.minWidth,r=e.maxWidth,o="";return n&&(o+="(min-width: "+n+")"),n&&r&&(o+=" and "),r&&(o+="(max-width: "+r+")"),t&&(o="not all and "+o),o}t.exports=r},{}],137:[function(e,t,n){"use strict";t.exports=e("./Viewport")},{"./Viewport":135}],138:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$&").toLowerCase().replace(i,"-ms-")}var o=/[A-Z]/g,i=/^ms-/;t.exports=r},{}],139:[function(e,t,n){"use strict";function r(e,t){function n(e){u&&u.addListener(e)}function r(e){u&&u.removeListener(e)}function o(e){s.matches=e.matches,s.media=e.media}var s=this;if(a){var u=a.call(window,e);this.matches=u.matches,this.media=u.media,u.addListener(o)}else this.matches=i(e,t),this.media=e;this.addListener=n,this.removeListener=r}function o(e,t){return new r(e,t)}var i=e("css-mediaquery").match,a="undefined"!=typeof window?window.matchMedia:null;t.exports=o},{"css-mediaquery":140}],140:[function(e,t,n){"use strict";function r(e,t){return o(e).some(function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var o=e.expressions.every(function(e){var n=e.feature,r=e.modifier,o=e.value,u=t[n];if(!u)return!1;switch(n){case"orientation":case"scan":return u.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=s(o),u=s(u);break;case"resolution":o=a(o),u=a(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=i(o),u=i(u);break;case"grid":case"color":case"color-index":case"monochrome":o=parseInt(o,10)||1,u=parseInt(u,10)||0}switch(r){case"min":return u>=o;case"max":return u<=o;default:return u===o}});return o&&!n||!o&&n})}function o(e){return e.split(",").map(function(e){e=e.trim();var t=e.match(u),n=t[1],r=t[2],o=t[3]||"",i={};return i.inverse=!!n&&"not"===n.toLowerCase(),i.type=r?r.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],i.expressions=o.map(function(e){var t=e.match(c),n=t[1].toLowerCase().match(l);return{modifier:n[1],feature:n[2],value:t[2]}}),i})}function i(e){var t,n=Number(e);return n||(t=e.match(/^(\d+)\s*\/\s*(\d+)$/),n=t[1]/t[2]),n}function a(e){var t=parseFloat(e),n=String(e).match(p)[1];switch(n){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function s(e){var t=parseFloat(e),n=String(e).match(f)[1];switch(n){case"em":return 16*t;case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}n.match=r,n.parse=o;var u=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,c=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,l=/^(?:(min|max)-)?(.+)/,f=/(em|rem|px|cm|mm|in|pt|pc)?$/,p=/(dpi|dpcm|dppx)?$/},{}],141:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(s[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var l=0;l<o.length;l++)a.call(n,o[l])&&(s[o[l]]=n[o[l]])}}return s}},{}],142:[function(e,t,n){"use strict";function r(e,t){var n=c({},e);return t.forEach(function(e){delete n[e]}),n}var o=e("react"),i=e("matchmedia"),a=e("hyphenate-style-name"),s=e("./mediaQuery"),u=e("./toQuery"),c=e("object-assign"),l={component:o.PropTypes.node,query:o.PropTypes.string,values:o.PropTypes.shape(s.matchers),children:o.PropTypes.array},f=Object.keys(s.all),p=Object.keys(l),d=p.concat(f),h=o.createClass({displayName:"MediaQuery",getDefaultProps:function(){return{values:{}}},getInitialState:function(){return{matches:!1}},componentWillMount:function(){this.updateQuery(this.props)},componentWillReceiveProps:function(e){this.updateQuery(e)},updateQuery:function(e){var t;if(e.query?this.query=e.query:this.query=u(r(e,p)),!this.query)throw new Error("Invalid or missing MediaQuery!");e.values&&(t=Object.keys(e.values).reduce(function(t,n){return t[a(n)]=e.values[n],t},{})),this._mql&&this._mql.removeListener(this.updateMatches),this._mql=i(this.query,t),this._mql.addListener(this.updateMatches),this.updateMatches()},componentWillUnmount:function(){this._mql.removeListener(this.updateMatches)},updateMatches:function(){this._mql.matches!==this.state.matches&&this.setState({matches:this._mql.matches})},render:function(){if(this.state.matches===!1)return null;var e=r(this.props,d),t=Object.keys(e).length>0,n=o.Children.count(this.props.children),i=this.props.component||n>1||"string"==typeof this.props.children||void 0===this.props.children;return i?o.createElement(this.props.component||"div",e,this.props.children):t?o.cloneElement(this.props.children,e):n?this.props.children:null}});t.exports=h},{"./mediaQuery":143,"./toQuery":144,"hyphenate-style-name":138,matchmedia:139,"object-assign":141,react:514}],143:[function(e,t,n){var r=e("react").PropTypes,o=e("object-assign"),i=r.oneOfType([r.string,r.number]),a={orientation:r.oneOf(["portrait","landscape"]),scan:r.oneOf(["progressive","interlace"]),aspectRatio:r.string,deviceAspectRatio:r.string,height:i,deviceHeight:i,width:i,deviceWidth:i,color:r.bool,colorIndex:r.bool,monochrome:r.bool,resolution:i},s={minAspectRatio:r.string,maxAspectRatio:r.string,minDeviceAspectRatio:r.string,maxDeviceAspectRatio:r.string,minHeight:i,maxHeight:i,minDeviceHeight:i,maxDeviceHeight:i,minWidth:i,maxWidth:i,minDeviceWidth:i,maxDeviceWidth:i,minColor:r.number,maxColor:r.number,minColorIndex:r.number,maxColorIndex:r.number,minMonochrome:r.number,maxMonochrome:r.number,minResolution:i,maxResolution:i};o(s,a);var u={all:r.bool,grid:r.bool,aural:r.bool,braille:r.bool,handheld:r.bool,print:r.bool,projection:r.bool,screen:r.bool,tty:r.bool,tv:r.bool,embossed:r.bool},c={};o(c,u),o(c,s),o(a,{type:Object.keys(u)}),t.exports={all:c,types:u,matchers:a,features:s}},{"object-assign":141,react:514}],144:[function(e,t,n){"use strict";function r(e){return"not "+e}function o(e,t){var n=a(e);return"number"==typeof t&&(t+="px"),t===!0?e:t===!1?r(e):"("+n+": "+t+")"}function i(e){return e.join(" and ")}var a=e("hyphenate-style-name"),s=e("./mediaQuery");t.exports=function(e){var t=[];return Object.keys(s.all).forEach(function(n){var r=e[n];null!=r&&t.push(o(n,r))}),i(t)}},{"./mediaQuery":143,"hyphenate-style-name":138}],145:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype.render=function(){var e=[];return this.props.size&&e.push("cf-text--"+this.props.size),this.props.align&&e.push("cf-text--"+this.props.align),this.props.type&&e.push("cf-text--"+this.props.type),this.props.case&&e.push("cf-text--"+this.props.case),a.createElement("div",{className:e.join(" ")},this.props.children)},t}(a.Component);u.propTypes={size:s.oneOf(["normal","small"]),align:s.oneOf(["start","center","justify","end"]),type:s.oneOf(["info","success","warning","error","muted"]),case:s.oneOf(["capitalize","titlecase","lowercase","uppercase"])},t.exports=u},{react:514}],146:[function(e,t,n){"use strict";t.exports=e("./Text")},{"./Text":145}],147:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=e("react-required-if"),c=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange&&i.props.onChange(e.target.value)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-textarea";return this.props.disabled&&(e+=" cf-textarea--disabled"),this.props.readOnly&&(e+=" cf-textarea--readonly"),a.createElement("textarea",{className:e,name:this.props.name,value:this.props.value,disabled:this.props.disabled,readOnly:this.props.readOnly,onChange:this.handleChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur})},t}(a.Component);c.propTypes={name:s.string.isRequired,value:s.string.isRequired,disabled:s.bool,readOnly:s.bool,onChange:u(s.func,function(e){return!e.disabled&&!e.readOnly}),onFocus:s.func,onBlur:s.func},t.exports=c},{react:514,"react-required-if":149}],148:[function(e,t,n){"use strict";t.exports=e("./Textarea")},{"./Textarea":147}],149:[function(e,t,n){t.exports=function(e,t){return function(n){const r=t(n)?e.isRequired:e;return r.apply(this,arguments)}}},{}],150:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=a.PropTypes,u=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,u=Array(s),c=0;c<s;c++)u[c]=arguments[c];return n=i=o(this,e.call.apply(e,[this].concat(u))),i.handleChange=function(e){i.props.onChange(e.target.checked)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){var e="cf-toggle";return this.props.value&&(e+=" cf-toggle--active"),a.createElement("label",{htmlFor:this.props.name,className:e},a.createElement("input",{className:"cf-toggle__checkbox",type:"checkbox",id:this.props.name,name:this.props.name,checked:this.props.value,onChange:this.handleChange,onFocus:this.props.onFocus,onBlur:this.props.onBlur}),a.createElement("span",{className:"cf-toggle__label"},this.props.label),a.createElement("span",{className:"cf-toggle__handle"}))},t}(a.Component);u.propTypes={label:s.oneOfType([s.string,s.oneOf([!1])]).isRequired,name:s.string,value:s.bool,onChange:s.func,onFocus:s.func,onBlur:s.func},t.exports=u},{react:514}],151:[function(e,t,n){"use strict";t.exports=e("./Toggle")},{"./Toggle":150}],152:[function(e,t,n){"use strict";function r(e){y.push(e)}function o(e,t,n,r){n=n||{},n.method=e,n.url=t,n.callback=r,y.forEach(function(e){return e(n)});var o=l[g[n.method]](n.url);n.parameters&&o.query(n.parameters),n.headers&&o.set(n.headers),n.body&&o.send(n.body);var i=n.method+" "+n.url;return p(i),o.end(function(e,t){i=i+" ("+t.status+" "+t.statusText+")";var r={headers:t.headers,status:t.status,body:t.body,text:t.text};e?(d(i),n.callback(r)):(h(i),n.callback(null,r))}),function(){o.abort()}}function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["GET"].concat(t))}function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["POST"].concat(t))}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["PUT"].concat(t))}function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["PATCH"].concat(t))}function c(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.apply(void 0,["DELETE"].concat(t))}var l=e("superagent"),f=e("cf-util-logger"),p=f("http:request"),d=f("http:error"),h=f("http:success"),g={GET:"get",POST:"post",PUT:"put",PATCH:"patch",DELETE:"del"},y=[];t.exports={beforeSend:r,request:o,get:i,post:a,put:s,patch:u,del:c}},{"cf-util-logger":155,superagent:159}],153:[function(e,t,n){"use strict";t.exports=e("./http")},{"./http":152}],154:[function(e,t,n){"use strict";function r(e){var t=o(e);return function(e){t(e)}}var o=e("debug");t.exports=r},{debug:156}],155:[function(e,t,n){"use strict";t.exports=e("./createLogger")},{"./createLogger":154}],156:[function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+n.humanize(this.diff),!t)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var o=0,i=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r),e}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?n.storage.removeItem("debug"):n.storage.debug=e}catch(e){}}function s(){var e;try{e=n.storage.debug}catch(e){}return e}function u(){try{return window.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=i,n.formatArgs=o,n.save=a,n.load=s,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){return JSON.stringify(e)},n.enable(s())},{"./debug":157}],157:[function(e,t,n){function r(){return n.colors[l++%n.colors.length]}function o(e){function t(){}function o(){var e=o,t=+new Date,i=t-(c||t);e.diff=i,e.prev=c,e.curr=t,c=t,null==e.useColors&&(e.useColors=n.useColors()),null==e.color&&e.useColors&&(e.color=r());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(t,r){if("%%"===t)return t;s++;var o=n.formatters[r];if("function"==typeof o){var i=a[s];t=o.call(e,i),a.splice(s,1),s--}return t}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(e,a));var u=o.log||n.log||console.log.bind(console);u.apply(e,a)}t.enabled=!1,o.enabled=!0;var i=n.enabled(e)?o:t;return i.namespace=e,i}function i(e){n.save(e);for(var t=(e||"").split(/[\s,]+/),r=t.length,o=0;o<r;o++)t[o]&&(e=t[o].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")))}function a(){n.enable("")}function s(e){var t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return!0;return!1}function u(e){return e instanceof Error?e.stack||e.message:e}n=t.exports=o,n.coerce=u,n.disable=a,n.enable=i,n.enabled=s,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};var c,l=0},{ms:158}],158:[function(e,t,n){function r(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*f;case"days":case"day":case"d":return n*l;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function o(e){return e>=l?Math.round(e/l)+"d":e>=c?Math.round(e/c)+"h":e>=u?Math.round(e/u)+"m":e>=s?Math.round(e/s)+"s":e+"ms"}function i(e){return a(e,l,"day")||a(e,c,"hour")||a(e,u,"minute")||a(e,s,"second")||e+" ms"}function a(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var s=1e3,u=60*s,c=60*u,l=24*c,f=365.25*l;t.exports=function(e,t){return t=t||{},"string"==typeof e?r(e):t.long?i(e):o(e)}},{}],159:[function(e,t,n){function r(){}function o(e){var t={}.toString.call(e);switch(t){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}}function i(e){if(!_(e))return e;var t=[];for(var n in e)null!=e[n]&&a(t,n,e[n]);return t.join("&")}function a(e,t,n){return Array.isArray(n)?n.forEach(function(n){a(e,t,n)}):void e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}function s(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i<a;++i)n=o[i],t=n.split("="),r[decodeURIComponent(t[0])]=decodeURIComponent(t[1]);return r}function u(e){var t,n,r,o,i=e.split(/\r?\n/),a={};i.pop();for(var s=0,u=i.length;s<u;++s)n=i[s],t=n.indexOf(":"),r=n.slice(0,t).toLowerCase(),o=x(n.slice(t+1)),a[r]=o;return a}function c(e){return/[\/+]json\b/.test(e)}function l(e){return e.split(/ *; */).shift()}function f(e){return m(e.split(/ *; */),function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})}function p(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||"undefined"==typeof this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this.setStatusProperties(this.xhr.status),this.header=this.headers=u(this.xhr.getAllResponseHeaders()),
5
- this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this.setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this.parseBody(this.text?this.text:this.xhr.response):null}function d(e,t){var n=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new p(n)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,e.rawResponse=n.xhr&&n.xhr.responseText?n.xhr.responseText:null,e.statusCode=n.xhr&&n.xhr.status?n.xhr.status:null,n.callback(e)}if(n.emit("response",t),e)return n.callback(e,t);if(t.status>=200&&t.status<300)return n.callback(e,t);var r=new Error(t.statusText||"Unsuccessful HTTP response");r.original=e,r.response=t,r.status=t.status,n.callback(r,t)})}function h(e,t){var n=b("DELETE",e);return t&&n.end(t),n}var g,y=e("emitter"),m=e("reduce"),v=e("./request-base"),_=e("./is-object");g="undefined"!=typeof window?window:"undefined"!=typeof self?self:this;var b=t.exports=e("./request").bind(null,d);b.getXHR=function(){if(!(!g.XMLHttpRequest||g.location&&"file:"==g.location.protocol&&g.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}return!1};var x="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};b.serializeObject=i,b.parseString=s,b.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":i,"application/json":JSON.stringify},b.parse={"application/x-www-form-urlencoded":s,"application/json":JSON.parse},p.prototype.get=function(e){return this.header[e.toLowerCase()]},p.prototype.setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=l(t);var n=f(t);for(var r in n)this[r]=n[r]},p.prototype.parseBody=function(e){var t=b.parse[this.type];return!t&&c(this.type)&&(t=b.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null},p.prototype.setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},p.prototype.toError=function(){var e=this.req,t=e.method,n=e.url,r="cannot "+t+" "+n+" ("+this.status+")",o=new Error(r);return o.status=this.status,o.method=t,o.url=n,o},b.Response=p,y(d.prototype);for(var E in v)d.prototype[E]=v[E];d.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr&&this.xhr.abort(),this.clearTimeout(),this.emit("abort"),this},d.prototype.type=function(e){return this.set("Content-Type",b.types[e]||e),this},d.prototype.responseType=function(e){return this._responseType=e,this},d.prototype.accept=function(e){return this.set("Accept",b.types[e]||e),this},d.prototype.auth=function(e,t,n){switch(n||(n={type:"basic"}),n.type){case"basic":var r=btoa(e+":"+t);this.set("Authorization","Basic "+r);break;case"auto":this.username=e,this.password=t}return this},d.prototype.query=function(e){return"string"!=typeof e&&(e=i(e)),e&&this._query.push(e),this},d.prototype.attach=function(e,t,n){return this._getFormData().append(e,t,n||t.name),this},d.prototype._getFormData=function(){return this._formData||(this._formData=new g.FormData),this._formData},d.prototype.send=function(e){var t=_(e),n=this._header["content-type"];if(t&&_(this._data))for(var r in e)this._data[r]=e[r];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],"application/x-www-form-urlencoded"==n?this._data=this._data?this._data+"&"+e:e:this._data=(this._data||"")+e):this._data=e;return!t||o(e)?this:(n||this.type("json"),this)},p.prototype.parse=function(e){return g.console&&console.warn("Client-side parse() method has been renamed to serialize(). This method is not compatible with superagent v2.0"),this.serialize(e),this},p.prototype.serialize=function(e){return this._parser=e,this},d.prototype.callback=function(e,t){var n=this._callback;this.clearTimeout(),n(e,t)},d.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},d.prototype.timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},d.prototype.withCredentials=function(){return this._withCredentials=!0,this},d.prototype.end=function(e){var t=this,n=this.xhr=b.getXHR(),i=this._query.join("&"),a=this._timeout,s=this._formData||this._data;this._callback=e||r,n.onreadystatechange=function(){if(4==n.readyState){var e;try{e=n.status}catch(t){e=0}if(0==e){if(t.timedout)return t.timeoutError();if(t.aborted)return;return t.crossDomainError()}t.emit("end")}};var u=function(e){e.total>0&&(e.percent=e.loaded/e.total*100),e.direction="download",t.emit("progress",e)};this.hasListeners("progress")&&(n.onprogress=u);try{n.upload&&this.hasListeners("progress")&&(n.upload.onprogress=u)}catch(e){}if(a&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},a)),i&&(i=b.serializeObject(i),this.url+=~this.url.indexOf("?")?"&"+i:"?"+i),this.username&&this.password?n.open(this.method,this.url,!0,this.username,this.password):n.open(this.method,this.url,!0),this._withCredentials&&(n.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof s&&!o(s)){var l=this._header["content-type"],f=this._parser||b.serialize[l?l.split(";")[0]:""];!f&&c(l)&&(f=b.serialize["application/json"]),f&&(s=f(s))}for(var p in this.header)null!=this.header[p]&&n.setRequestHeader(p,this.header[p]);return this._responseType&&(n.responseType=this._responseType),this.emit("request",this),n.send("undefined"!=typeof s?s:null),this},b.Request=d,b.get=function(e,t,n){var r=b("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},b.head=function(e,t,n){var r=b("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.del=h,b.delete=h,b.patch=function(e,t,n){var r=b("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.post=function(e,t,n){var r=b("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},b.put=function(e,t,n){var r=b("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},{"./is-object":160,"./request":162,"./request-base":161,emitter:163,reduce:164}],160:[function(e,t,n){function r(e){return null!=e&&"object"==typeof e}t.exports=r},{}],161:[function(e,t,n){var r=e("./is-object");n.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},n.parse=function(e){return this._parser=e,this},n.timeout=function(e){return this._timeout=e,this},n.then=function(e,t){return this.end(function(n,r){n?t(n):e(r)})},n.use=function(e){return e(this),this},n.get=function(e){return this._header[e.toLowerCase()]},n.getHeader=n.get,n.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},n.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},n.field=function(e,t){return this._getFormData().append(e,t),this}},{"./is-object":160}],162:[function(e,t,n){function r(e,t,n){return"function"==typeof n?new e("GET",t).end(n):2==arguments.length?new e("GET",t):new e(t,n)}t.exports=r},{}],163:[function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}"undefined"!=typeof t&&(t.exports=r),r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return this},r.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this},r.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},r.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],164:[function(e,t,n){t.exports=function(e,t,n){for(var r=0,o=e.length,i=3==arguments.length?n:e[r++];r<o;)i=t.call(null,i,e[r],++r,e);return i}},{}],165:[function(t,n,r){!function(t,o){"object"==typeof r&&"undefined"!=typeof n?o(r):"function"==typeof e&&e.amd?e(["exports"],o):o(t.d3=t.d3||{})}(this,function(e){"use strict";function t(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function n(e){return e=t(Math.abs(e)),e?e[1]:NaN}function r(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function o(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;o<r;++o)switch(e[o]){case".":i=n=o;break;case"0":0===i&&(i=o),n=o;break;case"e":break e;default:i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e}function i(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1],a=i-(g=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=o.length;return a===s?o:a>s?o+new Array(a-s+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+new Array(1-a).join("0")+t(e,Math.max(0,n+a-1))[0]}function a(e,n){var r=t(e,n);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+new Array((-i)).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+new Array(i-o.length+2).join("0")}function s(e){return new u(e)}function u(e){if(!(t=m.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],u=!!t[7],c=t[8]&&+t[8].slice(1),l=t[9]||"";"n"===l?(u=!0,l="g"):y[l]||(l=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=u,this.precision=c,this.type=l}function c(e){return e}function l(e){function t(e){function t(e){var t,a,s,c=m,y=v;if("c"===h)y=b(e)+y,e="";else{e=+e;var E=(e<0||1/e<0)&&(e*=-1,!0);if(e=b(e,d),E)for(t=-1,a=e.length,E=!1;++t<a;)if(s=e.charCodeAt(t),48<s&&s<58||"x"===h&&96<s&&s<103||"X"===h&&64<s&&s<71){E=!0;break}if(c=(E?"("===o?o:"-":"-"===o||"("===o?"":o)+c,y=y+("s"===h?_[8+g/3]:"")+(E&&"("===o?")":""),x)for(t=-1,a=e.length;++t<a;)if(s=e.charCodeAt(t),48>s||s>57){y=(46===s?u+e.slice(t+1):e.slice(t))+y,e=e.slice(0,t);break}}p&&!l&&(e=i(e,1/0));var C=c.length+e.length+y.length,S=C<f?new Array(f-C+1).join(n):"";switch(p&&l&&(e=i(S+e,S.length?f-y.length:1/0),S=""),r){case"<":return c+e+y+S;case"=":return c+S+e+y;case"^":return S.slice(0,C=S.length>>1)+c+e+y+S.slice(C)}return S+c+e+y}e=s(e);var n=e.fill,r=e.align,o=e.sign,c=e.symbol,l=e.zero,f=e.width,p=e.comma,d=e.precision,h=e.type,m="$"===c?a[0]:"#"===c&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",v="$"===c?a[1]:/[%p]/.test(h)?"%":"",b=y[h],x=!h||/[defgprs%]/.test(h);return d=null==d?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),t.toString=function(){return e+""},t}function o(e,r){var o=t((e=s(e),e.type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(n(r)/3))),a=Math.pow(10,-i),u=_[8+i/3];return function(e){return o(a*e)+u}}var i=e.grouping&&e.thousands?r(e.grouping,e.thousands):c,a=e.currency,u=e.decimal;return{format:t,formatPrefix:o}}function f(t){return v=l(t),e.format=v.format,e.formatPrefix=v.formatPrefix,v}function p(e){return Math.max(0,-n(Math.abs(e)))}function d(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(n(t)/3)))-n(Math.abs(e)))}function h(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,n(t)-n(e))+1}var g,y={"":o,"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return a(100*e,t)},r:a,s:i,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},m=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;u.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var v,_=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];f({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),e.formatDefaultLocale=f,e.formatLocale=l,e.formatSpecifier=s,e.precisionFixed=p,e.precisionPrefix=d,e.precisionRound=h,Object.defineProperty(e,"__esModule",{value:!0})})},{}],166:[function(e,t,n){"use strict";n.__esModule=!0;var r="PUSH";n.PUSH=r;var o="REPLACE";n.REPLACE=o;var i="POP";n.POP=i,n.default={PUSH:r,REPLACE:o,POP:i}},{}],167:[function(e,t,n){"use strict";function r(e,t,n){function r(){a=!0,n.apply(this,arguments)}function o(){a||(i<e?t.call(this,i++,o,r):r.apply(this,arguments))}var i=0,a=!1;o()}n.__esModule=!0,n.loopAsync=r},{}],168:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return c+e}function i(e,n){try{window.sessionStorage.setItem(o(e),JSON.stringify(n))}catch(e){if(e.name===f)return void("production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to save state; sessionStorage is not available due to security settings"):void 0);if(e.name===l&&0===window.sessionStorage.length)return void("production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode"):void 0);throw e}}function a(e){var n=void 0;try{n=window.sessionStorage.getItem(o(e))}catch(e){if(e.name===f)return"production"!==t.env.NODE_ENV?u.default(!1,"[history] Unable to read state; sessionStorage is not available due to security settings"):void 0,null}if(n)try{return JSON.parse(n)}catch(e){}return null}n.__esModule=!0,n.saveState=i,n.readState=a;var s=e("warning"),u=r(s),c="@@History/",l="QuotaExceededError",f="SecurityError"}).call(this,e("_process"))},{_process:2,warning:188}],169:[function(e,t,n){"use strict";function r(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function o(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function i(){return window.location.href.split("#")[1]||""}function a(e){window.location.replace(window.location.pathname+window.location.search+"#"+e)}function s(){return window.location.pathname+window.location.search+window.location.hash}function u(e){e&&window.history.go(e)}function c(e,t){t(window.confirm(e))}function l(){var e=navigator.userAgent;return(e.indexOf("Android 2.")===-1&&e.indexOf("Android 4.0")===-1||e.indexOf("Mobile Safari")===-1||e.indexOf("Chrome")!==-1||e.indexOf("Windows Phone")!==-1)&&(e.indexOf("CriOS")===-1&&(window.history&&"pushState"in window.history))}function f(){var e=navigator.userAgent;return e.indexOf("Firefox")===-1}n.__esModule=!0,n.addEventListener=r,n.removeEventListener=o,n.getHashPath=i,n.replaceHashPath=a,n.getWindowPath=s,n.go=u,n.getUserConfirmation=c,n.supportsHistory=l,n.supportsGoWithoutReloadUsingHash=f},{}],170:[function(e,t,n){"use strict";n.__esModule=!0;var r=!("undefined"==typeof window||!window.document||!window.document.createElement);n.canUseDOM=r},{}],171:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(e){return c.canUseDOM?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"DOM history needs a DOM"):u.default(!1),n.listen(e)}var n=p.default(a({getUserConfirmation:l.getUserConfirmation},e,{go:l.go}));return a({},n,{listen:t})}n.__esModule=!0;var a=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=e("invariant"),u=o(s),c=e("./ExecutionEnvironment"),l=e("./DOMUtils"),f=e("./createHistory"),p=o(f);n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./DOMUtils":169,"./ExecutionEnvironment":170,"./createHistory":173,_process:2,invariant:185}],172:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return"string"==typeof e&&"/"===e.charAt(0)}function a(){var e=v.getHashPath();return!!i(e)||(v.replaceHashPath("/"+e),!1)}function s(e,t,n){return e+(e.indexOf("?")===-1?"?":"&")+(t+"="+n)}function u(e,t){return e.replace(new RegExp("[?&]?"+t+"=[a-zA-Z0-9]+"),"")}function c(e,t){var n=e.match(new RegExp("\\?.*?\\b"+t+"=(.+?)\\b"));return n&&n[1]}function l(){function e(){var e=v.getHashPath(),t=void 0,n=void 0;R?(t=c(e,R),e=u(e,R),t?n=_.readState(t):(n=null,t=A.createKey(),v.replaceHashPath(s(e,R,t)))):t=n=null;var r=C.default(e);return A.createLocation(f({},r,{state:n}),void 0,t)}function t(t){function n(){a()&&r(e())}var r=t.transitionTo;return a(),v.addEventListener(window,"hashchange",n),function(){v.removeEventListener(window,"hashchange",n)}}function n(e){var t=e.basename,n=e.pathname,o=e.search,i=e.state,a=e.action,u=e.key;if(a!==y.POP){var c=(t||"")+n+o;R?(c=s(c,R,u),_.saveState(u,i)):e.key=e.state=null;var l=v.getHashPath();a===y.PUSH?l!==c?window.location.hash=c:"production"!==r.env.NODE_ENV?d.default(!1,"You cannot PUSH the same path using hash history"):void 0:l!==c&&v.replaceHashPath(c)}}function o(e){1===++M&&(N=t(A));var n=A.listenBefore(e);return function(){n(),0===--M&&N()}}function i(e){1===++M&&(N=t(A));var n=A.listen(e);return function(){n(),0===--M&&N()}}function l(e){"production"!==r.env.NODE_ENV?d.default(R||null==e.state,"You cannot use state without a queryKey it will be dropped"):void 0,A.push(e)}function p(e){"production"!==r.env.NODE_ENV?d.default(R||null==e.state,"You cannot use state without a queryKey it will be dropped"):void 0,A.replace(e)}function h(e){"production"!==r.env.NODE_ENV?d.default(I,"Hash history go(n) causes a full page reload in this browser"):void 0,A.go(e)}function b(e){return"#"+A.createHref(e)}function E(e){1===++M&&(N=t(A)),A.registerTransitionHook(e)}function w(e){A.unregisterTransitionHook(e),0===--M&&N()}function T(e,t){"production"!==r.env.NODE_ENV?d.default(R||null==e,"You cannot use state without a queryKey it will be dropped"):void 0,A.pushState(e,t)}function O(e,t){"production"!==r.env.NODE_ENV?d.default(R||null==e,"You cannot use state without a queryKey it will be dropped"):void 0,A.replaceState(e,t)}var P=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];m.canUseDOM?void 0:"production"!==r.env.NODE_ENV?g.default(!1,"Hash history needs a DOM"):g.default(!1);var R=P.queryKey;(void 0===R||R)&&(R="string"==typeof R?R:S);var A=x.default(f({},P,{getCurrentLocation:e,finishTransition:n,saveState:_.saveState})),M=0,N=void 0,I=v.supportsGoWithoutReloadUsingHash();return f({},A,{listenBefore:o,listen:i,push:l,replace:p,go:h,createHref:b,registerTransitionHook:E,unregisterTransitionHook:w,pushState:T,replaceState:O})}n.__esModule=!0;var f=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},p=e("warning"),d=o(p),h=e("invariant"),g=o(h),y=e("./Actions"),m=e("./ExecutionEnvironment"),v=e("./DOMUtils"),_=e("./DOMStateStorage"),b=e("./createDOMHistory"),x=o(b),E=e("./parsePath"),C=o(E),S="_k";n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./Actions":166,"./DOMStateStorage":168,"./DOMUtils":169,"./ExecutionEnvironment":170,"./createDOMHistory":171,"./parsePath":178,_process:2,invariant:185,warning:188}],173:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return Math.random().toString(36).substr(2,e)}function i(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.key===t.key&&c.default(e.state,t.state)}function a(){function e(e){return j.push(e),function(){j=j.filter(function(t){return t!==e})}}function t(){return z&&z.action===f.POP?F.indexOf(z.key):U?F.indexOf(U.key):-1}function n(e){var n=t();U=e,U.action===f.PUSH?F=[].concat(F.slice(0,n+1),[U.key]):U.action===f.REPLACE&&(F[n]=U.key),V.forEach(function(e){e(U)})}function r(e){if(V.push(e),U)e(U);else{var t=M();F=[t.key],n(t)}return function(){V=V.filter(function(t){return t!==e})}}function a(e,t){l.loopAsync(j.length,function(t,n,r){g.default(j[t],e,function(e){null!=e?r(e):n()})},function(e){D&&"string"==typeof e?D(e,function(e){t(e!==!1)}):t(e!==!1)})}function u(e){U&&i(U,e)||(z=e,a(e,function(t){if(z===e)if(t){if(e.action===f.PUSH){var r=x(U),o=x(e);o===r&&(e.action=f.REPLACE)}N(e)!==!1&&n(e)}else if(U&&e.action===f.POP){var i=F.indexOf(U.key),a=F.indexOf(e.key);i!==-1&&a!==-1&&L(i-a)}}))}function c(e){u(C(e,f.PUSH,v()))}function p(e){u(C(e,f.REPLACE,v()))}function h(){L(-1)}function y(){L(1)}function v(){return o(k)}function x(e){if(null==e||"string"==typeof e)return e;var t=e.pathname,n=e.search,r=e.hash,o=t;return n&&(o+=n),r&&(o+=r),o}function E(e){return x(e)}function C(e,t){var n=arguments.length<=2||void 0===arguments[2]?v():arguments[2];return"object"==typeof t&&("string"==typeof e&&(e=m.default(e)),e=s({},e,{state:t}),t=n,n=arguments[3]||v()),d.default(e,t,n)}function S(e){U?(w(U,e),n(U)):w(M(),e)}function w(e,t){e.state=s({},e.state,t),I(e.key,e.state)}function T(e){j.indexOf(e)===-1&&j.push(e)}function O(e){j=j.filter(function(t){return t!==e})}function P(e,t){"string"==typeof t&&(t=m.default(t)),c(s({state:e},t))}function R(e,t){"string"==typeof t&&(t=m.default(t)),p(s({state:e},t))}var A=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],M=A.getCurrentLocation,N=A.finishTransition,I=A.saveState,L=A.go,k=A.keyLength,D=A.getUserConfirmation;"number"!=typeof k&&(k=b);var j=[],F=[],V=[],U=void 0,z=void 0;return{listenBefore:e,listen:r,transitionTo:u,push:c,replace:p,go:L,goBack:h,goForward:y,createKey:v,createPath:x,createHref:E,createLocation:C,setState:_.default(S,"setState is deprecated; use location.key to save state instead"),registerTransitionHook:_.default(T,"registerTransitionHook is deprecated; use listenBefore instead"),unregisterTransitionHook:_.default(O,"unregisterTransitionHook is deprecated; use the callback returned from listenBefore instead"),pushState:_.default(P,"pushState is deprecated; use push instead"),replaceState:_.default(R,"replaceState is deprecated; use replace instead")}}n.__esModule=!0;var s=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},u=e("deep-equal"),c=r(u),l=e("./AsyncUtils"),f=e("./Actions"),p=e("./createLocation"),d=r(p),h=e("./runTransitionHook"),g=r(h),y=e("./parsePath"),m=r(y),v=e("./deprecate"),_=r(v),b=6;n.default=a,t.exports=n.default},{"./Actions":166,"./AsyncUtils":167,"./createLocation":174,"./deprecate":176,"./parsePath":178,"./runTransitionHook":179,"deep-equal":182}],174:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){var e=arguments.length<=0||void 0===arguments[0]?"/":arguments[0],t=arguments.length<=1||void 0===arguments[1]?a.POP:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3];"string"==typeof e&&(e=u.default(e)),"object"==typeof t&&(e=i({},e,{state:t}),t=n||a.POP,n=r);var o=e.pathname||"/",s=e.search||"",c=e.hash||"",l=e.state||null;return{pathname:o,search:s,hash:c,state:l,action:t,key:n}}n.__esModule=!0;var 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},a=e("./Actions"),s=e("./parsePath"),u=r(s);n.default=o,t.exports=n.default},{"./Actions":166,"./parsePath":178}],175:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.filter(function(e){return e.state}).reduce(function(e,t){return e[t.key]=t.state,e},{})}function a(){function e(e,t){_[e]=t}function t(e){return _[e]}function n(){var e=m[v],n=e.key,r=e.basename,o=e.pathname,i=e.search,a=(r||"")+o+(i||""),u=void 0;n?u=t(n):(u=null,n=d.createKey(),e.key=n);var c=y.default(a);return d.createLocation(s({},c,{state:u}),void 0,n)}function o(e){var t=v+e;return t>=0&&t<m.length}function a(e){if(e){if(!o(e))return void("production"!==r.env.NODE_ENV?c.default(!1,"Cannot go(%s) there is not enough history",e):void 0);v+=e;var t=n();d.transitionTo(s({},t,{action:p.POP}))}}function u(t){switch(t.action){case p.PUSH:v+=1,v<m.length&&m.splice(v),m.push(t),e(t.key,t.state);break;case p.REPLACE:m[v]=t,e(t.key,t.state)}}var l=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];Array.isArray(l)?l={entries:l}:"string"==typeof l&&(l={entries:[l]});var d=h.default(s({},l,{getCurrentLocation:n,finishTransition:u,saveState:e,go:a})),g=l,m=g.entries,v=g.current;"string"==typeof m?m=[m]:Array.isArray(m)||(m=["/"]),m=m.map(function(e){var t=d.createKey();return"string"==typeof e?{pathname:e,key:t}:"object"==typeof e&&e?s({},e,{key:t}):void("production"!==r.env.NODE_ENV?f.default(!1,"Unable to create history entry from %s",e):f.default(!1))}),null==v?v=m.length-1:v>=0&&v<m.length?void 0:"production"!==r.env.NODE_ENV?f.default(!1,"Current index must be >= 0 and < %s, was %s",m.length,v):f.default(!1);var _=i(m);return d}n.__esModule=!0;var s=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},u=e("warning"),c=o(u),l=e("invariant"),f=o(l),p=e("./Actions"),d=e("./createHistory"),h=o(d),g=e("./parsePath"),y=o(g);n.default=a,t.exports=n.default}).call(this,e("_process"))},{"./Actions":166,"./createHistory":173,"./parsePath":178,_process:2,invariant:185,warning:188}],176:[function(e,t,n){"use strict";function r(e){return e}n.__esModule=!0,n.default=r,t.exports=n.default},{}],177:[function(e,t,n){"use strict";function r(e){var t=e.match(/^https?:\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}n.__esModule=!0,n.default=r,t.exports=n.default},{}],178:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=c.default(e),n="",o="";"production"!==r.env.NODE_ENV?s.default(e===t,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',e):void 0;var i=t.indexOf("#");i!==-1&&(o=t.substring(i),t=t.substring(0,i));var a=t.indexOf("?");return a!==-1&&(n=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:n,hash:o}}n.__esModule=!0;var a=e("warning"),s=o(a),u=e("./extractPath"),c=o(u);n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./extractPath":177,_process:2,warning:188}],179:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){var o=e(t,n);e.length<2?n(o):"production"!==r.env.NODE_ENV?s.default(void 0===o,'You should not "return" in a transition hook with a callback argument; call the callback instead'):void 0}n.__esModule=!0;var a=e("warning"),s=o(a);n.default=i,t.exports=n.default}).call(this,e("_process"))},{_process:2,warning:188}],180:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e){return function(){function t(e){return b&&null==e.basename&&(0===e.pathname.indexOf(b)?(e.pathname=e.pathname.substring(b.length),e.basename=b,""===e.pathname&&(e.pathname="/")):e.basename=""),e}function n(e){if(!b)return e;"string"==typeof e&&(e=d.default(e));var t=e.pathname,n="/"===b.slice(-1)?b:b+"/",r="/"===t.charAt(0)?t.slice(1):t,o=n+r;return a({},e,{pathname:o})}function r(e){return E.listenBefore(function(n,r){c.default(e,t(n),r)})}function i(e){return E.listen(function(n){e(t(n))})}function u(e){E.push(n(e))}function l(e){E.replace(n(e))}function p(e){return E.createPath(n(e))}function h(e){return E.createHref(n(e))}function y(){return t(E.createLocation.apply(E,arguments))}function m(e,t){"string"==typeof t&&(t=d.default(t)),u(a({state:e},t))}function v(e,t){"string"==typeof t&&(t=d.default(t)),l(a({state:e},t))}var _=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],b=_.basename,x=o(_,["basename"]),E=e(x);if(null==b&&s.canUseDOM){var C=document.getElementsByTagName("base")[0];C&&(b=f.default(C.href))}return a({},E,{listenBefore:r,listen:i,push:u,replace:l,createPath:p,createHref:h,createLocation:y,pushState:g.default(m,"pushState is deprecated; use push instead"),replaceState:g.default(v,"replaceState is deprecated; use replace instead")})}}n.__esModule=!0;var a=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=e("./ExecutionEnvironment"),u=e("./runTransitionHook"),c=r(u),l=e("./extractPath"),f=r(l),p=e("./parsePath"),d=r(p),h=e("./deprecate"),g=r(h);n.default=i,t.exports=n.default},{"./ExecutionEnvironment":170,"./deprecate":176,"./extractPath":177,"./parsePath":178,"./runTransitionHook":179}],181:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){return p.stringify(e).replace(/%20/g,"+")}function s(e){for(var t in e)if(e.hasOwnProperty(t)&&"object"==typeof e[t]&&!Array.isArray(e[t])&&null!==e[t])return!0;return!1}function u(e){return function(){function t(e){if(null==e.query){var t=e.search;e.query=w(t.substring(1)),e[_]={search:t,searchBase:""}}return e}function n(e,t){var n,o=void 0;if(!t||""===(o=S(t)))return e;"production"!==r.env.NODE_ENV?f.default(S!==a||!s(t),"useQueries does not stringify nested query objects by default; use a custom stringifyQuery function"):void 0,"string"==typeof e&&(e=y.default(e));var i=e[_],u=void 0;u=i&&e.search===i.search?i.searchBase:e.search||"";var l=u+(u?"&":"?")+o;return c({},e,(n={search:l},n[_]={search:l,searchBase:u},n))}function o(e){return O.listenBefore(function(n,r){h.default(e,t(n),r)})}function u(e){return O.listen(function(n){e(t(n))})}function l(e){O.push(n(e,e.query))}function p(e){O.replace(n(e,e.query))}function d(e,t){return O.createPath(n(e,t||e.query))}function g(e,t){return O.createHref(n(e,t||e.query))}function m(){return t(O.createLocation.apply(O,arguments))}function x(e,t,n){"string"==typeof t&&(t=y.default(t)),l(c({state:e},t,{query:n}))}function E(e,t,n){"string"==typeof t&&(t=y.default(t)),p(c({state:e},t,{query:n}))}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],S=C.stringifyQuery,w=C.parseQueryString,T=i(C,["stringifyQuery","parseQueryString"]),O=e(T);
6
- return"function"!=typeof S&&(S=a),"function"!=typeof w&&(w=b),c({},O,{listenBefore:o,listen:u,push:l,replace:p,createPath:d,createHref:g,createLocation:m,pushState:v.default(x,"pushState is deprecated; use push instead"),replaceState:v.default(E,"replaceState is deprecated; use replace instead")})}}n.__esModule=!0;var c=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},l=e("warning"),f=o(l),p=e("query-string"),d=e("./runTransitionHook"),h=o(d),g=e("./parsePath"),y=o(g),m=e("./deprecate"),v=o(m),_="$searchBase",b=p.parse;n.default=u,t.exports=n.default}).call(this,e("_process"))},{"./deprecate":176,"./parsePath":178,"./runTransitionHook":179,_process:2,"query-string":186,warning:188}],182:[function(e,t,n){function r(e){return null===e||void 0===e}function o(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}function i(e,t,n){var i,l;if(r(e)||r(t))return!1;if(e.prototype!==t.prototype)return!1;if(u(e))return!!u(t)&&(e=a.call(e),t=a.call(t),c(e,t,n));if(o(e)){if(!o(t))return!1;if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}try{var f=s(e),p=s(t)}catch(e){return!1}if(f.length!=p.length)return!1;for(f.sort(),p.sort(),i=f.length-1;i>=0;i--)if(f[i]!=p[i])return!1;for(i=f.length-1;i>=0;i--)if(l=f[i],!c(e[l],t[l],n))return!1;return typeof e==typeof t}var a=Array.prototype.slice,s=e("./lib/keys.js"),u=e("./lib/is_arguments.js"),c=t.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:i(e,t,n))}},{"./lib/is_arguments.js":183,"./lib/keys.js":184}],183:[function(e,t,n){function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}var i="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();n=t.exports=i?r:o,n.supported=r,n.unsupported=o},{}],184:[function(e,t,n){function r(e){var t=[];for(var n in e)t.push(n);return t}n=t.exports="function"==typeof Object.keys?Object.keys:r,n.shim=r},{}],185:[function(e,t,n){"use strict";var r=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error(t.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},{}],186:[function(e,t,n){"use strict";var r=e("strict-uri-encode");n.extract=function(e){return e.split("?")[1]||""},n.parse=function(e){return"string"!=typeof e?{}:(e=e.trim().replace(/^(\?|#|&)/,""),e?e.split("&").reduce(function(e,t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;return r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(r)?Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]:e[r]=o,e},{}):{})},n.stringify=function(e){return e?Object.keys(e).sort().map(function(t){var n=e[t];return void 0===n?"":null===n?t:Array.isArray(n)?n.slice().sort().map(function(e){return r(t)+"="+r(e)}).join("&"):r(t)+"="+r(n)}).filter(function(e){return e.length>0}).join("&"):""}},{"strict-uri-encode":187}],187:[function(e,t,n){"use strict";t.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}},{}],188:[function(e,t,n){"use strict";var r=function(){};t.exports=r},{}],189:[function(e,t,n){(function(n){n.IntlPolyfill=e("./lib/core.js"),e("./locale-data/complete.js"),n.Intl||(n.Intl=n.IntlPolyfill,n.IntlPolyfill.__applyLocaleSensitivePrototypes()),t.exports=n.IntlPolyfill}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./lib/core.js":190,"./locale-data/complete.js":1}],190:[function(e,t,n){"use strict";function r(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}function o(e){for(var t in e)(e instanceof o||oe.call(e,t))&&ie(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function i(){ie(this,"length",{writable:!0,value:0}),arguments.length&&le.apply(this,ue.call(arguments))}function a(){for(var e=/[.?*+^$[\]\\(){}|-]/g,t=RegExp.lastMatch||"",n=RegExp.multiline?"m":"",r={input:RegExp.input},o=new i,a=!1,s={},u=1;u<=9;u++)a=(s["$"+u]=RegExp["$"+u])||a;if(t=t.replace(e,"\\$&"),a)for(var c=1;c<=9;c++){var l=s["$"+c];l?(l=l.replace(e,"\\$&"),t=t.replace(l,"("+l+")")):t="()"+t,le.call(o,t.slice(0,t.indexOf("(")+1)),t=t.slice(t.indexOf("(")+1)}return r.exp=new RegExp(fe.call(o,"")+t,n),r}function s(e){if(null===e)throw new TypeError("Cannot convert null or undefined to object");return Object(e)}function u(e){return oe.call(e,"__getInternalProperties")?e.__getInternalProperties(ge):se(null)}function c(e){Ne=e}function l(e){for(var t=e.length;t--;){var n=e.charAt(t);n>="a"&&n<="z"&&(e=e.slice(0,t)+n.toUpperCase()+e.slice(t+1))}return e}function f(e){return!!Pe.test(e)&&(!Re.test(e)&&!Ae.test(e))}function p(e){var t=void 0,n=void 0;e=e.toLowerCase(),n=e.split("-");for(var r=1,o=n.length;r<o;r++)if(2===n[r].length)n[r]=n[r].toUpperCase();else if(4===n[r].length)n[r]=n[r].charAt(0).toUpperCase()+n[r].slice(1);else if(1===n[r].length&&"x"!==n[r])break;e=fe.call(n,"-"),(t=e.match(Me))&&t.length>1&&(t.sort(),e=e.replace(RegExp("(?:"+Me.source+")+","i"),fe.call(t,""))),oe.call(Ie.tags,e)&&(e=Ie.tags[e]),n=e.split("-");for(var i=1,a=n.length;i<a;i++)oe.call(Ie.subtags,n[i])?n[i]=Ie.subtags[n[i]]:oe.call(Ie.extLang,n[i])&&(n[i]=Ie.extLang[n[i]][0],1===i&&Ie.extLang[n[1]][1]===n[0]&&(n=ue.call(n,i++),a-=1));return fe.call(n,"-")}function d(){return Ne}function h(e){var t=String(e),n=l(t);return Le.test(n)!==!1}function g(e){if(void 0===e)return new i;var t=new i;e="string"==typeof e?[e]:e;for(var n=s(e),r=n.length,o=0;o<r;){var a=String(o),u=a in n;if(u){var c=n[a];if(null===c||"string"!=typeof c&&"object"!==("undefined"==typeof c?"undefined":te.typeof(c)))throw new TypeError("String or Object type expected");var l=String(c);if(!f(l))throw new RangeError("'"+l+"' is not a structurally valid language tag");l=p(l),ae.call(t,l)===-1&&le.call(t,l)}o++}return t}function y(e,t){for(var n=t;n;){if(ae.call(e,n)>-1)return n;var r=n.lastIndexOf("-");if(r<0)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function m(e,t){for(var n=0,r=t.length,i=void 0,a=void 0,s=void 0;n<r&&!i;)a=t[n],s=String(a).replace(ke,""),i=y(e,s),n++;var u=new o;if(void 0!==i){if(u["[[locale]]"]=i,String(a)!==String(s)){var c=a.match(ke)[0],l=a.indexOf("-u-");u["[[extension]]"]=c,u["[[extensionIndex]]"]=l}}else u["[[locale]]"]=d();return u}function v(e,t){return m(e,t)}function _(e,t,n,r,i){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var a=n["[[localeMatcher]]"],s=void 0;s="lookup"===a?m(e,t):v(e,t);var u=s["[[locale]]"],c=void 0,l=void 0;if(oe.call(s,"[[extension]]")){var f=s["[[extension]]"],d=String.prototype.split;c=d.call(f,"-"),l=c.length}var h=new o;h["[[dataLocale]]"]=u;for(var g="-u",y=0,_=r.length;y<_;){var b=r[y],x=i[u],E=x[b],C=E[0],S="",w=ae;if(void 0!==c){var T=w.call(c,b);if(T!==-1)if(T+1<l&&c[T+1].length>2){var O=c[T+1],P=w.call(E,O);P!==-1&&(C=O,S="-"+b+"-"+C)}else{var R=w(E,"true");R!==-1&&(C="true")}}if(oe.call(n,"[["+b+"]]")){var A=n["[["+b+"]]"];w.call(E,A)!==-1&&A!==C&&(C=A,S="")}h["[["+b+"]]"]=C,g+=S,y++}if(g.length>2){var M=u.indexOf("-x-");if(M===-1)u+=g;else{var N=u.substring(0,M),I=u.substring(M);u=N+g+I}u=p(u)}return h["[[locale]]"]=u,h}function b(e,t){for(var n=t.length,r=new i,o=0;o<n;){var a=t[o],s=String(a).replace(ke,""),u=y(e,s);void 0!==u&&le.call(r,a),o++}var c=ue.call(r);return c}function x(e,t){return b(e,t)}function E(e,t,n){var r=void 0,i=void 0;if(void 0!==n&&(n=new o(s(n)),r=n.localeMatcher,void 0!==r&&(r=String(r),"lookup"!==r&&"best fit"!==r)))throw new RangeError('matcher should be "lookup" or "best fit"');i=void 0===r||"best fit"===r?x(e,t):b(e,t);for(var a in i)oe.call(i,a)&&ie(i,a,{writable:!1,configurable:!1,value:i[a]});return ie(i,"length",{writable:!1}),i}function C(e,t,n,r,o){var i=e[t];if(void 0!==i){if(i="boolean"===n?Boolean(i):"string"===n?String(i):i,void 0!==r&&ae.call(r,i)===-1)throw new RangeError("'"+i+"' is not an allowed value for `"+t+"`");return i}return o}function S(e,t,n,r,o){var i=e[t];if(void 0!==i){if(i=Number(i),isNaN(i)||i<n||i>r)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(i)}return o}function w(){var e=arguments[0],t=arguments[1];return this&&this!==De?T(s(this),e,t):new De.NumberFormat(e,t)}function T(e,t,n){var r=u(e),c=a();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===ge)return r}}),r["[[initializedIntlObject]]"]=!0;var l=g(t);n=void 0===n?{}:s(n);var f=new o,p=C(n,"localeMatcher","string",new i("lookup","best fit"),"best fit");f["[[localeMatcher]]"]=p;var d=he.NumberFormat["[[localeData]]"],y=_(he.NumberFormat["[[availableLocales]]"],l,f,he.NumberFormat["[[relevantExtensionKeys]]"],d);r["[[locale]]"]=y["[[locale]]"],r["[[numberingSystem]]"]=y["[[nu]]"],r["[[dataLocale]]"]=y["[[dataLocale]]"];var m=y["[[dataLocale]]"],v=C(n,"style","string",new i("decimal","percent","currency"),"decimal");r["[[style]]"]=v;var b=C(n,"currency","string");if(void 0!==b&&!h(b))throw new RangeError("'"+b+"' is not a valid currency code");if("currency"===v&&void 0===b)throw new TypeError("Currency code is required when style is currency");var x=void 0;"currency"===v&&(b=b.toUpperCase(),r["[[currency]]"]=b,x=O(b));var E=C(n,"currencyDisplay","string",new i("code","symbol","name"),"symbol");"currency"===v&&(r["[[currencyDisplay]]"]=E);var w=S(n,"minimumIntegerDigits",1,21,1);r["[[minimumIntegerDigits]]"]=w;var T="currency"===v?x:0,R=S(n,"minimumFractionDigits",0,20,T);r["[[minimumFractionDigits]]"]=R;var A="currency"===v?Math.max(R,x):"percent"===v?Math.max(R,0):Math.max(R,3),M=S(n,"maximumFractionDigits",R,20,A);r["[[maximumFractionDigits]]"]=M;var N=n.minimumSignificantDigits,I=n.maximumSignificantDigits;void 0===N&&void 0===I||(N=S(n,"minimumSignificantDigits",1,21,1),I=S(n,"maximumSignificantDigits",N,21,21),r["[[minimumSignificantDigits]]"]=N,r["[[maximumSignificantDigits]]"]=I);var L=C(n,"useGrouping","boolean",void 0,!0);r["[[useGrouping]]"]=L;var k=d[m],D=k.patterns,j=D[v];return r["[[positivePattern]]"]=j.positivePattern,r["[[negativePattern]]"]=j.negativePattern,r["[[boundFormat]]"]=void 0,r["[[initializedNumberFormat]]"]=!0,re&&(e.format=P.call(e)),c.exp.test(c.input),e}function O(e){return void 0!==je[e]?je[e]:2}function P(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(e){return M(this,Number(e))},n=de.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function R(e,t){for(var n=A(e,t),r=[],o=0,i=0;n.length>i;i++){var a=n[i],s={};s.type=a["[[type]]"],s.value=a["[[value]]"],r[o]=s,o+=1}return r}function A(e,t){var n=u(e),r=n["[[dataLocale]]"],o=n["[[numberingSystem]]"],a=he.NumberFormat["[[localeData]]"][r],s=a.symbols[o]||a.symbols.latn,c=void 0;!isNaN(t)&&t<0?(t=-t,c=n["[[negativePattern]]"]):c=n["[[positivePattern]]"];for(var l=new i,f=c.indexOf("{",0),p=0,d=0,h=c.length;f>-1&&f<h;){if(p=c.indexOf("}",f),p===-1)throw new Error;if(f>d){var g=c.substring(d,f);le.call(l,{"[[type]]":"literal","[[value]]":g})}var y=c.substring(f+1,p);if("number"===y)if(isNaN(t)){var m=s.nan;le.call(l,{"[[type]]":"nan","[[value]]":m})}else if(isFinite(t)){"percent"===n["[[style]]"]&&isFinite(t)&&(t*=100);var v=void 0;v=oe.call(n,"[[minimumSignificantDigits]]")&&oe.call(n,"[[maximumSignificantDigits]]")?N(t,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):I(t,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"]),Fe[o]?!function(){var e=Fe[o];v=String(v).replace(/\d/g,function(t){return e[t]})}():v=String(v);var _=void 0,b=void 0,x=v.indexOf(".",0);if(x>0?(_=v.substring(0,x),b=v.substring(x+1,x.length)):(_=v,b=void 0),n["[[useGrouping]]"]===!0){var E=s.group,C=[],S=a.patterns.primaryGroupSize||3,w=a.patterns.secondaryGroupSize||S;if(_.length>S){var T=_.length-S,O=T%w,P=_.slice(0,O);for(P.length&&le.call(C,P);O<T;)le.call(C,_.slice(O,O+w)),O+=w;le.call(C,_.slice(T))}else le.call(C,_);if(0===C.length)throw new Error;for(;C.length;){var R=pe.call(C);le.call(l,{"[[type]]":"integer","[[value]]":R}),C.length&&le.call(l,{"[[type]]":"group","[[value]]":E})}}else le.call(l,{"[[type]]":"integer","[[value]]":_});if(void 0!==b){var A=s.decimal;le.call(l,{"[[type]]":"decimal","[[value]]":A}),le.call(l,{"[[type]]":"fraction","[[value]]":b})}}else{var M=s.infinity;le.call(l,{"[[type]]":"infinity","[[value]]":M})}else if("plusSign"===y){var L=s.plusSign;le.call(l,{"[[type]]":"plusSign","[[value]]":L})}else if("minusSign"===y){var k=s.minusSign;le.call(l,{"[[type]]":"minusSign","[[value]]":k})}else if("percentSign"===y&&"percent"===n["[[style]]"]){var D=s.percentSign;le.call(l,{"[[type]]":"literal","[[value]]":D})}else if("currency"===y&&"currency"===n["[[style]]"]){var j=n["[[currency]]"],F=void 0;"code"===n["[[currencyDisplay]]"]?F=j:"symbol"===n["[[currencyDisplay]]"]?F=a.currencies[j]||j:"name"===n["[[currencyDisplay]]"]&&(F=j),le.call(l,{"[[type]]":"currency","[[value]]":F})}else{var V=c.substring(f,p);le.call(l,{"[[type]]":"literal","[[value]]":V})}d=p+1,f=c.indexOf("{",d)}if(d<h){var U=c.substring(d,h);le.call(l,{"[[type]]":"literal","[[value]]":U})}return l}function M(e,t){for(var n=A(e,t),r="",o=0;n.length>o;o++){var i=n[o];r+=i["[[value]]"]}return r}function N(e,t,n){var o=n,i=void 0,a=void 0;if(0===e)i=fe.call(Array(o+1),"0"),a=0;else{a=r(Math.abs(e));var s=Math.round(Math.exp(Math.abs(a-o+1)*Math.LN10));i=String(Math.round(a-o+1<0?e*s:e/s))}if(a>=o)return i+fe.call(Array(a-o+1+1),"0");if(a===o-1)return i;if(a>=0?i=i.slice(0,a+1)+"."+i.slice(a+1):a<0&&(i="0."+fe.call(Array(-(a+1)+1),"0")+i),i.indexOf(".")>=0&&n>t){for(var u=n-t;u>0&&"0"===i.charAt(i.length-1);)i=i.slice(0,-1),u--;"."===i.charAt(i.length-1)&&(i=i.slice(0,-1))}return i}function I(e,t,n,r){var o=r,i=Math.pow(10,o)*e,a=0===i?"0":i.toFixed(0),s=void 0,u=(s=a.indexOf("e"))>-1?a.slice(s+1):0;u&&(a=a.slice(0,s).replace(".",""),a+=fe.call(Array(u-(a.length-1)+1),"0"));var c=void 0;if(0!==o){var l=a.length;if(l<=o){var f=fe.call(Array(o+1-l+1),"0");a=f+a,l=o+1}var p=a.substring(0,l-o),d=a.substring(l-o,a.length);a=p+"."+d,c=p.length}else c=a.length;for(var h=r-n;h>0&&"0"===a.slice(-1);)a=a.slice(0,-1),h--;if("."===a.slice(-1)&&(a=a.slice(0,-1)),c<t){var g=fe.call(Array(t-c+1),"0");a=g+a}return a}function L(e){for(var t=0;t<He.length;t+=1)if(e.hasOwnProperty(He[t]))return!1;return!0}function k(e){for(var t=0;t<Ge.length;t+=1)if(e.hasOwnProperty(Ge[t]))return!1;return!0}function D(e,t){for(var n={_:{}},r=0;r<Ge.length;r+=1)e[Ge[r]]&&(n[Ge[r]]=e[Ge[r]]),e._[Ge[r]]&&(n._[Ge[r]]=e._[Ge[r]]);for(var o=0;o<He.length;o+=1)t[He[o]]&&(n[He[o]]=t[He[o]]),t._[He[o]]&&(n._[He[o]]=t._[He[o]]);return n}function j(e){return e.pattern12=e.extendedPattern.replace(/'([^']*)'/g,function(e,t){return t?t:"'"}),e.pattern=e.pattern12.replace("{ampm}","").replace(Ue,""),e}function F(e,t){switch(e.charAt(0)){case"G":return t.era=["short","short","short","long","narrow"][e.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===e.length?"2-digit":"numeric","{year}";case"Q":case"q":return t.quarter=["numeric","2-digit","short","long","narrow"][e.length-1],"{quarter}";case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][e.length-1],"{month}";case"w":return t.week=2===e.length?"2-digit":"numeric","{weekday}";case"W":return t.week="numeric","{weekday}";case"d":return t.day=2===e.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=["short","short","short","long","narrow","short"][e.length-1],"{weekday}";case"e":return t.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1],"{weekday}";case"c":return t.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"H":return t.hour=2===e.length?"2-digit":"numeric","{hour}";case"k":case"K":return t.hour12=!0,t.hour=2===e.length?"2-digit":"numeric","{hour}";case"m":return t.minute=2===e.length?"2-digit":"numeric","{minute}";case"s":return t.second=2===e.length?"2-digit":"numeric","{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=e.length<4?"short":"long","{timeZoneName}"}}function V(e,t){if(!ze.test(t)){var n={originalPattern:t,_:{}};return n.extendedPattern=t.replace(Ve,function(e){return F(e,n._)}),e.replace(Ve,function(e){return F(e,n)}),j(n)}}function U(e){var t=e.availableFormats,n=e.timeFormats,r=e.dateFormats,o=[],i=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=[],f=[];for(i in t)t.hasOwnProperty(i)&&(a=t[i],s=V(i,a),s&&(o.push(s),L(s)?f.push(s):k(s)&&l.push(s)));for(i in n)n.hasOwnProperty(i)&&(a=n[i],s=V(i,a),s&&(o.push(s),l.push(s)));for(i in r)r.hasOwnProperty(i)&&(a=r[i],s=V(i,a),s&&(o.push(s),f.push(s)));for(u=0;u<l.length;u+=1)for(c=0;c<f.length;c+=1)a="long"===f[c].month?f[c].weekday?e.full:e.long:"short"===f[c].month?e.medium:e.short,s=D(f[c],l[u]),s.originalPattern=a,s.extendedPattern=a.replace("{0}",l[u].extendedPattern).replace("{1}",f[c].extendedPattern).replace(/^[,\s]+|[,\s]+$/gi,""),o.push(j(s));return o}function z(e,t,n,r,o){var i=e[t]&&e[t][n]?e[t][n]:e.gregory[n],a={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=oe.call(i,r)?i[r]:oe.call(i,a[r][0])?i[a[r][0]]:i[a[r][1]];return null!==o?s[o]:s}function G(){var e=arguments[0],t=arguments[1];return this&&this!==De?H(s(this),e,t):new De.DateTimeFormat(e,t)}function H(e,t,n){var r=u(e),s=a();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");ie(e,"__getInternalProperties",{value:function(){if(arguments[0]===ge)return r}}),r["[[initializedIntlObject]]"]=!0;var c=g(t);n=Z(n,"any","date");var f=new o,p=C(n,"localeMatcher","string",new i("lookup","best fit"),"best fit");f["[[localeMatcher]]"]=p;var d=he.DateTimeFormat,h=d["[[localeData]]"],y=_(d["[[availableLocales]]"],c,f,d["[[relevantExtensionKeys]]"],h);r["[[locale]]"]=y["[[locale]]"],r["[[calendar]]"]=y["[[ca]]"],r["[[numberingSystem]]"]=y["[[nu]]"],r["[[dataLocale]]"]=y["[[dataLocale]]"];var m=y["[[dataLocale]]"],v=n.timeZone;if(void 0!==v&&(v=l(v),"UTC"!==v))throw new RangeError("timeZone is not supported.");r["[[timeZone]]"]=v,f=new o;for(var b in Ze)if(oe.call(Ze,b)){var x=C(n,b,"string",Ze[b]);f["[["+b+"]]"]=x}var E=void 0,S=h[m],w=B(S.formats);if(p=C(n,"formatMatcher","string",new i("basic","best fit"),"best fit"),S.formats=w,"basic"===p)E=q(f,w);else{var T=C(n,"hour12","boolean");f.hour12=void 0===T?S.hour12:T,E=W(f,w)}for(var O in Ze)if(oe.call(Ze,O)&&oe.call(E,O)){var P=E[O];P=E._&&oe.call(E._,O)?E._[O]:P,r["[["+O+"]]"]=P}var R=void 0,A=C(n,"hour12","boolean");if(r["[[hour]]"])if(A=void 0===A?S.hour12:A,r["[[hour12]]"]=A,A===!0){var M=S.hourNo0;r["[[hourNo0]]"]=M,R=E.pattern12}else R=E.pattern;else R=E.pattern;return r["[[pattern]]"]=R,r["[[boundFormat]]"]=void 0,r["[[initializedDateTimeFormat]]"]=!0,re&&(e.format=X.call(e)),s.exp.test(s.input),e}function B(e){return"[object Array]"===Object.prototype.toString.call(e)?e:U(e)}function Z(e,t,n){if(void 0===e)e=null;else{var r=s(e);e=new o;for(var i in r)e[i]=r[i]}var a=se;e=a(e);var u=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(u=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(u=!1),!u||"date"!==n&&"all"!==n||(e.year=e.month=e.day="numeric"),!u||"time"!==n&&"all"!==n||(e.hour=e.minute=e.second="numeric"),e}function q(e,t){for(var n=120,r=20,o=8,i=6,a=6,s=3,u=-(1/0),c=void 0,l=0,f=t.length;l<f;){var p=t[l],d=0;for(var h in Ze)if(oe.call(Ze,h)){var g=e["[["+h+"]]"],y=oe.call(p,h)?p[h]:void 0;if(void 0===g&&void 0!==y)d-=r;else if(void 0!==g&&void 0===y)d-=n;else{var m=["2-digit","numeric","narrow","short","long"],v=ae.call(m,g),_=ae.call(m,y),b=Math.max(Math.min(_-v,2),-2);2===b?d-=i:1===b?d-=s:b===-1?d-=a:b===-2&&(d-=o)}}d>u&&(u=d,c=p),l++}return c}function W(e,t){for(var n=120,r=20,o=8,i=6,a=6,s=3,u=1,c=-(1/0),l=void 0,f=0,p=t.length;f<p;){var d=t[f],h=0;for(var g in Ze)if(oe.call(Ze,g)){var y=e["[["+g+"]]"],m=oe.call(d,g)?d[g]:void 0;if(void 0===y&&void 0!==m)h-=r;else if(void 0!==y&&void 0===m)h-=n;else{var v=["2-digit","numeric","narrow","short","long"],_=ae.call(v,y),b=ae.call(v,m),x=Math.max(Math.min(b-_,2),-2);b<=1&&_>=2||b>=2&&_<=1?x>0?h-=i:x<0&&(h-=o):x>1?h-=s:x<-1&&(h-=a)}}d._.hour12!==e.hour12&&(h-=u),h>c&&(c=h,l=d),f++}return l}function X(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return Q(this,e)},n=de.call(t,this);e["[[boundFormat]]"]=n}return e["[[boundFormat]]"]}function Y(){var e=null!==this&&"object"===te.typeof(this)&&u(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormatToParts]]"]){var t=function(){var e=Number(0===arguments.length?Date.now():arguments[0]);return $(this,e)},n=de.call(t,this);e["[[boundFormatToParts]]"]=n}return e["[[boundFormatToParts]]"]}function K(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var n=e.__getInternalProperties(ge);a();for(var r=n["[[locale]]"],o=new De.NumberFormat([r],{useGrouping:!1}),s=new De.NumberFormat([r],{minimumIntegerDigits:2,useGrouping:!1}),u=J(t,n["[[calendar]]"],n["[[timeZone]]"]),c=n["[[pattern]]"],l=new i,f=0,p=c.indexOf("{"),d=0,h=n["[[dataLocale]]"],g=he.DateTimeFormat["[[localeData]]"][h].calendars,y=n["[[calendar]]"];p!==-1;){var m=void 0;if(d=c.indexOf("}",p),d===-1)throw new Error("Unclosed pattern");p>f&&le.call(l,{type:"literal",value:c.substring(f,p)});var v=c.substring(p+1,d);if(Ze.hasOwnProperty(v)){var _=n["[["+v+"]]"],b=u["[["+v+"]]"];if("year"===v&&b<=0?b=1-b:"month"===v?b++:"hour"===v&&n["[[hour12]]"]===!0&&(b%=12,0===b&&n["[[hourNo0]]"]===!0&&(b=12)),"numeric"===_)m=M(o,b);else if("2-digit"===_)m=M(s,b),m.length>2&&(m=m.slice(-2));else if(_ in Be)switch(v){case"month":m=z(g,y,"months",_,u["[["+v+"]]"]);break;case"weekday":try{m=z(g,y,"days",_,u["[["+v+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+r)}break;case"timeZoneName":m="";break;case"era":try{m=z(g,y,"eras",_,u["[["+v+"]]"])}catch(e){throw new Error("Could not find era data for locale "+r)}break;default:m=u["[["+v+"]]"]}le.call(l,{type:v,value:m})}else if("ampm"===v){var x=u["[[hour]]"];m=z(g,y,"dayPeriods",x>11?"pm":"am",null),le.call(l,{type:"dayPeriod",value:m})}else le.call(l,{type:"literal",value:c.substring(p,d+1)});f=d+1,p=c.indexOf("{",f)}return d<c.length-1&&le.call(l,{type:"literal",value:c.substr(d+1)}),l}function Q(e,t){for(var n=K(e,t),r="",o=0;n.length>o;o++){var i=n[o];r+=i.value}return r}function $(e,t){for(var n=K(e,t),r=[],o=0;n.length>o;o++){var i=n[o];r.push({type:i.type,value:i.value})}return r}function J(e,t,n){var r=new Date(e),i="get"+(n||"");return new o({"[[weekday]]":r[i+"Day"](),"[[era]]":+(r[i+"FullYear"]()>=0),"[[year]]":r[i+"FullYear"](),"[[month]]":r[i+"Month"](),"[[day]]":r[i+"Date"](),"[[hour]]":r[i+"Hours"](),"[[minute]]":r[i+"Minutes"](),"[[second]]":r[i+"Seconds"](),"[[inDST]]":!1})}function ee(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var n=void 0,r=[t],o=t.split("-");for(o.length>2&&4===o[1].length&&le.call(r,o[0]+"-"+o[2]);n=pe.call(r);)le.call(he.NumberFormat["[[availableLocales]]"],n),he.NumberFormat["[[localeData]]"][n]=e.number,e.date&&(e.date.nu=e.number.nu,le.call(he.DateTimeFormat["[[availableLocales]]"],n),he.DateTimeFormat["[[localeData]]"][n]=e.date);void 0===Ne&&c(t)}var te={};te.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};var ne=function(){var e={};try{return Object.defineProperty(e,"a",{}),"a"in e}catch(e){return!1}}(),re=!ne&&!Object.prototype.__defineGetter__,oe=Object.prototype.hasOwnProperty,ie=ne?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!oe.call(e,t)||"value"in n)&&(e[t]=n.value)},ae=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var n=arguments[1]||0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},se=Object.create||function(e,t){function n(){}var r=void 0;n.prototype=e,r=new n;for(var o in t)oe.call(t,o)&&ie(r,o,t[o]);return r},ue=Array.prototype.slice,ce=Array.prototype.concat,le=Array.prototype.push,fe=Array.prototype.join,pe=Array.prototype.shift,de=Function.prototype.bind||function(e){var t=this,n=ue.call(arguments,1);return 1===t.length?function(){return t.apply(e,ce.call(n,ue.call(arguments)))}:function(){return t.apply(e,ce.call(n,ue.call(arguments)))}},he=se(null),ge=Math.random();o.prototype=se(null),i.prototype=se(null);var ye="[a-z]{3}(?:-[a-z]{3}){0,2}",me="(?:[a-z]{2,3}(?:-"+ye+")?|[a-z]{4}|[a-z]{5,8})",ve="[a-z]{4}",_e="(?:[a-z]{2}|\\d{3})",be="(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3})",xe="[0-9a-wy-z]",Ee=xe+"(?:-[a-z0-9]{2,8})+",Ce="x(?:-[a-z0-9]{1,8})+",Se="(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))",we="(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))",Te="(?:"+Se+"|"+we+")",Oe=me+"(?:-"+ve+")?(?:-"+_e+")?(?:-"+be+")*(?:-"+Ee+")*(?:-"+Ce+")?",Pe=RegExp("^(?:"+Oe+"|"+Ce+"|"+Te+")$","i"),Re=RegExp("^(?!x).*?-("+be+")-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),Ae=RegExp("^(?!x).*?-("+xe+")-(?:\\w+-(?!x-))*\\1\\b","i"),Me=RegExp("-"+Ee,"ig"),Ne=void 0,Ie={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}},Le=/^[A-Z]{3}$/,ke=/-u(?:-[0-9a-z]{2,8})+/gi,De={};De.getCanonicalLocales=function(e){
7
- var t=g(e),n=[];for(var r in t)n.push(t[r]);return n};var je={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};ie(De,"NumberFormat",{configurable:!0,writable:!0,value:w}),ie(De.NumberFormat,"prototype",{writable:!1}),he.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},ie(De.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:de.call(function(e){if(!oe.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=a(),n=arguments[1],r=this["[[availableLocales]]"],o=g(e);return t.exp.test(t.input),E(r,o,n)},he.NumberFormat)}),ie(De.NumberFormat.prototype,"format",{configurable:!0,get:P}),De.NumberFormat.prototype.formatToParts=function(e){var t=null!==this&&"object"===te.typeof(this)&&u(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");var n=Number(e);return R(this,n)};var Fe={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["0","1","2","3","4","5","6","7","8","9"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};ie(De.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new o,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],r=null!==this&&"object"===te.typeof(this)&&u(this);if(!r||!r["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var i=0,a=n.length;i<a;i++)oe.call(r,e="[["+n[i]+"]]")&&(t[n[i]]={value:r[e],writable:!0,configurable:!0,enumerable:!0});return se({},t)}});var Ve=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,Ue=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ze=/[rqQASjJgwWIQq]/,Ge=["weekday","era","year","month","day","weekday","quarter"],He=["hour","minute","second","hour12","timeZoneName"],Be=se(null,{narrow:{},short:{},long:{}});ie(De,"DateTimeFormat",{configurable:!0,writable:!0,value:G}),ie(G,"prototype",{writable:!1});var Ze={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};he.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},ie(De.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:de.call(function(e){if(!oe.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=a(),n=arguments[1],r=this["[[availableLocales]]"],o=g(e);return t.exp.test(t.input),E(r,o,n)},he.NumberFormat)}),ie(De.DateTimeFormat.prototype,"format",{configurable:!0,get:X}),ie(De.DateTimeFormat.prototype,"formatToParts",{configurable:!0,get:Y}),ie(De.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new o,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],r=null!==this&&"object"===te.typeof(this)&&u(this);if(!r||!r["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var i=0,a=n.length;i<a;i++)oe.call(r,e="[["+n[i]+"]]")&&(t[n[i]]={value:r[e],writable:!0,configurable:!0,enumerable:!0});return se({},t)}});var qe=De.__localeSensitiveProtos={Number:{},Date:{}};qe.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return M(new w(arguments[0],arguments[1]),this)},qe.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=Z(n,"any","all");var r=new G(t,n);return Q(r,e)},qe.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=Z(n,"date","date");var r=new G(t,n);return Q(r,e)},qe.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];n=Z(n,"time","time");var r=new G(t,n);return Q(r,e)},ie(De,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){ie(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:qe.Number.toLocaleString}),ie(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:qe.Date.toLocaleString});for(var e in qe.Date)oe.call(qe.Date,e)&&ie(Date.prototype,e,{writable:!0,configurable:!0,value:qe.Date[e]})}}),ie(De,"__addLocaleData",{value:function(e){if(!f(e.locale))throw new Error("Object passed doesn't identify itself with a valid language tag");ee(e,e.locale)}}),t.exports=De},{}],191:[function(t,n,r){(function(t){(function(){function o(e,t){if(e!==t){var n=null===e,r=e===T,o=e===e,i=null===t,a=t===T,s=t===t;if(e>t&&!i||!o||n&&!a&&s||r&&s)return 1;if(e<t&&!n||!s||i&&!r&&o||a&&o)return-1}return 0}function i(e,t,n){for(var r=e.length,o=n?r:-1;n?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function a(e,t,n){if(t!==t)return m(e,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}function s(e){return"function"==typeof e||!1}function u(e){return null==e?"":e+""}function c(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function l(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function f(e,t){return o(e.criteria,t.criteria)||e.index-t.index}function p(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,s=i.length,u=n.length;++r<s;){var c=o(i[r],a[r]);if(c){if(r>=u)return c;var l=n[r];return c*("asc"===l||l===!0?1:-1)}}return e.index-t.index}function d(e){return Ze[e]}function h(e){return qe[e]}function g(e,t,n){return t?e=Ye[e]:n&&(e=Ke[e]),"\\"+e}function y(e){return"\\"+Ke[e]}function m(e,t,n){for(var r=e.length,o=t+(n?0:-1);n?o--:++o<r;){var i=e[o];if(i!==i)return o}return-1}function v(e){return!!e&&"object"==typeof e}function _(e){return e<=160&&e>=9&&e<=13||32==e||160==e||5760==e||6158==e||e>=8192&&(e<=8202||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function b(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;)e[n]===t&&(e[n]=Z,i[++o]=n);return i}function x(e,t){for(var n,r=-1,o=e.length,i=-1,a=[];++r<o;){var s=e[r],u=t?t(s,r,e):s;r&&n===u||(n=u,a[++i]=s)}return a}function E(e){for(var t=-1,n=e.length;++t<n&&_(e.charCodeAt(t)););return t}function C(e){for(var t=e.length;t--&&_(e.charCodeAt(t)););return t}function S(e){return We[e]}function w(e){function t(e){if(v(e)&&!Rs(e)&&!(e instanceof _)){if(e instanceof r)return e;if(ta.call(e,"__chain__")&&ta.call(e,"__wrapped__"))return dr(e)}return new r(e)}function n(){}function r(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function _(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Pa,this.__views__=[]}function $(){var e=new _(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function ne(){if(this.__filtered__){var e=new _(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function oe(){var e=this.__wrapped__.value(),t=this.__dir__,n=Rs(e),r=t<0,o=n?e.length:0,i=qn(0,o,this.__views__),a=i.start,s=i.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,p=0,d=Ca(u,this.__takeCount__);if(!n||o<z||o==u&&d==u)return nn(r&&n?e.reverse():e,this.__actions__);var h=[];e:for(;u--&&p<d;){c+=t;for(var g=-1,y=e[c];++g<f;){var m=l[g],v=m.iteratee,_=m.type,b=v(y);if(_==H)y=b;else if(!b){if(_==G)continue e;break e}}h[p++]=y}return h}function Ze(){this.__data__={}}function qe(e){return this.has(e)&&delete this.__data__[e]}function We(e){return"__proto__"==e?T:this.__data__[e]}function Xe(e){return"__proto__"!=e&&ta.call(this.__data__,e)}function Ye(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function Ke(e){var t=e?e.length:0;for(this.data={hash:ma(null),set:new fa};t--;)this.push(e[t])}function Qe(e,t){var n=e.data,r="string"==typeof t||ko(t)?n.set.has(t):n.hash[t];return r?0:-1}function $e(e){var t=this.data;"string"==typeof e||ko(e)?t.set.add(e):t.hash[e]=!0}function Je(e,t){for(var n=-1,r=e.length,o=-1,i=t.length,a=zi(r+i);++n<r;)a[n]=e[n];for(;++o<i;)a[n++]=t[o];return a}function et(e,t){var n=-1,r=e.length;for(t||(t=zi(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function it(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function at(e,t,n,r){for(var o=-1,i=e.length,a=r,s=a;++o<i;){var u=e[o],c=+t(u);n(c,a)&&(a=c,s=u)}return s}function st(e,t){for(var n=-1,r=e.length,o=-1,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[++o]=a)}return i}function ut(e,t){for(var n=-1,r=e.length,o=zi(r);++n<r;)o[n]=t(e[n],n,e);return o}function ct(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function lt(e,t,n,r){var o=-1,i=e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function ft(e,t,n,r){var o=e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function pt(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function dt(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function ht(e,t){return e===T?t:e}function gt(e,t,n,r){return e!==T&&ta.call(r,n)?e:t}function yt(e,t,n){for(var r=-1,o=Us(t),i=o.length;++r<i;){var a=o[r],s=e[a],u=n(s,t[a],a,e,t);(u===u?u===s:s!==s)&&(s!==T||a in e)||(e[a]=u)}return e}function mt(e,t){return null==t?e:_t(t,Us(t),e)}function vt(e,t){for(var n=-1,r=null==e,o=!r&&Qn(e),i=o?e.length:0,a=t.length,s=zi(a);++n<a;){var u=t[n];o?s[n]=$n(u,i)?e[u]:T:s[n]=r?T:e[u]}return s}function _t(e,t,n){n||(n={});for(var r=-1,o=t.length;++r<o;){var i=t[r];n[i]=e[i]}return n}function bt(e,t,n){var r=typeof e;return"function"==r?t===T?e:an(e,t,n):null==e?Pi:"object"==r?Vt(e):t===T?Li(e):Ut(e,t)}function xt(e,t,n,r,o,i,a){var s;if(n&&(s=o?n(e,r,o):n(e)),s!==T)return s;if(!ko(e))return e;var u=Rs(e);if(u){if(s=Wn(e),!t)return et(e,s)}else{var c=ra.call(e),l=c==Q;if(c!=ee&&c!=q&&(!l||o))return Be[c]?Yn(e,c,t):o?e:{};if(s=Xn(l?{}:e),!t)return mt(s,e)}i||(i=[]),a||(a=[]);for(var f=i.length;f--;)if(i[f]==e)return a[f];return i.push(e),a.push(s),(u?tt:Mt)(e,function(r,o){s[o]=xt(r,t,n,o,e,i,a)}),s}function Et(e,t,n){if("function"!=typeof e)throw new Ki(B);return pa(function(){e.apply(T,n)},t)}function Ct(e,t){var n=e?e.length:0,r=[];if(!n)return r;var o=-1,i=Hn(),s=i==a,u=s&&t.length>=z?gn(t):null,c=t.length;u&&(i=Qe,s=!1,t=u);e:for(;++o<n;){var l=e[o];if(s&&l===l){for(var f=c;f--;)if(t[f]===l)continue e;r.push(l)}else i(t,l,0)<0&&r.push(l)}return r}function St(e,t){var n=!0;return Da(e,function(e,r,o){return n=!!t(e,r,o)}),n}function wt(e,t,n,r){var o=r,i=o;return Da(e,function(e,a,s){var u=+t(e,a,s);(n(u,o)||u===r&&u===i)&&(o=u,i=e)}),i}function Tt(e,t,n,r){var o=e.length;for(n=null==n?0:+n||0,n<0&&(n=-n>o?0:o+n),r=r===T||r>o?o:+r||0,r<0&&(r+=o),o=n>r?0:r>>>0,n>>>=0;n<o;)e[n++]=t;return e}function Ot(e,t){var n=[];return Da(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function Pt(e,t,n,r){var o;return n(e,function(e,n,i){if(t(e,n,i))return o=r?n:e,!1}),o}function Rt(e,t,n,r){r||(r=[]);for(var o=-1,i=e.length;++o<i;){var a=e[o];v(a)&&Qn(a)&&(n||Rs(a)||To(a))?t?Rt(a,t,n,r):ct(r,a):n||(r[r.length]=a)}return r}function At(e,t){return Fa(e,t,ti)}function Mt(e,t){return Fa(e,t,Us)}function Nt(e,t){return Va(e,t,Us)}function It(e,t){for(var n=-1,r=t.length,o=-1,i=[];++n<r;){var a=t[n];Lo(e[a])&&(i[++o]=a)}return i}function Lt(e,t,n){if(null!=e){n!==T&&n in fr(e)&&(t=[n]);for(var r=0,o=t.length;null!=e&&r<o;)e=e[t[r++]];return r&&r==o?e:T}}function kt(e,t,n,r,o,i){return e===t||(null==e||null==t||!ko(e)&&!v(t)?e!==e&&t!==t:Dt(e,t,kt,n,r,o,i))}function Dt(e,t,n,r,o,i,a){var s=Rs(e),u=Rs(t),c=W,l=W;s||(c=ra.call(e),c==q?c=ee:c!=ee&&(s=Bo(e))),u||(l=ra.call(t),l==q?l=ee:l!=ee&&(u=Bo(t)));var f=c==ee,p=l==ee,d=c==l;if(d&&!s&&!f)return Vn(e,t,c);if(!o){var h=f&&ta.call(e,"__wrapped__"),g=p&&ta.call(t,"__wrapped__");if(h||g)return n(h?e.value():e,g?t.value():t,r,o,i,a)}if(!d)return!1;i||(i=[]),a||(a=[]);for(var y=i.length;y--;)if(i[y]==e)return a[y]==t;i.push(e),a.push(t);var m=(s?Fn:Un)(e,t,n,r,o,i,a);return i.pop(),a.pop(),m}function jt(e,t,n){var r=t.length,o=r,i=!n;if(null==e)return!o;for(e=fr(e);r--;){var a=t[r];if(i&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<o;){a=t[r];var s=a[0],u=e[s],c=a[1];if(i&&a[2]){if(u===T&&!(s in e))return!1}else{var l=n?n(u,c,s):T;if(!(l===T?kt(c,u,n,!0):l))return!1}}return!0}function Ft(e,t){var n=-1,r=Qn(e)?zi(e.length):[];return Da(e,function(e,o,i){r[++n]=t(e,o,i)}),r}function Vt(e){var t=Bn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null!=e&&(e[n]===r&&(r!==T||n in fr(e)))}}return function(e){return jt(e,t)}}function Ut(e,t){var n=Rs(e),r=er(e)&&rr(t),o=e+"";return e=pr(e),function(i){if(null==i)return!1;var a=o;if(i=fr(i),(n||!r)&&!(a in i)){if(i=1==e.length?i:Lt(i,Xt(e,0,-1)),null==i)return!1;a=Tr(e),i=fr(i)}return i[a]===t?t!==T||a in i:kt(t,i[a],T,!0)}}function zt(e,t,n,r,o){if(!ko(e))return e;var i=Qn(t)&&(Rs(t)||Bo(t)),a=i?T:Us(t);return tt(a||t,function(s,u){if(a&&(u=s,s=t[u]),v(s))r||(r=[]),o||(o=[]),Gt(e,t,u,zt,n,r,o);else{var c=e[u],l=n?n(c,s,u,e,t):T,f=l===T;f&&(l=s),l===T&&(!i||u in e)||!f&&(l===l?l===c:c!==c)||(e[u]=l)}}),e}function Gt(e,t,n,r,o,i,a){for(var s=i.length,u=t[n];s--;)if(i[s]==u)return void(e[n]=a[s]);var c=e[n],l=o?o(c,u,n,e,t):T,f=l===T;f&&(l=u,Qn(u)&&(Rs(u)||Bo(u))?l=Rs(c)?c:Qn(c)?et(c):[]:zo(u)||To(u)?l=To(c)?Yo(c):zo(c)?c:{}:f=!1),i.push(u),a.push(l),f?e[n]=r(l,u,o,i,a):(l===l?l!==c:c===c)&&(e[n]=l)}function Ht(e){return function(t){return null==t?T:t[e]}}function Bt(e){var t=e+"";return e=pr(e),function(n){return Lt(n,e,t)}}function Zt(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=o&&$n(r)){var o=r;da.call(e,r,1)}}return e}function qt(e,t){return e+va(Ta()*(t-e+1))}function Wt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Xt(e,t,n){var r=-1,o=e.length;t=null==t?0:+t||0,t<0&&(t=-t>o?0:o+t),n=n===T||n>o?o:+n||0,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=zi(o);++r<o;)i[r]=e[r+t];return i}function Yt(e,t){var n;return Da(e,function(e,r,o){return n=t(e,r,o),!n}),!!n}function Kt(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Qt(e,t,n){var r=zn(),o=-1;t=ut(t,function(e){return r(e)});var i=Ft(e,function(e){var n=ut(t,function(t){return t(e)});return{criteria:n,index:++o,value:e}});return Kt(i,function(e,t){return p(e,t,n)})}function $t(e,t){var n=0;return Da(e,function(e,r,o){n+=+t(e,r,o)||0}),n}function Jt(e,t){var n=-1,r=Hn(),o=e.length,i=r==a,s=i&&o>=z,u=s?gn():null,c=[];u?(r=Qe,i=!1):(s=!1,u=t?[]:c);e:for(;++n<o;){var l=e[n],f=t?t(l,n,e):l;if(i&&l===l){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),c.push(l)}else r(u,f,0)<0&&((t||s)&&u.push(f),c.push(l))}return c}function en(e,t){for(var n=-1,r=t.length,o=zi(r);++n<r;)o[n]=e[t[n]];return o}function tn(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?Xt(e,r?0:i,r?i+1:o):Xt(e,r?i+1:0,r?o:i)}function nn(e,t){var n=e;n instanceof _&&(n=n.value());for(var r=-1,o=t.length;++r<o;){var i=t[r];n=i.func.apply(i.thisArg,ct([n],i.args))}return n}function rn(e,t,n){var r=0,o=e?e.length:r;if("number"==typeof t&&t===t&&o<=Ma){for(;r<o;){var i=r+o>>>1,a=e[i];(n?a<=t:a<t)&&null!==a?r=i+1:o=i}return o}return on(e,t,Pi,n)}function on(e,t,n,r){t=n(t);for(var o=0,i=e?e.length:0,a=t!==t,s=null===t,u=t===T;o<i;){var c=va((o+i)/2),l=n(e[c]),f=l!==T,p=l===l;if(a)var d=p||r;else d=s?p&&f&&(r||null!=l):u?p&&(r||f):null!=l&&(r?l<=t:l<t);d?o=c+1:i=c}return Ca(i,Aa)}function an(e,t,n){if("function"!=typeof e)return Pi;if(t===T)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)};case 5:return function(n,r,o,i,a){return e.call(t,n,r,o,i,a)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new aa(e.byteLength),n=new ha(t);return n.set(new ha(e)),t}function un(e,t,n){for(var r=n.length,o=-1,i=Ea(e.length-r,0),a=-1,s=t.length,u=zi(s+i);++a<s;)u[a]=t[a];for(;++o<r;)u[n[o]]=e[o];for(;i--;)u[a++]=e[o++];return u}function cn(e,t,n){for(var r=-1,o=n.length,i=-1,a=Ea(e.length-o,0),s=-1,u=t.length,c=zi(a+u);++i<a;)c[i]=e[i];for(var l=i;++s<u;)c[l+s]=t[s];for(;++r<o;)c[l+n[r]]=e[i++];return c}function ln(e,t){return function(n,r,o){var i=t?t():{};if(r=zn(r,o,3),Rs(n))for(var a=-1,s=n.length;++a<s;){var u=n[a];e(i,u,r(u,a,n),n)}else Da(n,function(t,n,o){e(i,t,r(t,n,o),o)});return i}}function fn(e){return vo(function(t,n){var r=-1,o=null==t?0:n.length,i=o>2?n[o-2]:T,a=o>2?n[2]:T,s=o>1?n[o-1]:T;for("function"==typeof i?(i=an(i,s,5),o-=2):(i="function"==typeof s?s:T,o-=i?1:0),a&&Jn(n[0],n[1],a)&&(i=o<3?T:i,o=1);++r<o;){var u=n[r];u&&e(t,u,i)}return t})}function pn(e,t){return function(n,r){var o=n?Ga(n):0;if(!nr(o))return e(n,r);for(var i=t?o:-1,a=fr(n);(t?i--:++i<o)&&r(a[i],i,a)!==!1;);return n}}function dn(e){return function(t,n,r){for(var o=fr(t),i=r(t),a=i.length,s=e?a:-1;e?s--:++s<a;){var u=i[s];if(n(o[u],u,o)===!1)break}return t}}function hn(e,t){function n(){var o=this&&this!==rt&&this instanceof n?r:e;return o.apply(t,arguments)}var r=mn(e);return n}function gn(e){return ma&&fa?new Ke(e):null}function yn(e){return function(t){for(var n=-1,r=wi(fi(t)),o=r.length,i="";++n<o;)i=e(i,r[n],n);return i}}function mn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=ka(e.prototype),r=e.apply(n,t);return ko(r)?r:n}}function vn(e){function t(n,r,o){o&&Jn(n,r,o)&&(r=T);var i=jn(n,e,T,T,T,T,T,r);return i.placeholder=t.placeholder,i}return t}function _n(e,t){return vo(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(T,n))})}function bn(e,t){return function(n,r,o){if(o&&Jn(n,r,o)&&(r=T),r=zn(r,o,3),1==r.length){n=Rs(n)?n:lr(n);var i=at(n,r,e,t);if(!n.length||i!==t)return i}return wt(n,r,e,t)}}function xn(e,t){return function(n,r,o){if(r=zn(r,o,3),Rs(n)){var a=i(n,r,t);return a>-1?n[a]:T}return Pt(n,r,e)}}function En(e){return function(t,n,r){return t&&t.length?(n=zn(n,r,3),i(t,n,e)):-1}}function Cn(e){return function(t,n,r){return n=zn(n,r,3),Pt(t,n,e,!0)}}function Sn(e){return function(){for(var t,n=arguments.length,o=e?n:-1,i=0,a=zi(n);e?o--:++o<n;){var s=a[i++]=arguments[o];if("function"!=typeof s)throw new Ki(B);!t&&r.prototype.thru&&"wrapper"==Gn(s)&&(t=new r([],(!0)))}for(o=t?-1:n;++o<n;){s=a[o];var u=Gn(s),c="wrapper"==u?za(s):T;t=c&&tr(c[0])&&c[1]==(k|M|I|D)&&!c[4].length&&1==c[9]?t[Gn(c[0])].apply(t,c[3]):1==s.length&&tr(s)?t[u]():t.thru(s)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Rs(r)&&r.length>=z)return t.plant(r).value();for(var o=0,i=n?a[o].apply(this,e):r;++o<n;)i=a[o].call(this,i);return i}}}function wn(e,t){return function(n,r,o){return"function"==typeof r&&o===T&&Rs(n)?e(n,r):t(n,an(r,o,3))}}function Tn(e){return function(t,n,r){return"function"==typeof n&&r===T||(n=an(n,r,3)),e(t,n,ti)}}function On(e){return function(t,n,r){return"function"==typeof n&&r===T||(n=an(n,r,3)),e(t,n)}}function Pn(e){return function(t,n,r){var o={};return n=zn(n,r,3),Mt(t,function(t,r,i){var a=n(t,r,i);r=e?a:r,t=e?t:a,o[r]=t}),o}}function Rn(e){return function(t,n,r){return t=u(t),(e?t:"")+In(t,n,r)+(e?"":t)}}function An(e){var t=vo(function(n,r){var o=b(r,t.placeholder);return jn(n,e,T,r,o)});return t}function Mn(e,t){return function(n,r,o,i){var a=arguments.length<3;return"function"==typeof r&&i===T&&Rs(n)?e(n,r,o,a):Wt(n,zn(r,i,4),o,a,t)}}function Nn(e,t,n,r,o,i,a,s,u,c){function l(){for(var v=arguments.length,_=v,x=zi(v);_--;)x[_]=arguments[_];if(r&&(x=un(x,r,o)),i&&(x=cn(x,i,a)),h||y){var E=l.placeholder,C=b(x,E);if(v-=C.length,v<c){var S=s?et(s):T,w=Ea(c-v,0),O=h?C:T,A=h?T:C,M=h?x:T,N=h?T:x;t|=h?I:L,t&=~(h?L:I),g||(t&=~(P|R));var k=[e,t,n,M,O,N,A,S,u,w],D=Nn.apply(T,k);return tr(e)&&Ha(D,k),D.placeholder=E,D}}var j=p?n:this,F=d?j[e]:e;return s&&(x=ur(x,s)),f&&u<x.length&&(x.length=u),this&&this!==rt&&this instanceof l&&(F=m||mn(e)),F.apply(j,x)}var f=t&k,p=t&P,d=t&R,h=t&M,g=t&A,y=t&N,m=d?T:mn(e);return l}function In(e,t,n){var r=e.length;if(t=+t,r>=t||!ba(t))return"";var o=t-r;return n=null==n?" ":n+"",mi(n,ya(o/n.length)).slice(0,o)}function Ln(e,t,n,r){function o(){for(var t=-1,s=arguments.length,u=-1,c=r.length,l=zi(c+s);++u<c;)l[u]=r[u];for(;s--;)l[u++]=arguments[++t];var f=this&&this!==rt&&this instanceof o?a:e;return f.apply(i?n:this,l)}var i=t&P,a=mn(e);return o}function kn(e){var t=Zi[e];return function(e,n){return n=n===T?0:+n||0,n?(n=ca(10,n),t(e*n)/n):t(e)}}function Dn(e){return function(t,n,r,o){var i=zn(r);return null==r&&i===bt?rn(t,n,e):on(t,n,i(r,o,1),e)}}function jn(e,t,n,r,o,i,a,s){var u=t&R;if(!u&&"function"!=typeof e)throw new Ki(B);var c=r?r.length:0;if(c||(t&=~(I|L),r=o=T),c-=o?o.length:0,t&L){var l=r,f=o;r=o=T}var p=u?T:za(e),d=[e,t,n,r,o,l,f,i,a,s];if(p&&(or(d,p),t=d[1],s=d[9]),d[9]=null==s?u?0:e.length:Ea(s-c,0)||0,t==P)var h=hn(d[0],d[2]);else h=t!=I&&t!=(P|I)||d[4].length?Nn.apply(T,d):Ln.apply(T,d);var g=p?Ua:Ha;return g(h,d)}function Fn(e,t,n,r,o,i,a){var s=-1,u=e.length,c=t.length;if(u!=c&&!(o&&c>u))return!1;for(;++s<u;){var l=e[s],f=t[s],p=r?r(o?f:l,o?l:f,s):T;if(p!==T){if(p)continue;return!1}if(o){if(!pt(t,function(e){return l===e||n(l,e,r,o,i,a)}))return!1}else if(l!==f&&!n(l,f,r,o,i,a))return!1}return!0}function Vn(e,t,n){switch(n){case X:case Y:return+e==+t;case K:return e.name==t.name&&e.message==t.message;case J:return e!=+e?t!=+t:e==+t;case te:case re:return e==t+""}return!1}function Un(e,t,n,r,o,i,a){var s=Us(e),u=s.length,c=Us(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var p=s[f];if(!(o?p in t:ta.call(t,p)))return!1}for(var d=o;++f<u;){p=s[f];var h=e[p],g=t[p],y=r?r(o?g:h,o?h:g,p):T;if(!(y===T?n(h,g,r,o,i,a):y))return!1;d||(d="constructor"==p)}if(!d){var m=e.constructor,v=t.constructor;if(m!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof v&&v instanceof v))return!1}return!0}function zn(e,n,r){var o=t.callback||Ti;return o=o===Ti?bt:o,r?o(e,n,r):o}function Gn(e){for(var t=e.name,n=La[t],r=n?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function Hn(e,n,r){var o=t.indexOf||Sr;return o=o===Sr?a:o,e?o(e,n,r):o}function Bn(e){for(var t=ni(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function Zn(e,t){var n=null==e?T:e[t];return Fo(n)?n:T}function qn(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=Ca(t,e+a);break;case"takeRight":e=Ea(e,t-a)}}return{start:e,end:t}}function Wn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ta.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Xn(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Wi),new t}function Yn(e,t,n){var r=e.constructor;switch(t){case ie:return sn(e);case X:case Y:return new r((+e));case ae:case se:case ue:case ce:case le:case fe:case pe:case de:case he:var o=e.buffer;return new r(n?sn(o):o,e.byteOffset,e.length);case J:case re:return new r(e);case te:var i=new r(e.source,Ie.exec(e));i.lastIndex=e.lastIndex}return i}function Kn(e,t,n){null==e||er(t,e)||(t=pr(t),e=1==t.length?e:Lt(e,Xt(t,0,-1)),t=Tr(t));var r=null==e?e:e[t];return null==r?T:r.apply(e,n)}function Qn(e){return null!=e&&nr(Ga(e))}function $n(e,t){return e="number"==typeof e||De.test(e)?+e:-1,t=null==t?Na:t,e>-1&&e%1==0&&e<t}function Jn(e,t,n){if(!ko(n))return!1;var r=typeof t;if("number"==r?Qn(n)&&$n(t,n.length):"string"==r&&t in n){var o=n[t];return e===e?e===o:o!==o}return!1}function er(e,t){var n=typeof e;if("string"==n&&Te.test(e)||"number"==n)return!0;if(Rs(e))return!1;var r=!we.test(e);return r||null!=t&&e in fr(t)}function tr(e){var n=Gn(e);if(!(n in _.prototype))return!1;var r=t[n];if(e===r)return!0;var o=za(r);return!!o&&e===o[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Na}function rr(e){return e===e&&!ko(e)}function or(e,t){var n=e[1],r=t[1],o=n|r,i=o<k,a=r==k&&n==M||r==k&&n==D&&e[7].length<=t[8]||r==(k|D)&&n==M;if(!i&&!a)return e;r&P&&(e[2]=t[2],o|=n&P?0:A);var s=t[3];if(s){var u=e[3];e[3]=u?un(u,s,t[4]):et(s),e[4]=u?b(e[3],Z):et(t[4])}return s=t[5],s&&(u=e[5],e[5]=u?cn(u,s,t[6]):et(s),e[6]=u?b(e[5],Z):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&k&&(e[8]=null==e[8]?t[8]:Ca(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e}function ir(e,t){return e===T?t:As(e,t,ir)}function ar(e,t){e=fr(e);for(var n=-1,r=t.length,o={};++n<r;){var i=t[n];i in e&&(o[i]=e[i])}return o}function sr(e,t){var n={};return At(e,function(e,r,o){t(e,r,o)&&(n[r]=e)}),n}function ur(e,t){for(var n=e.length,r=Ca(t.length,n),o=et(e);r--;){var i=t[r];e[r]=$n(i,n)?o[i]:T}return e}function cr(e){for(var t=ti(e),n=t.length,r=n&&e.length,o=!!r&&nr(r)&&(Rs(e)||To(e)),i=-1,a=[];++i<n;){var s=t[i];(o&&$n(s,r)||ta.call(e,s))&&a.push(s)}return a}function lr(e){return null==e?[]:Qn(e)?ko(e)?e:Wi(e):ai(e)}function fr(e){return ko(e)?e:Wi(e)}function pr(e){if(Rs(e))return e;var t=[];return u(e).replace(Oe,function(e,n,r,o){t.push(r?o.replace(Me,"$1"):n||e)}),t}function dr(e){return e instanceof _?e.clone():new r(e.__wrapped__,e.__chain__,et(e.__actions__))}function hr(e,t,n){t=(n?Jn(e,t,n):null==t)?1:Ea(va(t)||1,1);for(var r=0,o=e?e.length:0,i=-1,a=zi(ya(o/t));r<o;)a[++i]=Xt(e,r,r+=t);return a}function gr(e){for(var t=-1,n=e?e.length:0,r=-1,o=[];++t<n;){var i=e[t];i&&(o[++r]=i)}return o}function yr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),Xt(e,t<0?0:t)):[]}function mr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Xt(e,0,t<0?0:t)):[]}function vr(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!0,!0):[]}function _r(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!0):[]}function br(e,t,n,r){var o=e?e.length:0;return o?(n&&"number"!=typeof n&&Jn(e,t,n)&&(n=0,r=o),Tt(e,t,n,r)):[]}function xr(e){return e?e[0]:T}function Er(e,t,n){var r=e?e.length:0;return n&&Jn(e,t,n)&&(t=!1),r?Rt(e,t):[]}function Cr(e){var t=e?e.length:0;return t?Rt(e,!0):[]}function Sr(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=n<0?Ea(r+n,0):n;else if(n){var o=rn(e,t);return o<r&&(t===t?t===e[o]:e[o]!==e[o])?o:-1}return a(e,t,n||0)}function wr(e){return mr(e,1)}function Tr(e){var t=e?e.length:0;return t?e[t-1]:T}function Or(e,t,n){var r=e?e.length:0;if(!r)return-1;var o=r;if("number"==typeof n)o=(n<0?Ea(r+n,0):Ca(n||0,r-1))+1;else if(n){o=rn(e,t,!0)-1;var i=e[o];return(t===t?t===i:i!==i)?o:-1}if(t!==t)return m(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1}function Pr(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=Hn(),o=e.length;++n<o;)for(var i=0,a=e[n];(i=r(t,a,i))>-1;)da.call(t,i,1);return t}function Rr(e,t,n){var r=[];if(!e||!e.length)return r;var o=-1,i=[],a=e.length;for(t=zn(t,n,3);++o<a;){var s=e[o];t(s,o,e)&&(r.push(s),i.push(o))}return Zt(e,i),r}function Ar(e){return yr(e,1)}function Mr(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Jn(e,t,n)&&(t=0,n=r),Xt(e,t,n)):[]}function Nr(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),Xt(e,0,t<0?0:t)):[]}function Ir(e,t,n){var r=e?e.length:0;return r?((n?Jn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Xt(e,t<0?0:t)):[]}function Lr(e,t,n){return e&&e.length?tn(e,zn(t,n,3),!1,!0):[]}function kr(e,t,n){return e&&e.length?tn(e,zn(t,n,3)):[]}function Dr(e,t,n,r){var o=e?e.length:0;if(!o)return[];null!=t&&"boolean"!=typeof t&&(r=n,n=Jn(e,t,r)?T:t,t=!1);var i=zn();return null==n&&i===bt||(n=i(n,r,3)),t&&Hn()==a?x(e,n):Jt(e,n)}function jr(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){if(Qn(e))return n=Ea(e.length,n),!0});for(var r=zi(n);++t<n;)r[t]=ut(e,Ht(t));return r}function Fr(e,t,n){var r=e?e.length:0;if(!r)return[];var o=jr(e);return null==t?o:(t=an(t,n,4),ut(o,function(e){return lt(e,t,T,!0)}))}function Vr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Qn(n))var r=r?ct(Ct(r,n),Ct(n,r)):n}return r?Jt(r):[]}function Ur(e,t){var n=-1,r=e?e.length:0,o={};for(!r||t||Rs(e[0])||(t=[]);++n<r;){var i=e[n];t?o[i]=t[n]:i&&(o[i[0]]=i[1])}return o}function zr(e){var n=t(e);return n.__chain__=!0,n}function Gr(e,t,n){return t.call(n,e),e}function Hr(e,t,n){return t.call(n,e)}function Br(){return zr(this)}function Zr(){return new r(this.value(),this.__chain__)}function qr(e){for(var t,r=this;r instanceof n;){var o=dr(r);t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t}function Wr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof _){var n=e;return this.__actions__.length&&(n=new _(this)),n=n.reverse(),n.__actions__.push({func:Hr,args:[t],thisArg:T}),new r(n,this.__chain__)}return this.thru(t)}function Xr(){return this.value()+""}function Yr(){return nn(this.__wrapped__,this.__actions__)}function Kr(e,t,n){var r=Rs(e)?it:St;return n&&Jn(e,t,n)&&(t=T),"function"==typeof t&&n===T||(t=zn(t,n,3)),r(e,t)}function Qr(e,t,n){var r=Rs(e)?st:Ot;return t=zn(t,n,3),r(e,t)}function $r(e,t){return os(e,Vt(t))}function Jr(e,t,n,r){var o=e?Ga(e):0;return nr(o)||(e=ai(e),o=e.length),n="number"!=typeof n||r&&Jn(t,n,r)?0:n<0?Ea(o+n,0):n||0,"string"==typeof e||!Rs(e)&&Ho(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Hn(e,t,n)>-1}function eo(e,t,n){var r=Rs(e)?ut:Ft;return t=zn(t,n,3),r(e,t)}function to(e,t){return eo(e,Li(t))}function no(e,t,n){var r=Rs(e)?st:Ot;return t=zn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ro(e,t,n){if(n?Jn(e,t,n):null==t){e=lr(e);var r=e.length;return r>0?e[qt(0,r-1)]:T}var o=-1,i=Xo(e),r=i.length,a=r-1;for(t=Ca(t<0?0:+t||0,r);++o<t;){var s=qt(o,a),u=i[s];i[s]=i[o],i[o]=u}return i.length=t,
8
- i}function oo(e){return ro(e,Pa)}function io(e){var t=e?Ga(e):0;return nr(t)?t:Us(e).length}function ao(e,t,n){var r=Rs(e)?pt:Yt;return n&&Jn(e,t,n)&&(t=T),"function"==typeof t&&n===T||(t=zn(t,n,3)),r(e,t)}function so(e,t,n){if(null==e)return[];n&&Jn(e,t,n)&&(t=T);var r=-1;t=zn(t,n,3);var o=Ft(e,function(e,n,o){return{criteria:t(e,n,o),index:++r,value:e}});return Kt(o,f)}function uo(e,t,n,r){return null==e?[]:(r&&Jn(t,n,r)&&(n=T),Rs(t)||(t=null==t?[]:[t]),Rs(n)||(n=null==n?[]:[n]),Qt(e,t,n))}function co(e,t){return Qr(e,Vt(t))}function lo(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new Ki(B);var n=e;e=t,t=n}return e=ba(e=+e)?e:0,function(){if(--e<1)return t.apply(this,arguments)}}function fo(e,t,n){return n&&Jn(e,t,n)&&(t=T),t=e&&null==t?e.length:Ea(+t||0,0),jn(e,k,T,T,T,T,t)}function po(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new Ki(B);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=T),n}}function ho(e,t,n){function r(){d&&sa(d),c&&sa(c),g=0,c=d=h=T}function o(t,n){n&&sa(n),c=d=h=T,t&&(g=gs(),l=e.apply(p,u),d||c||(u=p=T))}function i(){var e=t-(gs()-f);e<=0||e>t?o(h,c):d=pa(i,e)}function a(){o(m,d)}function s(){if(u=arguments,f=gs(),p=this,h=m&&(d||!v),y===!1)var n=v&&!d;else{c||v||(g=f);var r=y-(f-g),o=r<=0||r>y;o?(c&&(c=sa(c)),g=f,l=e.apply(p,u)):c||(c=pa(a,r))}return o&&d?d=sa(d):d||t===y||(d=pa(i,t)),n&&(o=!0,l=e.apply(p,u)),!o||d||c||(u=p=T),l}var u,c,l,f,p,d,h,g=0,y=!1,m=!0;if("function"!=typeof e)throw new Ki(B);if(t=t<0?0:+t||0,n===!0){var v=!0;m=!1}else ko(n)&&(v=!!n.leading,y="maxWait"in n&&Ea(+n.maxWait||0,t),m="trailing"in n?!!n.trailing:m);return s.cancel=r,s}function go(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new Ki(B);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a),a};return n.cache=new go.Cache,n}function yo(e){if("function"!=typeof e)throw new Ki(B);return function(){return!e.apply(this,arguments)}}function mo(e){return po(2,e)}function vo(e,t){if("function"!=typeof e)throw new Ki(B);return t=Ea(t===T?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,o=Ea(n.length-t,0),i=zi(o);++r<o;)i[r]=n[t+r];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,n[0],i);case 2:return e.call(this,n[0],n[1],i)}var a=zi(t+1);for(r=-1;++r<t;)a[r]=n[r];return a[t]=i,e.apply(this,a)}}function _o(e){if("function"!=typeof e)throw new Ki(B);return function(t){return e.apply(this,t)}}function bo(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ki(B);return n===!1?r=!1:ko(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),ho(e,t,{leading:r,maxWait:+t,trailing:o})}function xo(e,t){return t=null==t?Pi:t,jn(t,I,T,[e],[])}function Eo(e,t,n,r){return t&&"boolean"!=typeof t&&Jn(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?xt(e,t,an(n,r,1)):xt(e,t)}function Co(e,t,n){return"function"==typeof t?xt(e,!0,an(t,n,1)):xt(e,!0)}function So(e,t){return e>t}function wo(e,t){return e>=t}function To(e){return v(e)&&Qn(e)&&ta.call(e,"callee")&&!la.call(e,"callee")}function Oo(e){return e===!0||e===!1||v(e)&&ra.call(e)==X}function Po(e){return v(e)&&ra.call(e)==Y}function Ro(e){return!!e&&1===e.nodeType&&v(e)&&!zo(e)}function Ao(e){return null==e||(Qn(e)&&(Rs(e)||Ho(e)||To(e)||v(e)&&Lo(e.splice))?!e.length:!Us(e).length)}function Mo(e,t,n,r){n="function"==typeof n?an(n,r,3):T;var o=n?n(e,t):T;return o===T?kt(e,t,n):!!o}function No(e){return v(e)&&"string"==typeof e.message&&ra.call(e)==K}function Io(e){return"number"==typeof e&&ba(e)}function Lo(e){return ko(e)&&ra.call(e)==Q}function ko(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Do(e,t,n,r){return n="function"==typeof n?an(n,r,3):T,jt(e,Bn(t),n)}function jo(e){return Uo(e)&&e!=+e}function Fo(e){return null!=e&&(Lo(e)?ia.test(ea.call(e)):v(e)&&ke.test(e))}function Vo(e){return null===e}function Uo(e){return"number"==typeof e||v(e)&&ra.call(e)==J}function zo(e){var t;if(!v(e)||ra.call(e)!=ee||To(e)||!ta.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return At(e,function(e,t){n=t}),n===T||ta.call(e,n)}function Go(e){return ko(e)&&ra.call(e)==te}function Ho(e){return"string"==typeof e||v(e)&&ra.call(e)==re}function Bo(e){return v(e)&&nr(e.length)&&!!He[ra.call(e)]}function Zo(e){return e===T}function qo(e,t){return e<t}function Wo(e,t){return e<=t}function Xo(e){var t=e?Ga(e):0;return nr(t)?t?et(e):[]:ai(e)}function Yo(e){return _t(e,ti(e))}function Ko(e,t,n){var r=ka(e);return n&&Jn(e,t,n)&&(t=T),t?mt(r,t):r}function Qo(e){return It(e,ti(e))}function $o(e,t,n){var r=null==e?T:Lt(e,pr(t),t+"");return r===T?n:r}function Jo(e,t){if(null==e)return!1;var n=ta.call(e,t);if(!n&&!er(t)){if(t=pr(t),e=1==t.length?e:Lt(e,Xt(t,0,-1)),null==e)return!1;t=Tr(t),n=ta.call(e,t)}return n||nr(e.length)&&$n(t,e.length)&&(Rs(e)||To(e))}function ei(e,t,n){n&&Jn(e,t,n)&&(t=T);for(var r=-1,o=Us(e),i=o.length,a={};++r<i;){var s=o[r],u=e[s];t?ta.call(a,u)?a[u].push(s):a[u]=[s]:a[u]=s}return a}function ti(e){if(null==e)return[];ko(e)||(e=Wi(e));var t=e.length;t=t&&nr(t)&&(Rs(e)||To(e))&&t||0;for(var n=e.constructor,r=-1,o="function"==typeof n&&n.prototype===e,i=zi(t),a=t>0;++r<t;)i[r]=r+"";for(var s in e)a&&$n(s,t)||"constructor"==s&&(o||!ta.call(e,s))||i.push(s);return i}function ni(e){e=fr(e);for(var t=-1,n=Us(e),r=n.length,o=zi(r);++t<r;){var i=n[t];o[t]=[i,e[i]]}return o}function ri(e,t,n){var r=null==e?T:e[t];return r===T&&(null==e||er(t,e)||(t=pr(t),e=1==t.length?e:Lt(e,Xt(t,0,-1)),r=null==e?T:e[Tr(t)]),r=r===T?n:r),Lo(r)?r.call(e):r}function oi(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:pr(t);for(var o=-1,i=t.length,a=i-1,s=e;null!=s&&++o<i;){var u=t[o];ko(s)&&(o==a?s[u]=n:null==s[u]&&(s[u]=$n(t[o+1])?[]:{})),s=s[u]}return e}function ii(e,t,n,r){var o=Rs(e)||Bo(e);if(t=zn(t,r,4),null==n)if(o||ko(e)){var i=e.constructor;n=o?Rs(e)?new i:[]:ka(Lo(i)?i.prototype:T)}else n={};return(o?tt:Mt)(e,function(e,r,o){return t(n,e,r,o)}),n}function ai(e){return en(e,Us(e))}function si(e){return en(e,ti(e))}function ui(e,t,n){return t=+t||0,n===T?(n=t,t=0):n=+n||0,e>=Ca(t,n)&&e<Ea(t,n)}function ci(e,t,n){n&&Jn(e,t,n)&&(t=n=T);var r=null==e,o=null==t;if(null==n&&(o&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,o=!0)),r&&o&&(t=1,o=!1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var i=Ta();return Ca(e+i*(t-e+ua("1e-"+((i+"").length-1))),t)}return qt(e,t)}function li(e){return e=u(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function fi(e){return e=u(e),e&&e.replace(je,d).replace(Ae,"")}function pi(e,t,n){e=u(e),t+="";var r=e.length;return n=n===T?r:Ca(n<0?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function di(e){return e=u(e),e&&xe.test(e)?e.replace(_e,h):e}function hi(e){return e=u(e),e&&Re.test(e)?e.replace(Pe,g):e||"(?:)"}function gi(e,t,n){e=u(e),t=+t;var r=e.length;if(r>=t||!ba(t))return e;var o=(t-r)/2,i=va(o),a=ya(o);return n=In("",a,n),n.slice(0,i)+e+n}function yi(e,t,n){return(n?Jn(e,t,n):null==t)?t=0:t&&(t=+t),e=bi(e),wa(e,t||(Le.test(e)?16:10))}function mi(e,t){var n="";if(e=u(e),t=+t,t<1||!e||!ba(t))return n;do t%2&&(n+=e),t=va(t/2),e+=e;while(t);return n}function vi(e,t,n){return e=u(e),n=null==n?0:Ca(n<0?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function _i(e,n,r){var o=t.templateSettings;r&&Jn(e,n,r)&&(n=r=T),e=u(e),n=yt(mt({},r||n),o,gt);var i,a,s=yt(mt({},n.imports),o.imports,gt),c=Us(s),l=en(s,c),f=0,p=n.interpolate||Fe,d="__p += '",h=Xi((n.escape||Fe).source+"|"+p.source+"|"+(p===Se?Ne:Fe).source+"|"+(n.evaluate||Fe).source+"|$","g"),g="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Ge+"]")+"\n";e.replace(h,function(t,n,r,o,s,u){return r||(r=o),d+=e.slice(f,u).replace(Ve,y),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(a=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=u+t.length,t}),d+="';\n";var m=n.variable;m||(d="with (obj) {\n"+d+"\n}\n"),d=(a?d.replace(ge,""):d).replace(ye,"$1").replace(me,"$1;"),d="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Qs(function(){return Bi(c,g+"return "+d).apply(T,l)});if(v.source=d,No(v))throw v;return v}function bi(e,t,n){var r=e;return(e=u(e))?(n?Jn(r,t,n):null==t)?e.slice(E(e),C(e)+1):(t+="",e.slice(c(e,t),l(e,t)+1)):e}function xi(e,t,n){var r=e;return e=u(e),e?(n?Jn(r,t,n):null==t)?e.slice(E(e)):e.slice(c(e,t+"")):e}function Ei(e,t,n){var r=e;return e=u(e),e?(n?Jn(r,t,n):null==t)?e.slice(0,C(e)+1):e.slice(0,l(e,t+"")+1):e}function Ci(e,t,n){n&&Jn(e,t,n)&&(t=T);var r=j,o=F;if(null!=t)if(ko(t)){var i="separator"in t?t.separator:i;r="length"in t?+t.length||0:r,o="omission"in t?u(t.omission):o}else r=+t||0;if(e=u(e),r>=e.length)return e;var a=r-o.length;if(a<1)return o;var s=e.slice(0,a);if(null==i)return s+o;if(Go(i)){if(e.slice(a).search(i)){var c,l,f=e.slice(0,a);for(i.global||(i=Xi(i.source,(Ie.exec(i)||"")+"g")),i.lastIndex=0;c=i.exec(f);)l=c.index;s=s.slice(0,null==l?a:l)}}else if(e.indexOf(i,a)!=a){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+o}function Si(e){return e=u(e),e&&be.test(e)?e.replace(ve,S):e}function wi(e,t,n){return n&&Jn(e,t,n)&&(t=T),e=u(e),e.match(t||Ue)||[]}function Ti(e,t,n){return n&&Jn(e,t,n)&&(t=T),v(e)?Ri(e):bt(e,t)}function Oi(e){return function(){return e}}function Pi(e){return e}function Ri(e){return Vt(xt(e,!0))}function Ai(e,t){return Ut(e,xt(t,!0))}function Mi(e,t,n){if(null==n){var r=ko(t),o=r?Us(t):T,i=o&&o.length?It(t,o):T;(i?i.length:r)||(i=!1,n=t,t=e,e=this)}i||(i=It(t,Us(t)));var a=!0,s=-1,u=Lo(e),c=i.length;n===!1?a=!1:ko(n)&&"chain"in n&&(a=n.chain);for(;++s<c;){var l=i[s],f=t[l];e[l]=f,u&&(e.prototype[l]=function(t){return function(){var n=this.__chain__;if(a||n){var r=e(this.__wrapped__),o=r.__actions__=et(this.__actions__);return o.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,ct([this.value()],arguments))}}(f))}return e}function Ni(){return rt._=oa,this}function Ii(){}function Li(e){return er(e)?Ht(e):Bt(e)}function ki(e){return function(t){return Lt(e,pr(t),t+"")}}function Di(e,t,n){n&&Jn(e,t,n)&&(t=n=T),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,o=Ea(ya((t-e)/(n||1)),0),i=zi(o);++r<o;)i[r]=e,e+=n;return i}function ji(e,t,n){if(e=va(e),e<1||!ba(e))return[];var r=-1,o=zi(Ca(e,Ra));for(t=an(t,n,1);++r<e;)r<Ra?o[r]=t(r):t(r);return o}function Fi(e){var t=++na;return u(e)+t}function Vi(e,t){return(+e||0)+(+t||0)}function Ui(e,t,n){return n&&Jn(e,t,n)&&(t=T),t=zn(t,n,3),1==t.length?dt(Rs(e)?e:lr(e),t):$t(e,t)}e=e?ot.defaults(rt.Object(),e,ot.pick(rt,ze)):rt;var zi=e.Array,Gi=e.Date,Hi=e.Error,Bi=e.Function,Zi=e.Math,qi=e.Number,Wi=e.Object,Xi=e.RegExp,Yi=e.String,Ki=e.TypeError,Qi=zi.prototype,$i=Wi.prototype,Ji=Yi.prototype,ea=Bi.prototype.toString,ta=$i.hasOwnProperty,na=0,ra=$i.toString,oa=rt._,ia=Xi("^"+ea.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aa=e.ArrayBuffer,sa=e.clearTimeout,ua=e.parseFloat,ca=Zi.pow,la=$i.propertyIsEnumerable,fa=Zn(e,"Set"),pa=e.setTimeout,da=Qi.splice,ha=e.Uint8Array,ga=Zn(e,"WeakMap"),ya=Zi.ceil,ma=Zn(Wi,"create"),va=Zi.floor,_a=Zn(zi,"isArray"),ba=e.isFinite,xa=Zn(Wi,"keys"),Ea=Zi.max,Ca=Zi.min,Sa=Zn(Gi,"now"),wa=e.parseInt,Ta=Zi.random,Oa=qi.NEGATIVE_INFINITY,Pa=qi.POSITIVE_INFINITY,Ra=4294967295,Aa=Ra-1,Ma=Ra>>>1,Na=9007199254740991,Ia=ga&&new ga,La={};t.support={};t.templateSettings={escape:Ee,evaluate:Ce,interpolate:Se,variable:"",imports:{_:t}};var ka=function(){function e(){}return function(t){if(ko(t)){e.prototype=t;var n=new e;e.prototype=T}return n||{}}}(),Da=pn(Mt),ja=pn(Nt,!0),Fa=dn(),Va=dn(!0),Ua=Ia?function(e,t){return Ia.set(e,t),e}:Pi,za=Ia?function(e){return Ia.get(e)}:Ii,Ga=Ht("length"),Ha=function(){var e=0,t=0;return function(n,r){var o=gs(),i=U-(o-t);if(t=o,i>0){if(++e>=V)return n}else e=0;return Ua(n,r)}}(),Ba=vo(function(e,t){return v(e)&&Qn(e)?Ct(e,Rt(t,!1,!0)):[]}),Za=En(),qa=En(!0),Wa=vo(function(e){for(var t=e.length,n=t,r=zi(f),o=Hn(),i=o==a,s=[];n--;){var u=e[n]=Qn(u=e[n])?u:[];r[n]=i&&u.length>=120?gn(n&&u):null}var c=e[0],l=-1,f=c?c.length:0,p=r[0];e:for(;++l<f;)if(u=c[l],(p?Qe(p,u):o(s,u,0))<0){for(var n=t;--n;){var d=r[n];if((d?Qe(d,u):o(e[n],u,0))<0)continue e}p&&p.push(u),s.push(u)}return s}),Xa=vo(function(e,t){t=Rt(t);var n=vt(e,t);return Zt(e,t.sort(o)),n}),Ya=Dn(),Ka=Dn(!0),Qa=vo(function(e){return Jt(Rt(e,!1,!0))}),$a=vo(function(e,t){return Qn(e)?Ct(e,t):[]}),Ja=vo(jr),es=vo(function(e){var t=e.length,n=t>2?e[t-2]:T,r=t>1?e[t-1]:T;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):T,r=T),e.length=t,Fr(e,n,r)}),ts=vo(function(e){return e=Rt(e),this.thru(function(t){return Je(Rs(t)?t:[fr(t)],e)})}),ns=vo(function(e,t){return vt(e,Rt(t))}),rs=ln(function(e,t,n){ta.call(e,n)?++e[n]:e[n]=1}),os=xn(Da),is=xn(ja,!0),as=wn(tt,Da),ss=wn(nt,ja),us=ln(function(e,t,n){ta.call(e,n)?e[n].push(t):e[n]=[t]}),cs=ln(function(e,t,n){e[n]=t}),ls=vo(function(e,t,n){var r=-1,o="function"==typeof t,i=er(t),a=Qn(e)?zi(e.length):[];return Da(e,function(e){var s=o?t:i&&null!=e?e[t]:T;a[++r]=s?s.apply(e,n):Kn(e,t,n)}),a}),fs=ln(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),ps=Mn(lt,Da),ds=Mn(ft,ja),hs=vo(function(e,t){if(null==e)return[];var n=t[2];return n&&Jn(t[0],t[1],n)&&(t.length=1),Qt(e,Rt(t),[])}),gs=Sa||function(){return(new Gi).getTime()},ys=vo(function(e,t,n){var r=P;if(n.length){var o=b(n,ys.placeholder);r|=I}return jn(e,r,t,n,o)}),ms=vo(function(e,t){t=t.length?Rt(t):Qo(e);for(var n=-1,r=t.length;++n<r;){var o=t[n];e[o]=jn(e[o],P,e)}return e}),vs=vo(function(e,t,n){var r=P|R;if(n.length){var o=b(n,vs.placeholder);r|=I}return jn(t,r,e,n,o)}),_s=vn(M),bs=vn(N),xs=vo(function(e,t){return Et(e,1,t)}),Es=vo(function(e,t,n){return Et(e,t,n)}),Cs=Sn(),Ss=Sn(!0),ws=vo(function(e,t){if(t=Rt(t),"function"!=typeof e||!it(t,s))throw new Ki(B);var n=t.length;return vo(function(r){for(var o=Ca(r.length,n);o--;)r[o]=t[o](r[o]);return e.apply(this,r)})}),Ts=An(I),Os=An(L),Ps=vo(function(e,t){return jn(e,D,T,T,T,Rt(t))}),Rs=_a||function(e){return v(e)&&nr(e.length)&&ra.call(e)==W},As=fn(zt),Ms=fn(function(e,t,n){return n?yt(e,t,n):mt(e,t)}),Ns=_n(Ms,ht),Is=_n(As,ir),Ls=Cn(Mt),ks=Cn(Nt),Ds=Tn(Fa),js=Tn(Va),Fs=On(Mt),Vs=On(Nt),Us=xa?function(e){var t=null==e?T:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Qn(e)?cr(e):ko(e)?xa(e):[]}:cr,zs=Pn(!0),Gs=Pn(),Hs=vo(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=ut(Rt(t),Yi);return ar(e,Ct(ti(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),Bs=vo(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ar(e,Rt(t))}),Zs=yn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),qs=yn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ws=Rn(),Xs=Rn(!0),Ys=yn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),Ks=yn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Qs=vo(function(e,t){try{return e.apply(T,t)}catch(e){return No(e)?e:new Hi(e)}}),$s=vo(function(e,t){return function(n){return Kn(n,e,t)}}),Js=vo(function(e,t){return function(n){return Kn(e,n,t)}}),eu=kn("ceil"),tu=kn("floor"),nu=bn(So,Oa),ru=bn(qo,Pa),ou=kn("round");return t.prototype=n.prototype,r.prototype=ka(n.prototype),r.prototype.constructor=r,_.prototype=ka(n.prototype),_.prototype.constructor=_,Ze.prototype.delete=qe,Ze.prototype.get=We,Ze.prototype.has=Xe,Ze.prototype.set=Ye,Ke.prototype.push=$e,go.Cache=Ze,t.after=lo,t.ary=fo,t.assign=Ms,t.at=ns,t.before=po,t.bind=ys,t.bindAll=ms,t.bindKey=vs,t.callback=Ti,t.chain=zr,t.chunk=hr,t.compact=gr,t.constant=Oi,t.countBy=rs,t.create=Ko,t.curry=_s,t.curryRight=bs,t.debounce=ho,t.defaults=Ns,t.defaultsDeep=Is,t.defer=xs,t.delay=Es,t.difference=Ba,t.drop=yr,t.dropRight=mr,t.dropRightWhile=vr,t.dropWhile=_r,t.fill=br,t.filter=Qr,t.flatten=Er,t.flattenDeep=Cr,t.flow=Cs,t.flowRight=Ss,t.forEach=as,t.forEachRight=ss,t.forIn=Ds,t.forInRight=js,t.forOwn=Fs,t.forOwnRight=Vs,t.functions=Qo,t.groupBy=us,t.indexBy=cs,t.initial=wr,t.intersection=Wa,t.invert=ei,t.invoke=ls,t.keys=Us,t.keysIn=ti,t.map=eo,t.mapKeys=zs,t.mapValues=Gs,t.matches=Ri,t.matchesProperty=Ai,t.memoize=go,t.merge=As,t.method=$s,t.methodOf=Js,t.mixin=Mi,t.modArgs=ws,t.negate=yo,t.omit=Hs,t.once=mo,t.pairs=ni,t.partial=Ts,t.partialRight=Os,t.partition=fs,t.pick=Bs,t.pluck=to,t.property=Li,t.propertyOf=ki,t.pull=Pr,t.pullAt=Xa,t.range=Di,t.rearg=Ps,t.reject=no,t.remove=Rr,t.rest=Ar,t.restParam=vo,t.set=oi,t.shuffle=oo,t.slice=Mr,t.sortBy=so,t.sortByAll=hs,t.sortByOrder=uo,t.spread=_o,t.take=Nr,t.takeRight=Ir,t.takeRightWhile=Lr,t.takeWhile=kr,t.tap=Gr,t.throttle=bo,t.thru=Hr,t.times=ji,t.toArray=Xo,t.toPlainObject=Yo,t.transform=ii,t.union=Qa,t.uniq=Dr,t.unzip=jr,t.unzipWith=Fr,t.values=ai,t.valuesIn=si,t.where=co,t.without=$a,t.wrap=xo,t.xor=Vr,t.zip=Ja,t.zipObject=Ur,t.zipWith=es,t.backflow=Ss,t.collect=eo,t.compose=Ss,t.each=as,t.eachRight=ss,t.extend=Ms,t.iteratee=Ti,t.methods=Qo,t.object=Ur,t.select=Qr,t.tail=Ar,t.unique=Dr,Mi(t,t),t.add=Vi,t.attempt=Qs,t.camelCase=Zs,t.capitalize=li,t.ceil=eu,t.clone=Eo,t.cloneDeep=Co,t.deburr=fi,t.endsWith=pi,t.escape=di,t.escapeRegExp=hi,t.every=Kr,t.find=os,t.findIndex=Za,t.findKey=Ls,t.findLast=is,t.findLastIndex=qa,t.findLastKey=ks,t.findWhere=$r,t.first=xr,t.floor=tu,t.get=$o,t.gt=So,t.gte=wo,t.has=Jo,t.identity=Pi,t.includes=Jr,t.indexOf=Sr,t.inRange=ui,t.isArguments=To,t.isArray=Rs,t.isBoolean=Oo,t.isDate=Po,t.isElement=Ro,t.isEmpty=Ao,t.isEqual=Mo,t.isError=No,t.isFinite=Io,t.isFunction=Lo,t.isMatch=Do,t.isNaN=jo,t.isNative=Fo,t.isNull=Vo,t.isNumber=Uo,t.isObject=ko,t.isPlainObject=zo,t.isRegExp=Go,t.isString=Ho,t.isTypedArray=Bo,t.isUndefined=Zo,t.kebabCase=qs,t.last=Tr,t.lastIndexOf=Or,t.lt=qo,t.lte=Wo,t.max=nu,t.min=ru,t.noConflict=Ni,t.noop=Ii,t.now=gs,t.pad=gi,t.padLeft=Ws,t.padRight=Xs,t.parseInt=yi,t.random=ci,t.reduce=ps,t.reduceRight=ds,t.repeat=mi,t.result=ri,t.round=ou,t.runInContext=w,t.size=io,t.snakeCase=Ys,t.some=ao,t.sortedIndex=Ya,t.sortedLastIndex=Ka,t.startCase=Ks,t.startsWith=vi,t.sum=Ui,t.template=_i,t.trim=bi,t.trimLeft=xi,t.trimRight=Ei,t.trunc=Ci,t.unescape=Si,t.uniqueId=Fi,t.words=wi,t.all=Kr,t.any=ao,t.contains=Jr,t.eq=Mo,t.detect=os,t.foldl=ps,t.foldr=ds,t.head=xr,t.include=Jr,t.inject=ps,Mi(t,function(){var e={};return Mt(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.sample=ro,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ro(t,e)}):ro(this.value())},t.VERSION=O,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),tt(["drop","take"],function(e,t){_.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new _(this);n=null==n?1:Ea(va(n)||0,0);var o=this.clone();return r?o.__takeCount__=Ca(o.__takeCount__,n):o.__views__.push({size:n,type:e+(o.__dir__<0?"Right":"")}),o},_.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=H;_.prototype[e]=function(e,t){var o=this.clone();return o.__iteratees__.push({iteratee:zn(e,t,1),type:n}),o.__filtered__=o.__filtered__||r,o}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");_.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");_.prototype[e]=function(){return this.__filtered__?new _(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?Vt:Li;_.prototype[e]=function(e){return this[n](r(e))}}),_.prototype.compact=function(){return this.filter(Pi)},_.prototype.reject=function(e,t){return e=zn(e,t,1),this.filter(function(t){return!e(t)})},_.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||t<0)?new _(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==T&&(t=+t||0,n=t<0?n.dropRight(-t):n.take(t-e)),n)},_.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},_.prototype.toArray=function(){return this.take(Pa)},Mt(_.prototype,function(e,n){var o=/^(?:filter|map|reject)|While$/.test(n),i=/^(?:first|last)$/.test(n),a=t[i?"take"+("last"==n?"Right":""):n];a&&(t.prototype[n]=function(){var t=i?[1]:arguments,n=this.__chain__,s=this.__wrapped__,u=!!this.__actions__.length,c=s instanceof _,l=t[0],f=c||Rs(s);f&&o&&"function"==typeof l&&1!=l.length&&(c=f=!1);var p=function(e){return i&&n?a(e,1)[0]:a.apply(T,ct([e],t))},d={func:Hr,args:[p],thisArg:T},h=c&&!u;if(i&&!n)return h?(s=s.clone(),s.__actions__.push(d),e.call(s)):a.call(T,this.value())[0];if(!i&&f){s=h?s:new _(this);var g=e.apply(s,t);return g.__actions__.push(d),new r(g,n)}return this.thru(p)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)$/.test(e)?Ji:Qi)[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:join|pop|replace|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return o&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),Mt(_.prototype,function(e,n){var r=t[n];if(r){var o=r.name,i=La[o]||(La[o]=[]);i.push({name:n,func:r})}}),La[Nn(T,R).name]=[{name:"wrapper",func:T}],_.prototype.clone=$,_.prototype.reverse=ne,_.prototype.value=oe,t.prototype.chain=Br,t.prototype.commit=Zr,t.prototype.concat=ts,t.prototype.plant=qr,t.prototype.reverse=Wr,t.prototype.toString=Xr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Yr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var T,O="3.10.1",P=1,R=2,A=4,M=8,N=16,I=32,L=64,k=128,D=256,j=30,F="...",V=150,U=16,z=200,G=1,H=2,B="Expected a function",Z="__lodash_placeholder__",q="[object Arguments]",W="[object Array]",X="[object Boolean]",Y="[object Date]",K="[object Error]",Q="[object Function]",$="[object Map]",J="[object Number]",ee="[object Object]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object WeakMap]",ie="[object ArrayBuffer]",ae="[object Float32Array]",se="[object Float64Array]",ue="[object Int8Array]",ce="[object Int16Array]",le="[object Int32Array]",fe="[object Uint8Array]",pe="[object Uint8ClampedArray]",de="[object Uint16Array]",he="[object Uint32Array]",ge=/\b__p \+= '';/g,ye=/\b(__p \+=) '' \+/g,me=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ve=/&(?:amp|lt|gt|quot|#39|#96);/g,_e=/[&<>"'`]/g,be=RegExp(ve.source),xe=RegExp(_e.source),Ee=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,we=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Te=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Pe=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Re=RegExp(Pe.source),Ae=/[\u0300-\u036f\ufe20-\ufe23]/g,Me=/\\(\\)?/g,Ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ie=/\w*$/,Le=/^0[xX]/,ke=/^\[object .+?Constructor\]$/,De=/^\d+$/,je=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Fe=/($^)/,Ve=/['\n\r\u2028\u2029\\]/g,Ue=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),ze=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],Ge=-1,He={};He[ae]=He[se]=He[ue]=He[ce]=He[le]=He[fe]=He[pe]=He[de]=He[he]=!0,He[q]=He[W]=He[ie]=He[X]=He[Y]=He[K]=He[Q]=He[$]=He[J]=He[ee]=He[te]=He[ne]=He[re]=He[oe]=!1;var Be={};Be[q]=Be[W]=Be[ie]=Be[X]=Be[Y]=Be[ae]=Be[se]=Be[ue]=Be[ce]=Be[le]=Be[J]=Be[ee]=Be[te]=Be[re]=Be[fe]=Be[pe]=Be[de]=Be[he]=!0,Be[K]=Be[Q]=Be[$]=Be[ne]=Be[oe]=!1;var Ze={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},qe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},We={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Xe={function:!0,object:!0},Ye={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Ke={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qe=Xe[typeof r]&&r&&!r.nodeType&&r,$e=Xe[typeof n]&&n&&!n.nodeType&&n,Je=Qe&&$e&&"object"==typeof t&&t&&t.Object&&t,et=Xe[typeof self]&&self&&self.Object&&self,tt=Xe[typeof window]&&window&&window.Object&&window,nt=$e&&$e.exports===Qe&&Qe,rt=Je||tt!==(this&&this.window)&&tt||et||this,ot=w();"function"==typeof e&&"object"==typeof e.amd&&e.amd?(rt._=ot,e(function(){return ot})):Qe&&$e?nt?($e.exports=ot)._=ot:Qe._=ot:rt._=ot}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],192:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(r(this,e),!t||"string"!=typeof t)throw new Error("A string non-empty key is required");this._key=t,this._assignEntity=n.assignEntity;var o=n.idAttribute||"id";this._getId="function"==typeof o?o:function(e){return e[o]},this._idAttribute=o,this._meta=n.meta,this._defaults=n.defaults}return o(e,[{key:"getAssignEntity",value:function(){return this._assignEntity}},{key:"getKey",value:function(){return this._key}},{key:"getId",value:function(e){return this._getId(e)}},{key:"getIdAttribute",value:function(){return this._idAttribute}},{key:"getMeta",value:function(e){if(!e||"string"!=typeof e)throw new Error("A string non-empty property name is required");return this._meta&&this._meta[e]}},{key:"getDefaults",value:function(){return this._defaults}},{key:"define",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t])}}]),e}();n.default=i},{}],193:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("lodash/isObject"),s=r(a),u=e("./UnionSchema"),c=r(u),l=function(){function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];if(o(this,e),!(0,s.default)(t))throw new Error("ArraySchema requires item schema to be an object.");if(n.schemaAttribute){var r=n.schemaAttribute;this._itemSchema=new c.default(t,{schemaAttribute:r})}else this._itemSchema=t}return i(e,[{key:"getItemSchema",value:function(){return this._itemSchema}}]),e}();n.default=l},{"./UnionSchema":194,"lodash/isObject":271}],194:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=e("lodash/isObject"),s=r(a),u=function(){function e(t,n){if(o(this,e),!(0,s.default)(t))throw new Error("UnionSchema requires item schema to be an object.");if(!n||!n.schemaAttribute)throw new Error("UnionSchema requires schemaAttribute option.");this._itemSchema=t;var r=n.schemaAttribute;this._getSchema="function"==typeof r?r:function(e){return e[r]}}return i(e,[{key:"getItemSchema",value:function(){return this._itemSchema}},{key:"getSchemaKey",value:function(e){return this._getSchema(e)}}]),e}();n.default=u},{"lodash/isObject":271}],195:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){e[t]=n}function i(e,t,n,r){var i=r.assignEntity,a=void 0===i?o:i,s=t&&t.getDefaults&&t.getDefaults(),u=t&&t.getAssignEntity&&t.getAssignEntity(),c=(0,O.default)(s)?m({},s):{};for(var l in e)if(e.hasOwnProperty(l)){var f=p(e[l],t[l],n,r);a.call(null,c,l,f,e,t),u&&u.call(null,c,l,f,e,t)}return c}function a(e,t,n,r){return function(e){return p(e,t,n,r)}}function s(e,t,n,r){return function(o){var i=e.getSchemaKey(o),a=p(o,t[i],n,r);return{id:a,schema:i}}}function u(e,t,n,r){var o=t.getItemSchema(),i=a(t,o,n,r);return Array.isArray(e)?e.map(i):Object.keys(e).reduce(function(t,n){return t[n]=i(e[n]),t},{})}function c(e,t,n,r){var o=t.getItemSchema();return s(t,o,n,r)(e)}function l(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(e.hasOwnProperty(r)&&!(0,w.default)(e[r],t[r])?console.warn("When merging two "+n+', found unequal data in their "'+r+'" values. Using the earlier value.',e[r],t[r]):e[r]=t[r])}function f(e,t,n,r){var o=r.mergeIntoEntity,a=void 0===o?l:o,s=t.getKey(),u=t.getId(e);n.hasOwnProperty(s)||(n[s]={}),n[s].hasOwnProperty(u)||(n[s][u]={});var c=n[s][u],f=i(e,t,n,r);return a(c,f,s),u}function p(e,t,n,r){return(0,O.default)(e)&&(0,O.default)(t)?t instanceof _.default?f(e,t,n,r):t instanceof x.default?u(e,t,n,r):t instanceof C.default?c(e,t,n,r):i(e,t,n,r):e}function d(e,t){return new x.default(e,t)}function h(e,t){return new x.default(e,t)}function g(e,t){return new C.default(e,t)}function y(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(!(0,O.default)(e))throw new Error("Normalize accepts an object or an array as its input.");if(!(0,O.default)(t)||Array.isArray(t))throw new Error("Normalize accepts an object for schema.");var r={},o=p(e,t,r,n);return{entities:r,result:o}}Object.defineProperty(n,"__esModule",{value:!0}),n.Schema=void 0;var m=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.arrayOf=d,n.valuesOf=h,n.unionOf=g,n.normalize=y;var v=e("./EntitySchema"),_=r(v),b=e("./IterableSchema"),x=r(b),E=e("./UnionSchema"),C=r(E),S=e("lodash/isEqual"),w=r(S),T=e("lodash/isObject"),O=r(T);n.Schema=_.default},{"./EntitySchema":192,"./IterableSchema":193,"./UnionSchema":194,"lodash/isEqual":268,"lodash/isObject":271}],196:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"DataView");t.exports=i},{"./_getNative":225,"./_root":253}],197:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_hashClear"),i=e("./_hashDelete"),a=e("./_hashGet"),s=e("./_hashHas"),u=e("./_hashSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_hashClear":228,"./_hashDelete":229,"./_hashGet":230,"./_hashHas":231,"./_hashSet":232}],198:[function(e,t,n){
9
- function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_listCacheClear"),i=e("./_listCacheDelete"),a=e("./_listCacheGet"),s=e("./_listCacheHas"),u=e("./_listCacheSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_listCacheClear":238,"./_listCacheDelete":239,"./_listCacheGet":240,"./_listCacheHas":241,"./_listCacheSet":242}],199:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Map");t.exports=i},{"./_getNative":225,"./_root":253}],200:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var o=e("./_mapCacheClear"),i=e("./_mapCacheDelete"),a=e("./_mapCacheGet"),s=e("./_mapCacheHas"),u=e("./_mapCacheSet");r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=s,r.prototype.set=u,t.exports=r},{"./_mapCacheClear":243,"./_mapCacheDelete":244,"./_mapCacheGet":245,"./_mapCacheHas":246,"./_mapCacheSet":247}],201:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Promise");t.exports=i},{"./_getNative":225,"./_root":253}],202:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"Set");t.exports=i},{"./_getNative":225,"./_root":253}],203:[function(e,t,n){function r(e){var t=-1,n=e?e.length:0;for(this.__data__=new o;++t<n;)this.add(e[t])}var o=e("./_MapCache"),i=e("./_setCacheAdd"),a=e("./_setCacheHas");r.prototype.add=r.prototype.push=i,r.prototype.has=a,t.exports=r},{"./_MapCache":200,"./_setCacheAdd":254,"./_setCacheHas":255}],204:[function(e,t,n){function r(e){this.__data__=new o(e)}var o=e("./_ListCache"),i=e("./_stackClear"),a=e("./_stackDelete"),s=e("./_stackGet"),u=e("./_stackHas"),c=e("./_stackSet");r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},{"./_ListCache":198,"./_stackClear":257,"./_stackDelete":258,"./_stackGet":259,"./_stackHas":260,"./_stackSet":261}],205:[function(e,t,n){var r=e("./_root"),o=r.Symbol;t.exports=o},{"./_root":253}],206:[function(e,t,n){var r=e("./_root"),o=r.Uint8Array;t.exports=o},{"./_root":253}],207:[function(e,t,n){var r=e("./_getNative"),o=e("./_root"),i=r(o,"WeakMap");t.exports=i},{"./_getNative":225,"./_root":253}],208:[function(e,t,n){arguments[4][24][0].apply(n,arguments)},{"./_baseTimes":217,"./_isIndex":234,"./isArguments":264,"./isArray":265,dup:24}],209:[function(e,t,n){function r(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],210:[function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(o(e[n][0],t))return n;return-1}var o=e("./eq");t.exports=r},{"./eq":263}],211:[function(e,t,n){function r(e){return i.call(e)}var o=Object.prototype,i=o.toString;t.exports=r},{}],212:[function(e,t,n){function r(e,t,n,s,u){return e===t||(null==e||null==t||!i(e)&&!a(t)?e!==e&&t!==t:o(e,t,r,n,s,u))}var o=e("./_baseIsEqualDeep"),i=e("./isObject"),a=e("./isObjectLike");t.exports=r},{"./_baseIsEqualDeep":213,"./isObject":271,"./isObjectLike":272}],213:[function(e,t,n){function r(e,t,n,r,y,v){var _=c(e),b=c(t),x=h,E=h;_||(x=u(e),x=x==d?g:x),b||(E=u(t),E=E==d?g:E);var C=x==g&&!l(e),S=E==g&&!l(t),w=x==E;if(w&&!C)return v||(v=new o),_||f(e)?i(e,t,n,r,y,v):a(e,t,x,n,r,y,v);if(!(y&p)){var T=C&&m.call(e,"__wrapped__"),O=S&&m.call(t,"__wrapped__");if(T||O){var P=T?e.value():e,R=O?t.value():t;return v||(v=new o),n(P,R,r,y,v)}}return!!w&&(v||(v=new o),s(e,t,n,r,y,v))}var o=e("./_Stack"),i=e("./_equalArrays"),a=e("./_equalByTag"),s=e("./_equalObjects"),u=e("./_getTag"),c=e("./isArray"),l=e("./_isHostObject"),f=e("./isTypedArray"),p=2,d="[object Arguments]",h="[object Array]",g="[object Object]",y=Object.prototype,m=y.hasOwnProperty;t.exports=r},{"./_Stack":204,"./_equalArrays":220,"./_equalByTag":221,"./_equalObjects":222,"./_getTag":226,"./_isHostObject":233,"./isArray":265,"./isTypedArray":273}],214:[function(e,t,n){function r(e){if(!s(e)||a(e))return!1;var t=o(e)||i(e)?g:l;return t.test(u(e))}var o=e("./isFunction"),i=e("./_isHostObject"),a=e("./_isMasked"),s=e("./isObject"),u=e("./_toSource"),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,f=Function.prototype,p=Object.prototype,d=f.toString,h=p.hasOwnProperty,g=RegExp("^"+d.call(h).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"./_isHostObject":233,"./_isMasked":236,"./_toSource":262,"./isFunction":269,"./isObject":271}],215:[function(e,t,n){function r(e){return i(e)&&o(e.length)&&!!A[N.call(e)]}var o=e("./isLength"),i=e("./isObjectLike"),a="[object Arguments]",s="[object Array]",u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",p="[object Map]",d="[object Number]",h="[object Object]",g="[object RegExp]",y="[object Set]",m="[object String]",v="[object WeakMap]",_="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",E="[object Float64Array]",C="[object Int8Array]",S="[object Int16Array]",w="[object Int32Array]",T="[object Uint8Array]",O="[object Uint8ClampedArray]",P="[object Uint16Array]",R="[object Uint32Array]",A={};A[x]=A[E]=A[C]=A[S]=A[w]=A[T]=A[O]=A[P]=A[R]=!0,A[a]=A[s]=A[_]=A[u]=A[b]=A[c]=A[l]=A[f]=A[p]=A[d]=A[h]=A[g]=A[y]=A[m]=A[v]=!1;var M=Object.prototype,N=M.toString;t.exports=r},{"./isLength":270,"./isObjectLike":272}],216:[function(e,t,n){arguments[4][29][0].apply(n,arguments)},{"./_isPrototype":237,"./_nativeKeys":250,dup:29}],217:[function(e,t,n){arguments[4][30][0].apply(n,arguments)},{dup:30}],218:[function(e,t,n){function r(e){return function(t){return e(t)}}t.exports=r},{}],219:[function(e,t,n){var r=e("./_root"),o=r["__core-js_shared__"];t.exports=o},{"./_root":253}],220:[function(e,t,n){function r(e,t,n,r,u,c){var l=u&s,f=e.length,p=t.length;if(f!=p&&!(l&&p>f))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var h=-1,g=!0,y=u&a?new o:void 0;for(c.set(e,t),c.set(t,e);++h<f;){var m=e[h],v=t[h];if(r)var _=l?r(v,m,h,t,e,c):r(m,v,h,e,t,c);if(void 0!==_){if(_)continue;g=!1;break}if(y){if(!i(t,function(e,t){if(!y.has(t)&&(m===e||n(m,e,r,u,c)))return y.add(t)})){g=!1;break}}else if(m!==v&&!n(m,v,r,u,c)){g=!1;break}}return c.delete(e),c.delete(t),g}var o=e("./_SetCache"),i=e("./_arraySome"),a=1,s=2;t.exports=r},{"./_SetCache":203,"./_arraySome":209}],221:[function(e,t,n){function r(e,t,n,r,o,C,w){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!r(new i(e),new i(t)));case p:case d:case y:return a(+e,+t);case h:return e.name==t.name&&e.message==t.message;case m:case _:return e==t+"";case g:var T=u;case v:var O=C&f;if(T||(T=c),e.size!=t.size&&!O)return!1;var P=w.get(e);if(P)return P==t;C|=l,w.set(e,t);var R=s(T(e),T(t),r,o,C,w);return w.delete(e),R;case b:if(S)return S.call(e)==S.call(t)}return!1}var o=e("./_Symbol"),i=e("./_Uint8Array"),a=e("./eq"),s=e("./_equalArrays"),u=e("./_mapToArray"),c=e("./_setToArray"),l=1,f=2,p="[object Boolean]",d="[object Date]",h="[object Error]",g="[object Map]",y="[object Number]",m="[object RegExp]",v="[object Set]",_="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",E="[object DataView]",C=o?o.prototype:void 0,S=C?C.valueOf:void 0;t.exports=r},{"./_Symbol":205,"./_Uint8Array":206,"./_equalArrays":220,"./_mapToArray":248,"./_setToArray":256,"./eq":263}],222:[function(e,t,n){function r(e,t,n,r,a,u){var c=a&i,l=o(e),f=l.length,p=o(t),d=p.length;if(f!=d&&!c)return!1;for(var h=f;h--;){var g=l[h];if(!(c?g in t:s.call(t,g)))return!1}var y=u.get(e);if(y&&u.get(t))return y==t;var m=!0;u.set(e,t),u.set(t,e);for(var v=c;++h<f;){g=l[h];var _=e[g],b=t[g];if(r)var x=c?r(b,_,g,t,e,u):r(_,b,g,e,t,u);if(!(void 0===x?_===b||n(_,b,r,a,u):x)){m=!1;break}v||(v="constructor"==g)}if(m&&!v){var E=e.constructor,C=t.constructor;E!=C&&"constructor"in e&&"constructor"in t&&!("function"==typeof E&&E instanceof E&&"function"==typeof C&&C instanceof C)&&(m=!1)}return u.delete(e),u.delete(t),m}var o=e("./keys"),i=2,a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./keys":274}],223:[function(e,t,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],224:[function(e,t,n){function r(e,t){var n=e.__data__;return o(t)?n["string"==typeof t?"string":"hash"]:n.map}var o=e("./_isKeyable");t.exports=r},{"./_isKeyable":235}],225:[function(e,t,n){function r(e,t){var n=i(e,t);return o(n)?n:void 0}var o=e("./_baseIsNative"),i=e("./_getValue");t.exports=r},{"./_baseIsNative":214,"./_getValue":227}],226:[function(e,t,n){var r=e("./_DataView"),o=e("./_Map"),i=e("./_Promise"),a=e("./_Set"),s=e("./_WeakMap"),u=e("./_baseGetTag"),c=e("./_toSource"),l="[object Map]",f="[object Object]",p="[object Promise]",d="[object Set]",h="[object WeakMap]",g="[object DataView]",y=Object.prototype,m=y.toString,v=c(r),_=c(o),b=c(i),x=c(a),E=c(s),C=u;(r&&C(new r(new ArrayBuffer(1)))!=g||o&&C(new o)!=l||i&&C(i.resolve())!=p||a&&C(new a)!=d||s&&C(new s)!=h)&&(C=function(e){var t=m.call(e),n=t==f?e.constructor:void 0,r=n?c(n):void 0;if(r)switch(r){case v:return g;case _:return l;case b:return p;case x:return d;case E:return h}return t}),t.exports=C},{"./_DataView":196,"./_Map":199,"./_Promise":201,"./_Set":202,"./_WeakMap":207,"./_baseGetTag":211,"./_toSource":262}],227:[function(e,t,n){function r(e,t){return null==e?void 0:e[t]}t.exports=r},{}],228:[function(e,t,n){function r(){this.__data__=o?o(null):{}}var o=e("./_nativeCreate");t.exports=r},{"./_nativeCreate":249}],229:[function(e,t,n){function r(e){return this.has(e)&&delete this.__data__[e]}t.exports=r},{}],230:[function(e,t,n){function r(e){var t=this.__data__;if(o){var n=t[e];return n===i?void 0:n}return s.call(t,e)?t[e]:void 0}var o=e("./_nativeCreate"),i="__lodash_hash_undefined__",a=Object.prototype,s=a.hasOwnProperty;t.exports=r},{"./_nativeCreate":249}],231:[function(e,t,n){function r(e){var t=this.__data__;return o?void 0!==t[e]:a.call(t,e)}var o=e("./_nativeCreate"),i=Object.prototype,a=i.hasOwnProperty;t.exports=r},{"./_nativeCreate":249}],232:[function(e,t,n){function r(e,t){var n=this.__data__;return n[e]=o&&void 0===t?i:t,this}var o=e("./_nativeCreate"),i="__lodash_hash_undefined__";t.exports=r},{"./_nativeCreate":249}],233:[function(e,t,n){function r(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}t.exports=r},{}],234:[function(e,t,n){arguments[4][32][0].apply(n,arguments)},{dup:32}],235:[function(e,t,n){function r(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}t.exports=r},{}],236:[function(e,t,n){function r(e){return!!i&&i in e}var o=e("./_coreJsData"),i=function(){var e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=r},{"./_coreJsData":219}],237:[function(e,t,n){arguments[4][33][0].apply(n,arguments)},{dup:33}],238:[function(e,t,n){function r(){this.__data__=[]}t.exports=r},{}],239:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():a.call(t,n,1),!0}var o=e("./_assocIndexOf"),i=Array.prototype,a=i.splice;t.exports=r},{"./_assocIndexOf":210}],240:[function(e,t,n){function r(e){var t=this.__data__,n=o(t,e);return n<0?void 0:t[n][1]}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":210}],241:[function(e,t,n){function r(e){return o(this.__data__,e)>-1}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":210}],242:[function(e,t,n){function r(e,t){var n=this.__data__,r=o(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}var o=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":210}],243:[function(e,t,n){function r(){this.__data__={hash:new o,map:new(a||i),string:new o}}var o=e("./_Hash"),i=e("./_ListCache"),a=e("./_Map");t.exports=r},{"./_Hash":197,"./_ListCache":198,"./_Map":199}],244:[function(e,t,n){function r(e){return o(this,e).delete(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":224}],245:[function(e,t,n){function r(e){return o(this,e).get(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":224}],246:[function(e,t,n){function r(e){return o(this,e).has(e)}var o=e("./_getMapData");t.exports=r},{"./_getMapData":224}],247:[function(e,t,n){function r(e,t){return o(this,e).set(e,t),this}var o=e("./_getMapData");t.exports=r},{"./_getMapData":224}],248:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=r},{}],249:[function(e,t,n){var r=e("./_getNative"),o=r(Object,"create");t.exports=o},{"./_getNative":225}],250:[function(e,t,n){arguments[4][34][0].apply(n,arguments)},{"./_overArg":252,dup:34}],251:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof n&&n&&!n.nodeType&&n,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a&&r.process,u=function(){try{return s&&s.binding("util")}catch(e){}}();t.exports=u},{"./_freeGlobal":223}],252:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],253:[function(e,t,n){var r=e("./_freeGlobal"),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},{"./_freeGlobal":223}],254:[function(e,t,n){function r(e){return this.__data__.set(e,o),this}var o="__lodash_hash_undefined__";t.exports=r},{}],255:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],256:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=r},{}],257:[function(e,t,n){function r(){this.__data__=new o}var o=e("./_ListCache");t.exports=r},{"./_ListCache":198}],258:[function(e,t,n){function r(e){return this.__data__.delete(e)}t.exports=r},{}],259:[function(e,t,n){function r(e){return this.__data__.get(e)}t.exports=r},{}],260:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],261:[function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<s-1)return r.push([e,t]),this;n=this.__data__=new a(r)}return n.set(e,t),this}var o=e("./_ListCache"),i=e("./_Map"),a=e("./_MapCache"),s=200;t.exports=r},{"./_ListCache":198,"./_Map":199,"./_MapCache":200}],262:[function(e,t,n){function r(e){if(null!=e){try{return i.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var o=Function.prototype,i=o.toString;t.exports=r},{}],263:[function(e,t,n){function r(e,t){return e===t||e!==e&&t!==t}t.exports=r},{}],264:[function(e,t,n){arguments[4][37][0].apply(n,arguments)},{"./isArrayLikeObject":267,dup:37}],265:[function(e,t,n){arguments[4][38][0].apply(n,arguments)},{dup:38}],266:[function(e,t,n){arguments[4][39][0].apply(n,arguments)},{"./isFunction":269,"./isLength":270,dup:39}],267:[function(e,t,n){arguments[4][40][0].apply(n,arguments)},{"./isArrayLike":266,"./isObjectLike":272,dup:40}],268:[function(e,t,n){function r(e,t){return o(e,t)}var o=e("./_baseIsEqual");t.exports=r},{"./_baseIsEqual":212}],269:[function(e,t,n){arguments[4][41][0].apply(n,arguments)},{"./isObject":271,dup:41}],270:[function(e,t,n){arguments[4][42][0].apply(n,arguments)},{dup:42}],271:[function(e,t,n){arguments[4][43][0].apply(n,arguments)},{dup:43}],272:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],273:[function(e,t,n){var r=e("./_baseIsTypedArray"),o=e("./_baseUnary"),i=e("./_nodeUtil"),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},{"./_baseIsTypedArray":215,"./_baseUnary":218,"./_nodeUtil":251}],274:[function(e,t,n){arguments[4][47][0].apply(n,arguments)},{"./_arrayLikeKeys":208,"./_baseKeys":216,"./isArrayLike":266,dup:47}],275:[function(e,t,n){t.exports=e("react/lib/ReactCSSTransitionGroup")},{"react/lib/ReactCSSTransitionGroup":379}],276:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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)}var a=e("react"),s=e("c3"),u=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return i(t,e),t.prototype._updateC3=function(e){e.config.bindto=this._container,this._chart&&this._chart.destroy(),this._chart=s.generate(e.config)},t.prototype.componentDidMount=function(){this._updateC3(this.props)},t.prototype.componentWillReceiveProps=function(e){this._updateC3(e)},t.prototype.componentWillUnmount=function(){this._chart.destroy()},t.prototype.render=function(){var e=this;return a.createElement("div",{ref:function(t){return e._container=t}})},t}(a.Component);u.propTypes={config:a.PropTypes.object.isRequired},t.exports=u},{c3:277,react:514}],277:[function(t,n,r){!function(o){"use strict";function i(e){this.owner=e}function a(e,t){if(Object.create)t.prototype=Object.create(e.prototype);else{var n=function(){};n.prototype=e.prototype,t.prototype=new n}return t.prototype.constructor=t,t}function s(e){var t=this.internal=new u(this);t.loadConfig(e),t.beforeInit(e),t.init(),t.afterInit(e),function e(t,n,r){Object.keys(t).forEach(function(o){n[o]=t[o].bind(r),Object.keys(t[o]).length>0&&e(t[o],n[o],r)})}(f,this,this)}function u(e){var n=this;n.d3=o.d3?o.d3:"undefined"!=typeof t?t("d3"):void 0,n.api=e,n.config=n.getDefaultConfig(),n.data={},n.cache={},n.axes={}}function c(e){i.call(this,e)}function l(e,t){function n(e,t){e.attr("transform",function(e){return"translate("+Math.ceil(t(e)+b)+", 0)"})}function r(e,t){e.attr("transform",function(e){return"translate(0,"+Math.ceil(t(e))+")"})}function o(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function i(e){var t,n,r=[];if(e.ticks)return e.ticks.apply(e,d);for(n=e.domain(),t=Math.ceil(n[0]);t<n[1];t++)r.push(t);return r.length>0&&r[0]>0&&r.unshift(r[0]-(r[1]-r[0])),r}function a(){var e,n=g.copy();return t.isCategory&&(e=g.domain(),n.domain([e[0],e[1]-1])),n}function s(e){var t=p?p(e):e;return"undefined"!=typeof t?t:""}function u(e){if(A)return A;var t={h:11.5,w:5.5};return e.select("text").text(s).each(function(e){var n=this.getBoundingClientRect(),r=s(e),o=n.height,i=r?n.width/r.length:void 0;o&&i&&(t.h=o,t.w=i)}).text(""),A=t,t}function c(n){return t.withoutTransition?n:e.transition(n)}function l(p){p.each(function(){function p(e,n){function r(e,t){i=void 0;for(var s=1;s<t.length;s++)if(" "===t.charAt(s)&&(i=s),o=t.substr(0,s+1),a=q.w*o.length,n<a)return r(e.concat(t.substr(0,i?i:s)),t.slice(i?i+1:s));return e.concat(t)}var o,i,a,u=s(e),c=[];return"[object Array]"===Object.prototype.toString.call(u)?u:((!n||n<=0)&&(n=Y?95:t.isCategory?Math.ceil(M(N[1])-M(N[0]))-12:110),r(c,u+""))}function d(e,t){var n=q.h;return 0===t&&(n="left"===y||"right"===y?-((W[e.index]-1)*(q.h/2)-3):".71em"),n}function x(e){var t=g(e)+(h?0:b);return j[0]<t&&t<j[1]?m:0}function E(e){return e?e>0?"start":"end":"middle"}function C(e){return e?"rotate("+e+")":""}function S(e){return e?8*Math.sin(Math.PI*(e/180)):0}function w(e){return e?11.5-2.5*(e/15)*(e>0?1:-1):X}var T,O,P,R=l.g=e.select(this),A=this.__chart__||g,M=this.__chart__=a(),N=_?_:i(M),I=R.selectAll(".tick").data(N,M),L=I.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),k=I.exit().remove(),D=c(I).style("opacity",1),j=g.rangeExtent?g.rangeExtent():o(g.range()),F=R.selectAll(".domain").data([0]),V=(F.enter().append("path").attr("class","domain"),c(F));L.append("line"),L.append("text");var U=L.select("line"),z=D.select("line"),G=L.select("text"),H=D.select("text");t.isCategory?(b=Math.ceil((M(1)-M(0))/2),O=h?0:b,P=h?b:0):b=O=0;var B,Z,q=u(R.select(".tick")),W=[],X=Math.max(m,0)+v,Y="left"===y||"right"===y;B=I.select("text"),Z=B.selectAll("tspan").data(function(e,n){var r=t.tickMultiline?p(e,t.tickWidth):[].concat(s(e));return W[n]=r.length,r.map(function(e){return{index:n,splitted:e}})}),Z.enter().append("tspan"),Z.exit().remove(),Z.text(function(e){return e.splitted});var K=t.tickTextRotate;switch(y){case"bottom":T=n,U.attr("y2",m),G.attr("y",X),z.attr("x1",O).attr("x2",O).attr("y2",x),H.attr("x",0).attr("y",w(K)).style("text-anchor",E(K)).attr("transform",C(K)),Z.attr("x",0).attr("dy",d).attr("dx",S(K)),V.attr("d","M"+j[0]+","+f+"V0H"+j[1]+"V"+f);break;case"top":T=n,U.attr("y2",-m),G.attr("y",-X),z.attr("x2",0).attr("y2",-m),H.attr("x",0).attr("y",-X),B.style("text-anchor","middle"),Z.attr("x",0).attr("dy","0em"),V.attr("d","M"+j[0]+","+-f+"V0H"+j[1]+"V"+-f);break;case"left":T=r,U.attr("x2",-m),G.attr("x",-X),z.attr("x2",-m).attr("y1",P).attr("y2",P),H.attr("x",-X).attr("y",b),B.style("text-anchor","end"),Z.attr("x",-X).attr("dy",d),V.attr("d","M"+-f+","+j[0]+"H0V"+j[1]+"H"+-f);break;case"right":T=r,U.attr("x2",m),G.attr("x",X),z.attr("x2",m).attr("y2",0),H.attr("x",X).attr("y",0),B.style("text-anchor","start"),Z.attr("x",X).attr("dy",d),V.attr("d","M"+f+","+j[0]+"H0V"+j[1]+"H"+f)}if(M.rangeBand){var Q=M,$=Q.rangeBand()/2;A=M=function(e){return Q(e)+$}}else A.rangeBand?A=M:k.call(T,M);L.call(T,A),D.call(T,M)})}var f,p,d,h,g=e.scale.linear(),y="bottom",m=6,v=3,_=null,b=0,x=!0;return t=t||{},f=t.withOuterTick?6:0,l.scale=function(e){return arguments.length?(g=e,l):g},l.orient=function(e){return arguments.length?(y=e in{top:1,right:1,bottom:1,left:1}?e+"":"bottom",l):y},l.tickFormat=function(e){return arguments.length?(p=e,l):p},l.tickCentered=function(e){return arguments.length?(h=e,l):h},l.tickOffset=function(){return b},l.tickInterval=function(){var e,n;return t.isCategory?e=2*b:(n=l.g.select("path.domain").node().getTotalLength()-2*f,e=n/l.g.selectAll("line").size()),e===1/0?0:e},l.ticks=function(){return arguments.length?(d=arguments,l):d},l.tickCulling=function(e){return arguments.length?(x=e,l):x},l.tickValues=function(e){if("function"==typeof e)_=function(){return e(g.domain())};else{if(!arguments.length)return _;_=e}return l},l}var f,p,d,h={version:"0.4.11"};h.generate=function(e){return new s(e)},h.chart={fn:s.prototype,internal:{fn:u.prototype,axis:{fn:c.prototype}}},f=h.chart.fn,p=h.chart.internal.fn,d=h.chart.internal.axis.fn,p.beforeInit=function(){},p.afterInit=function(){},p.init=function(){var e=this,t=e.config;if(e.initParams(),t.data_url)e.convertUrlToData(t.data_url,t.data_mimeType,t.data_headers,t.data_keys,e.initWithData);else if(t.data_json)e.initWithData(e.convertJsonToData(t.data_json,t.data_keys));else if(t.data_rows)e.initWithData(e.convertRowsToData(t.data_rows));else{if(!t.data_columns)throw Error("url or json or rows or columns is required.");e.initWithData(e.convertColumnsToData(t.data_columns))}},p.initParams=function(){var e=this,t=e.d3,n=e.config;e.clipId="c3-"+ +new Date+"-clip",e.clipIdForXAxis=e.clipId+"-xaxis",e.clipIdForYAxis=e.clipId+"-yaxis",e.clipIdForGrid=e.clipId+"-grid",e.clipIdForSubchart=e.clipId+"-subchart",e.clipPath=e.getClipPath(e.clipId),e.clipPathForXAxis=e.getClipPath(e.clipIdForXAxis),e.clipPathForYAxis=e.getClipPath(e.clipIdForYAxis),e.clipPathForGrid=e.getClipPath(e.clipIdForGrid),e.clipPathForSubchart=e.getClipPath(e.clipIdForSubchart),e.dragStart=null,e.dragging=!1,e.flowing=!1,e.cancelClick=!1,e.mouseover=!1,e.transiting=!1,e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),e.dataTimeFormat=n.data_xLocaltime?t.time.format:t.time.format.utc,e.axisTimeFormat=n.axis_x_localtime?t.time.format:t.time.format.utc,e.defaultAxisTimeFormat=e.axisTimeFormat.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%-m/%-d",function(e){return e.getDay()&&1!==e.getDate()}],["%-m/%-d",function(e){return 1!==e.getDate()}],["%-m/%-d",function(e){return e.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),e.hiddenTargetIds=[],e.hiddenLegendIds=[],e.focusedTargetIds=[],e.defocusedTargetIds=[],e.xOrient=n.axis_rotated?"left":"bottom",e.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",e.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",e.subXOrient=n.axis_rotated?"left":"bottom",e.isLegendRight="right"===n.legend_position,e.isLegendInset="inset"===n.legend_position,e.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,e.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,e.legendStep=0,e.legendItemWidth=0,e.legendItemHeight=0,e.currentMaxTickWidths={x:0,y:0,y2:0},e.rotated_padding_left=30,e.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,e.rotated_padding_top=5,e.withoutFadeIn={},e.intervalForObserveInserted=void 0,e.axes.subx=t.selectAll([])},p.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},p.initWithData=function(e){var t,n,r=this,o=r.d3,i=r.config,a=!0;r.axis=new c(r),r.initPie&&r.initPie(),r.initBrush&&r.initBrush(),r.initZoom&&r.initZoom(),i.bindto?"function"==typeof i.bindto.node?r.selectChart=i.bindto:r.selectChart=o.select(i.bindto):r.selectChart=o.selectAll([]),r.selectChart.empty()&&(r.selectChart=o.select(document.createElement("div")).style("opacity",0),r.observeInserted(r.selectChart),a=!1),r.selectChart.html("").classed("c3",!0),r.data.xs={},r.data.targets=r.convertDataToTargets(e),i.data_filter&&(r.data.targets=r.data.targets.filter(i.data_filter)),i.data_hide&&r.addHiddenTargetIds(i.data_hide===!0?r.mapToIds(r.data.targets):i.data_hide),i.legend_hide&&r.addHiddenLegendIds(i.legend_hide===!0?r.mapToIds(r.data.targets):i.legend_hide),r.hasType("gauge")&&(i.legend_show=!1),r.updateSizes(),r.updateScales(),r.x.domain(o.extent(r.getXDomain(r.data.targets))),r.y.domain(r.getYDomain(r.data.targets,"y")),r.y2.domain(r.getYDomain(r.data.targets,"y2")),r.subX.domain(r.x.domain()),r.subY.domain(r.y.domain()),r.subY2.domain(r.y2.domain()),r.orgXDomain=r.x.domain(),r.brush&&r.brush.scale(r.subX),i.zoom_enabled&&r.zoom.scale(r.x),r.svg=r.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return i.onmouseover.call(r)}).on("mouseleave",function(){return i.onmouseout.call(r)}),r.config.svg_classname&&r.svg.attr("class",r.config.svg_classname),t=r.svg.append("defs"),r.clipChart=r.appendClip(t,r.clipId),r.clipXAxis=r.appendClip(t,r.clipIdForXAxis),r.clipYAxis=r.appendClip(t,r.clipIdForYAxis),r.clipGrid=r.appendClip(t,r.clipIdForGrid),r.clipSubchart=r.appendClip(t,r.clipIdForSubchart),r.updateSvgSize(),n=r.main=r.svg.append("g").attr("transform",r.getTranslate("main")),r.initSubchart&&r.initSubchart(),r.initTooltip&&r.initTooltip(),r.initLegend&&r.initLegend(),r.initTitle&&r.initTitle(),n.append("text").attr("class",g.text+" "+g.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),r.initRegion(),r.initGrid(),n.append("g").attr("clip-path",r.clipPath).attr("class",g.chart),i.grid_lines_front&&r.initGridLines(),r.initEventRect(),r.initChartElements(),n.insert("rect",i.zoom_privileged?null:"g."+g.regions).attr("class",g.zoomRect).attr("width",r.width).attr("height",r.height).style("opacity",0).on("dblclick.zoom",null),i.axis_x_extent&&r.brush.extent(r.getDefaultExtent()),r.axis.init(),r.updateTargets(r.data.targets),a&&(r.updateDimension(),r.config.oninit.call(r),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),r.bindResize(),r.api.element=r.selectChart.node()},p.smoothLines=function(e,t){var n=this;"grid"===t&&e.each(function(){var e=n.d3.select(this),t=e.attr("x1"),r=e.attr("x2"),o=e.attr("y1"),i=e.attr("y2");e.attr({x1:Math.ceil(t),x2:Math.ceil(r),y1:Math.ceil(o),y2:Math.ceil(i)})})},p.updateSizes=function(){var e=this,t=e.config,n=e.legend?e.getLegendHeight():0,r=e.legend?e.getLegendWidth():0,o=e.isLegendRight||e.isLegendInset?0:n,i=e.hasArcType(),a=t.axis_rotated||i?0:e.getHorizontalAxisHeight("x"),s=t.subchart_show&&!i?t.subchart_size_height+a:0;e.currentWidth=e.getCurrentWidth(),e.currentHeight=e.getCurrentHeight(),e.margin=t.axis_rotated?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:i?0:e.getCurrentPaddingRight(),bottom:e.getHorizontalAxisHeight("y")+o+e.getCurrentPaddingBottom(),left:s+(i?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:i?0:e.getCurrentPaddingRight(),bottom:a+s+o+e.getCurrentPaddingBottom(),left:i?0:e.getCurrentPaddingLeft()},e.margin2=t.axis_rotated?{top:e.margin.top,right:NaN,bottom:20+o,left:e.rotated_padding_left}:{top:e.currentHeight-s-o,right:NaN,bottom:a+o,left:e.margin.left},e.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(n,r),e.width=e.currentWidth-e.margin.left-e.margin.right,e.height=e.currentHeight-e.margin.top-e.margin.bottom,e.width<0&&(e.width=0),e.height<0&&(e.height=0),e.width2=t.axis_rotated?e.margin.left-e.rotated_padding_left-e.rotated_padding_right:e.width,e.height2=t.axis_rotated?e.height:e.currentHeight-e.margin2.top-e.margin2.bottom,e.width2<0&&(e.width2=0),e.height2<0&&(e.height2=0),e.arcWidth=e.width-(e.isLegendRight?r+10:0),e.arcHeight=e.height-(e.isLegendRight?0:10),e.hasType("gauge")&&!t.gauge_fullCircle&&(e.arcHeight+=e.height-e.getGaugeLabelHeight()),e.updateRadius&&e.updateRadius(),e.isLegendRight&&i&&(e.margin3.left=e.arcWidth/2+1.1*e.radiusExpanded)},p.updateTargets=function(e){var t=this;t.updateTargetsForText(e),t.updateTargetsForBar(e),t.updateTargetsForLine(e),t.hasArcType()&&t.updateTargetsForArc&&t.updateTargetsForArc(e),t.updateTargetsForSubchart&&t.updateTargetsForSubchart(e),t.showTargets()},p.showTargets=function(){var e=this;e.svg.selectAll("."+g.target).filter(function(t){return e.isTargetToShow(t.id)}).transition().duration(e.config.transition_duration).style("opacity",1)},p.redraw=function(e,t){var n,r,o,i,a,s,u,c,l,f,p,d,h,y,m,v,_,b,x,E,C,S,w,O,P,R,A,M,N,I=this,L=I.main,k=I.d3,D=I.config,j=I.getShapeIndices(I.isAreaType),F=I.getShapeIndices(I.isBarType),V=I.getShapeIndices(I.isLineType),U=I.hasArcType(),z=I.filterTargetsToShow(I.data.targets),G=I.xv.bind(I);if(e=e||{},n=T(e,"withY",!0),r=T(e,"withSubchart",!0),o=T(e,"withTransition",!0),s=T(e,"withTransform",!1),u=T(e,"withUpdateXDomain",!1),c=T(e,"withUpdateOrgXDomain",!1),l=T(e,"withTrimXDomain",!0),h=T(e,"withUpdateXAxis",u),f=T(e,"withLegend",!1),p=T(e,"withEventRect",!0),d=T(e,"withDimension",!0),i=T(e,"withTransitionForExit",o),a=T(e,"withTransitionForAxis",o),x=o?D.transition_duration:0,E=i?x:0,C=a?x:0,t=t||I.axis.generateTransitions(C),f&&D.legend_show?I.updateLegend(I.mapToIds(I.data.targets),e,t):d&&I.updateDimension(!0),I.isCategorized()&&0===z.length&&I.x.domain([0,I.axes.x.selectAll(".tick").size()]),z.length?(I.updateXDomain(z,u,c,l),D.axis_x_tick_values||(O=I.axis.updateXAxisTickValues(z))):(I.xAxis.tickValues([]),I.subXAxis.tickValues([])),D.zoom_rescale&&!e.flow&&(A=I.x.orgDomain()),I.y.domain(I.getYDomain(z,"y",A)),I.y2.domain(I.getYDomain(z,"y2",A)),!D.axis_y_tick_values&&D.axis_y_tick_count&&I.yAxis.tickValues(I.axis.generateTickValues(I.y.domain(),D.axis_y_tick_count)),!D.axis_y2_tick_values&&D.axis_y2_tick_count&&I.y2Axis.tickValues(I.axis.generateTickValues(I.y2.domain(),D.axis_y2_tick_count)),I.axis.redraw(t,U),I.axis.updateLabels(o),(u||h)&&z.length)if(D.axis_x_tick_culling&&O){for(P=1;P<O.length;P++)if(O.length/P<D.axis_x_tick_culling_max){R=P;break}I.svg.selectAll("."+g.axisX+" .tick text").each(function(e){var t=O.indexOf(e);t>=0&&k.select(this).style("display",t%R?"none":"block")})}else I.svg.selectAll("."+g.axisX+" .tick text").style("display","block");y=I.generateDrawArea?I.generateDrawArea(j,!1):void 0,m=I.generateDrawBar?I.generateDrawBar(F):void 0,v=I.generateDrawLine?I.generateDrawLine(V,!1):void 0,_=I.generateXYForText(j,F,V,!0),b=I.generateXYForText(j,F,V,!1),
10
- n&&(I.subY.domain(I.getYDomain(z,"y")),I.subY2.domain(I.getYDomain(z,"y2"))),I.updateXgridFocus(),L.select("text."+g.text+"."+g.empty).attr("x",I.width/2).attr("y",I.height/2).text(D.data_empty_label_text).transition().style("opacity",z.length?0:1),I.updateGrid(x),I.updateRegion(x),I.updateBar(E),I.updateLine(E),I.updateArea(E),I.updateCircle(),I.hasDataLabel()&&I.updateText(E),I.redrawTitle&&I.redrawTitle(),I.redrawArc&&I.redrawArc(x,E,s),I.redrawSubchart&&I.redrawSubchart(r,t,x,E,j,F,V),L.selectAll("."+g.selectedCircles).filter(I.isBarType.bind(I)).selectAll("circle").remove(),D.interaction_enabled&&!e.flow&&p&&(I.redrawEventRect(),I.updateZoom&&I.updateZoom()),I.updateCircleY(),M=(I.config.axis_rotated?I.circleY:I.circleX).bind(I),N=(I.config.axis_rotated?I.circleX:I.circleY).bind(I),e.flow&&(w=I.generateFlow({targets:z,flow:e.flow,duration:e.flow.duration,drawBar:m,drawLine:v,drawArea:y,cx:M,cy:N,xv:G,xForText:_,yForText:b})),(x||w)&&I.isTabVisible()?k.transition().duration(x).each(function(){var t=[];[I.redrawBar(m,!0),I.redrawLine(v,!0),I.redrawArea(y,!0),I.redrawCircle(M,N,!0),I.redrawText(_,b,e.flow,!0),I.redrawRegion(!0),I.redrawGrid(!0)].forEach(function(e){e.forEach(function(e){t.push(e)})}),S=I.generateWait(),t.forEach(function(e){S.add(e)})}).call(S,function(){w&&w(),D.onrendered&&D.onrendered.call(I)}):(I.redrawBar(m),I.redrawLine(v),I.redrawArea(y),I.redrawCircle(M,N),I.redrawText(_,b,e.flow),I.redrawRegion(),I.redrawGrid(),D.onrendered&&D.onrendered.call(I)),I.mapToIds(I.data.targets).forEach(function(e){I.withoutFadeIn[e]=!0})},p.updateAndRedraw=function(e){var t,n=this,r=n.config;e=e||{},e.withTransition=T(e,"withTransition",!0),e.withTransform=T(e,"withTransform",!1),e.withLegend=T(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=T(e,"withTransitionForTransform",e.withTransition),n.updateSizes(),e.withLegend&&r.legend_show||(t=n.axis.generateTransitions(e.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(e.withTransitionForTransform,t)),n.redraw(e,t)},p.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},p.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},p.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},p.isCustomX=function(){var e=this,t=e.config;return!e.isTimeSeries()&&(t.data_x||w(t.data_xs))},p.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},p.getTranslate=function(e){var t,n,r=this,o=r.config;return"main"===e?(t=E(r.margin.left),n=E(r.margin.top)):"context"===e?(t=E(r.margin2.left),n=E(r.margin2.top)):"legend"===e?(t=r.margin3.left,n=r.margin3.top):"x"===e?(t=0,n=o.axis_rotated?0:r.height):"y"===e?(t=0,n=o.axis_rotated?r.height:0):"y2"===e?(t=o.axis_rotated?0:r.width,n=o.axis_rotated?1:0):"subx"===e?(t=0,n=o.axis_rotated?0:r.height2):"arc"===e&&(t=r.arcWidth/2,n=r.arcHeight/2),"translate("+t+","+n+")"},p.initialOpacity=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?1:0},p.initialOpacityForCircle=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?this.opacityForCircle(e):0},p.opacityForCircle=function(e){var t=this.config.point_show?1:0;return y(e.value)?this.isScatterType(e)?.5:t:0},p.opacityForText=function(){return this.hasDataLabel()?1:0},p.xx=function(e){return e?this.x(e.x):null},p.xv=function(e){var t=this,n=e.value;return t.isTimeSeries()?n=t.parseDate(e.value):t.isCategorized()&&"string"==typeof e.value&&(n=t.config.axis_x_categories.indexOf(e.value)),Math.ceil(t.x(n))},p.yv=function(e){var t=this,n=e.axis&&"y2"===e.axis?t.y2:t.y;return Math.ceil(n(e.value))},p.subxx=function(e){return e?this.subX(e.x):null},p.transformMain=function(e,t){var n,r,o,i=this;t&&t.axisX?n=t.axisX:(n=i.main.select("."+g.axisX),e&&(n=n.transition())),t&&t.axisY?r=t.axisY:(r=i.main.select("."+g.axisY),e&&(r=r.transition())),t&&t.axisY2?o=t.axisY2:(o=i.main.select("."+g.axisY2),e&&(o=o.transition())),(e?i.main.transition():i.main).attr("transform",i.getTranslate("main")),n.attr("transform",i.getTranslate("x")),r.attr("transform",i.getTranslate("y")),o.attr("transform",i.getTranslate("y2")),i.main.select("."+g.chartArcs).attr("transform",i.getTranslate("arc"))},p.transformAll=function(e,t){var n=this;n.transformMain(e,t),n.config.subchart_show&&n.transformContext(e,t),n.legend&&n.transformLegend(e)},p.updateSvgSize=function(){var e=this,t=e.svg.select(".c3-brush .background");e.svg.attr("width",e.currentWidth).attr("height",e.currentHeight),e.svg.selectAll(["#"+e.clipId,"#"+e.clipIdForGrid]).select("rect").attr("width",e.width).attr("height",e.height),e.svg.select("#"+e.clipIdForXAxis).select("rect").attr("x",e.getXAxisClipX.bind(e)).attr("y",e.getXAxisClipY.bind(e)).attr("width",e.getXAxisClipWidth.bind(e)).attr("height",e.getXAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForYAxis).select("rect").attr("x",e.getYAxisClipX.bind(e)).attr("y",e.getYAxisClipY.bind(e)).attr("width",e.getYAxisClipWidth.bind(e)).attr("height",e.getYAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForSubchart).select("rect").attr("width",e.width).attr("height",t.size()?t.attr("height"):0),e.svg.select("."+g.zoomRect).attr("width",e.width).attr("height",e.height),e.selectChart.style("max-height",e.currentHeight+"px")},p.updateDimension=function(e){var t=this;e||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis))),t.updateSizes(),t.updateScales(),t.updateSvgSize(),t.transformAll(!1)},p.observeInserted=function(e){var t,n=this;return"undefined"==typeof MutationObserver?void o.console.error("MutationObserver not defined."):(t=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(t.disconnect(),n.intervalForObserveInserted=o.setInterval(function(){e.node().parentNode&&(o.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),e.transition().style("opacity",1))},10))})}),void t.observe(e.node(),{attributes:!0,childList:!0,characterData:!0}))},p.bindResize=function(){var e=this,t=e.config;if(e.resizeFunction=e.generateResize(),e.resizeFunction.add(function(){t.onresize.call(e)}),t.resize_auto&&e.resizeFunction.add(function(){void 0!==e.resizeTimeout&&o.clearTimeout(e.resizeTimeout),e.resizeTimeout=o.setTimeout(function(){delete e.resizeTimeout,e.api.flush()},100)}),e.resizeFunction.add(function(){t.onresized.call(e)}),o.attachEvent)o.attachEvent("onresize",e.resizeFunction);else if(o.addEventListener)o.addEventListener("resize",e.resizeFunction,!1);else{var n=o.onresize;n?n.add&&n.remove||(n=e.generateResize(),n.add(o.onresize)):n=e.generateResize(),n.add(e.resizeFunction),o.onresize=n}},p.generateResize=function(){function e(){t.forEach(function(e){e()})}var t=[];return e.add=function(e){t.push(e)},e.remove=function(e){for(var n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}},e},p.endall=function(e,t){var n=0;e.each(function(){++n}).each("end",function(){--n||t.apply(this,arguments)})},p.generateWait=function(){var e=[],t=function(t,n){var r=setInterval(function(){var t=0;e.forEach(function(e){if(e.empty())return void(t+=1);try{e.transition()}catch(e){t+=1}}),t===e.length&&(clearInterval(r),n&&n())},10)};return t.add=function(t){e.push(t)},t},p.parseDate=function(e){var t,n=this;return e instanceof Date?t=e:"string"==typeof e?t=n.dataTimeFormat(n.config.data_xFormat).parse(e):"number"!=typeof e||isNaN(e)||(t=new Date((+e))),t&&!isNaN(+t)||o.console.error("Failed to parse x '"+e+"' to Date object"),t},p.isTabVisible=function(){var e;return"undefined"!=typeof document.hidden?e="hidden":"undefined"!=typeof document.mozHidden?e="mozHidden":"undefined"!=typeof document.msHidden?e="msHidden":"undefined"!=typeof document.webkitHidden&&(e="webkitHidden"),!document[e]},p.getDefaultConfig=function(){var e={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(e){return e},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_units:void 0,gauge_width:void 0,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(e,t,n,r){return this.getTooltipContent?this.getTooltipContent(e,t,n,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(t){e[t]=this.additionalConfig[t]},this),e},p.additionalConfig={},p.loadConfig=function(e){function t(){var e=r.shift();return e&&n&&"object"==typeof n&&e in n?(n=n[e],t()):e?void 0:n}var n,r,o,i=this.config;Object.keys(i).forEach(function(a){n=e,r=a.split("_"),o=t(),b(o)&&(i[a]=o)})},p.getScale=function(e,t,n){return(n?this.d3.time.scale():this.d3.scale.linear()).range([e,t])},p.getX=function(e,t,n,r){var o,i=this,a=i.getScale(e,t,i.isTimeSeries()),s=n?a.domain(n):a;i.isCategorized()?(r=r||function(){return 0},a=function(e,t){var n=s(e)+r(e);return t?n:Math.ceil(n)}):a=function(e,t){var n=s(e);return t?n:Math.ceil(n)};for(o in s)a[o]=s[o];return a.orgDomain=function(){return s.domain()},i.isCategorized()&&(a.domain=function(e){return arguments.length?(s.domain(e),a):(e=this.orgDomain(),[e[0],e[1]+1])}),a},p.getY=function(e,t,n){var r=this.getScale(e,t,this.isTimeSeriesY());return n&&r.domain(n),r},p.getYScale=function(e){return"y2"===this.axis.getId(e)?this.y2:this.y},p.getSubYScale=function(e){return"y2"===this.axis.getId(e)?this.subY2:this.subY},p.updateScales=function(){var e=this,t=e.config,n=!e.x;e.xMin=t.axis_rotated?1:0,e.xMax=t.axis_rotated?e.height:e.width,e.yMin=t.axis_rotated?0:e.height,e.yMax=t.axis_rotated?e.width:1,e.subXMin=e.xMin,e.subXMax=e.xMax,e.subYMin=t.axis_rotated?0:e.height2,e.subYMax=t.axis_rotated?e.width2:1,e.x=e.getX(e.xMin,e.xMax,n?void 0:e.x.orgDomain(),function(){return e.xAxis.tickOffset()}),e.y=e.getY(e.yMin,e.yMax,n?t.axis_y_default:e.y.domain()),e.y2=e.getY(e.yMin,e.yMax,n?t.axis_y2_default:e.y2.domain()),e.subX=e.getX(e.xMin,e.xMax,e.orgXDomain,function(t){return t%1?0:e.subXAxis.tickOffset()}),e.subY=e.getY(e.subYMin,e.subYMax,n?t.axis_y_default:e.subY.domain()),e.subY2=e.getY(e.subYMin,e.subYMax,n?t.axis_y2_default:e.subY2.domain()),e.xAxisTickFormat=e.axis.getXAxisTickFormat(),e.xAxisTickValues=e.axis.getXAxisTickValues(),e.yAxisTickValues=e.axis.getYAxisTickValues(),e.y2AxisTickValues=e.axis.getY2AxisTickValues(),e.xAxis=e.axis.getXAxis(e.x,e.xOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.subXAxis=e.axis.getXAxis(e.subX,e.subXOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.yAxis=e.axis.getYAxis(e.y,e.yOrient,t.axis_y_tick_format,e.yAxisTickValues,t.axis_y_tick_outer),e.y2Axis=e.axis.getYAxis(e.y2,e.y2Orient,t.axis_y2_tick_format,e.y2AxisTickValues,t.axis_y2_tick_outer),n||(e.brush&&e.brush.scale(e.subX),t.zoom_enabled&&e.zoom.scale(e.x)),e.updateArc&&e.updateArc()},p.getYDomainMin=function(e){var t,n,r,o,i,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasNegativeValueInTargets(e),t=0;t<u.data_groups.length;t++)if(o=u.data_groups[t].filter(function(e){return c.indexOf(e)>=0}),0!==o.length)for(r=o[0],a&&l[r]&&l[r].forEach(function(e,t){l[r][t]=e<0?e:0}),n=1;n<o.length;n++)i=o[n],l[i]&&l[i].forEach(function(e,t){s.axis.getId(i)!==s.axis.getId(r)||!l[r]||a&&+e>0||(l[r][t]+=+e)});return s.d3.min(Object.keys(l).map(function(e){return s.d3.min(l[e])}))},p.getYDomainMax=function(e){var t,n,r,o,i,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasPositiveValueInTargets(e),t=0;t<u.data_groups.length;t++)if(o=u.data_groups[t].filter(function(e){return c.indexOf(e)>=0}),0!==o.length)for(r=o[0],a&&l[r]&&l[r].forEach(function(e,t){l[r][t]=e>0?e:0}),n=1;n<o.length;n++)i=o[n],l[i]&&l[i].forEach(function(e,t){s.axis.getId(i)!==s.axis.getId(r)||!l[r]||a&&+e<0||(l[r][t]+=+e)});return s.d3.max(Object.keys(l).map(function(e){return s.d3.max(l[e])}))},p.getYDomain=function(e,t,n){var r,o,i,a,s,u,c,l,f,p,d,h=this,g=h.config,m=e.filter(function(e){return h.axis.getId(e.id)===t}),v=n?h.filterByXDomain(m,n):m,_="y2"===t?g.axis_y2_min:g.axis_y_min,b="y2"===t?g.axis_y2_max:g.axis_y_max,x=h.getYDomainMin(v),E=h.getYDomainMax(v),S="y2"===t?g.axis_y2_center:g.axis_y_center,T=h.hasType("bar",v)&&g.bar_zerobased||h.hasType("area",v)&&g.area_zerobased,O="y2"===t?g.axis_y2_inverted:g.axis_y_inverted,P=h.hasDataLabel()&&g.axis_rotated,R=h.hasDataLabel()&&!g.axis_rotated;return x=y(_)?_:y(b)?x<b?x:b-10:x,E=y(b)?b:y(_)?_<E?E:_+10:E,0===v.length?"y2"===t?h.y2.domain():h.y.domain():(isNaN(x)&&(x=0),isNaN(E)&&(E=x),x===E&&(x<0?E=0:x=0),p=x>=0&&E>=0,d=x<=0&&E<=0,(y(_)&&p||y(b)&&d)&&(T=!1),T&&(p&&(x=0),d&&(E=0)),o=Math.abs(E-x),i=a=s=.1*o,"undefined"!=typeof S&&(u=Math.max(Math.abs(x),Math.abs(E)),E=S+u,x=S-u),P?(c=h.getDataLabelLength(x,E,"width"),l=C(h.y.range()),f=[c[0]/l,c[1]/l],a+=o*(f[1]/(1-f[0]-f[1])),s+=o*(f[0]/(1-f[0]-f[1]))):R&&(c=h.getDataLabelLength(x,E,"height"),a+=h.axis.convertPixelsToAxisPadding(c[1],o),s+=h.axis.convertPixelsToAxisPadding(c[0],o)),"y"===t&&w(g.axis_y_padding)&&(a=h.axis.getPadding(g.axis_y_padding,"top",a,o),s=h.axis.getPadding(g.axis_y_padding,"bottom",s,o)),"y2"===t&&w(g.axis_y2_padding)&&(a=h.axis.getPadding(g.axis_y2_padding,"top",a,o),s=h.axis.getPadding(g.axis_y2_padding,"bottom",s,o)),T&&(p&&(s=x),d&&(a=-E)),r=[x-s,E+a],O?r.reverse():r)},p.getXDomainMin=function(e){var t=this,n=t.config;return b(n.axis_x_min)?t.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:t.d3.min(e,function(e){return t.d3.min(e.values,function(e){return e.x})})},p.getXDomainMax=function(e){var t=this,n=t.config;return b(n.axis_x_max)?t.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:t.d3.max(e,function(e){return t.d3.max(e.values,function(e){return e.x})})},p.getXDomainPadding=function(e){var t,n,r,o,i=this,a=i.config,s=e[1]-e[0];return i.isCategorized()?n=0:i.hasType("bar")?(t=i.getMaxDataCount(),n=t>1?s/(t-1)/2:.5):n=.01*s,"object"==typeof a.axis_x_padding&&w(a.axis_x_padding)?(r=y(a.axis_x_padding.left)?a.axis_x_padding.left:n,o=y(a.axis_x_padding.right)?a.axis_x_padding.right:n):r=o="number"==typeof a.axis_x_padding?a.axis_x_padding:n,{left:r,right:o}},p.getXDomain=function(e){var t=this,n=[t.getXDomainMin(e),t.getXDomainMax(e)],r=n[0],o=n[1],i=t.getXDomainPadding(n),a=0,s=0;return r-o!==0||t.isCategorized()||(t.isTimeSeries()?(r=new Date(.5*r.getTime()),o=new Date(1.5*o.getTime())):(r=0===r?1:.5*r,o=0===o?-1:1.5*o)),(r||0===r)&&(a=t.isTimeSeries()?new Date(r.getTime()-i.left):r-i.left),(o||0===o)&&(s=t.isTimeSeries()?new Date(o.getTime()+i.right):o+i.right),[a,s]},p.updateXDomain=function(e,t,n,r,o){var i=this,a=i.config;return n&&(i.x.domain(o?o:i.d3.extent(i.getXDomain(e))),i.orgXDomain=i.x.domain(),a.zoom_enabled&&i.zoom.scale(i.x).updateScaleExtent(),i.subX.domain(i.x.domain()),i.brush&&i.brush.scale(i.subX)),t&&(i.x.domain(o?o:!i.brush||i.brush.empty()?i.orgXDomain:i.brush.extent()),a.zoom_enabled&&i.zoom.scale(i.x).updateScaleExtent()),r&&i.x.domain(i.trimXDomain(i.x.orgDomain())),i.x.domain()},p.trimXDomain=function(e){var t=this.getZoomDomain(),n=t[0],r=t[1];return e[0]<=n&&(e[1]=+e[1]+(n-e[0]),e[0]=n),r<=e[1]&&(e[0]=+e[0]-(e[1]-r),e[1]=r),e},p.isX=function(e){var t=this,n=t.config;return n.data_x&&e===n.data_x||w(n.data_xs)&&O(n.data_xs,e)},p.isNotX=function(e){return!this.isX(e)},p.getXKey=function(e){var t=this,n=t.config;return n.data_x?n.data_x:w(n.data_xs)?n.data_xs[e]:null},p.getXValuesOfXKey=function(e,t){var n,r=this,o=t&&w(t)?r.mapToIds(t):[];return o.forEach(function(t){r.getXKey(t)===e&&(n=r.data.xs[t])}),n},p.getIndexByX=function(e){var t=this,n=t.filterByX(t.data.targets,e);return n.length?n[0].index:null},p.getXValue=function(e,t){var n=this;return e in n.data.xs&&n.data.xs[e]&&y(n.data.xs[e][t])?n.data.xs[e][t]:t},p.getOtherTargetXs=function(){var e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},p.getOtherTargetX=function(e){var t=this.getOtherTargetXs();return t&&e<t.length?t[e]:null},p.addXs=function(e){var t=this;Object.keys(e).forEach(function(n){t.config.data_xs[n]=e[n]})},p.hasMultipleX=function(e){return this.d3.set(Object.keys(e).map(function(t){return e[t]})).size()>1},p.isMultipleX=function(){return w(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},p.addName=function(e){var t,n=this;return e&&(t=n.config.data_names[e.id],e.name=void 0!==t?t:e.id),e},p.getValueOnIndex=function(e,t){var n=e.filter(function(e){return e.index===t});return n.length?n[0]:null},p.updateTargetX=function(e,t){var n=this;e.forEach(function(e){e.values.forEach(function(r,o){r.x=n.generateTargetX(t[o],e.id,o)}),n.data.xs[e.id]=t})},p.updateTargetXs=function(e,t){var n=this;e.forEach(function(e){t[e.id]&&n.updateTargetX([e],t[e.id])})},p.generateTargetX=function(e,t,n){var r,o=this;return r=o.isTimeSeries()?e?o.parseDate(e):o.parseDate(o.getXValue(t,n)):o.isCustomX()&&!o.isCategorized()?y(e)?+e:o.getXValue(t,n):n},p.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map(function(e){return{x:e.x,value:e.value,id:e.id}})}},p.updateXs=function(){var e=this;e.data.targets.length&&(e.xs=[],e.data.targets[0].values.forEach(function(t){e.xs[t.index]=t.x}))},p.getPrevX=function(e){var t=this.xs[e-1];return"undefined"!=typeof t?t:null},p.getNextX=function(e){var t=this.xs[e+1];return"undefined"!=typeof t?t:null},p.getMaxDataCount=function(){var e=this;return e.d3.max(e.data.targets,function(e){return e.values.length})},p.getMaxDataCountTarget=function(e){var t,n=e.length,r=0;return n>1?e.forEach(function(e){e.values.length>r&&(t=e,r=e.values.length)}):t=n?e[0]:null,t},p.getEdgeX=function(e){var t=this;return e.length?[t.d3.min(e,function(e){return e.values[0].x}),t.d3.max(e,function(e){return e.values[e.values.length-1].x})]:[0,0]},p.mapToIds=function(e){return e.map(function(e){return e.id})},p.mapToTargetIds=function(e){var t=this;return e?[].concat(e):t.mapToIds(t.data.targets)},p.hasTarget=function(e,t){var n,r=this.mapToIds(e);for(n=0;n<r.length;n++)if(r[n]===t)return!0;return!1},p.isTargetToShow=function(e){return this.hiddenTargetIds.indexOf(e)<0},p.isLegendToShow=function(e){return this.hiddenLegendIds.indexOf(e)<0},p.filterTargetsToShow=function(e){var t=this;return e.filter(function(e){return t.isTargetToShow(e.id)})},p.mapTargetsToUniqueXs=function(e){var t=this,n=t.d3.set(t.d3.merge(e.map(function(e){return e.values.map(function(e){return+e.x})}))).values();return n=t.isTimeSeries()?n.map(function(e){return new Date((+e))}):n.map(function(e){return+e}),n.sort(function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN})},p.addHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.concat(e)},p.removeHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(t){return e.indexOf(t)<0})},p.addHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.concat(e)},p.removeHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(t){return e.indexOf(t)<0})},p.getValuesAsIdKeyed=function(e){var t={};return e.forEach(function(e){t[e.id]=[],e.values.forEach(function(n){t[e.id].push(n.value)})}),t},p.checkValueInTargets=function(e,t){var n,r,o,i=Object.keys(e);for(n=0;n<i.length;n++)for(o=e[i[n]].values,r=0;r<o.length;r++)if(t(o[r].value))return!0;return!1},p.hasNegativeValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e<0})},p.hasPositiveValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e>0})},p.isOrderDesc=function(){var e=this.config;return"string"==typeof e.data_order&&"desc"===e.data_order.toLowerCase()},p.isOrderAsc=function(){var e=this.config;return"string"==typeof e.data_order&&"asc"===e.data_order.toLowerCase()},p.orderTargets=function(e){var t=this,n=t.config,r=t.isOrderAsc(),o=t.isOrderDesc();return r||o?e.sort(function(e,t){var n=function(e,t){return e+Math.abs(t.value)},o=e.values.reduce(n,0),i=t.values.reduce(n,0);return r?i-o:o-i}):m(n.data_order)&&e.sort(n.data_order),e},p.filterByX=function(e,t){return this.d3.merge(e.map(function(e){return e.values})).filter(function(e){return e.x-t===0})},p.filterRemoveNull=function(e){return e.filter(function(e){return y(e.value)})},p.filterByXDomain=function(e,t){return e.map(function(e){return{id:e.id,id_org:e.id_org,values:e.values.filter(function(e){return t[0]<=e.x&&e.x<=t[1]})}})},p.hasDataLabel=function(){var e=this.config;return!("boolean"!=typeof e.data_labels||!e.data_labels)||!("object"!=typeof e.data_labels||!w(e.data_labels))},p.getDataLabelLength=function(e,t,n){var r=this,o=[0,0],i=1.3;return r.selectChart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(function(e){return r.dataLabelFormat(e.id)(e)}).each(function(e,t){o[t]=this.getBoundingClientRect()[n]*i}).remove(),o},p.isNoneArc=function(e){return this.hasTarget(this.data.targets,e.id)},p.isArc=function(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},p.findSameXOfValues=function(e,t){var n,r=e[t].x,o=[];for(n=t-1;n>=0&&r===e[n].x;n--)o.push(e[n]);for(n=t;n<e.length&&r===e[n].x;n++)o.push(e[n]);return o},p.findClosestFromTargets=function(e,t){var n,r=this;return n=e.map(function(e){return r.findClosest(e.values,t)}),r.findClosest(n,t)},p.findClosest=function(e,t){var n,r=this,o=r.config.point_sensitivity;return e.filter(function(e){return e&&r.isBarType(e.id)}).forEach(function(e){var t=r.main.select("."+g.bars+r.getTargetSelectorSuffix(e.id)+" ."+g.bar+"-"+e.index).node();!n&&r.isWithinBar(t)&&(n=e)}),e.filter(function(e){return e&&!r.isBarType(e.id)}).forEach(function(e){var i=r.dist(e,t);i<o&&(o=i,n=e)}),n},p.dist=function(e,t){var n=this,r=n.config,o=r.axis_rotated?1:0,i=r.axis_rotated?0:1,a=n.circleY(e,e.index),s=n.x(e.x);return Math.sqrt(Math.pow(s-t[o],2)+Math.pow(a-t[i],2))},p.convertValuesToStep=function(e){var t,n=[].concat(e);if(!this.isCategorized())return e;for(t=e.length+1;0<t;t--)n[t]=n[t-1];return n[0]={x:n[0].x-1,value:n[0].value,id:n[0].id},n[e.length+1]={x:n[e.length].x+1,value:n[e.length].value,id:n[e.length].id},n},p.updateDataAttributes=function(e,t){var n=this,r=n.config,o=r["data_"+e];return"undefined"==typeof t?o:(Object.keys(t).forEach(function(e){o[e]=t[e]}),n.redraw({withLegend:!0}),o)},p.convertUrlToData=function(e,t,n,r,o){var i=this,a=t?t:"csv",s=i.d3.xhr(e);n&&Object.keys(n).forEach(function(e){s.header(e,n[e])}),s.get(function(e,t){var n;if(!t)throw new Error(e.responseURL+" "+e.status+" ("+e.statusText+")");n="json"===a?i.convertJsonToData(JSON.parse(t.response),r):"tsv"===a?i.convertTsvToData(t.response):i.convertCsvToData(t.response),o.call(i,n)})},p.convertXsvToData=function(e,t){var n,r=t.parseRows(e);return 1===r.length?(n=[{}],r[0].forEach(function(e){n[0][e]=null})):n=t.parse(e),n},p.convertCsvToData=function(e){return this.convertXsvToData(e,this.d3.csv)},p.convertTsvToData=function(e){return this.convertXsvToData(e,this.d3.tsv)},p.convertJsonToData=function(e,t){var n,r,o=this,i=[];return t?(t.x?(n=t.value.concat(t.x),o.config.data_x=t.x):n=t.value,i.push(n),e.forEach(function(e){var t=[];n.forEach(function(n){var r=o.findValueInJson(e,n);_(r)&&(r=null),t.push(r)}),i.push(t)}),r=o.convertRowsToData(i)):(Object.keys(e).forEach(function(t){i.push([t].concat(e[t]))}),r=o.convertColumnsToData(i)),r},p.findValueInJson=function(e,t){t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var n=t.split("."),r=0;r<n.length;++r){var o=n[r];if(!(o in e))return;e=e[o]}return e},p.convertRowsToData=function(e){var t,n,r=e[0],o={},i=[];for(t=1;t<e.length;t++){for(o={},n=0;n<e[t].length;n++){if(_(e[t][n]))throw new Error("Source data is missing a component at ("+t+","+n+")!");o[r[n]]=e[t][n]}i.push(o)}return i},p.convertColumnsToData=function(e){var t,n,r,o=[];for(t=0;t<e.length;t++)for(r=e[t][0],n=1;n<e[t].length;n++){if(_(o[n-1])&&(o[n-1]={}),_(e[t][n]))throw new Error("Source data is missing a component at ("+t+","+n+")!");o[n-1][r]=e[t][n]}return o},p.convertDataToTargets=function(e,t){var n,r=this,o=r.config,i=r.d3.keys(e[0]).filter(r.isNotX,r),a=r.d3.keys(e[0]).filter(r.isX,r);return i.forEach(function(n){var i=r.getXKey(n);r.isCustomX()||r.isTimeSeries()?a.indexOf(i)>=0?r.data.xs[n]=(t&&r.data.xs[n]?r.data.xs[n]:[]).concat(e.map(function(e){return e[i]}).filter(y).map(function(e,t){return r.generateTargetX(e,n,t)})):o.data_x?r.data.xs[n]=r.getOtherTargetXs():w(o.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(i,r.data.targets)):r.data.xs[n]=e.map(function(e,t){return t})}),i.forEach(function(e){if(!r.data.xs[e])throw new Error('x is not defined for id = "'+e+'".')}),n=i.map(function(t,n){var i=o.data_idConverter(t);return{id:i,id_org:t,values:e.map(function(e,a){var s,u=r.getXKey(t),c=e[u],l=null===e[t]||isNaN(e[t])?null:+e[t];return r.isCustomX()&&r.isCategorized()&&0===n&&!_(c)?(0===n&&0===a&&(o.axis_x_categories=[]),s=o.axis_x_categories.indexOf(c),s===-1&&(s=o.axis_x_categories.length,o.axis_x_categories.push(c))):s=r.generateTargetX(c,t,a),(_(e[t])||r.data.xs[t].length<=a)&&(s=void 0),{x:s,value:l,id:i}}).filter(function(e){return b(e.x)})}}),n.forEach(function(e){var t;o.data_xSort&&(e.values=e.values.sort(function(e,t){var n=e.x||0===e.x?e.x:1/0,r=t.x||0===t.x?t.x:1/0;return n-r})),t=0,e.values.forEach(function(e){e.index=t++}),r.data.xs[e.id].sort(function(e,t){return e-t})}),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),o.data_type&&r.setTargetType(r.mapToIds(n).filter(function(e){return!(e in o.data_types)}),o.data_type),n.forEach(function(e){r.addCache(e.id_org,e)}),n},p.load=function(e,t){var n=this;e&&(t.filter&&(e=e.filter(t.filter)),(t.type||t.types)&&e.forEach(function(e){var r=t.types&&t.types[e.id]?t.types[e.id]:t.type;n.setTargetType(e.id,r)}),n.data.targets.forEach(function(t){for(var n=0;n<e.length;n++)if(t.id===e[n].id){t.values=e[n].values,e.splice(n,1);break}}),n.data.targets=n.data.targets.concat(e)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()},p.loadFromArgs=function(e){var t=this;e.data?t.load(t.convertDataToTargets(e.data),e):e.url?t.convertUrlToData(e.url,e.mimeType,e.headers,e.keys,function(n){t.load(t.convertDataToTargets(n),e)}):e.json?t.load(t.convertDataToTargets(t.convertJsonToData(e.json,e.keys)),e):e.rows?t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)),e):e.columns?t.load(t.convertDataToTargets(t.convertColumnsToData(e.columns)),e):t.load(null,e)},p.unload=function(e,t){var n=this;return t||(t=function(){}),e=e.filter(function(e){return n.hasTarget(n.data.targets,e)}),e&&0!==e.length?(n.svg.selectAll(e.map(function(e){return n.selectorTarget(e)})).transition().style("opacity",0).remove().call(n.endall,t),void e.forEach(function(e){n.withoutFadeIn[e]=!1,n.legend&&n.legend.selectAll("."+g.legendItem+n.getTargetSelectorSuffix(e)).remove(),n.data.targets=n.data.targets.filter(function(t){return t.id!==e})})):void t()},p.categoryName=function(e){var t=this.config;return e<t.axis_x_categories.length?t.axis_x_categories[e]:e},p.initEventRect=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.eventRects).style("fill-opacity",0)},p.redrawEventRect=function(){var e,t,n=this,r=n.config,o=n.isMultipleX(),i=n.main.select("."+g.eventRects).style("cursor",r.zoom_enabled?r.axis_rotated?"ns-resize":"ew-resize":null).classed(g.eventRectsMultiple,o).classed(g.eventRectsSingle,!o);i.selectAll("."+g.eventRect).remove(),n.eventRect=i.selectAll("."+g.eventRect),o?(e=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(e.enter()),n.updateEventRect(e)):(t=n.getMaxDataCountTarget(n.data.targets),i.datum(t?t.values:[]),n.eventRect=i.selectAll("."+g.eventRect),e=n.eventRect.data(function(e){return e}),n.generateEventRectsForSingleX(e.enter()),n.updateEventRect(e),e.exit().remove())},p.updateEventRect=function(e){
11
- var t,n,r,o,i,a,s=this,u=s.config;e=e||s.eventRect.data(function(e){return e}),s.isMultipleX()?(t=0,n=0,r=s.width,o=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(i=s.getEventRectWidth(),a=function(e){return s.x(e.x)-i/2}):(s.updateXs(),i=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index);return null===t&&null===n?u.axis_rotated?s.height:s.width:(null===t&&(t=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(t))/2))},a=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index),r=s.data.xs[e.id][e.index];return null===t&&null===n?0:(null===t&&(t=s.x.domain()[0]),(s.x(r)+s.x(t))/2)}),t=u.axis_rotated?0:a,n=u.axis_rotated?a:0,r=u.axis_rotated?s.width:i,o=u.axis_rotated?i:s.height),e.attr("class",s.classEvent.bind(s)).attr("x",t).attr("y",n).attr("width",r).attr("height",o)},p.generateEventRectsForSingleX=function(e){var t=this,n=t.d3,r=t.config;e.append("rect").attr("class",t.classEvent.bind(t)).style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("mouseover",function(e){var n=e.index;t.dragging||t.flowing||t.hasArcType()||(r.point_focus_expand_enabled&&t.expandCircles(n,null,!0),t.expandBars(n,null,!0),t.main.selectAll("."+g.shape+"-"+n).each(function(e){r.data_onmouseover.call(t.api,e)}))}).on("mouseout",function(e){var n=e.index;t.config&&(t.hasArcType()||(t.hideXGridFocus(),t.hideTooltip(),t.unexpandCircles(),t.unexpandBars(),t.main.selectAll("."+g.shape+"-"+n).each(function(e){r.data_onmouseout.call(t.api,e)})))}).on("mousemove",function(e){var o,i=e.index,a=t.svg.select("."+g.eventRect+"-"+i);t.dragging||t.flowing||t.hasArcType()||(t.isStepType(e)&&"step-after"===t.config.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,i))&&(i-=1),o=t.filterTargetsToShow(t.data.targets).map(function(e){return t.addName(t.getValueOnIndex(e.values,i))}),r.tooltip_grouped&&(t.showTooltip(o,this),t.showXGridFocus(o)),(!r.tooltip_grouped||r.data_selection_enabled&&!r.data_selection_grouped)&&t.main.selectAll("."+g.shape+"-"+i).each(function(){n.select(this).classed(g.EXPANDED,!0),r.data_selection_enabled&&a.style("cursor",r.data_selection_grouped?"pointer":null),r.tooltip_grouped||(t.hideXGridFocus(),t.hideTooltip(),r.data_selection_grouped||(t.unexpandCircles(i),t.unexpandBars(i)))}).filter(function(e){return t.isWithinShape(this,e)}).each(function(e){r.data_selection_enabled&&(r.data_selection_grouped||r.data_selection_isselectable(e))&&a.style("cursor","pointer"),r.tooltip_grouped||(t.showTooltip([e],this),t.showXGridFocus([e]),r.point_focus_expand_enabled&&t.expandCircles(i,e.id,!0),t.expandBars(i,e.id,!0))}))}).on("click",function(e){var o=e.index;if(!t.hasArcType()&&t.toggleShape){if(t.cancelClick)return void(t.cancelClick=!1);t.isStepType(e)&&"step-after"===r.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,o))&&(o-=1),t.main.selectAll("."+g.shape+"-"+o).each(function(e){(r.data_selection_grouped||t.isWithinShape(this,e))&&(t.toggleShape(this,e,o),t.config.data_onclick.call(t.api,e,this))})}}).call(r.data_selection_draggable&&t.drag?n.behavior.drag().origin(Object).on("drag",function(){t.drag(n.mouse(this))}).on("dragstart",function(){t.dragstart(n.mouse(this))}).on("dragend",function(){t.dragend()}):function(){})},p.generateEventRectsForMultipleXs=function(e){function t(){n.svg.select("."+g.eventRect).style("cursor",null),n.hideXGridFocus(),n.hideTooltip(),n.unexpandCircles(),n.unexpandBars()}var n=this,r=n.d3,o=n.config;e.append("rect").attr("x",0).attr("y",0).attr("width",n.width).attr("height",n.height).attr("class",g.eventRect).on("mouseout",function(){n.config&&(n.hasArcType()||t())}).on("mousemove",function(){var e,i,a,s,u=n.filterTargetsToShow(n.data.targets);if(!n.dragging&&!n.hasArcType(u)){if(e=r.mouse(this),i=n.findClosestFromTargets(u,e),!n.mouseover||i&&i.id===n.mouseover.id||(o.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),!i)return void t();a=n.isScatterType(i)||!o.tooltip_grouped?[i]:n.filterByX(u,i.x),s=a.map(function(e){return n.addName(e)}),n.showTooltip(s,this),o.point_focus_expand_enabled&&n.expandCircles(i.index,i.id,!0),n.expandBars(i.index,i.id,!0),n.showXGridFocus(s),(n.isBarType(i.id)||n.dist(i,e)<o.point_sensitivity)&&(n.svg.select("."+g.eventRect).style("cursor","pointer"),n.mouseover||(o.data_onmouseover.call(n.api,i),n.mouseover=i))}}).on("click",function(){var e,t,i=n.filterTargetsToShow(n.data.targets);n.hasArcType(i)||(e=r.mouse(this),t=n.findClosestFromTargets(i,e),t&&(n.isBarType(t.id)||n.dist(t,e)<o.point_sensitivity)&&n.main.selectAll("."+g.shapes+n.getTargetSelectorSuffix(t.id)).selectAll("."+g.shape+"-"+t.index).each(function(){(o.data_selection_grouped||n.isWithinShape(this,t))&&(n.toggleShape(this,t,t.index),n.config.data_onclick.call(n.api,t,this))}))}).call(o.data_selection_draggable&&n.drag?r.behavior.drag().origin(Object).on("drag",function(){n.drag(r.mouse(this))}).on("dragstart",function(){n.dragstart(r.mouse(this))}).on("dragend",function(){n.dragend()}):function(){})},p.dispatchEvent=function(e,t,n){var r=this,i="."+g.eventRect+(r.isMultipleX()?"":"-"+t),a=r.main.select(i).node(),s=a.getBoundingClientRect(),u=s.left+(n?n[0]:0),c=s.top+(n?n[1]:0),l=document.createEvent("MouseEvents");l.initMouseEvent(e,!0,!0,o,0,u,c,u,c,!1,!1,!1,!1,0,null),a.dispatchEvent(l)},p.getCurrentWidth=function(){var e=this,t=e.config;return t.size_width?t.size_width:e.getParentWidth()},p.getCurrentHeight=function(){var e=this,t=e.config,n=t.size_height?t.size_height:e.getParentHeight();return n>0?n:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},p.getCurrentPaddingTop=function(){var e=this,t=e.config,n=y(t.padding_top)?t.padding_top:0;return e.title&&e.title.node()&&(n+=e.getTitlePadding()),n},p.getCurrentPaddingBottom=function(){var e=this.config;return y(e.padding_bottom)?e.padding_bottom:0},p.getCurrentPaddingLeft=function(e){var t=this,n=t.config;return y(n.padding_left)?n.padding_left:n.axis_rotated?n.axis_x_show?Math.max(x(t.getAxisWidthByAxisId("x",e)),40):1:!n.axis_y_show||n.axis_y_inner?t.axis.getYAxisLabelPosition().isOuter?30:1:x(t.getAxisWidthByAxisId("y",e))},p.getCurrentPaddingRight=function(){var e=this,t=e.config,n=10,r=e.isLegendRight?e.getLegendWidth()+20:0;return y(t.padding_right)?t.padding_right+1:t.axis_rotated?n+r:!t.axis_y2_show||t.axis_y2_inner?2+r+(e.axis.getY2AxisLabelPosition().isOuter?20:0):x(e.getAxisWidthByAxisId("y2"))+r},p.getParentRectValue=function(e){for(var t,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{t=n.getBoundingClientRect()[e]}catch(r){"width"===e&&(t=n.offsetWidth)}if(t)break;n=n.parentNode}return t},p.getParentWidth=function(){return this.getParentRectValue("width")},p.getParentHeight=function(){var e=this.selectChart.style("height");return e.indexOf("px")>0?+e.replace("px",""):0},p.getSvgLeft=function(e){var t=this,n=t.config,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,o=n.axis_rotated?g.axisX:g.axisY,i=t.main.select("."+o).node(),a=i&&r?i.getBoundingClientRect():{right:0},s=t.selectChart.node().getBoundingClientRect(),u=t.hasArcType(),c=a.right-s.left-(u?0:t.getCurrentPaddingLeft(e));return c>0?c:0},p.getAxisWidthByAxisId=function(e,t){var n=this,r=n.axis.getLabelPositionById(e);return n.axis.getMaxTickWidth(e,t)+(r.isInner?20:40)},p.getHorizontalAxisHeight=function(e){var t=this,n=t.config,r=30;return"x"!==e||n.axis_x_show?"x"===e&&n.axis_x_height?n.axis_x_height:"y"!==e||n.axis_y_show?"y2"!==e||n.axis_y2_show?("x"===e&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===e&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(t.axis.getLabelPositionById(e).isInner?0:10)+("y2"===e?-10:0)):t.rotated_padding_top:!n.legend_show||t.isLegendRight||t.isLegendInset?1:10:8},p.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},p.getShapeIndices=function(e){var t,n,r=this,o=r.config,i={},a=0;return r.filterTargetsToShow(r.data.targets.filter(e,r)).forEach(function(e){for(t=0;t<o.data_groups.length;t++)if(!(o.data_groups[t].indexOf(e.id)<0))for(n=0;n<o.data_groups[t].length;n++)if(o.data_groups[t][n]in i){i[e.id]=i[o.data_groups[t][n]];break}_(i[e.id])&&(i[e.id]=a++)}),i.__max__=a-1,i},p.getShapeX=function(e,t,n,r){var o=this,i=r?o.subX:o.x;return function(r){var o=r.id in n?n[r.id]:0;return r.x||0===r.x?i(r.x)-e*(t/2-o):0}},p.getShapeY=function(e){var t=this;return function(n){var r=e?t.getSubYScale(n.id):t.getYScale(n.id);return r(n.value)}},p.getShapeOffset=function(e,t,n){var r=this,o=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(e,r))),i=o.map(function(e){return e.id});return function(e,a){var s=n?r.getSubYScale(e.id):r.getYScale(e.id),u=s(0),c=u;return o.forEach(function(n){var o=r.isStepType(e)?r.convertValuesToStep(n.values):n.values;n.id!==e.id&&t[n.id]===t[e.id]&&i.indexOf(n.id)<i.indexOf(e.id)&&("undefined"!=typeof o[a]&&+o[a].x===+e.x||(a=-1,o.forEach(function(t,n){t.x===e.x&&(a=n)})),a in o&&o[a].value*e.value>=0&&(c+=s(o[a].value)-u))}),c}},p.isWithinShape=function(e,t){var n,r=this,o=r.d3.select(e);return r.isTargetToShow(t.id)?"circle"===e.nodeName?n=r.isStepType(t)?r.isWithinStep(e,r.getYScale(t.id)(t.value)):r.isWithinCircle(e,1.5*r.pointSelectR(t)):"path"===e.nodeName&&(n=!o.classed(g.bar)||r.isWithinBar(e)):n=!1,n},p.getInterpolate=function(e){var t=this,n=t.isInterpolationType(t.config.spline_interpolation_type)?t.config.spline_interpolation_type:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?t.config.line_step_type:"linear"},p.initLine=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartLines)},p.updateTargetsForLine=function(e){var t,n,r=this,o=r.config,i=r.classChartLine.bind(r),a=r.classLines.bind(r),s=r.classAreas.bind(r),u=r.classCircles.bind(r),c=r.classFocus.bind(r);t=r.main.select("."+g.chartLines).selectAll("."+g.chartLine).data(e).attr("class",function(e){return i(e)+c(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a),n.append("g").attr("class",s),n.append("g").attr("class",function(e){return r.generateClass(g.selectedCircles,e.id)}),n.append("g").attr("class",u).style("cursor",function(e){return o.data_selection_isselectable(e)?"pointer":null}),e.forEach(function(e){r.main.selectAll("."+g.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+g.selectedCircle).each(function(t){t.value=e.values[t.index].value})})},p.updateLine=function(e){var t=this;t.mainLine=t.main.selectAll("."+g.lines).selectAll("."+g.line).data(t.lineData.bind(t)),t.mainLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.mainLine.style("opacity",t.initialOpacity.bind(t)).style("shape-rendering",function(e){return t.isStepType(e)?"crispEdges":""}).attr("transform",null),t.mainLine.exit().transition().duration(e).style("opacity",0).remove()},p.redrawLine=function(e,t){return[(t?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",e).style("stroke",this.color).style("opacity",1)]},p.generateDrawLine=function(e,t){var n=this,r=n.config,o=n.d3.svg.line(),i=n.generateGetLinePoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?i(e,t)[0][1]:a.call(n,e.id)(e.value)};return o=r.axis_rotated?o.x(u).y(s):o.x(s).y(u),r.line_connectNull||(o=o.defined(function(e){return null!=e.value})),function(e){var i,s=r.line_connectNull?n.filterRemoveNull(e.values):e.values,u=t?n.x:n.subX,c=a.call(n,e.id),l=0,f=0;return n.isLineType(e)?r.data_regions[e.id]?i=n.lineWithRegions(s,u,c,r.data_regions[e.id]):(n.isStepType(e)&&(s=n.convertValuesToStep(s)),i=o.interpolate(n.getInterpolate(e))(s)):(s[0]&&(l=u(s[0].x),f=c(s[0].value)),i=r.axis_rotated?"M "+f+" "+l:"M "+l+" "+f),i?i:"M 0 0"}},p.generateGetLinePoints=function(e,t){var n=this,r=n.config,o=e.__max__+1,i=n.getShapeX(0,o,e,!!t),a=n.getShapeY(!!t),s=n.getShapeOffset(n.isLineType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var o=u.call(n,e.id)(0),c=s(e,t)||o,l=i(e),f=a(e);return r.axis_rotated&&(0<e.value&&f<o||e.value<0&&o<f)&&(f=o),[[l,f-(o-c)],[l,f-(o-c)],[l,f-(o-c)],[l,f-(o-c)]]}},p.lineWithRegions=function(e,t,n,r){function o(e,t){var n;for(n=0;n<t.length;n++)if(t[n].start<e&&e<=t[n].end)return!0;return!1}function i(e){return"M"+e[0][0]+" "+e[0][1]+" "+e[1][0]+" "+e[1][1]}var a,s,u,c,l,f,p,d,h,g,y,m,v=this,x=v.config,E=-1,C="M",S=v.isCategorized()?.5:0,w=[];if(b(r))for(a=0;a<r.length;a++)w[a]={},_(r[a].start)?w[a].start=e[0].x:w[a].start=v.isTimeSeries()?v.parseDate(r[a].start):r[a].start,_(r[a].end)?w[a].end=e[e.length-1].x:w[a].end=v.isTimeSeries()?v.parseDate(r[a].end):r[a].end;for(y=x.axis_rotated?function(e){return n(e.value)}:function(e){return t(e.x)},m=x.axis_rotated?function(e){return t(e.x)}:function(e){return n(e.value)},u=v.isTimeSeries()?function(e,r,o,a){var s,u=e.x.getTime(),c=r.x-e.x,f=new Date(u+c*o),p=new Date(u+c*(o+a));return s=x.axis_rotated?[[n(l(o)),t(f)],[n(l(o+a)),t(p)]]:[[t(f),n(l(o))],[t(p),n(l(o+a))]],i(s)}:function(e,r,o,a){var s;return s=x.axis_rotated?[[n(l(o),!0),t(c(o))],[n(l(o+a),!0),t(c(o+a))]]:[[t(c(o),!0),n(l(o))],[t(c(o+a),!0),n(l(o+a))]],i(s)},a=0;a<e.length;a++){if(_(w)||!o(e[a].x,w))C+=" "+y(e[a])+" "+m(e[a]);else for(c=v.getScale(e[a-1].x+S,e[a].x+S,v.isTimeSeries()),l=v.getScale(e[a-1].value,e[a].value),f=t(e[a].x)-t(e[a-1].x),p=n(e[a].value)-n(e[a-1].value),d=Math.sqrt(Math.pow(f,2)+Math.pow(p,2)),h=2/d,g=2*h,s=h;s<=1;s+=g)C+=u(e[a-1],e[a],s,h);E=e[a].x}return C},p.updateArea=function(e){var t=this,n=t.d3;t.mainArea=t.main.selectAll("."+g.areas).selectAll("."+g.area).data(t.lineData.bind(t)),t.mainArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.mainArea.style("opacity",t.orgAreaOpacity),t.mainArea.exit().transition().duration(e).style("opacity",0).remove()},p.redrawArea=function(e,t){return[(t?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},p.generateDrawArea=function(e,t){var n=this,r=n.config,o=n.d3.svg.area(),i=n.generateGetAreaPoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?i(e,t)[0][1]:a.call(n,e.id)(n.getAreaBaseValue(e.id))},c=function(e,t){return r.data_groups.length>0?i(e,t)[1][1]:a.call(n,e.id)(e.value)};return o=r.axis_rotated?o.x0(u).x1(c).y(s):o.x(s).y0(r.area_above?0:u).y1(c),r.line_connectNull||(o=o.defined(function(e){return null!==e.value})),function(e){var t,i=r.line_connectNull?n.filterRemoveNull(e.values):e.values,a=0,s=0;return n.isAreaType(e)?(n.isStepType(e)&&(i=n.convertValuesToStep(i)),t=o.interpolate(n.getInterpolate(e))(i)):(i[0]&&(a=n.x(i[0].x),s=n.getYScale(e.id)(i[0].value)),t=r.axis_rotated?"M "+s+" "+a:"M "+a+" "+s),t?t:"M 0 0"}},p.getAreaBaseValue=function(){return 0},p.generateGetAreaPoints=function(e,t){var n=this,r=n.config,o=e.__max__+1,i=n.getShapeX(0,o,e,!!t),a=n.getShapeY(!!t),s=n.getShapeOffset(n.isAreaType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var o=u.call(n,e.id)(0),c=s(e,t)||o,l=i(e),f=a(e);return r.axis_rotated&&(0<e.value&&f<o||e.value<0&&o<f)&&(f=o),[[l,c],[l,f-(o-c)],[l,f-(o-c)],[l,c]]}},p.updateCircle=function(){var e=this;e.mainCircle=e.main.selectAll("."+g.circles).selectAll("."+g.circle).data(e.lineOrScatterData.bind(e)),e.mainCircle.enter().append("circle").attr("class",e.classCircle.bind(e)).attr("r",e.pointR.bind(e)).style("fill",e.color),e.mainCircle.style("opacity",e.initialOpacityForCircle.bind(e)),e.mainCircle.exit().remove()},p.redrawCircle=function(e,t,n){var r=this.main.selectAll("."+g.selectedCircle);return[(n?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",e).attr("cy",t),(n?r.transition(Math.random().toString()):r).attr("cx",e).attr("cy",t)]},p.circleX=function(e){return e.x||0===e.x?this.x(e.x):null},p.updateCircleY=function(){var e,t,n=this;n.config.data_groups.length>0?(e=n.getShapeIndices(n.isLineType),t=n.generateGetLinePoints(e),n.circleY=function(e,n){return t(e,n)[0][1]}):n.circleY=function(e){return n.getYScale(e.id)(e.value)}},p.getCircles=function(e,t){var n=this;return(t?n.main.selectAll("."+g.circles+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+g.circle+(y(e)?"-"+e:""))},p.expandCircles=function(e,t,n){var r=this,o=r.pointExpandedR.bind(r);n&&r.unexpandCircles(),r.getCircles(e,t).classed(g.EXPANDED,!0).attr("r",o)},p.unexpandCircles=function(e){var t=this,n=t.pointR.bind(t);t.getCircles(e).filter(function(){return t.d3.select(this).classed(g.EXPANDED)}).classed(g.EXPANDED,!1).attr("r",n)},p.pointR=function(e){var t=this,n=t.config;return t.isStepType(e)?0:m(n.point_r)?n.point_r(e):n.point_r},p.pointExpandedR=function(e){var t=this,n=t.config;return n.point_focus_expand_enabled?n.point_focus_expand_r?n.point_focus_expand_r:1.75*t.pointR(e):t.pointR(e)},p.pointSelectR=function(e){var t=this,n=t.config;return m(n.point_select_r)?n.point_select_r(e):n.point_select_r?n.point_select_r:4*t.pointR(e)},p.isWithinCircle=function(e,t){var n=this.d3,r=n.mouse(e),o=n.select(e),i=+o.attr("cx"),a=+o.attr("cy");return Math.sqrt(Math.pow(i-r[0],2)+Math.pow(a-r[1],2))<t},p.isWithinStep=function(e,t){return Math.abs(t-this.d3.mouse(e)[1])<30},p.initBar=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartBars)},p.updateTargetsForBar=function(e){var t,n,r=this,o=r.config,i=r.classChartBar.bind(r),a=r.classBars.bind(r),s=r.classFocus.bind(r);t=r.main.select("."+g.chartBars).selectAll("."+g.chartBar).data(e).attr("class",function(e){return i(e)+s(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a).style("cursor",function(e){return o.data_selection_isselectable(e)?"pointer":null})},p.updateBar=function(e){var t=this,n=t.barData.bind(t),r=t.classBar.bind(t),o=t.initialOpacity.bind(t),i=function(e){return t.color(e.id)};t.mainBar=t.main.selectAll("."+g.bars).selectAll("."+g.bar).data(n),t.mainBar.enter().append("path").attr("class",r).style("stroke",i).style("fill",i),t.mainBar.style("opacity",o),t.mainBar.exit().transition().duration(e).style("opacity",0).remove()},p.redrawBar=function(e,t){return[(t?this.mainBar.transition(Math.random().toString()):this.mainBar).attr("d",e).style("fill",this.color).style("opacity",1)]},p.getBarW=function(e,t){var n=this,r=n.config,o="number"==typeof r.bar_width?r.bar_width:t?e.tickInterval()*r.bar_width_ratio/t:0;return r.bar_width_max&&o>r.bar_width_max?r.bar_width_max:o},p.getBars=function(e,t){var n=this;return(t?n.main.selectAll("."+g.bars+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+g.bar+(y(e)?"-"+e:""))},p.expandBars=function(e,t,n){var r=this;n&&r.unexpandBars(),r.getBars(e,t).classed(g.EXPANDED,!0)},p.unexpandBars=function(e){var t=this;t.getBars(e).classed(g.EXPANDED,!1)},p.generateDrawBar=function(e,t){var n=this,r=n.config,o=n.generateGetBarPoints(e,t);return function(e,t){var n=o(e,t),i=r.axis_rotated?1:0,a=r.axis_rotated?0:1,s="M "+n[0][i]+","+n[0][a]+" L"+n[1][i]+","+n[1][a]+" L"+n[2][i]+","+n[2][a]+" L"+n[3][i]+","+n[3][a]+" z";return s}},p.generateGetBarPoints=function(e,t){var n=this,r=t?n.subXAxis:n.xAxis,o=e.__max__+1,i=n.getBarW(r,o),a=n.getShapeX(i,o,e,!!t),s=n.getShapeY(!!t),u=n.getShapeOffset(n.isBarType,e,!!t),c=t?n.getSubYScale:n.getYScale;return function(e,t){var r=c.call(n,e.id)(0),o=u(e,t)||r,l=a(e),f=s(e);return n.config.axis_rotated&&(0<e.value&&f<r||e.value<0&&r<f)&&(f=r),[[l,o],[l,f-(r-o)],[l+i,f-(r-o)],[l+i,o]]}},p.isWithinBar=function(e){var t=this.d3.mouse(e),n=e.getBoundingClientRect(),r=e.pathSegList.getItem(0),o=e.pathSegList.getItem(1),i=Math.min(r.x,o.x),a=Math.min(r.y,o.y),s=n.width,u=n.height,c=2,l=i-c,f=i+s+c,p=a+u+c,d=a-c;return l<t[0]&&t[0]<f&&d<t[1]&&t[1]<p},p.initText=function(){var e=this;e.main.select("."+g.chart).append("g").attr("class",g.chartTexts),e.mainText=e.d3.selectAll([])},p.updateTargetsForText=function(e){var t,n,r=this,o=r.classChartText.bind(r),i=r.classTexts.bind(r),a=r.classFocus.bind(r);t=r.main.select("."+g.chartTexts).selectAll("."+g.chartText).data(e).attr("class",function(e){return o(e)+a(e)}),n=t.enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",i)},p.updateText=function(e){var t=this,n=t.config,r=t.barOrLineData.bind(t),o=t.classText.bind(t);t.mainText=t.main.selectAll("."+g.texts).selectAll("."+g.text).data(r),t.mainText.enter().append("text").attr("class",o).attr("text-anchor",function(e){return n.axis_rotated?e.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(e){return t.color(e)}).style("fill-opacity",0),t.mainText.text(function(e,n,r){return t.dataLabelFormat(e.id)(e.value,e.id,n,r)}),t.mainText.exit().transition().duration(e).style("fill-opacity",0).remove()},p.redrawText=function(e,t,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",e).attr("y",t).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},p.getTextRect=function(e,t,n){var r,o=this.d3.select("body").append("div").classed("c3",!0),i=o.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a=this.d3.select(n).style("font");return i.selectAll(".dummy").data([e]).enter().append("text").classed(t?t:"",!0).style("font",a).text(e).each(function(){r=this.getBoundingClientRect()}),o.remove(),r},p.generateXYForText=function(e,t,n,r){var o=this,i=o.generateGetAreaPoints(e,!1),a=o.generateGetBarPoints(t,!1),s=o.generateGetLinePoints(n,!1),u=r?o.getXForText:o.getYForText;return function(e,t){var n=o.isAreaType(e)?i:o.isBarType(e)?a:s;return u.call(o,n(e,t),e,this)}},p.getXForText=function(e,t,n){var r,o,i=this,a=n.getBoundingClientRect();return i.config.axis_rotated?(o=i.isBarType(t)?4:6,r=e[2][1]+o*(t.value<0?-1:1)):r=i.hasType("bar")?(e[2][0]+e[0][0])/2:e[0][0],null===t.value&&(r>i.width?r=i.width-a.width:r<0&&(r=4)),r},p.getYForText=function(e,t,n){var r,o=this,i=n.getBoundingClientRect();return o.config.axis_rotated?r=(e[0][0]+e[2][0]+.6*i.height)/2:(r=e[2][1],t.value<0||0===t.value&&!o.hasPositiveValue?(r+=i.height,o.isBarType(t)&&o.isSafari()?r-=3:!o.isBarType(t)&&o.isChrome()&&(r+=3)):r+=o.isBarType(t)?-3:-6),null!==t.value||o.config.axis_rotated||(r<i.height?r=i.height:r>this.height&&(r=this.height-4)),r},p.setTargetType=function(e,t){var n=this,r=n.config;n.mapToTargetIds(e).forEach(function(e){n.withoutFadeIn[e]=t===r.data_types[e],r.data_types[e]=t}),e||(r.data_type=t)},p.hasType=function(e,t){var n=this,r=n.config.data_types,o=!1;return t=t||n.data.targets,t&&t.length?t.forEach(function(t){var n=r[t.id];(n&&n.indexOf(e)>=0||!n&&"line"===e)&&(o=!0)}):Object.keys(r).length?Object.keys(r).forEach(function(t){r[t]===e&&(o=!0)}):o=n.config.data_type===e,o},p.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},p.isLineType=function(e){var t=this.config,n=v(e)?e:e.id;return!t.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[n])>=0},p.isStepType=function(e){var t=v(e)?e:e.id;return["step","area-step"].indexOf(this.config.data_types[t])>=0},p.isSplineType=function(e){var t=v(e)?e:e.id;return["spline","area-spline"].indexOf(this.config.data_types[t])>=0},p.isAreaType=function(e){var t=v(e)?e:e.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[t])>=0},p.isBarType=function(e){var t=v(e)?e:e.id;return"bar"===this.config.data_types[t]},p.isScatterType=function(e){var t=v(e)?e:e.id;return"scatter"===this.config.data_types[t]},p.isPieType=function(e){var t=v(e)?e:e.id;return"pie"===this.config.data_types[t]},p.isGaugeType=function(e){var t=v(e)?e:e.id;return"gauge"===this.config.data_types[t]},p.isDonutType=function(e){var t=v(e)?e:e.id;return"donut"===this.config.data_types[t]},p.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},p.lineData=function(e){return this.isLineType(e)?[e]:[]},p.arcData=function(e){return this.isArcType(e.data)?[e]:[]},p.barData=function(e){return this.isBarType(e)?e.values:[]},p.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},p.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},p.isInterpolationType=function(e){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(e)>=0},p.initGrid=function(){var e=this,t=e.config,n=e.d3;e.grid=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",g.grid),t.grid_x_show&&e.grid.append("g").attr("class",g.xgrids),t.grid_y_show&&e.grid.append("g").attr("class",g.ygrids),t.grid_focus_show&&e.grid.append("g").attr("class",g.xgridFocus).append("line").attr("class",g.xgridFocus),e.xgrid=n.selectAll([]),t.grid_lines_front||e.initGridLines()},p.initGridLines=function(){var e=this,t=e.d3;e.gridLines=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",g.grid+" "+g.gridLines),e.gridLines.append("g").attr("class",g.xgridLines),e.gridLines.append("g").attr("class",g.ygridLines),e.xgridLines=t.selectAll([])},p.updateXGrid=function(e){var t=this,n=t.config,r=t.d3,o=t.generateGridData(n.grid_x_type,t.x),i=t.isCategorized()?t.xAxis.tickOffset():0;t.xgridAttr=n.axis_rotated?{x1:0,x2:t.width,y1:function(e){return t.x(e)-i},y2:function(e){return t.x(e)-i}}:{x1:function(e){return t.x(e)+i},x2:function(e){return t.x(e)+i},y1:0,y2:t.height},t.xgrid=t.main.select("."+g.xgrids).selectAll("."+g.xgrid).data(o),t.xgrid.enter().append("line").attr("class",g.xgrid),e||t.xgrid.attr(t.xgridAttr).style("opacity",function(){return+r.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?t.height:0)?0:1}),t.xgrid.exit().remove()},p.updateYGrid=function(){var e=this,t=e.config,n=e.yAxis.tickValues()||e.y.ticks(t.grid_y_ticks);e.ygrid=e.main.select("."+g.ygrids).selectAll("."+g.ygrid).data(n),e.ygrid.enter().append("line").attr("class",g.ygrid),e.ygrid.attr("x1",t.axis_rotated?e.y:0).attr("x2",t.axis_rotated?e.y:e.width).attr("y1",t.axis_rotated?0:e.y).attr("y2",t.axis_rotated?e.height:e.y),e.ygrid.exit().remove(),e.smoothLines(e.ygrid,"grid")},p.gridTextAnchor=function(e){return e.position?e.position:"end"},p.gridTextDx=function(e){return"start"===e.position?4:"middle"===e.position?0:-4},p.xGridTextX=function(e){return"start"===e.position?-this.height:"middle"===e.position?-this.height/2:0},p.yGridTextX=function(e){return"start"===e.position?0:"middle"===e.position?this.width/2:this.width},p.updateGrid=function(e){var t,n,r,o=this,i=o.main,a=o.config;o.grid.style("visibility",o.hasArcType()?"hidden":"visible"),i.select("line."+g.xgridFocus).style("visibility","hidden"),a.grid_x_show&&o.updateXGrid(),o.xgridLines=i.select("."+g.xgridLines).selectAll("."+g.xgridLine).data(a.grid_x_lines),t=o.xgridLines.enter().append("g").attr("class",function(e){return g.xgridLine+(e.class?" "+e.class:"")}),t.append("line").style("opacity",0),t.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",a.axis_rotated?"":"rotate(-90)").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),o.xgridLines.exit().transition().duration(e).style("opacity",0).remove(),a.grid_y_show&&o.updateYGrid(),o.ygridLines=i.select("."+g.ygridLines).selectAll("."+g.ygridLine).data(a.grid_y_lines),n=o.ygridLines.enter().append("g").attr("class",function(e){return g.ygridLine+(e.class?" "+e.class:"")}),n.append("line").style("opacity",0),n.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",a.axis_rotated?"rotate(-90)":"").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),r=o.yv.bind(o),o.ygridLines.select("line").transition().duration(e).attr("x1",a.axis_rotated?r:0).attr("x2",a.axis_rotated?r:o.width).attr("y1",a.axis_rotated?0:r).attr("y2",a.axis_rotated?o.height:r).style("opacity",1),o.ygridLines.select("text").transition().duration(e).attr("x",a.axis_rotated?o.xGridTextX.bind(o):o.yGridTextX.bind(o)).attr("y",r).text(function(e){return e.text}).style("opacity",1),o.ygridLines.exit().transition().duration(e).style("opacity",0).remove()},p.redrawGrid=function(e){var t=this,n=t.config,r=t.xv.bind(t),o=t.xgridLines.select("line"),i=t.xgridLines.select("text");return[(e?o.transition():o).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?t.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:t.height).style("opacity",1),(e?i.transition():i).attr("x",n.axis_rotated?t.yGridTextX.bind(t):t.xGridTextX.bind(t)).attr("y",r).text(function(e){return e.text}).style("opacity",1)]},p.showXGridFocus=function(e){var t=this,n=t.config,r=e.filter(function(e){return e&&y(e.value)}),o=t.main.selectAll("line."+g.xgridFocus),i=t.xx.bind(t);n.tooltip_show&&(t.hasType("scatter")||t.hasArcType()||(o.style("visibility","visible").data([r[0]]).attr(n.axis_rotated?"y1":"x1",i).attr(n.axis_rotated?"y2":"x2",i),t.smoothLines(o,"grid")))},p.hideXGridFocus=function(){this.main.select("line."+g.xgridFocus).style("visibility","hidden")},p.updateXgridFocus=function(){var e=this,t=e.config;e.main.select("line."+g.xgridFocus).attr("x1",t.axis_rotated?0:-10).attr("x2",t.axis_rotated?e.width:-10).attr("y1",t.axis_rotated?-10:0).attr("y2",t.axis_rotated?-10:e.height)},p.generateGridData=function(e,t){var n,r,o,i,a=this,s=[],u=a.main.select("."+g.axisX).selectAll(".tick").size();if("year"===e)for(n=a.getXDomain(),r=n[0].getFullYear(),o=n[1].getFullYear(),i=r;i<=o;i++)s.push(new Date(i+"-01-01 00:00:00"));else s=t.ticks(10),s.length>u&&(s=s.filter(function(e){return(""+e).indexOf(".")<0}));return s},p.getGridFilterToRemove=function(e){return e?function(t){var n=!1;return[].concat(e).forEach(function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(n=!0)}),n}:function(){return!0}},p.removeGridLines=function(e,t){var n=this,r=n.config,o=n.getGridFilterToRemove(e),i=function(e){return!o(e)},a=t?g.xgridLines:g.ygridLines,s=t?g.xgridLine:g.ygridLine;n.main.select("."+a).selectAll("."+s).filter(o).transition().duration(r.transition_duration).style("opacity",0).remove(),t?r.grid_x_lines=r.grid_x_lines.filter(i):r.grid_y_lines=r.grid_y_lines.filter(i)},p.initTooltip=function(){var e,t=this,n=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",g.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(t.isTimeSeries()&&v(n.tooltip_init_x)){for(n.tooltip_init_x=t.parseDate(n.tooltip_init_x),e=0;e<t.data.targets[0].values.length&&t.data.targets[0].values[e].x-n.tooltip_init_x!==0;e++);n.tooltip_init_x=e}t.tooltip.html(n.tooltip_contents.call(t,t.data.targets.map(function(e){return t.addName(e.values[n.tooltip_init_x])}),t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType()),t.color)),t.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display","block")}},p.getTooltipContent=function(e,t,n,r){var o,i,a,s,u,c,l=this,f=l.config,p=f.tooltip_format_title||t,d=f.tooltip_format_name||function(e){return e},h=f.tooltip_format_value||n,g=l.isOrderAsc();if(0===f.data_groups.length)e.sort(function(e,t){var n=e?e.value:null,r=t?t.value:null;return g?n-r:r-n});else{var y=l.orderTargets(l.data.targets).map(function(e){return e.id});e.sort(function(e,t){var n=e?e.value:null,r=t?t.value:null;return n>0&&r>0&&(n=e?y.indexOf(e.id):null,r=t?y.indexOf(t.id):null),g?n-r:r-n})}for(i=0;i<e.length;i++)if(e[i]&&(e[i].value||0===e[i].value)&&(o||(a=P(p?p(e[i].x):e[i].x),o="<table class='"+l.CLASS.tooltip+"'>"+(a||0===a?"<tr><th colspan='2'>"+a+"</th></tr>":"")),s=P(h(e[i].value,e[i].ratio,e[i].id,e[i].index,e)),
12
- void 0!==s)){if(null===e[i].name)continue;u=P(d(e[i].name,e[i].ratio,e[i].id,e[i].index)),c=l.levelColor?l.levelColor(e[i].value):r(e[i].id),o+="<tr class='"+l.CLASS.tooltipName+"-"+l.getTargetSelectorSuffix(e[i].id)+"'>",o+="<td class='name'><span style='background-color:"+c+"'></span>"+u+"</td>",o+="<td class='value'>"+s+"</td>",o+="</tr>"}return o+"</table>"},p.tooltipPosition=function(e,t,n,r){var o,i,a,s,u,c=this,l=c.config,f=c.d3,p=c.hasArcType(),d=f.mouse(r);return p?(i=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+d[0],s=c.height/2+d[1]+20):(o=c.getSvgLeft(!0),l.axis_rotated?(i=o+d[0]+100,a=i+t,u=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(e[0].x)+20):(i=o+c.getCurrentPaddingLeft(!0)+c.x(e[0].x)+20,a=i+t,u=o+c.currentWidth-c.getCurrentPaddingRight(),s=d[1]+15),a>u&&(i-=a-u+20),s+n>c.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:i}},p.showTooltip=function(e,t){var n,r,o,i=this,a=i.config,s=i.hasArcType(),u=e.filter(function(e){return e&&y(e.value)}),c=a.tooltip_position||p.tooltipPosition;0!==u.length&&a.tooltip_show&&(i.tooltip.html(a.tooltip_contents.call(i,e,i.axis.getXAxisTickFormat(),i.getYFormat(s),i.color)).style("display","block"),n=i.tooltip.property("offsetWidth"),r=i.tooltip.property("offsetHeight"),o=c.call(this,u,n,r,t),i.tooltip.style("top",o.top+"px").style("left",o.left+"px"))},p.hideTooltip=function(){this.tooltip.style("display","none")},p.initLegend=function(){var e=this;return e.legendItemTextBox={},e.legendHasRendered=!1,e.legend=e.svg.append("g").attr("transform",e.getTranslate("legend")),e.config.legend_show?void e.updateLegendWithDefaults():(e.legend.style("visibility","hidden"),void(e.hiddenLegendIds=e.mapToIds(e.data.targets)))},p.updateLegendWithDefaults=function(){var e=this;e.updateLegend(e.mapToIds(e.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},p.updateSizeForLegend=function(e,t){var n=this,r=n.config,o={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-e-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-t-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?o.top:n.currentHeight-e,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-t:n.isLegendInset?o.left:0}},p.transformLegend=function(e){var t=this;(e?t.legend.transition():t.legend).attr("transform",t.getTranslate("legend"))},p.updateLegendStep=function(e){this.legendStep=e},p.updateLegendItemWidth=function(e){this.legendItemWidth=e},p.updateLegendItemHeight=function(e){this.legendItemHeight=e},p.getLegendWidth=function(){var e=this;return e.config.legend_show?e.isLegendRight||e.isLegendInset?e.legendItemWidth*(e.legendStep+1):e.currentWidth:0},p.getLegendHeight=function(){var e=this,t=0;return e.config.legend_show&&(t=e.isLegendRight?e.currentHeight:Math.max(20,e.legendItemHeight)*(e.legendStep+1)),t},p.opacityForLegend=function(e){return e.classed(g.legendItemHidden)?null:1},p.opacityForUnfocusedLegend=function(e){return e.classed(g.legendItemHidden)?null:.3},p.toggleFocusLegend=function(e,t){var n=this;e=n.mapToTargetIds(e),n.legend.selectAll("."+g.legendItem).filter(function(t){return e.indexOf(t)>=0}).classed(g.legendItemFocused,t).transition().duration(100).style("opacity",function(){var e=t?n.opacityForLegend:n.opacityForUnfocusedLegend;return e.call(n,n.d3.select(this))})},p.revertLegend=function(){var e=this,t=e.d3;e.legend.selectAll("."+g.legendItem).classed(g.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return e.opacityForLegend(t.select(this))})},p.showLegend=function(e){var t=this,n=t.config;n.legend_show||(n.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults()),t.removeHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("visibility","visible").transition().style("opacity",function(){return t.opacityForLegend(t.d3.select(this))})},p.hideLegend=function(e){var t=this,n=t.config;n.legend_show&&S(e)&&(n.legend_show=!1,t.legend.style("visibility","hidden")),t.addHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("opacity",0).style("visibility","hidden")},p.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},p.updateLegend=function(e,t,n){function r(e,t){return C.legendItemTextBox[t]||(C.legendItemTextBox[t]=C.getTextRect(e.textContent,g.legendItem,e)),C.legendItemTextBox[t]}function o(t,n,o){function i(e,t){t||(a=(h-N-d)/2,a<A&&(a=(h-d)/2,N=0,F++)),j[e]=F,D[F]=C.isLegendInset?10:a,I[e]=N,N+=d}var a,s,u=0===o,c=o===e.length-1,l=r(t,n),f=l.width+M+(!c||C.isLegendRight||C.isLegendInset?O:0)+S.legend_padding,p=l.height+w,d=C.isLegendRight||C.isLegendInset?p:f,h=C.isLegendRight||C.isLegendInset?C.getLegendHeight():C.getLegendWidth();return u&&(N=0,F=0,P=0,R=0),S.legend_show&&!C.isLegendToShow(n)?void(L[n]=k[n]=j[n]=I[n]=0):(L[n]=f,k[n]=p,(!P||f>=P)&&(P=f),(!R||p>=R)&&(R=p),s=C.isLegendRight||C.isLegendInset?R:P,void(S.legend_equally?(Object.keys(L).forEach(function(e){L[e]=P}),Object.keys(k).forEach(function(e){k[e]=R}),a=(h-s*e.length)/2,a<A?(N=0,F=0,e.forEach(function(e){i(e)})):i(n,!0)):i(n)))}var i,a,s,u,c,l,f,p,d,h,y,m,v,_,x,E,C=this,S=C.config,w=4,O=10,P=0,R=0,A=10,M=S.legend_item_tile_width+5,N=0,I={},L={},k={},D=[0],j={},F=0;e=e.filter(function(e){return!b(S.data_names[e])||null!==S.data_names[e]}),t=t||{},y=T(t,"withTransition",!0),m=T(t,"withTransitionForTransform",!0),C.isLegendInset&&(F=S.legend_inset_step?S.legend_inset_step:e.length,C.updateLegendStep(F)),C.isLegendRight?(i=function(e){return P*j[e]},u=function(e){return D[j[e]]+I[e]}):C.isLegendInset?(i=function(e){return P*j[e]+10},u=function(e){return D[j[e]]+I[e]}):(i=function(e){return D[j[e]]+I[e]},u=function(e){return R*j[e]}),a=function(e,t){return i(e,t)+4+S.legend_item_tile_width},c=function(e,t){return u(e,t)+9},s=function(e,t){return i(e,t)},l=function(e,t){return u(e,t)-5},f=function(e,t){return i(e,t)-2},p=function(e,t){return i(e,t)-2+S.legend_item_tile_width},d=function(e,t){return u(e,t)+4},h=C.legend.selectAll("."+g.legendItem).data(e).enter().append("g").attr("class",function(e){return C.generateClass(g.legendItem,e)}).style("visibility",function(e){return C.isLegendToShow(e)?"visible":"hidden"}).style("cursor","pointer").on("click",function(e){S.legend_item_onclick?S.legend_item_onclick.call(C,e):C.d3.event.altKey?(C.api.hide(),C.api.show(e)):(C.api.toggle(e),C.isTargetToShow(e)?C.api.focus(e):C.api.revert())}).on("mouseover",function(e){S.legend_item_onmouseover?S.legend_item_onmouseover.call(C,e):(C.d3.select(this).classed(g.legendItemFocused,!0),!C.transiting&&C.isTargetToShow(e)&&C.api.focus(e))}).on("mouseout",function(e){S.legend_item_onmouseout?S.legend_item_onmouseout.call(C,e):(C.d3.select(this).classed(g.legendItemFocused,!1),C.api.revert())}),h.append("text").text(function(e){return b(S.data_names[e])?S.data_names[e]:e}).each(function(e,t){o(this,e,t)}).style("pointer-events","none").attr("x",C.isLegendRight||C.isLegendInset?a:-200).attr("y",C.isLegendRight||C.isLegendInset?-200:c),h.append("rect").attr("class",g.legendItemEvent).style("fill-opacity",0).attr("x",C.isLegendRight||C.isLegendInset?s:-200).attr("y",C.isLegendRight||C.isLegendInset?-200:l),h.append("line").attr("class",g.legendItemTile).style("stroke",C.color).style("pointer-events","none").attr("x1",C.isLegendRight||C.isLegendInset?f:-200).attr("y1",C.isLegendRight||C.isLegendInset?-200:d).attr("x2",C.isLegendRight||C.isLegendInset?p:-200).attr("y2",C.isLegendRight||C.isLegendInset?-200:d).attr("stroke-width",S.legend_item_tile_height),E=C.legend.select("."+g.legendBackground+" rect"),C.isLegendInset&&P>0&&0===E.size()&&(E=C.legend.insert("g","."+g.legendItem).attr("class",g.legendBackground).append("rect")),v=C.legend.selectAll("text").data(e).text(function(e){return b(S.data_names[e])?S.data_names[e]:e}).each(function(e,t){o(this,e,t)}),(y?v.transition():v).attr("x",a).attr("y",c),_=C.legend.selectAll("rect."+g.legendItemEvent).data(e),(y?_.transition():_).attr("width",function(e){return L[e]}).attr("height",function(e){return k[e]}).attr("x",s).attr("y",l),x=C.legend.selectAll("line."+g.legendItemTile).data(e),(y?x.transition():x).style("stroke",C.color).attr("x1",f).attr("y1",d).attr("x2",p).attr("y2",d),E&&(y?E.transition():E).attr("height",C.getLegendHeight()-12).attr("width",P*(F+1)+10),C.legend.selectAll("."+g.legendItem).classed(g.legendItemHidden,function(e){return!C.isTargetToShow(e)}),C.updateLegendItemWidth(P),C.updateLegendItemHeight(R),C.updateLegendStep(F),C.updateSizes(),C.updateScales(),C.updateSvgSize(),C.transformAll(m,n),C.legendHasRendered=!0},p.initTitle=function(){var e=this;e.title=e.svg.append("text").text(e.config.title_text).attr("class",e.CLASS.title)},p.redrawTitle=function(){var e=this;e.title.attr("x",e.xForTitle.bind(e)).attr("y",e.yForTitle.bind(e))},p.xForTitle=function(){var e,t=this,n=t.config,r=n.title_position||"left";return e=r.indexOf("right")>=0?t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width-n.title_padding.right:r.indexOf("center")>=0?(t.currentWidth-t.getTextRect(t.title.node().textContent,t.CLASS.title,t.title.node()).width)/2:n.title_padding.left},p.yForTitle=function(){var e=this;return e.config.title_padding.top+e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).height},p.getTitlePadding=function(){var e=this;return e.yForTitle()+e.config.title_padding.bottom},a(i,c),c.prototype.init=function(){var e=this.owner,t=e.config,n=e.main;e.axes.x=n.append("g").attr("class",g.axis+" "+g.axisX).attr("clip-path",e.clipPathForXAxis).attr("transform",e.getTranslate("x")).style("visibility",t.axis_x_show?"visible":"hidden"),e.axes.x.append("text").attr("class",g.axisXLabel).attr("transform",t.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),e.axes.y=n.append("g").attr("class",g.axis+" "+g.axisY).attr("clip-path",t.axis_y_inner?"":e.clipPathForYAxis).attr("transform",e.getTranslate("y")).style("visibility",t.axis_y_show?"visible":"hidden"),e.axes.y.append("text").attr("class",g.axisYLabel).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),e.axes.y2=n.append("g").attr("class",g.axis+" "+g.axisY2).attr("transform",e.getTranslate("y2")).style("visibility",t.axis_y2_show?"visible":"hidden"),e.axes.y2.append("text").attr("class",g.axisY2Label).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},c.prototype.getXAxis=function(e,t,n,r,o,i,a){var s=this.owner,u=s.config,c={isCategory:s.isCategorized(),withOuterTick:o,tickMultiline:u.axis_x_tick_multiline,tickWidth:u.axis_x_tick_width,tickTextRotate:a?0:u.axis_x_tick_rotate,withoutTransition:i},f=l(s.d3,c).scale(e).orient(t);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map(function(e){return s.parseDate(e)})),f.tickFormat(n).tickValues(r),s.isCategorized()&&(f.tickCentered(u.axis_x_tick_centered),S(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),f},c.prototype.updateXAxisTickValues=function(e,t){var n,r=this.owner,o=r.config;return(o.axis_x_tick_fit||o.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(e),o.axis_x_tick_count,r.isTimeSeries())),t?t.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},c.prototype.getYAxis=function(e,t,n,r,o,i,a){var s=this.owner,u=s.config,c={withOuterTick:o,withoutTransition:i,tickTextRotate:a?0:u.axis_y_tick_rotate},f=l(s.d3,c).scale(e).orient(t).tickFormat(n);return s.isTimeSeriesY()?f.ticks(s.d3.time[u.axis_y_tick_time_value],u.axis_y_tick_time_interval):f.tickValues(r),f},c.prototype.getId=function(e){var t=this.owner.config;return e in t.data_axes?t.data_axes[e]:"y"},c.prototype.getXAxisTickFormat=function(){var e=this.owner,t=e.config,n=e.isTimeSeries()?e.defaultAxisTimeFormat:e.isCategorized()?e.categoryName:function(e){return e<0?e.toFixed(0):e};return t.axis_x_tick_format&&(m(t.axis_x_tick_format)?n=t.axis_x_tick_format:e.isTimeSeries()&&(n=function(n){return n?e.axisTimeFormat(t.axis_x_tick_format)(n):""})),m(n)?function(t){return n.call(e,t)}:n},c.prototype.getTickValues=function(e,t){return e?e:t?t.tickValues():void 0},c.prototype.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},c.prototype.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},c.prototype.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},c.prototype.getLabelOptionByAxisId=function(e){var t,n=this.owner,r=n.config;return"y"===e?t=r.axis_y_label:"y2"===e?t=r.axis_y2_label:"x"===e&&(t=r.axis_x_label),t},c.prototype.getLabelText=function(e){var t=this.getLabelOptionByAxisId(e);return v(t)?t:t?t.text:null},c.prototype.setLabelText=function(e,t){var n=this.owner,r=n.config,o=this.getLabelOptionByAxisId(e);v(o)?"y"===e?r.axis_y_label=t:"y2"===e?r.axis_y2_label=t:"x"===e&&(r.axis_x_label=t):o&&(o.text=t)},c.prototype.getLabelPosition=function(e,t){var n=this.getLabelOptionByAxisId(e),r=n&&"object"==typeof n&&n.position?n.position:t;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},c.prototype.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},c.prototype.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},c.prototype.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},c.prototype.getLabelPositionById=function(e){return"y2"===e?this.getY2AxisLabelPosition():"y"===e?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},c.prototype.textForXAxisLabel=function(){return this.getLabelText("x")},c.prototype.textForYAxisLabel=function(){return this.getLabelText("y")},c.prototype.textForY2AxisLabel=function(){return this.getLabelText("y2")},c.prototype.xForAxisLabel=function(e,t){var n=this.owner;return e?t.isLeft?0:t.isCenter?n.width/2:n.width:t.isBottom?-n.height:t.isMiddle?-n.height/2:0},c.prototype.dxForAxisLabel=function(e,t){return e?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},c.prototype.textAnchorForAxisLabel=function(e,t){return e?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},c.prototype.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.dyForXAxisLabel=function(){var e=this.owner,t=e.config,n=this.getXAxisLabelPosition();return t.axis_rotated?n.isInner?"1.2em":-25-this.getMaxTickWidth("x"):n.isInner?"-0.5em":t.axis_x_height?t.axis_x_height-10:"3em"},c.prototype.dyForYAxisLabel=function(){var e=this.owner,t=this.getYAxisLabelPosition();return e.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(e.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},c.prototype.dyForY2AxisLabel=function(){var e=this.owner,t=this.getY2AxisLabelPosition();return e.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(e.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},c.prototype.textAnchorForXAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(!e.config.axis_rotated,this.getXAxisLabelPosition())},c.prototype.textAnchorForYAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getYAxisLabelPosition())},c.prototype.textAnchorForY2AxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getY2AxisLabelPosition())},c.prototype.getMaxTickWidth=function(e,t){var n,r,o,i,a,s=this.owner,u=s.config,c=0;return t&&s.currentMaxTickWidths[e]?s.currentMaxTickWidths[e]:(s.svg&&(n=s.filterTargetsToShow(s.data.targets),"y"===e?(r=s.y.copy().domain(s.getYDomain(n,"y")),o=this.getYAxis(r,s.yOrient,u.axis_y_tick_format,s.yAxisTickValues,!1,!0,!0)):"y2"===e?(r=s.y2.copy().domain(s.getYDomain(n,"y2")),o=this.getYAxis(r,s.y2Orient,u.axis_y2_tick_format,s.y2AxisTickValues,!1,!0,!0)):(r=s.x.copy().domain(s.getXDomain(n)),o=this.getXAxis(r,s.xOrient,s.xAxisTickFormat,s.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,o)),i=s.d3.select("body").append("div").classed("c3",!0),a=i.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a.append("g").call(o).each(function(){s.d3.select(this).selectAll("text").each(function(){var e=this.getBoundingClientRect();c<e.width&&(c=e.width)}),i.remove()})),s.currentMaxTickWidths[e]=c<=0?s.currentMaxTickWidths[e]:c,s.currentMaxTickWidths[e])},c.prototype.updateLabels=function(e){var t=this.owner,n=t.main.select("."+g.axisX+" ."+g.axisXLabel),r=t.main.select("."+g.axisY+" ."+g.axisYLabel),o=t.main.select("."+g.axisY2+" ."+g.axisY2Label);(e?n.transition():n).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(e?r.transition():r).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(e?o.transition():o).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},c.prototype.getPadding=function(e,t,n,r){var o="number"==typeof e?e:e[t];return y(o)?"ratio"===e.unit?e[t]*r:this.convertPixelsToAxisPadding(o,r):n},c.prototype.convertPixelsToAxisPadding=function(e,t){var n=this.owner,r=n.config.axis_rotated?n.width:n.height;return t*(e/r)},c.prototype.generateTickValues=function(e,t,n){var r,o,i,a,s,u,c,l=e;if(t)if(r=m(t)?t():t,1===r)l=[e[0]];else if(2===r)l=[e[0],e[e.length-1]];else if(r>2){for(a=r-2,o=e[0],i=e[e.length-1],s=(i-o)/(a+1),l=[o],u=0;u<a;u++)c=+o+s*(u+1),l.push(n?new Date(c):c);l.push(i)}return n||(l=l.sort(function(e,t){return e-t})),l},c.prototype.generateTransitions=function(e){var t=this.owner,n=t.axes;return{axisX:e?n.x.transition().duration(e):n.x,axisY:e?n.y.transition().duration(e):n.y,axisY2:e?n.y2.transition().duration(e):n.y2,axisSubX:e?n.subx.transition().duration(e):n.subx}},c.prototype.redraw=function(e,t){var n=this.owner;n.axes.x.style("opacity",t?0:1),n.axes.y.style("opacity",t?0:1),n.axes.y2.style("opacity",t?0:1),n.axes.subx.style("opacity",t?0:1),e.axisX.call(n.xAxis),e.axisY.call(n.yAxis),e.axisY2.call(n.y2Axis),e.axisSubX.call(n.subXAxis)},p.getClipPath=function(e){var t=o.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0;return"url("+(t?"":document.URL.split("#")[0])+"#"+e+")"},p.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},p.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},p.getAxisClipY=function(e){return e?-20:-this.margin.top},p.getXAxisClipX=function(){var e=this;return e.getAxisClipX(!e.config.axis_rotated)},p.getXAxisClipY=function(){var e=this;return e.getAxisClipY(!e.config.axis_rotated)},p.getYAxisClipX=function(){var e=this;return e.config.axis_y_inner?-1:e.getAxisClipX(e.config.axis_rotated)},p.getYAxisClipY=function(){var e=this;return e.getAxisClipY(e.config.axis_rotated)},p.getAxisClipWidth=function(e){var t=this,n=Math.max(30,t.margin.left),r=Math.max(30,t.margin.right);return e?t.width+2+n+r:t.margin.left+20},p.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},p.getXAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(!e.config.axis_rotated)},p.getXAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(!e.config.axis_rotated)},p.getYAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(e.config.axis_rotated)+(e.config.axis_y_inner?20:0)},p.getYAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(e.config.axis_rotated)},p.initPie=function(){var e=this,t=e.d3,n=e.config;e.pie=t.layout.pie().value(function(e){return e.values.reduce(function(e,t){return e+t.value},0)}),n.data_order||e.pie.sort(null)},p.updateRadius=function(){var e=this,t=e.config,n=t.gauge_width||t.donut_width;e.radiusExpanded=Math.min(e.arcWidth,e.arcHeight)/2,e.radius=.95*e.radiusExpanded,e.innerRadiusRatio=n?(e.radius-n)/e.radius:.6,e.innerRadius=e.hasType("donut")||e.hasType("gauge")?e.radius*e.innerRadiusRatio:0},p.updateArc=function(){var e=this;e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded(),e.svgArcExpandedSub=e.getSvgArcExpanded(.98)},p.updateAngle=function(e){var t,n,r,o,i=this,a=i.config,s=!1,u=0;return a?(i.pie(i.filterTargetsToShow(i.data.targets)).forEach(function(t){s||t.data.id!==e.data.id||(s=!0,e=t,e.index=u),u++}),isNaN(e.startAngle)&&(e.startAngle=0),isNaN(e.endAngle)&&(e.endAngle=e.startAngle),i.isGaugeType(e.data)&&(t=a.gauge_min,n=a.gauge_max,r=Math.PI*(a.gauge_fullCircle?2:1)/(n-t),o=e.value<t?0:e.value<n?e.value-t:n-t,e.startAngle=a.gauge_startingAngle,e.endAngle=e.startAngle+r*o),s?e:null):null},p.getSvgArc=function(){var e=this,t=e.d3.svg.arc().outerRadius(e.radius).innerRadius(e.innerRadius),n=function(n,r){var o;return r?t(n):(o=e.updateAngle(n),o?t(o):"M 0 0")};return n.centroid=t.centroid,n},p.getSvgArcExpanded=function(e){var t=this,n=t.d3.svg.arc().outerRadius(t.radiusExpanded*(e?e:1)).innerRadius(t.innerRadius);return function(e){var r=t.updateAngle(e);return r?n(r):"M 0 0"}},p.getArc=function(e,t,n){return n||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},p.transformForArcLabel=function(e){var t,n,r,o,i,a=this,s=a.config,u=a.updateAngle(e),c="";return u&&!a.hasType("gauge")&&(t=this.svgArc.centroid(u),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?0:t[1],o=Math.sqrt(n*n+r*r),i=a.hasType("donut")&&s.donut_label_ratio?m(s.donut_label_ratio)?s.donut_label_ratio(e,a.radius,o):s.donut_label_ratio:a.hasType("pie")&&s.pie_label_ratio?m(s.pie_label_ratio)?s.pie_label_ratio(e,a.radius,o):s.pie_label_ratio:a.radius&&o?(36/a.radius>.375?1.175-36/a.radius:.8)*a.radius/o:0,c="translate("+n*i+","+r*i+")"),c},p.getArcRatio=function(e){var t=this,n=t.config,r=Math.PI*(t.hasType("gauge")&&!n.gauge_fullCircle?1:2);return e?(e.endAngle-e.startAngle)/r:null},p.convertToArcData=function(e){return this.addName({id:e.data.id,value:e.value,ratio:this.getArcRatio(e),index:e.index})},p.textForArcLabel=function(e){var t,n,r,o,i,a=this;return a.shouldShowArcLabel()?(t=a.updateAngle(e),n=t?t.value:null,r=a.getArcRatio(t),o=e.data.id,a.hasType("gauge")||a.meetsArcLabelThreshold(r)?(i=a.getArcLabelFormat(),i?i(n,r,o):a.defaultArcValueFormat(n,r)):""):""},p.expandArc=function(e){var t,n=this;return n.transiting?void(t=o.setInterval(function(){n.transiting||(o.clearInterval(t),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(e))},10)):(e=n.mapToTargetIds(e),void n.svg.selectAll(n.selectorTargets(e,"."+g.chartArc)).each(function(e){n.shouldExpand(e.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(e.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(e.data.id)).attr("d",n.svgArcExpandedSub).each(function(e){n.isDonutType(e.data)})}))},p.unexpandArc=function(e){var t=this;t.transiting||(e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e,"."+g.chartArc)).selectAll("path").transition().duration(function(e){return t.expandDuration(e.data.id)}).attr("d",t.svgArc),t.svg.selectAll("."+g.arc).style("opacity",1))},p.expandDuration=function(e){var t=this,n=t.config;return t.isDonutType(e)?n.donut_expand_duration:t.isGaugeType(e)?n.gauge_expand_duration:t.isPieType(e)?n.pie_expand_duration:50},p.shouldExpand=function(e){var t=this,n=t.config;return t.isDonutType(e)&&n.donut_expand||t.isGaugeType(e)&&n.gauge_expand||t.isPieType(e)&&n.pie_expand},p.shouldShowArcLabel=function(){var e=this,t=e.config,n=!0;return e.hasType("donut")?n=t.donut_label_show:e.hasType("pie")&&(n=t.pie_label_show),n},p.meetsArcLabelThreshold=function(e){var t=this,n=t.config,r=t.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold;return e>=r},p.getArcLabelFormat=function(){var e=this,t=e.config,n=t.pie_label_format;return e.hasType("gauge")?n=t.gauge_label_format:e.hasType("donut")&&(n=t.donut_label_format),n},p.getArcTitle=function(){var e=this;return e.hasType("donut")?e.config.donut_title:""},p.updateTargetsForArc=function(e){var t,n,r=this,o=r.main,i=r.classChartArc.bind(r),a=r.classArcs.bind(r),s=r.classFocus.bind(r);t=o.select("."+g.chartArcs).selectAll("."+g.chartArc).data(r.pie(e)).attr("class",function(e){return i(e)+s(e.data)}),n=t.enter().append("g").attr("class",i),n.append("g").attr("class",a),n.append("text").attr("dy",r.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},p.initArc=function(){var e=this;e.arcs=e.main.select("."+g.chart).append("g").attr("class",g.chartArcs).attr("transform",e.getTranslate("arc")),e.arcs.append("text").attr("class",g.chartArcsTitle).style("text-anchor","middle").text(e.getArcTitle())},p.redrawArc=function(e,t,n){var r,o=this,i=o.d3,a=o.config,s=o.main;r=s.selectAll("."+g.arcs).selectAll("."+g.arc).data(o.arcData.bind(o)),r.enter().append("path").attr("class",o.classArc.bind(o)).style("fill",function(e){return o.color(e.data)}).style("cursor",function(e){return a.interaction_enabled&&a.data_selection_isselectable(e)?"pointer":null}).style("opacity",0).each(function(e){o.isGaugeType(e.data)&&(e.startAngle=e.endAngle=a.gauge_startingAngle),this._current=e}),r.attr("transform",function(e){return!o.isGaugeType(e.data)&&n?"scale(0)":""}).style("opacity",function(e){return e===this._current?0:1}).on("mouseover",a.interaction_enabled?function(e){var t,n;o.transiting||(t=o.updateAngle(e),t&&(n=o.convertToArcData(t),o.expandArc(t.data.id),o.api.focus(t.data.id),o.toggleFocusLegend(t.data.id,!0),o.config.data_onmouseover(n,this)))}:null).on("mousemove",a.interaction_enabled?function(e){var t,n,r=o.updateAngle(e);r&&(t=o.convertToArcData(r),n=[t],o.showTooltip(n,this))}:null).on("mouseout",a.interaction_enabled?function(e){var t,n;o.transiting||(t=o.updateAngle(e),t&&(n=o.convertToArcData(t),o.unexpandArc(t.data.id),o.api.revert(),o.revertLegend(),o.hideTooltip(),o.config.data_onmouseout(n,this)))}:null).on("click",a.interaction_enabled?function(e,t){var n,r=o.updateAngle(e);r&&(n=o.convertToArcData(r),o.toggleShape&&o.toggleShape(this,n,t),o.config.data_onclick.call(o.api,n,this))}:null).each(function(){o.transiting=!0}).transition().duration(e).attrTween("d",function(e){var t,n=o.updateAngle(e);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),t=i.interpolate(this._current,n),this._current=t(0),function(n){var r=t(n);return r.data=e.data,o.getArc(r,!0)}):function(){return"M 0 0"}}).attr("transform",n?"scale(1)":"").style("fill",function(e){return o.levelColor?o.levelColor(e.data.values[0].value):o.color(e.data.id)}).style("opacity",1).call(o.endall,function(){o.transiting=!1}),r.exit().transition().duration(t).style("opacity",0).remove(),s.selectAll("."+g.chartArc).select("text").style("opacity",0).attr("class",function(e){return o.isGaugeType(e.data)?g.gaugeValue:""}).text(o.textForArcLabel.bind(o)).attr("transform",o.transformForArcLabel.bind(o)).style("font-size",function(e){return o.isGaugeType(e.data)?Math.round(o.radius/5)+"px":""}).transition().duration(e).style("opacity",function(e){return o.isTargetToShow(e.data.id)&&o.isArcType(e.data)?1:0}),s.select("."+g.chartArcsTitle).style("opacity",o.hasType("donut")||o.hasType("gauge")?1:0),o.hasType("gauge")&&(o.arcs.select("."+g.chartArcsBackground).attr("d",function(){var e={data:[{value:a.gauge_max}],startAngle:a.gauge_startingAngle,endAngle:-1*a.gauge_startingAngle};return o.getArc(e,!0,!0)}),o.arcs.select("."+g.chartArcsGaugeUnit).attr("dy",".75em").text(a.gauge_label_show?a.gauge_units:""),o.arcs.select("."+g.chartArcsGaugeMin).attr("dx",-1*(o.innerRadius+(o.radius-o.innerRadius)/(a.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_min:""),o.arcs.select("."+g.chartArcsGaugeMax).attr("dx",o.innerRadius+(o.radius-o.innerRadius)/(a.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(a.gauge_label_show?a.gauge_max:""))},p.initGauge=function(){var e=this.arcs;this.hasType("gauge")&&(e.append("path").attr("class",g.chartArcsBackground),e.append("text").attr("class",g.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",g.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",g.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},p.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},p.initRegion=function(){var e=this;e.region=e.main.append("g").attr("clip-path",e.clipPath).attr("class",g.regions)},p.updateRegion=function(e){var t=this,n=t.config;t.region.style("visibility",t.hasArcType()?"hidden":"visible"),t.mainRegion=t.main.select("."+g.regions).selectAll("."+g.region).data(n.regions),t.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),t.mainRegion.attr("class",t.classRegion.bind(t)),t.mainRegion.exit().transition().duration(e).style("opacity",0).remove()},p.redrawRegion=function(e){var t=this,n=t.mainRegion.selectAll("rect").each(function(){var e=t.d3.select(this.parentNode).datum();t.d3.select(this).datum(e)}),r=t.regionX.bind(t),o=t.regionY.bind(t),i=t.regionWidth.bind(t),a=t.regionHeight.bind(t);return[(e?n.transition():n).attr("x",r).attr("y",o).attr("width",i).attr("height",a).style("fill-opacity",function(e){return y(e.opacity)?e.opacity:.1})]},p.regionX=function(e){var t,n=this,r=n.config,o="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"start"in e?o(e.start):0:r.axis_rotated?0:"start"in e?n.x(n.isTimeSeries()?n.parseDate(e.start):e.start):0},p.regionY=function(e){var t,n=this,r=n.config,o="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?0:"end"in e?o(e.end):0:r.axis_rotated&&"start"in e?n.x(n.isTimeSeries()?n.parseDate(e.start):e.start):0},p.regionWidth=function(e){var t,n=this,r=n.config,o=n.regionX(e),i="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"end"in e?i(e.end):n.width:r.axis_rotated?n.width:"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.width,t<o?0:t-o},p.regionHeight=function(e){var t,n=this,r=n.config,o=this.regionY(e),i="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?n.height:"start"in e?i(e.start):n.height:r.axis_rotated&&"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.height,t<o?0:t-o},p.isRegionOnX=function(e){return!e.axis||"x"===e.axis},p.drag=function(e){var t,n,r,o,i,a,s,u,c=this,l=c.config,f=c.main,p=c.d3;c.hasArcType()||l.data_selection_enabled&&(l.zoom_enabled&&!c.zoom.altDomain||l.data_selection_multiple&&(t=c.dragStart[0],
13
- n=c.dragStart[1],r=e[0],o=e[1],i=Math.min(t,r),a=Math.max(t,r),s=l.data_selection_grouped?c.margin.top:Math.min(n,o),u=l.data_selection_grouped?c.height:Math.max(n,o),f.select("."+g.dragarea).attr("x",i).attr("y",s).attr("width",a-i).attr("height",u-s),f.selectAll("."+g.shapes).selectAll("."+g.shape).filter(function(e){return l.data_selection_isselectable(e)}).each(function(e,t){var n,r,o,l,f,d,h=p.select(this),y=h.classed(g.SELECTED),m=h.classed(g.INCLUDED),v=!1;if(h.classed(g.circle))n=1*h.attr("cx"),r=1*h.attr("cy"),f=c.togglePoint,v=i<n&&n<a&&s<r&&r<u;else{if(!h.classed(g.bar))return;d=R(this),n=d.x,r=d.y,o=d.width,l=d.height,f=c.togglePath,v=!(a<n||n+o<i||u<r||r+l<s)}v^m&&(h.classed(g.INCLUDED,!m),h.classed(g.SELECTED,!y),f.call(c,!y,h,e,t))})))},p.dragstart=function(e){var t=this,n=t.config;t.hasArcType()||n.data_selection_enabled&&(t.dragStart=e,t.main.select("."+g.chart).append("rect").attr("class",g.dragarea).style("opacity",.1),t.dragging=!0)},p.dragend=function(){var e=this,t=e.config;e.hasArcType()||t.data_selection_enabled&&(e.main.select("."+g.dragarea).transition().duration(100).style("opacity",0).remove(),e.main.selectAll("."+g.shape).classed(g.INCLUDED,!1),e.dragging=!1)},p.selectPoint=function(e,t,n){var r=this,o=r.config,i=(o.axis_rotated?r.circleY:r.circleX).bind(r),a=(o.axis_rotated?r.circleX:r.circleY).bind(r),s=r.pointSelectR.bind(r);o.data_onselected.call(r.api,t,e.node()),r.main.select("."+g.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+g.selectedCircle+"-"+n).data([t]).enter().append("circle").attr("class",function(){return r.generateClass(g.selectedCircle,n)}).attr("cx",i).attr("cy",a).attr("stroke",function(){return r.color(t)}).attr("r",function(e){return 1.4*r.pointSelectR(e)}).transition().duration(100).attr("r",s)},p.unselectPoint=function(e,t,n){var r=this;r.config.data_onunselected.call(r.api,t,e.node()),r.main.select("."+g.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+g.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},p.togglePoint=function(e,t,n,r){e?this.selectPoint(t,n,r):this.unselectPoint(t,n,r)},p.selectPath=function(e,t){var n=this;n.config.data_onselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.d3.rgb(n.color(t)).brighter(.75)})},p.unselectPath=function(e,t){var n=this;n.config.data_onunselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.color(t)})},p.togglePath=function(e,t,n,r){e?this.selectPath(t,n,r):this.unselectPath(t,n,r)},p.getToggle=function(e,t){var n,r=this;return"circle"===e.nodeName?n=r.isStepType(t)?function(){}:r.togglePoint:"path"===e.nodeName&&(n=r.togglePath),n},p.toggleShape=function(e,t,n){var r=this,o=r.d3,i=r.config,a=o.select(e),s=a.classed(g.SELECTED),u=r.getToggle(e,t).bind(r);i.data_selection_enabled&&i.data_selection_isselectable(t)&&(i.data_selection_multiple||r.main.selectAll("."+g.shapes+(i.data_selection_grouped?r.getTargetSelectorSuffix(t.id):"")).selectAll("."+g.shape).each(function(e,t){var n=o.select(this);n.classed(g.SELECTED)&&u(!1,n.classed(g.SELECTED,!1),e,t)}),a.classed(g.SELECTED,!s),u(!s,a,t,n))},p.initBrush=function(){var e=this,t=e.d3;e.brush=t.svg.brush().on("brush",function(){e.redrawForBrush()}),e.brush.update=function(){return e.context&&e.context.select("."+g.brush).call(this),this},e.brush.scale=function(t){return e.config.axis_rotated?this.y(t):this.x(t)}},p.initSubchart=function(){var e=this,t=e.config,n=e.context=e.svg.append("g").attr("transform",e.getTranslate("context")),r=t.subchart_show?"visible":"hidden";n.style("visibility",r),n.append("g").attr("clip-path",e.clipPathForSubchart).attr("class",g.chart),n.select("."+g.chart).append("g").attr("class",g.chartBars),n.select("."+g.chart).append("g").attr("class",g.chartLines),n.append("g").attr("clip-path",e.clipPath).attr("class",g.brush).call(e.brush),e.axes.subx=n.append("g").attr("class",g.axisX).attr("transform",e.getTranslate("subx")).attr("clip-path",t.axis_rotated?"":e.clipPathForXAxis).style("visibility",t.subchart_axis_x_show?r:"hidden")},p.updateTargetsForSubchart=function(e){var t,n,r,o,i=this,a=i.context,s=i.config,u=i.classChartBar.bind(i),c=i.classBars.bind(i),l=i.classChartLine.bind(i),f=i.classLines.bind(i),p=i.classAreas.bind(i);s.subchart_show&&(o=a.select("."+g.chartBars).selectAll("."+g.chartBar).data(e).attr("class",u),r=o.enter().append("g").style("opacity",0).attr("class",u),r.append("g").attr("class",c),n=a.select("."+g.chartLines).selectAll("."+g.chartLine).data(e).attr("class",l),t=n.enter().append("g").style("opacity",0).attr("class",l),t.append("g").attr("class",f),t.append("g").attr("class",p),a.selectAll("."+g.brush+" rect").attr(s.axis_rotated?"width":"height",s.axis_rotated?i.width2:i.height2))},p.updateBarForSubchart=function(e){var t=this;t.contextBar=t.context.selectAll("."+g.bars).selectAll("."+g.bar).data(t.barData.bind(t)),t.contextBar.enter().append("path").attr("class",t.classBar.bind(t)).style("stroke","none").style("fill",t.color),t.contextBar.style("opacity",t.initialOpacity.bind(t)),t.contextBar.exit().transition().duration(e).style("opacity",0).remove()},p.redrawBarForSubchart=function(e,t,n){(t?this.contextBar.transition(Math.random().toString()).duration(n):this.contextBar).attr("d",e).style("opacity",1)},p.updateLineForSubchart=function(e){var t=this;t.contextLine=t.context.selectAll("."+g.lines).selectAll("."+g.line).data(t.lineData.bind(t)),t.contextLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.contextLine.style("opacity",t.initialOpacity.bind(t)),t.contextLine.exit().transition().duration(e).style("opacity",0).remove()},p.redrawLineForSubchart=function(e,t,n){(t?this.contextLine.transition(Math.random().toString()).duration(n):this.contextLine).attr("d",e).style("opacity",1)},p.updateAreaForSubchart=function(e){var t=this,n=t.d3;t.contextArea=t.context.selectAll("."+g.areas).selectAll("."+g.area).data(t.lineData.bind(t)),t.contextArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.contextArea.style("opacity",0),t.contextArea.exit().transition().duration(e).style("opacity",0).remove()},p.redrawAreaForSubchart=function(e,t,n){(t?this.contextArea.transition(Math.random().toString()).duration(n):this.contextArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)},p.redrawSubchart=function(e,t,n,r,o,i,a){var s,u,c,l=this,f=l.d3,p=l.config;l.context.style("visibility",p.subchart_show?"visible":"hidden"),p.subchart_show&&(f.event&&"zoom"===f.event.type&&l.brush.extent(l.x.orgDomain()).update(),e&&(l.brush.empty()||l.brush.extent(l.x.orgDomain()).update(),s=l.generateDrawArea(o,!0),u=l.generateDrawBar(i,!0),c=l.generateDrawLine(a,!0),l.updateBarForSubchart(n),l.updateLineForSubchart(n),l.updateAreaForSubchart(n),l.redrawBarForSubchart(u,n,n),l.redrawLineForSubchart(c,n,n),l.redrawAreaForSubchart(s,n,n)))},p.redrawForBrush=function(){var e=this,t=e.x;e.redraw({withTransition:!1,withY:e.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e.config.subchart_onbrush.call(e.api,t.orgDomain())},p.transformContext=function(e,t){var n,r=this;t&&t.axisSubX?n=t.axisSubX:(n=r.context.select("."+g.axisX),e&&(n=n.transition())),r.context.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subx"))},p.getDefaultExtent=function(){var e=this,t=e.config,n=m(t.axis_x_extent)?t.axis_x_extent(e.getXDomain(e.data.targets)):t.axis_x_extent;return e.isTimeSeries()&&(n=[e.parseDate(n[0]),e.parseDate(n[1])]),n},p.initZoom=function(){var e,t=this,n=t.d3,r=t.config;t.zoom=n.behavior.zoom().on("zoomstart",function(){e=n.event.sourceEvent,t.zoom.altDomain=n.event.sourceEvent.altKey?t.x.orgDomain():null,r.zoom_onzoomstart.call(t.api,n.event.sourceEvent)}).on("zoom",function(){t.redrawForZoom.call(t)}).on("zoomend",function(){var o=n.event.sourceEvent;o&&e.clientX===o.clientX&&e.clientY===o.clientY||(t.redrawEventRect(),t.updateZoom(),r.zoom_onzoomend.call(t.api,t.x.orgDomain()))}),t.zoom.scale=function(e){return r.axis_rotated?this.y(e):this.x(e)},t.zoom.orgScaleExtent=function(){var e=r.zoom_extent?r.zoom_extent:[1,10];return[e[0],Math.max(t.getMaxDataCount()/e[1],e[1])]},t.zoom.updateScaleExtent=function(){var e=C(t.x.orgDomain())/C(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this}},p.getZoomDomain=function(){var e=this,t=e.config,n=e.d3,r=n.min([e.orgXDomain[0],t.zoom_x_min]),o=n.max([e.orgXDomain[1],t.zoom_x_max]);return[r,o]},p.updateZoom=function(){var e=this,t=e.config.zoom_enabled?e.zoom:function(){};e.main.select("."+g.zoomRect).call(t).on("dblclick.zoom",null),e.main.selectAll("."+g.eventRect).call(t).on("dblclick.zoom",null)},p.redrawForZoom=function(){var e=this,t=e.d3,n=e.config,r=e.zoom,o=e.x;if(n.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&r.altDomain)return o.domain(r.altDomain),void r.scale(o).updateScaleExtent();e.isCategorized()&&o.orgDomain()[0]===e.orgXDomain[0]&&o.domain([e.orgXDomain[0]-1e-10,o.orgDomain()[1]]),e.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),n.zoom_onzoom.call(e.api,o.orgDomain())}},p.generateColor=function(){var e=this,t=e.config,n=e.d3,r=t.data_colors,o=w(t.color_pattern)?t.color_pattern:n.scale.category10().range(),i=t.data_color,a=[];return function(e){var t,n=e.id||e.data&&e.data.id||e;return r[n]instanceof Function?t=r[n](e):r[n]?t=r[n]:(a.indexOf(n)<0&&a.push(n),t=o[a.indexOf(n)%o.length],r[n]=t),i instanceof Function?i(t,e):t}},p.generateLevelColor=function(){var e=this,t=e.config,n=t.color_pattern,r=t.color_threshold,o="value"===r.unit,i=r.values&&r.values.length?r.values:[],a=r.max||100;return w(t.color_threshold)?function(e){var t,r,s=n[n.length-1];for(t=0;t<i.length;t++)if(r=o?e:100*e/a,r<i[t]){s=n[t];break}return s}:null},p.getYFormat=function(e){var t=this,n=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.yFormat,r=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.y2Format;return function(e,o,i){var a="y2"===t.axis.getId(i)?r:n;return a.call(t,e,o)}},p.yFormat=function(e){var t=this,n=t.config,r=n.axis_y_tick_format?n.axis_y_tick_format:t.defaultValueFormat;return r(e)},p.y2Format=function(e){var t=this,n=t.config,r=n.axis_y2_tick_format?n.axis_y2_tick_format:t.defaultValueFormat;return r(e)},p.defaultValueFormat=function(e){return y(e)?+e:""},p.defaultArcValueFormat=function(e,t){return(100*t).toFixed(1)+"%"},p.dataLabelFormat=function(e){var t,n=this,r=n.config.data_labels,o=function(e){return y(e)?+e:""};return t="function"==typeof r.format?r.format:"object"==typeof r.format?r.format[e]?r.format[e]===!0?o:r.format[e]:function(){return""}:o},p.hasCaches=function(e){for(var t=0;t<e.length;t++)if(!(e[t]in this.cache))return!1;return!0},p.addCache=function(e,t){this.cache[e]=this.cloneTarget(t)},p.getCaches=function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]in this.cache&&n.push(this.cloneTarget(this.cache[e[t]]));return n};var g=p.CLASS={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"};p.generateClass=function(e,t){return" "+e+" "+e+this.getTargetSelectorSuffix(t)},p.classText=function(e){return this.generateClass(g.text,e.index)},p.classTexts=function(e){return this.generateClass(g.texts,e.id)},p.classShape=function(e){return this.generateClass(g.shape,e.index)},p.classShapes=function(e){return this.generateClass(g.shapes,e.id)},p.classLine=function(e){return this.classShape(e)+this.generateClass(g.line,e.id)},p.classLines=function(e){return this.classShapes(e)+this.generateClass(g.lines,e.id)},p.classCircle=function(e){return this.classShape(e)+this.generateClass(g.circle,e.index)},p.classCircles=function(e){return this.classShapes(e)+this.generateClass(g.circles,e.id)},p.classBar=function(e){return this.classShape(e)+this.generateClass(g.bar,e.index)},p.classBars=function(e){return this.classShapes(e)+this.generateClass(g.bars,e.id)},p.classArc=function(e){return this.classShape(e.data)+this.generateClass(g.arc,e.data.id)},p.classArcs=function(e){return this.classShapes(e.data)+this.generateClass(g.arcs,e.data.id)},p.classArea=function(e){return this.classShape(e)+this.generateClass(g.area,e.id)},p.classAreas=function(e){return this.classShapes(e)+this.generateClass(g.areas,e.id)},p.classRegion=function(e,t){return this.generateClass(g.region,t)+" "+("class"in e?e.class:"")},p.classEvent=function(e){return this.generateClass(g.eventRect,e.index)},p.classTarget=function(e){var t=this,n=t.config.data_classes[e],r="";return n&&(r=" "+g.target+"-"+n),t.generateClass(g.target,e)+r},p.classFocus=function(e){return this.classFocused(e)+this.classDefocused(e)},p.classFocused=function(e){return" "+(this.focusedTargetIds.indexOf(e.id)>=0?g.focused:"")},p.classDefocused=function(e){return" "+(this.defocusedTargetIds.indexOf(e.id)>=0?g.defocused:"")},p.classChartText=function(e){return g.chartText+this.classTarget(e.id)},p.classChartLine=function(e){return g.chartLine+this.classTarget(e.id)},p.classChartBar=function(e){return g.chartBar+this.classTarget(e.id)},p.classChartArc=function(e){return g.chartArc+this.classTarget(e.data.id)},p.getTargetSelectorSuffix=function(e){return e||0===e?("-"+e).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},p.selectorTarget=function(e,t){return(t||"")+"."+g.target+this.getTargetSelectorSuffix(e)},p.selectorTargets=function(e,t){var n=this;return e=e||[],e.length?e.map(function(e){return n.selectorTarget(e,t)}):null},p.selectorLegend=function(e){return"."+g.legendItem+this.getTargetSelectorSuffix(e)},p.selectorLegends=function(e){var t=this;return e&&e.length?e.map(function(e){return t.selectorLegend(e)}):null};var y=p.isValue=function(e){return e||0===e},m=p.isFunction=function(e){return"function"==typeof e},v=p.isString=function(e){return"string"==typeof e},_=p.isUndefined=function(e){return"undefined"==typeof e},b=p.isDefined=function(e){return"undefined"!=typeof e},x=p.ceil10=function(e){return 10*Math.ceil(e/10)},E=p.asHalfPixel=function(e){return Math.ceil(e)+.5},C=p.diffDomain=function(e){return e[1]-e[0]},S=p.isEmpty=function(e){return"undefined"==typeof e||null===e||v(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length},w=p.notEmpty=function(e){return!p.isEmpty(e)},T=p.getOption=function(e,t,n){return b(e[t])?e[t]:n},O=p.hasValue=function(e,t){var n=!1;return Object.keys(e).forEach(function(r){e[r]===t&&(n=!0)}),n},P=p.sanitise=function(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e},R=p.getPathBox=function(e){var t=e.getBoundingClientRect(),n=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)],r=n[0].x,o=Math.min(n[0].y,n[1].y);return{x:r,y:o,width:t.width,height:t.height}};f.focus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),t.classed(g.focused,!0).classed(g.defocused,!1),n.hasArcType()&&n.expandArc(e),n.toggleFocusLegend(e,!0),n.focusedTargetIds=e,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(t){return e.indexOf(t)<0})},f.defocus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),t.classed(g.focused,!1).classed(g.defocused,!0),n.hasArcType()&&n.unexpandArc(e),n.toggleFocusLegend(e,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(t){return e.indexOf(t)<0}),n.defocusedTargetIds=e},f.revert=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e)),t.classed(g.focused,!1).classed(g.defocused,!1),n.hasArcType()&&n.unexpandArc(e),n.config.legend_show&&(n.showLegend(e.filter(n.isLegendToShow.bind(n))),n.legend.selectAll(n.selectorLegends(e)).filter(function(){return n.d3.select(this).classed(g.legendItemFocused)}).classed(g.legendItemFocused,!1)),n.focusedTargetIds=[],n.defocusedTargetIds=[]},f.show=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.removeHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",1,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",1)}),t.withLegend&&r.showLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},f.hide=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.addHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",0,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",0)}),t.withLegend&&r.hideLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},f.toggle=function(e,t){var n=this,r=this.internal;r.mapToTargetIds(e).forEach(function(e){r.isTargetToShow(e)?n.hide(e,t):n.show(e,t)})},f.zoom=function(e){var t=this.internal;return e&&(t.isTimeSeries()&&(e=e.map(function(e){return t.parseDate(e)})),t.brush.extent(e),t.redraw({withUpdateXDomain:!0,withY:t.config.zoom_rescale}),t.config.zoom_onzoom.call(this,t.x.orgDomain())),t.brush.extent()},f.zoom.enable=function(e){var t=this.internal;t.config.zoom_enabled=e,t.updateAndRedraw()},f.unzoom=function(){var e=this.internal;e.brush.clear().update(),e.redraw({withUpdateXDomain:!0})},f.zoom.max=function(e){var t=this.internal,n=t.config,r=t.d3;return 0===e||e?void(n.zoom_x_max=r.max([t.orgXDomain[1],e])):n.zoom_x_max},f.zoom.min=function(e){var t=this.internal,n=t.config,r=t.d3;return 0===e||e?void(n.zoom_x_min=r.min([t.orgXDomain[0],e])):n.zoom_x_min},f.zoom.range=function(e){return arguments.length?(b(e.max)&&this.domain.max(e.max),void(b(e.min)&&this.domain.min(e.min))):{max:this.domain.max(),min:this.domain.min()}},f.load=function(e){var t=this.internal,n=t.config;return e.xs&&t.addXs(e.xs),"names"in e&&f.data.names.bind(this)(e.names),"classes"in e&&Object.keys(e.classes).forEach(function(t){n.data_classes[t]=e.classes[t]}),"categories"in e&&t.isCategorized()&&(n.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach(function(t){n.data_axes[t]=e.axes[t]}),"colors"in e&&Object.keys(e.colors).forEach(function(t){n.data_colors[t]=e.colors[t]}),"cacheIds"in e&&t.hasCaches(e.cacheIds)?void t.load(t.getCaches(e.cacheIds),e.done):void("unload"in e?t.unload(t.mapToTargetIds("boolean"==typeof e.unload&&e.unload?null:e.unload),function(){t.loadFromArgs(e)}):t.loadFromArgs(e))},f.unload=function(e){var t=this.internal;e=e||{},e instanceof Array?e={ids:e}:"string"==typeof e&&(e={ids:[e]}),t.unload(t.mapToTargetIds(e.ids),function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()})},f.flow=function(e){var t,n,r,o,i,a,s,u,c=this.internal,l=[],f=c.getMaxDataCount(),p=0,d=0;if(e.json)n=c.convertJsonToData(e.json,e.keys);else if(e.rows)n=c.convertRowsToData(e.rows);else{if(!e.columns)return;n=c.convertColumnsToData(e.columns)}t=c.convertDataToTargets(n,!0),c.data.targets.forEach(function(e){var n,r,o=!1;for(n=0;n<t.length;n++)if(e.id===t[n].id){for(o=!0,e.values[e.values.length-1]&&(d=e.values[e.values.length-1].index+1),p=t[n].values.length,r=0;r<p;r++)t[n].values[r].index=d+r,c.isTimeSeries()||(t[n].values[r].x=d+r);e.values=e.values.concat(t[n].values),t.splice(n,1);break}o||l.push(e.id)}),c.data.targets.forEach(function(e){var t,n;for(t=0;t<l.length;t++)if(e.id===l[t])for(d=e.values[e.values.length-1].index+1,n=0;n<p;n++)e.values.push({id:e.id,index:d+n,x:c.isTimeSeries()?c.getOtherTargetX(d+n):d+n,value:null})}),c.data.targets.length&&t.forEach(function(e){var t,n=[];for(t=c.data.targets[0].values[0].index;t<d;t++)n.push({id:e.id,index:t,x:c.isTimeSeries()?c.getOtherTargetX(t):t,value:null});e.values.forEach(function(e){e.index+=d,c.isTimeSeries()||(e.x+=d)}),e.values=n.concat(e.values)}),c.data.targets=c.data.targets.concat(t),r=c.getMaxDataCount(),i=c.data.targets[0],a=i.values[0],b(e.to)?(p=0,u=c.isTimeSeries()?c.parseDate(e.to):e.to,i.values.forEach(function(e){e.x<u&&p++})):b(e.length)&&(p=e.length),f?1===f&&c.isTimeSeries()&&(s=(i.values[i.values.length-1].x-a.x)/2,o=[new Date(+a.x-s),new Date(+a.x+s)],c.updateXDomain(null,!0,!0,!1,o)):(s=c.isTimeSeries()?i.values.length>1?i.values[i.values.length-1].x-a.x:a.x-c.getXDomain(c.data.targets)[0]:1,o=[a.x-s,a.x],c.updateXDomain(null,!0,!0,!1,o)),c.updateTargets(c.data.targets),c.redraw({flow:{index:a.index,length:p,duration:y(e.duration)?e.duration:c.config.transition_duration,done:e.done,orgDataCount:f},withLegend:!0,withTransition:f>1,withTrimXDomain:!1,withUpdateXAxis:!0})},p.generateFlow=function(e){var t=this,n=t.config,r=t.d3;return function(){var o,i,a,s=e.targets,u=e.flow,c=e.drawBar,l=e.drawLine,f=e.drawArea,p=e.cx,d=e.cy,h=e.xv,y=e.xForText,m=e.yForText,v=e.duration,_=1,b=u.index,x=u.length,E=t.getValueOnIndex(t.data.targets[0].values,b),S=t.getValueOnIndex(t.data.targets[0].values,b+x),w=t.x.domain(),T=u.duration||v,O=u.done||function(){},P=t.generateWait(),R=t.xgrid||r.selectAll([]),A=t.xgridLines||r.selectAll([]),M=t.mainRegion||r.selectAll([]),N=t.mainText||r.selectAll([]),I=t.mainBar||r.selectAll([]),L=t.mainLine||r.selectAll([]),k=t.mainArea||r.selectAll([]),D=t.mainCircle||r.selectAll([]);t.flowing=!0,t.data.targets.forEach(function(e){e.values.splice(0,x)}),a=t.updateXDomain(s,!0,!0),t.updateXGrid&&t.updateXGrid(!0),u.orgDataCount?o=1===u.orgDataCount||(E&&E.x)===(S&&S.x)?t.x(w[0])-t.x(a[0]):t.isTimeSeries()?t.x(w[0])-t.x(a[0]):t.x(E.x)-t.x(S.x):1!==t.data.targets[0].values.length?o=t.x(w[0])-t.x(a[0]):t.isTimeSeries()?(E=t.getValueOnIndex(t.data.targets[0].values,0),S=t.getValueOnIndex(t.data.targets[0].values,t.data.targets[0].values.length-1),o=t.x(E.x)-t.x(S.x)):o=C(a)/2,_=C(w)/C(a),i="translate("+o+",0) scale("+_+",1)",t.hideXGridFocus(),r.transition().ease("linear").duration(T).each(function(){P.add(t.axes.x.transition().call(t.xAxis)),P.add(I.transition().attr("transform",i)),P.add(L.transition().attr("transform",i)),P.add(k.transition().attr("transform",i)),P.add(D.transition().attr("transform",i)),P.add(N.transition().attr("transform",i)),P.add(M.filter(t.isRegionOnX).transition().attr("transform",i)),P.add(R.transition().attr("transform",i)),P.add(A.transition().attr("transform",i))}).call(P,function(){var e,r=[],o=[],i=[];if(x){for(e=0;e<x;e++)r.push("."+g.shape+"-"+(b+e)),o.push("."+g.text+"-"+(b+e)),i.push("."+g.eventRect+"-"+(b+e));t.svg.selectAll("."+g.shapes).selectAll(r).remove(),t.svg.selectAll("."+g.texts).selectAll(o).remove(),t.svg.selectAll("."+g.eventRects).selectAll(i).remove(),t.svg.select("."+g.xgrid).remove()}R.attr("transform",null).attr(t.xgridAttr),A.attr("transform",null),A.select("line").attr("x1",n.axis_rotated?0:h).attr("x2",n.axis_rotated?t.width:h),A.select("text").attr("x",n.axis_rotated?t.width:0).attr("y",h),I.attr("transform",null).attr("d",c),L.attr("transform",null).attr("d",l),k.attr("transform",null).attr("d",f),D.attr("transform",null).attr("cx",p).attr("cy",d),N.attr("transform",null).attr("x",y).attr("y",m).style("fill-opacity",t.opacityForText.bind(t)),M.attr("transform",null),M.select("rect").filter(t.isRegionOnX).attr("x",t.regionX.bind(t)).attr("width",t.regionWidth.bind(t)),n.interaction_enabled&&t.redrawEventRect(),O(),t.flowing=!1})}},f.selected=function(e){var t=this.internal,n=t.d3;return n.merge(t.main.selectAll("."+g.shapes+t.getTargetSelectorSuffix(e)).selectAll("."+g.shape).filter(function(){return n.select(this).classed(g.SELECTED)}).map(function(e){return e.map(function(e){var t=e.__data__;return t.data?t.data:t})}))},f.select=function(e,t,n){var r=this.internal,o=r.d3,i=r.config;i.data_selection_enabled&&r.main.selectAll("."+g.shapes).selectAll("."+g.shape).each(function(a,s){var u=o.select(this),c=a.data?a.data.id:a.id,l=r.getToggle(this,a).bind(r),f=i.data_selection_grouped||!e||e.indexOf(c)>=0,p=!t||t.indexOf(s)>=0,d=u.classed(g.SELECTED);u.classed(g.line)||u.classed(g.area)||(f&&p?i.data_selection_isselectable(a)&&!d&&l(!0,u.classed(g.SELECTED,!0),a,s):b(n)&&n&&d&&l(!1,u.classed(g.SELECTED,!1),a,s))})},f.unselect=function(e,t){var n=this.internal,r=n.d3,o=n.config;o.data_selection_enabled&&n.main.selectAll("."+g.shapes).selectAll("."+g.shape).each(function(i,a){var s=r.select(this),u=i.data?i.data.id:i.id,c=n.getToggle(this,i).bind(n),l=o.data_selection_grouped||!e||e.indexOf(u)>=0,f=!t||t.indexOf(a)>=0,p=s.classed(g.SELECTED);s.classed(g.line)||s.classed(g.area)||l&&f&&o.data_selection_isselectable(i)&&p&&c(!1,s.classed(g.SELECTED,!1),i,a)})},f.transform=function(e,t){var n=this.internal,r=["pie","donut"].indexOf(e)>=0?{withTransform:!0}:null;n.transformTo(t,e,r)},p.transformTo=function(e,t,n){var r=this,o=!r.hasArcType(),i=n||{withTransitionForAxis:o};i.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(e,t),r.updateTargets(r.data.targets),r.updateAndRedraw(i)},f.groups=function(e){var t=this.internal,n=t.config;return _(e)?n.data_groups:(n.data_groups=e,t.redraw(),n.data_groups)},f.xgrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_x_lines=e,t.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},f.xgrids.add=function(e){var t=this.internal;return this.xgrids(t.config.grid_x_lines.concat(e?e:[]))},f.xgrids.remove=function(e){var t=this.internal;t.removeGridLines(e,!0)},f.ygrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_y_lines=e,t.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},f.ygrids.add=function(e){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(e?e:[]))},f.ygrids.remove=function(e){var t=this.internal;t.removeGridLines(e,!1)},f.regions=function(e){var t=this.internal,n=t.config;return e?(n.regions=e,t.redrawWithoutRescale(),n.regions):n.regions},f.regions.add=function(e){var t=this.internal,n=t.config;return e?(n.regions=n.regions.concat(e),t.redrawWithoutRescale(),n.regions):n.regions},f.regions.remove=function(e){var t,n,r,o=this.internal,i=o.config;return e=e||{},t=o.getOption(e,"duration",i.transition_duration),n=o.getOption(e,"classes",[g.region]),r=o.main.select("."+g.regions).selectAll(n.map(function(e){return"."+e})),(t?r.transition().duration(t):r).style("opacity",0).remove(),i.regions=i.regions.filter(function(e){var t=!1;return!e.class||(e.class.split(" ").forEach(function(e){n.indexOf(e)>=0&&(t=!0)}),!t)}),i.regions},f.data=function(e){var t=this.internal.data.targets;return"undefined"==typeof e?t:t.filter(function(t){return[].concat(e).indexOf(t.id)>=0})},f.data.shown=function(e){return this.internal.filterTargetsToShow(this.data(e))},f.data.values=function(e){var t,n=null;return e&&(t=this.data(e),n=t[0]?t[0].values.map(function(e){return e.value}):null),n},f.data.names=function(e){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",e)},f.data.colors=function(e){return this.internal.updateDataAttributes("colors",e)},f.data.axes=function(e){return this.internal.updateDataAttributes("axes",e)},f.category=function(e,t){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[e]=t,n.redraw()),r.axis_x_categories[e]},f.categories=function(e){var t=this.internal,n=t.config;return arguments.length?(n.axis_x_categories=e,t.redraw(),n.axis_x_categories):n.axis_x_categories},f.color=function(e){var t=this.internal;return t.color(e)},f.x=function(e){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},f.xs=function(e){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},f.axis=function(){},f.axis.labels=function(e){var t=this.internal;arguments.length&&(Object.keys(e).forEach(function(n){t.axis.setLabelText(n,e[n])}),t.axis.updateLabels())},f.axis.max=function(e){var t=this.internal,n=t.config;return arguments.length?("object"==typeof e?(y(e.x)&&(n.axis_x_max=e.x),y(e.y)&&(n.axis_y_max=e.y),y(e.y2)&&(n.axis_y2_max=e.y2)):n.axis_y_max=n.axis_y2_max=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max}},f.axis.min=function(e){var t=this.internal,n=t.config;return arguments.length?("object"==typeof e?(y(e.x)&&(n.axis_x_min=e.x),y(e.y)&&(n.axis_y_min=e.y),y(e.y2)&&(n.axis_y2_min=e.y2)):n.axis_y_min=n.axis_y2_min=e,void t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})):{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min}},f.axis.range=function(e){return arguments.length?(b(e.max)&&this.axis.max(e.max),void(b(e.min)&&this.axis.min(e.min))):{max:this.axis.max(),min:this.axis.min()}},f.legend=function(){},f.legend.show=function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},f.legend.hide=function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},f.resize=function(e){var t=this.internal,n=t.config;n.size_width=e?e.width:null,n.size_height=e?e.height:null,this.flush()},f.flush=function(){var e=this.internal;e.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},f.destroy=function(){var e=this.internal;if(o.clearInterval(e.intervalForObserveInserted),void 0!==e.resizeTimeout&&o.clearTimeout(e.resizeTimeout),o.detachEvent)o.detachEvent("onresize",e.resizeFunction);else if(o.removeEventListener)o.removeEventListener("resize",e.resizeFunction);else{var t=o.onresize;t&&t.add&&t.remove&&t.remove(e.resizeFunction)}return e.selectChart.classed("c3",!1).html(""),Object.keys(e).forEach(function(t){e[t]=null}),null},f.tooltip=function(){},f.tooltip.show=function(e){var t,n,r=this.internal;e.mouse&&(n=e.mouse),e.data?r.isMultipleX()?(n=[r.x(e.data.x),r.getYScale(e.data.id)(e.data.value)],t=null):t=y(e.data.index)?e.data.index:r.getIndexByX(e.data.x):"undefined"!=typeof e.x?t=r.getIndexByX(e.x):"undefined"!=typeof e.index&&(t=e.index),r.dispatchEvent("mouseover",t,n),r.dispatchEvent("mousemove",t,n),r.config.tooltip_onshow.call(r,e.data);
14
- },f.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)};var A;p.isSafari=function(){var e=o.navigator.userAgent;return e.indexOf("Safari")>=0&&e.indexOf("Chrome")<0},p.isChrome=function(){var e=o.navigator.userAgent;return e.indexOf("Chrome")>=0},Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,o.prototype=new r,o}),function(){"SVGPathSeg"in o||(o.SVGPathSeg=function(e,t,n){this.pathSegType=e,this.pathSegTypeAsLetter=t,this._owningPathSegList=n},SVGPathSeg.PATHSEG_UNKNOWN=0,SVGPathSeg.PATHSEG_CLOSEPATH=1,SVGPathSeg.PATHSEG_MOVETO_ABS=2,SVGPathSeg.PATHSEG_MOVETO_REL=3,SVGPathSeg.PATHSEG_LINETO_ABS=4,SVGPathSeg.PATHSEG_LINETO_REL=5,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,SVGPathSeg.PATHSEG_ARC_ABS=10,SVGPathSeg.PATHSEG_ARC_REL=11,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},o.SVGPathSegClosePath=function(e){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CLOSEPATH,"z",e)},SVGPathSegClosePath.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},SVGPathSegClosePath.prototype.clone=function(){return new SVGPathSegClosePath((void 0))},o.SVGPathSegMovetoAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_ABS,"M",e),this._x=t,this._y=n},SVGPathSegMovetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoAbs.prototype.clone=function(){return new SVGPathSegMovetoAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegMovetoRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_MOVETO_REL,"m",e),this._x=t,this._y=n},SVGPathSegMovetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegMovetoRel.prototype.clone=function(){return new SVGPathSegMovetoRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_ABS,"L",e),this._x=t,this._y=n},SVGPathSegLinetoAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoAbs.prototype.clone=function(){return new SVGPathSegLinetoAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_REL,"l",e),this._x=t,this._y=n},SVGPathSegLinetoRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegLinetoRel.prototype.clone=function(){return new SVGPathSegLinetoRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicAbs=function(e,t,n,r,o,i,a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",e),this._x=t,this._y=n,this._x1=r,this._y1=o,this._x2=i,this._y2=a},SVGPathSegCurvetoCubicAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicAbs((void 0),this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicRel=function(e,t,n,r,o,i,a){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",e),this._x=t,this._y=n,this._x1=r,this._y1=o,this._x2=i,this._y2=a},SVGPathSegCurvetoCubicRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicRel((void 0),this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticAbs=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e),this._x=t,this._y=n,this._x1=r,this._y1=o},SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticAbs((void 0),this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticRel=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",e),this._x=t,this._y=n,this._x1=r,this._y1=o},SVGPathSegCurvetoQuadraticRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticRel((void 0),this._x,this._y,this._x1,this._y1)},Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegArcAbs=function(e,t,n,r,o,i,a,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_ABS,"A",e),this._x=t,this._y=n,this._r1=r,this._r2=o,this._angle=i,this._largeArcFlag=a,this._sweepFlag=s},SVGPathSegArcAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcAbs.prototype.clone=function(){return new SVGPathSegArcAbs((void 0),this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegArcRel=function(e,t,n,r,o,i,a,s){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_ARC_REL,"a",e),this._x=t,this._y=n,this._r1=r,this._r2=o,this._angle=i,this._largeArcFlag=a,this._sweepFlag=s},SVGPathSegArcRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},SVGPathSegArcRel.prototype.clone=function(){return new SVGPathSegArcRel((void 0),this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoHorizontalAbs=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e),this._x=t},SVGPathSegLinetoHorizontalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new SVGPathSegLinetoHorizontalAbs((void 0),this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoHorizontalRel=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",e),this._x=t},SVGPathSegLinetoHorizontalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new SVGPathSegLinetoHorizontalRel((void 0),this._x)},Object.defineProperty(SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoVerticalAbs=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",e),this._y=t},SVGPathSegLinetoVerticalAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new SVGPathSegLinetoVerticalAbs((void 0),this._y)},Object.defineProperty(SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegLinetoVerticalRel=function(e,t){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",e),this._y=t},SVGPathSegLinetoVerticalRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new SVGPathSegLinetoVerticalRel((void 0),this._y)},Object.defineProperty(SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e),this._x=t,this._y=n,this._x2=r,this._y2=o},SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothAbs((void 0),this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r,o){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e),this._x=t,this._y=n,this._x2=r,this._y2=o},SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoCubicSmoothRel((void 0),this._x,this._y,this._x2,this._y2)},Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticSmoothAbs=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e),this._x=t,this._y=n},SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothAbs((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),o.SVGPathSegCurvetoQuadraticSmoothRel=function(e,t,n){SVGPathSeg.call(this,SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e),this._x=t,this._y=n},SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(SVGPathSeg.prototype),SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new SVGPathSegCurvetoQuadraticSmoothRel((void 0),this._x,this._y)},Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new SVGPathSegClosePath((void 0))},SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(e,t){return new SVGPathSegMovetoAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegMovetoRel=function(e,t){return new SVGPathSegMovetoRel((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(e,t){return new SVGPathSegLinetoAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegLinetoRel=function(e,t){return new SVGPathSegLinetoRel((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(e,t,n,r,o,i){return new SVGPathSegCurvetoCubicAbs((void 0),e,t,n,r,o,i)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(e,t,n,r,o,i){return new SVGPathSegCurvetoCubicRel((void 0),e,t,n,r,o,i)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(e,t,n,r){return new SVGPathSegCurvetoQuadraticAbs((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(e,t,n,r){return new SVGPathSegCurvetoQuadraticRel((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegArcAbs=function(e,t,n,r,o,i,a){return new SVGPathSegArcAbs((void 0),e,t,n,r,o,i,a)},SVGPathElement.prototype.createSVGPathSegArcRel=function(e,t,n,r,o,i,a){return new SVGPathSegArcRel((void 0),e,t,n,r,o,i,a)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(e){return new SVGPathSegLinetoHorizontalAbs((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(e){return new SVGPathSegLinetoHorizontalRel((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(e){return new SVGPathSegLinetoVerticalAbs((void 0),e)},SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(e){return new SVGPathSegLinetoVerticalRel((void 0),e)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r){return new SVGPathSegCurvetoCubicSmoothAbs((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r){return new SVGPathSegCurvetoCubicSmoothRel((void 0),e,t,n,r)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(e,t){return new SVGPathSegCurvetoQuadraticSmoothAbs((void 0),e,t)},SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(e,t){return new SVGPathSegCurvetoQuadraticSmoothRel((void 0),e,t)}),"SVGPathSegList"in o||(o.SVGPathSegList=function(e){this._pathElement=e,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},Object.defineProperty(SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},SVGPathSegList.prototype._updateListFromPathMutations=function(e){if(this._pathElement){var t=!1;e.forEach(function(e){"d"==e.attributeName&&(t=!0)}),t&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},SVGPathSegList.prototype.segmentChanged=function(e){this._writeListToPath()},SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(e){e._owningPathSegList=null}),this._list=[],this._writeListToPath()},SVGPathSegList.prototype.initialize=function(e){return this._checkPathSynchronizedToList(),this._list=[e],e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype._checkValidIndex=function(e){if(isNaN(e)||e<0||e>=this.numberOfItems)throw"INDEX_SIZE_ERR"},SVGPathSegList.prototype.getItem=function(e){return this._checkPathSynchronizedToList(),this._checkValidIndex(e),this._list[e]},SVGPathSegList.prototype.insertItemBefore=function(e,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),e._owningPathSegList&&(e=e.clone()),this._list.splice(t,0,e),e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype.replaceItem=function(e,t){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._checkValidIndex(t),this._list[t]=e,e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList.prototype.removeItem=function(e){this._checkPathSynchronizedToList(),this._checkValidIndex(e);var t=this._list[e];return this._list.splice(e,1),this._writeListToPath(),t},SVGPathSegList.prototype.appendItem=function(e){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._list.push(e),e._owningPathSegList=this,this._writeListToPath(),e},SVGPathSegList._pathSegArrayAsString=function(e){var t="",n=!0;return e.forEach(function(e){n?(n=!1,t+=e._asPathString()):t+=" "+e._asPathString()}),t},SVGPathSegList.prototype._parsePath=function(e){if(!e||0==e.length)return[];var t=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(e){this.pathSegList.push(e)};var r=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};r.prototype._isCurrentSpace=function(){var e=this._string[this._currentIndex];return e<=" "&&(" "==e||"\n"==e||"\t"==e||"\r"==e||"\f"==e)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},r.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},r.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},r.prototype.peekSegmentType=function(){var e=this._string[this._currentIndex];return this._pathSegTypeFromChar(e)},r.prototype._pathSegTypeFromChar=function(e){switch(e){case"Z":case"z":return SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return SVGPathSeg.PATHSEG_LINETO_REL;case"C":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return SVGPathSeg.PATHSEG_ARC_ABS;case"a":return SVGPathSeg.PATHSEG_ARC_REL;case"H":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return SVGPathSeg.PATHSEG_UNKNOWN}},r.prototype._nextCommandHelper=function(e,t){return("+"==e||"-"==e||"."==e||e>="0"&&e<="9")&&t!=SVGPathSeg.PATHSEG_CLOSEPATH?t==SVGPathSeg.PATHSEG_MOVETO_ABS?SVGPathSeg.PATHSEG_LINETO_ABS:t==SVGPathSeg.PATHSEG_MOVETO_REL?SVGPathSeg.PATHSEG_LINETO_REL:t:SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return e==SVGPathSeg.PATHSEG_MOVETO_ABS||e==SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var e=0,t=0,n=1,r=0,o=1,i=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var u=this._currentIndex-1,c=1;u>=s;)t+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)r+=(this._string.charAt(this._currentIndex++)-"0")*(n*=.1);
15
- }if(this._currentIndex!=a&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)e*=10,e+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var l=t+r;if(l*=o,e&&(l*=Math.pow(10,i*e)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var e=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)e=!1;else{if("1"!=t)return;e=!0}return this._skipOptionalSpacesOrDelimiter(),e}},r.prototype.parseSegment=function(){var e=this._string[this._currentIndex],n=this._pathSegTypeFromChar(e);if(n==SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==SVGPathSeg.PATHSEG_UNKNOWN)return null;if(n=this._nextCommandHelper(e,this._previousCommand),n==SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case SVGPathSeg.PATHSEG_MOVETO_REL:return new SVGPathSegMovetoRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_MOVETO_ABS:return new SVGPathSegMovetoAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_REL:return new SVGPathSegLinetoRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_ABS:return new SVGPathSegLinetoAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new SVGPathSegLinetoHorizontalRel(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new SVGPathSegLinetoHorizontalAbs(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new SVGPathSegLinetoVerticalRel(t,this._parseNumber());case SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new SVGPathSegLinetoVerticalAbs(t,this._parseNumber());case SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new SVGPathSegClosePath(t);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicRel(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicAbs(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothRel(t,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoCubicSmoothAbs(t,r.x,r.y,r.x2,r.y2);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticRel(t,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegCurvetoQuadraticAbs(t,r.x,r.y,r.x1,r.y1);case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new SVGPathSegCurvetoQuadraticSmoothRel(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new SVGPathSegCurvetoQuadraticSmoothAbs(t,this._parseNumber(),this._parseNumber());case SVGPathSeg.PATHSEG_ARC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcRel(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case SVGPathSeg.PATHSEG_ARC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new SVGPathSegArcAbs(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var o=new n,i=new r(e);if(!i.initialCommandIsMoveTo())return[];for(;i.hasMoreData();){var a=i.parseSegment();if(!a)return[];o.appendSegment(a)}return o.pathSegList})}(),"function"==typeof e&&e.amd?e("c3",["d3"],function(){return h}):"undefined"!=typeof r&&"undefined"!=typeof n?n.exports=h:o.c3=h}(window)},{d3:278}],278:[function(t,n,r){!function(){function t(e){return e&&(e.ownerDocument||e.document||e).documentElement}function r(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function o(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function a(e){return!isNaN(e)}function s(e){return{left:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function u(e){return e.length}function c(e){for(var t=1;e*t%1;)t*=10;return t}function l(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function f(){this._=Object.create(null)}function p(e){return(e+="")===xa||e[0]===Ea?Ea+e:e}function d(e){return(e+="")[0]===Ea?e.slice(1):e}function h(e){return p(e)in this._}function g(e){return(e=p(e))in this._&&delete this._[e]}function y(){var e=[];for(var t in this._)e.push(d(t));return e}function m(){var e=0;for(var t in this._)++e;return e}function v(){for(var e in this._)return!1;return!0}function _(){this._=Object.create(null)}function b(e){return e}function x(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function E(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=Ca.length;n<r;++n){var o=Ca[n]+t;if(o in e)return o}}function C(){}function S(){}function w(e){function t(){for(var t,r=n,o=-1,i=r.length;++o<i;)(t=r[o].on)&&t.apply(this,arguments);return e}var n=[],r=new f;return t.on=function(t,o){var i,a=r.get(t);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,i=n.indexOf(a)).concat(n.slice(i+1)),r.remove(t)),o&&n.push(r.set(t,{on:o})),e)},t}function T(){la.event.preventDefault()}function O(){for(var e,t=la.event;e=t.sourceEvent;)t=e;return t}function P(e){for(var t=new S,n=0,r=arguments.length;++n<r;)t[arguments[n]]=w(t);return t.of=function(n,r){return function(o){try{var i=o.sourceEvent=la.event;o.target=e,la.event=o,t[o.type].apply(n,r)}finally{la.event=i}}},t}function R(e){return wa(e,Ra),e}function A(e){return"function"==typeof e?e:function(){return Ta(e,this)}}function M(e){return"function"==typeof e?e:function(){return Oa(e,this)}}function N(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function o(){this.setAttribute(e,t)}function i(){this.setAttributeNS(e.space,e.local,t)}function a(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=la.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?s:a:e.local?i:o}function I(e){return e.trim().replace(/\s+/g," ")}function L(e){return new RegExp("(?:^|\\s+)"+la.requote(e)+"(?:\\s+|$)","g")}function k(e){return(e+"").trim().split(/^|\s+/)}function D(e,t){function n(){for(var n=-1;++n<o;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<o;)e[n](this,r)}e=k(e).map(j);var o=e.length;return"function"==typeof t?r:n}function j(e){var t=L(e);return function(n,r){if(o=n.classList)return r?o.add(e):o.remove(e);var o=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(o)||n.setAttribute("class",I(o+" "+e))):n.setAttribute("class",I(o.replace(t," ")))}}function F(e,t,n){function r(){this.style.removeProperty(e)}function o(){this.style.setProperty(e,t,n)}function i(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?i:o}function V(e,t){function n(){delete this[e]}function r(){this[e]=t}function o(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?o:r}function U(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===Aa&&t.documentElement.namespaceURI===Aa?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=la.ns.qualify(e)).local?n:t}function z(){var e=this.parentNode;e&&e.removeChild(this)}function G(e){return{__data__:e}}function H(e){return function(){return Pa(this,e)}}function B(e){return arguments.length||(e=o),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function Z(e,t){for(var n=0,r=e.length;n<r;n++)for(var o,i=e[n],a=0,s=i.length;a<s;a++)(o=i[a])&&t(o,a,n);return e}function q(e){return wa(e,Na),e}function W(e){var t,n;return function(r,o,i){var a,s=e[i].update,u=s.length;for(i!=n&&(n=i,t=0),o>=t&&(t=o+1);!(a=s[t])&&++t<u;);return a}}function X(e,t,n){function r(){var t=this[a];t&&(this.removeEventListener(e,t,t.$),delete this[a])}function o(){var o=u(t,pa(arguments));r.call(this),this.addEventListener(e,this[a]=o,o.$=n),o._=t}function i(){var t,n=new RegExp("^__on([^.]+)"+la.requote(e)+"$");for(var r in this)if(t=r.match(n)){var o=this[r];this.removeEventListener(t[1],o,o.$),delete this[r]}}var a="__on"+e,s=e.indexOf("."),u=Y;s>0&&(e=e.slice(0,s));var c=Ia.get(e);return c&&(e=c,u=K),s?t?o:r:t?C:i}function Y(e,t){return function(n){var r=la.event;la.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{la.event=r}}}function K(e,t){var n=Y(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(e){var n=".dragsuppress-"+ ++ka,o="click"+n,i=la.select(r(e)).on("touchmove"+n,T).on("dragstart"+n,T).on("selectstart"+n,T);if(null==La&&(La=!("onselectstart"in e)&&E(e.style,"userSelect")),La){var a=t(e).style,s=a[La];a[La]="none"}return function(e){if(i.on(n,null),La&&(a[La]=s),e){var t=function(){i.on(o,null)};i.on(o,function(){T(),t()},!0),setTimeout(t,0)}}}function $(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var o=n.createSVGPoint();if(Da<0){var i=r(e);if(i.scrollX||i.scrollY){n=la.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var a=n[0][0].getScreenCTM();Da=!(a.f||a.e),n.remove()}}return Da?(o.x=t.pageX,o.y=t.pageY):(o.x=t.clientX,o.y=t.clientY),o=o.matrixTransform(e.getScreenCTM().inverse()),[o.x,o.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function J(){return la.event.changedTouches[0].identifier}function ee(e){return e>0?1:e<0?-1:0}function te(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ne(e){return e>1?0:e<-1?Va:Math.acos(e)}function re(e){return e>1?Ga:e<-1?-Ga:Math.asin(e)}function oe(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function ae(e){return((e=Math.exp(2*e))-1)/(e+1)}function se(e){return(e=Math.sin(e/2))*e}function ue(){}function ce(e,t,n){return this instanceof ce?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof ce?new ce(e.h,e.s,e.l):Ce(""+e,Se,ce):new ce(e,t,n)}function le(e,t,n){function r(e){return e>360?e-=360:e<0&&(e+=360),e<60?i+(a-i)*e/60:e<180?a:e<240?i+(a-i)*(240-e)/60:i}function o(e){return Math.round(255*r(e))}var i,a;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,i=2*n-a,new _e(o(e+120),o(e),o(e-120))}function fe(e,t,n){return this instanceof fe?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof fe?new fe(e.h,e.c,e.l):e instanceof de?ge(e.l,e.a,e.b):ge((e=we((e=la.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new fe(e,t,n)}function pe(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new de(n,Math.cos(e*=Ha)*t,Math.sin(e)*t)}function de(e,t,n){return this instanceof de?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof de?new de(e.l,e.a,e.b):e instanceof fe?pe(e.h,e.c,e.l):we((e=_e(e)).r,e.g,e.b):new de(e,t,n)}function he(e,t,n){var r=(e+16)/116,o=r+t/500,i=r-n/200;return o=ye(o)*es,r=ye(r)*ts,i=ye(i)*ns,new _e(ve(3.2404542*o-1.5371385*r-.4985314*i),ve(-.969266*o+1.8760108*r+.041556*i),ve(.0556434*o-.2040259*r+1.0572252*i))}function ge(e,t,n){return e>0?new fe(Math.atan2(n,t)*Ba,Math.sqrt(t*t+n*n),e):new fe(NaN,NaN,e)}function ye(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function me(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ve(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function _e(e,t,n){return this instanceof _e?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof _e?new _e(e.r,e.g,e.b):Ce(""+e,_e,le):new _e(e,t,n)}function be(e){return new _e(e>>16,e>>8&255,255&e)}function xe(e){return be(e)+""}function Ee(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function Ce(e,t,n){var r,o,i,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return t(Oe(o[0]),Oe(o[1]),Oe(o[2]))}return(i=is.get(e))?t(i.r,i.g,i.b):(null==e||"#"!==e.charAt(0)||isNaN(i=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&i)>>4,a=a>>4|a,s=240&i,s=s>>4|s,u=15&i,u=u<<4|u):7===e.length&&(a=(16711680&i)>>16,s=(65280&i)>>8,u=255&i)),t(a,s,u))}function Se(e,t,n){var r,o,i=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-i,u=(a+i)/2;return s?(o=u<.5?s/(a+i):s/(2-a-i),r=e==a?(t-n)/s+(t<n?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,o=u>0&&u<1?0:r),new ce(r,o,u)}function we(e,t,n){e=Te(e),t=Te(t),n=Te(n);var r=me((.4124564*e+.3575761*t+.1804375*n)/es),o=me((.2126729*e+.7151522*t+.072175*n)/ts),i=me((.0193339*e+.119192*t+.9503041*n)/ns);return de(116*o-16,500*(r-o),200*(o-i))}function Te(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Oe(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function Pe(e){return"function"==typeof e?e:function(){return e}}function Re(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ae(t,n,e,r)}}function Ae(e,t,n,r){function o(){var e,t=u.status;if(!t&&Ne(u)||t>=200&&t<300||304===t){try{e=n.call(i,u)}catch(e){return void a.error.call(i,e)}a.load.call(i,e)}else a.error.call(i,u)}var i={},a=la.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;return!this.XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=o:u.onreadystatechange=function(){u.readyState>3&&o()},u.onprogress=function(e){var t=la.event;la.event=e;try{a.progress.call(i,u)}finally{la.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return n=e,i},["get","post"].forEach(function(e){i[e]=function(){return i.send.apply(i,[e].concat(pa(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=o&&i.on("error",o).on("load",function(e){o(null,e)}),a.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},la.rebind(i,a,"on"),null==r?i:i.get(Me(r))}function Me(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Ne(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function Ie(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var o=n+t,i={c:e,t:o,n:null};return ss?ss.n=i:as=i,ss=i,us||(cs=clearTimeout(cs),us=1,ls(Le)),i}function Le(){var e=ke(),t=De()-e;t>24?(isFinite(t)&&(clearTimeout(cs),cs=setTimeout(Le,t)),us=0):(us=1,ls(Le))}function ke(){for(var e=Date.now(),t=as;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function De(){for(var e,t=as,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:as=t.n;return ss=e,n}function je(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function Fe(e,t){var n=Math.pow(10,3*ba(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Ve(e){var t=e.decimal,n=e.thousands,r=e.grouping,o=e.currency,i=r&&n?function(e,t){for(var o=e.length,i=[],a=0,s=r[0],u=0;o>0&&s>0&&(u+s+1>t&&(s=Math.max(1,t-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>t));)s=r[a=(a+1)%r.length];return i.reverse().join(n)}:b;return function(e){var n=ps.exec(e),r=n[1]||" ",a=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],l=+n[6],f=n[7],p=n[8],d=n[9],h=1,g="",y="",m=!1,v=!0;switch(p&&(p=+p.substring(1)),(c||"0"===r&&"="===a)&&(c=r="0",a="="),d){case"n":f=!0,d="g";break;case"%":h=100,y="%",d="f";break;case"p":h=100,y="%",d="r";break;case"b":case"o":case"x":case"X":"#"===u&&(g="0"+d.toLowerCase());case"c":v=!1;case"d":m=!0,p=0;break;case"s":h=-1,d="r"}"$"===u&&(g=o[0],y=o[1]),"r"!=d||p||(d="g"),null!=p&&("g"==d?p=Math.max(1,Math.min(21,p)):"e"!=d&&"f"!=d||(p=Math.max(0,Math.min(20,p)))),d=ds.get(d)||Ue;var _=c&&f;return function(e){var n=y;if(m&&e%1)return"";var o=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(h<0){var u=la.formatPrefix(e,p);e=u.scale(e),n=u.symbol+y}else e*=h;e=d(e,p);var b,x,E=e.lastIndexOf(".");if(E<0){var C=v?e.lastIndexOf("e"):-1;C<0?(b=e,x=""):(b=e.substring(0,C),x=e.substring(C))}else b=e.substring(0,E),x=t+e.substring(E+1);!c&&f&&(b=i(b,1/0));var S=g.length+b.length+x.length+(_?0:o.length),w=S<l?new Array(S=l-S+1).join(r):"";return _&&(b=i(w+b,w.length?l-x.length:1/0)),o+=g,e=b+x,("<"===a?o+e+w:">"===a?w+o+e:"^"===a?w.substring(0,S>>=1)+o+e+w.substring(S):o+(_?e:w+e))+n}}}function Ue(e){return e+""}function ze(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ge(e,t,n){function r(t){var n=e(t),r=i(n,1);return t-n<r-t?n:r}function o(n){return t(n=e(new gs(n-1)),1),n}function i(e,n){return t(e=new gs((+e)),n),e}function a(e,r,i){var a=o(e),s=[];if(i>1)for(;a<r;)n(a)%i||s.push(new Date((+a))),t(a,1);else for(;a<r;)s.push(new Date((+a))),t(a,1);return s}function s(e,t,n){try{gs=ze;var r=new ze;return r._=e,a(r,t,n)}finally{gs=Date}}e.floor=e,e.round=r,e.ceil=o,e.offset=i,e.range=a;var u=e.utc=He(e);return u.floor=u,u.round=He(r),u.ceil=He(o),u.offset=He(i),u.range=s,e}function He(e){return function(t,n){try{gs=ze;var r=new ze;return r._=t,e(r,n)._}finally{gs=Date}}}function Be(e){function t(e){function t(t){for(var n,o,i,a=[],s=-1,u=0;++s<r;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=ms[n=e.charAt(++s)])&&(n=e.charAt(++s)),(i=P[n])&&(n=i(t,null==o?"e"===n?" ":"0":o)),a.push(n),u=s+1);return a.push(e.slice(u,s)),a.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},o=n(r,e,t,0);if(o!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&gs!==ze,a=new(i?ze:gs);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return e},t}function n(e,t,n,r){for(var o,i,a,s=0,u=t.length,c=n.length;s<u;){if(r>=c)return-1;if(o=t.charCodeAt(s++),37===o){if(a=t.charAt(s++),i=R[a in ms?t.charAt(s++):a],!i||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){E.lastIndex=0;var r=E.exec(t.slice(n));return r?(e.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.w=x.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){T.lastIndex=0;var r=T.exec(t.slice(n));return r?(e.m=O.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){S.lastIndex=0;var r=S.exec(t.slice(n));return r?(e.m=w.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,P.c.toString(),t,r)}function u(e,t,r){return n(e,P.x.toString(),t,r)}function c(e,t,r){return n(e,P.X.toString(),t,r)}function l(e,t,n){var r=_.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var f=e.dateTime,p=e.date,d=e.time,h=e.periods,g=e.days,y=e.shortDays,m=e.months,v=e.shortMonths;t.utc=function(e){function n(e){try{gs=ze;var t=new gs;return t._=e,r(t)}finally{gs=Date}}var r=t(e);return n.parse=function(e){try{gs=ze;var t=r.parse(e);return t&&t._}finally{gs=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=lt;var _=la.map(),b=qe(g),x=We(g),E=qe(y),C=We(y),S=qe(m),w=We(m),T=qe(v),O=We(v);h.forEach(function(e,t){_.set(e.toLowerCase(),t)});var P={a:function(e){return y[e.getDay()]},A:function(e){return g[e.getDay()]},b:function(e){return v[e.getMonth()]},B:function(e){return m[e.getMonth()]},c:t(f),d:function(e,t){return Ze(e.getDate(),t,2)},e:function(e,t){return Ze(e.getDate(),t,2)},H:function(e,t){return Ze(e.getHours(),t,2)},I:function(e,t){return Ze(e.getHours()%12||12,t,2)},j:function(e,t){return Ze(1+hs.dayOfYear(e),t,3)},L:function(e,t){return Ze(e.getMilliseconds(),t,3)},m:function(e,t){return Ze(e.getMonth()+1,t,2)},M:function(e,t){return Ze(e.getMinutes(),t,2)},p:function(e){return h[+(e.getHours()>=12)]},S:function(e,t){return Ze(e.getSeconds(),t,2)},U:function(e,t){return Ze(hs.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Ze(hs.mondayOfYear(e),t,2)},x:t(p),X:t(d),y:function(e,t){return Ze(e.getFullYear()%100,t,2)},Y:function(e,t){return Ze(e.getFullYear()%1e4,t,4)},Z:ut,"%":function(){return"%"}},R={a:r,A:o,b:i,B:a,c:s,d:nt,e:nt,H:ot,I:ot,j:rt,L:st,m:tt,M:it,p:l,S:at,U:Ye,w:Xe,W:Ke,x:u,X:c,y:$e,Y:Qe,Z:Je,"%":ct};return t}function Ze(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function qe(e){return new RegExp("^(?:"+e.map(la.requote).join("|")+")","i")}function We(e){for(var t=new f,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Xe(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ye(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Ke(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Qe(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $e(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.y=et(+r[0]),n+r[0].length):-1}function Je(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function et(e){return e+(e>68?1900:2e3)}function tt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rt(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function ot(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function at(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function st(e,t,n){vs.lastIndex=0;var r=vs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function ut(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=ba(t)/60|0,o=ba(t)%60;return n+Ze(r,"0",2)+Ze(o,"0",2)}function ct(e,t,n){_s.lastIndex=0;var r=_s.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lt(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function ft(){}function pt(e,t,n){var r=n.s=e+t,o=r-e,i=r-o;n.t=e-i+(t-o)}function dt(e,t){e&&Cs.hasOwnProperty(e.type)&&Cs[e.type](e,t)}function ht(e,t,n){var r,o=-1,i=e.length-n;for(t.lineStart();++o<i;)r=e[o],t.point(r[0],r[1],r[2]);t.lineEnd()}function gt(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ht(e[n],t,1);t.polygonEnd()}function yt(){function e(e,t){e*=Ha,t=t*Ha/2+Va/4;var n=e-r,a=n>=0?1:-1,s=a*n,u=Math.cos(t),c=Math.sin(t),l=i*c,f=o*u+l*Math.cos(s),p=l*a*Math.sin(s);ws.add(Math.atan2(p,f)),r=e,o=u,i=c}var t,n,r,o,i;Ts.point=function(a,s){Ts.point=e,r=(t=a)*Ha,o=Math.cos(s=(n=s)*Ha/2+Va/4),i=Math.sin(s)},Ts.lineEnd=function(){e(t,n)}}function mt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function vt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function _t(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function bt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function xt(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Et(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Ct(e){return[Math.atan2(e[1],e[0]),re(e[2])]}function St(e,t){return ba(e[0]-t[0])<ja&&ba(e[1]-t[1])<ja}function wt(e,t){e*=Ha;var n=Math.cos(t*=Ha);Tt(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function Tt(e,t,n){++Os,Rs+=(e-Rs)/Os,As+=(t-As)/Os,Ms+=(n-Ms)/Os}function Ot(){function e(e,o){e*=Ha;var i=Math.cos(o*=Ha),a=i*Math.cos(e),s=i*Math.sin(e),u=Math.sin(o),c=Math.atan2(Math.sqrt((c=n*u-r*s)*c+(c=r*a-t*u)*c+(c=t*s-n*a)*c),t*a+n*s+r*u);Ps+=c,Ns+=c*(t+(t=a)),Is+=c*(n+(n=s)),Ls+=c*(r+(r=u)),Tt(t,n,r)}var t,n,r;Fs.point=function(o,i){o*=Ha;var a=Math.cos(i*=Ha);t=a*Math.cos(o),n=a*Math.sin(o),r=Math.sin(i),Fs.point=e,Tt(t,n,r)}}function Pt(){Fs.point=wt}function Rt(){function e(e,t){e*=Ha;var n=Math.cos(t*=Ha),a=n*Math.cos(e),s=n*Math.sin(e),u=Math.sin(t),c=o*u-i*s,l=i*a-r*u,f=r*s-o*a,p=Math.sqrt(c*c+l*l+f*f),d=r*a+o*s+i*u,h=p&&-ne(d)/p,g=Math.atan2(p,d);ks+=h*c,Ds+=h*l,js+=h*f,Ps+=g,Ns+=g*(r+(r=a)),Is+=g*(o+(o=s)),Ls+=g*(i+(i=u)),Tt(r,o,i)}var t,n,r,o,i;Fs.point=function(a,s){t=a,n=s,Fs.point=e,a*=Ha;var u=Math.cos(s*=Ha);r=u*Math.cos(a),o=u*Math.sin(a),i=Math.sin(s),Tt(r,o,i)},Fs.lineEnd=function(){e(t,n),Fs.lineEnd=Pt,Fs.point=wt}}function At(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function Mt(){return!0}function Nt(e,t,n,r,o){var i=[],a=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(St(n,r)){o.lineStart();for(var s=0;s<t;++s)o.point((n=e[s])[0],n[1]);return void o.lineEnd()}var u=new Lt(n,e,null,(!0)),c=new Lt(n,null,u,(!1));u.o=c,i.push(u),a.push(c),u=new Lt(r,e,null,(!1)),c=new Lt(r,null,u,(!0)),u.o=c,i.push(u),a.push(c)}}),a.sort(t),It(i),It(a),i.length){for(var s=0,u=n,c=a.length;s<c;++s)a[s].e=u=!u;for(var l,f,p=i[0];;){for(var d=p,h=!0;d.v;)if((d=d.n)===p)return;l=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(var s=0,c=l.length;s<c;++s)o.point((f=l[s])[0],f[1]);else r(d.x,d.n.x,1,o);d=d.n}else{if(h){l=d.p.z;for(var s=l.length-1;s>=0;--s)o.point((f=l[s])[0],f[1])}else r(d.x,d.p.x,-1,o);d=d.p}d=d.o,l=d.z,h=!h}while(!d.v);o.lineEnd()}}}function It(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r<t;)o.n=n=e[r],n.p=o,o=n;o.n=n=e[0],n.p=o}}function Lt(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function kt(e,t,n,r){return function(o,i){function a(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function s(e,t){var n=o(e,t);y.point(n[0],n[1])}function u(){v.point=s,y.lineStart()}function c(){v.point=a,y.lineEnd()}function l(e,t){g.push([e,t]);var n=o(e,t);b.point(n[0],n[1])}function f(){b.lineStart(),g=[]}function p(){l(g[0][0],g[0][1]),b.lineEnd();var e,t=b.clean(),n=_.buffer(),r=n.length;if(g.pop(),h.push(g),g=null,r)if(1&t){e=n[0];var o,r=e.length-1,a=-1;if(r>0){for(x||(i.polygonStart(),x=!0),i.lineStart();++a<r;)i.point((o=e[a])[0],o[1]);i.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),d.push(n.filter(Dt))}var d,h,g,y=t(i),m=o.invert(r[0],r[1]),v={point:a,lineStart:u,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=f,v.lineEnd=p,d=[],h=[]},polygonEnd:function(){v.point=a,v.lineStart=u,v.lineEnd=c,d=la.merge(d);var e=Gt(m,h);d.length?(x||(i.polygonStart(),x=!0),Nt(d,Ft,e,n,i)):e&&(x||(i.polygonStart(),x=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),x&&(i.polygonEnd(),x=!1),d=h=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},_=jt(),b=t(_),x=!1;return v}}function Dt(e){return e.length>1}function jt(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:C,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Ft(e,t){return((e=e.x)[0]<0?e[1]-Ga-ja:Ga-e[1])-((t=t.x)[0]<0?t[1]-Ga-ja:Ga-t[1])}function Vt(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?Va:-Va,u=ba(i-n);ba(u-Va)<ja?(e.point(n,r=(r+a)/2>0?Ga:-Ga),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&u>=Va&&(ba(n-o)<ja&&(n-=o*ja),ba(i-s)<ja&&(i-=s*ja),r=Ut(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function Ut(e,t,n,r){var o,i,a=Math.sin(e-n);return ba(a)>ja?Math.atan((Math.sin(t)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(t))*Math.sin(e))/(o*i*a)):(t+r)/2}function zt(e,t,n,r){var o;if(null==e)o=n*Ga,r.point(-Va,o),r.point(0,o),r.point(Va,o),r.point(Va,0),r.point(Va,-o),r.point(0,-o),r.point(-Va,-o),r.point(-Va,0),r.point(-Va,o);else if(ba(e[0]-t[0])>ja){var i=e[0]<t[0]?Va:-Va;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(t[0],t[1])}function Gt(e,t){var n=e[0],r=e[1],o=[Math.sin(n),-Math.cos(n),0],i=0,a=0;ws.reset();for(var s=0,u=t.length;s<u;++s){var c=t[s],l=c.length;if(l)for(var f=c[0],p=f[0],d=f[1]/2+Va/4,h=Math.sin(d),g=Math.cos(d),y=1;;){y===l&&(y=0),e=c[y];var m=e[0],v=e[1]/2+Va/4,_=Math.sin(v),b=Math.cos(v),x=m-p,E=x>=0?1:-1,C=E*x,S=C>Va,w=h*_;if(ws.add(Math.atan2(w*E*Math.sin(C),g*b+w*Math.cos(C))),i+=S?x+E*Ua:x,S^p>=n^m>=n){var T=_t(mt(f),mt(e));Et(T);var O=_t(o,T);Et(O);var P=(S^x>=0?-1:1)*re(O[2]);(r>P||r===P&&(T[0]||T[1]))&&(a+=S^x>=0?1:-1)}if(!y++)break;p=m,h=_,g=b,f=e}}return(i<-ja||i<ja&&ws<-ja)^1&a}function Ht(e){function t(e,t){return Math.cos(e)*Math.cos(t)>i}function n(e){var n,i,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,p){var d,h=[f,p],g=t(f,p),y=a?g?0:o(f,p):g?o(f+(f<0?Va:-Va),p):0;if(!n&&(c=u=g)&&e.lineStart(),g!==u&&(d=r(n,h),(St(n,d)||St(h,d))&&(h[0]+=ja,h[1]+=ja,g=t(h[0],h[1]))),g!==u)l=0,g?(e.lineStart(),d=r(h,n),e.point(d[0],d[1])):(d=r(n,h),e.point(d[0],d[1]),e.lineEnd()),n=d;else if(s&&n&&a^g){var m;y&i||!(m=r(h,n,!0))||(l=0,a?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!g||n&&St(n,h)||e.point(h[0],h[1]),n=h,u=g,i=y},lineEnd:function(){u&&e.lineEnd(),n=null},clean:function(){return l|(c&&u)<<1}}}function r(e,t,n){var r=mt(e),o=mt(t),a=[1,0,0],s=_t(r,o),u=vt(s,s),c=s[0],l=u-c*c;if(!l)return!n&&e;var f=i*u/l,p=-i*c/l,d=_t(a,s),h=xt(a,f),g=xt(s,p);bt(h,g);var y=d,m=vt(h,y),v=vt(y,y),_=m*m-v*(vt(h,h)-1);
16
- if(!(_<0)){var b=Math.sqrt(_),x=xt(y,(-m-b)/v);if(bt(x,h),x=Ct(x),!n)return x;var E,C=e[0],S=t[0],w=e[1],T=t[1];S<C&&(E=C,C=S,S=E);var O=S-C,P=ba(O-Va)<ja,R=P||O<ja;if(!P&&T<w&&(E=w,w=T,T=E),R?P?w+T>0^x[1]<(ba(x[0]-C)<ja?w:T):w<=x[1]&&x[1]<=T:O>Va^(C<=x[0]&&x[0]<=S)){var A=xt(y,(-m+b)/v);return bt(A,h),[x,Ct(A)]}}}function o(t,n){var r=a?e:Va-e,o=0;return t<-r?o|=1:t>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(e),a=i>0,s=ba(i)>ja,u=mn(e,6*Ha);return kt(t,n,u,a?[0,-e]:[-Va,e-Va])}function Bt(e,t,n,r){return function(o){var i,a=o.a,s=o.b,u=a.x,c=a.y,l=s.x,f=s.y,p=0,d=1,h=l-u,g=f-c;if(i=e-u,h||!(i>0)){if(i/=h,h<0){if(i<p)return;i<d&&(d=i)}else if(h>0){if(i>d)return;i>p&&(p=i)}if(i=n-u,h||!(i<0)){if(i/=h,h<0){if(i>d)return;i>p&&(p=i)}else if(h>0){if(i<p)return;i<d&&(d=i)}if(i=t-c,g||!(i>0)){if(i/=g,g<0){if(i<p)return;i<d&&(d=i)}else if(g>0){if(i>d)return;i>p&&(p=i)}if(i=r-c,g||!(i<0)){if(i/=g,g<0){if(i>d)return;i>p&&(p=i)}else if(g>0){if(i<p)return;i<d&&(d=i)}return p>0&&(o.a={x:u+p*h,y:c+p*g}),d<1&&(o.b={x:u+d*h,y:c+d*g}),o}}}}}}function Zt(e,t,n,r){function o(r,o){return ba(r[0]-e)<ja?o>0?0:3:ba(r[0]-n)<ja?o>0?2:1:ba(r[1]-t)<ja?o>0?1:0:o>0?3:2}function i(e,t){return a(e.x,t.x)}function a(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function u(e){for(var t=0,n=y.length,r=e[1],o=0;o<n;++o)for(var i,a=1,s=y[o],u=s.length,c=s[0];a<u;++a)i=s[a],c[1]<=r?i[1]>r&&te(c,i,e)>0&&++t:i[1]<=r&&te(c,i,e)<0&&--t,c=i;return 0!==t}function c(i,s,u,c){var l=0,f=0;if(null==i||(l=o(i,u))!==(f=o(s,u))||a(i,s)<0^u>0){do c.point(0===l||3===l?e:n,l>1?r:t);while((l=(l+u+4)%4)!==f)}else c.point(s[0],s[1])}function l(o,i){return e<=o&&o<=n&&t<=i&&i<=r}function f(e,t){l(e,t)&&s.point(e,t)}function p(){R.point=h,y&&y.push(m=[]),S=!0,C=!1,x=E=NaN}function d(){g&&(h(v,_),b&&C&&O.rejoin(),g.push(O.buffer())),R.point=f,C&&s.lineEnd()}function h(e,t){e=Math.max(-Us,Math.min(Us,e)),t=Math.max(-Us,Math.min(Us,t));var n=l(e,t);if(y&&m.push([e,t]),S)v=e,_=t,b=n,S=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&C)s.point(e,t);else{var r={a:{x:x,y:E},b:{x:e,y:t}};P(r)?(C||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),w=!1):n&&(s.lineStart(),s.point(e,t),w=!1)}x=e,E=t,C=n}var g,y,m,v,_,b,x,E,C,S,w,T=s,O=jt(),P=Bt(e,t,n,r),R={point:f,lineStart:p,lineEnd:d,polygonStart:function(){s=O,g=[],y=[],w=!0},polygonEnd:function(){s=T,g=la.merge(g);var t=u([e,r]),n=w&&t,o=g.length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),c(null,null,1,s),s.lineEnd()),o&&Nt(g,i,t,c,s),s.polygonEnd()),g=y=m=null}};return R}}function qt(e){var t=0,n=Va/3,r=cn(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*Va/180,n=e[1]*Va/180):[t/Va*180,n/Va*180]},o}function Wt(e,t){function n(e,t){var n=Math.sqrt(i-2*o*Math.sin(t))/o;return[n*Math.sin(e*=o),a-n*Math.cos(e)]}var r=Math.sin(e),o=(r+Math.sin(t))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/o,re((i-(e*e+n*n)*o*o)/(2*o))]},n}function Xt(){function e(e,t){Gs+=o*e-r*t,r=e,o=t}var t,n,r,o;Ws.point=function(i,a){Ws.point=e,t=r=i,n=o=a},Ws.lineEnd=function(){e(t,n)}}function Yt(e,t){e<Hs&&(Hs=e),e>Zs&&(Zs=e),t<Bs&&(Bs=t),t>qs&&(qs=t)}function Kt(){function e(e,t){a.push("M",e,",",t,i)}function t(e,t){a.push("M",e,",",t),s.point=n}function n(e,t){a.push("L",e,",",t)}function r(){s.point=e}function o(){a.push("Z")}var i=Qt(4.5),a=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return i=Qt(e),s},result:function(){if(a.length){var e=a.join("");return a=[],e}}};return s}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function $t(e,t){Rs+=e,As+=t,++Ms}function Jt(){function e(e,r){var o=e-t,i=r-n,a=Math.sqrt(o*o+i*i);Ns+=a*(t+e)/2,Is+=a*(n+r)/2,Ls+=a,$t(t=e,n=r)}var t,n;Ys.point=function(r,o){Ys.point=e,$t(t=r,n=o)}}function en(){Ys.point=$t}function tn(){function e(e,t){var n=e-r,i=t-o,a=Math.sqrt(n*n+i*i);Ns+=a*(r+e)/2,Is+=a*(o+t)/2,Ls+=a,a=o*e-r*t,ks+=a*(r+e),Ds+=a*(o+t),js+=3*a,$t(r=e,o=t)}var t,n,r,o;Ys.point=function(i,a){Ys.point=e,$t(t=r=i,n=o=a)},Ys.lineEnd=function(){e(t,n)}}function nn(e){function t(t,n){e.moveTo(t+a,n),e.arc(t,n,a,0,Ua)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function o(){s.point=t}function i(){e.closePath()}var a=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:o,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=o,s.point=t},pointRadius:function(e){return a=e,s},result:C};return s}function rn(e){function t(e){return(s?r:n)(e)}function n(t){return sn(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){_=NaN,S.point=i,t.lineStart()}function i(n,r){var i=mt([n,r]),a=e(n,r);o(_,b,v,x,E,C,_=a[0],b=a[1],v=n,x=i[0],E=i[1],C=i[2],s,t),t.point(_,b)}function a(){S.point=n,t.lineEnd()}function u(){r(),S.point=c,S.lineEnd=l}function c(e,t){i(f=e,p=t),d=_,h=b,g=x,y=E,m=C,S.point=i}function l(){o(_,b,v,x,E,C,d,h,f,g,y,m,s,t),S.lineEnd=a,a()}var f,p,d,h,g,y,m,v,_,b,x,E,C,S={point:n,lineStart:r,lineEnd:a,polygonStart:function(){t.polygonStart(),S.lineStart=u},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function o(t,n,r,s,u,c,l,f,p,d,h,g,y,m){var v=l-t,_=f-n,b=v*v+_*_;if(b>4*i&&y--){var x=s+d,E=u+h,C=c+g,S=Math.sqrt(x*x+E*E+C*C),w=Math.asin(C/=S),T=ba(ba(C)-1)<ja||ba(r-p)<ja?(r+p)/2:Math.atan2(E,x),O=e(T,w),P=O[0],R=O[1],A=P-t,M=R-n,N=_*A-v*M;(N*N/b>i||ba((v*A+_*M)/b-.5)>.3||s*d+u*h+c*g<a)&&(o(t,n,r,s,u,c,P,R,T,x/=S,E/=S,C,y,m),m.point(P,R),o(P,R,T,x,E,C,l,f,p,d,h,g,y,m))}}var i=.5,a=Math.cos(30*Ha),s=16;return t.precision=function(e){return arguments.length?(s=(i=e*e)>0&&16,t):Math.sqrt(i)},t}function on(e){var t=rn(function(t,n){return e([t*Ba,n*Ba])});return function(e){return ln(t(e))}}function an(e){this.stream=e}function sn(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function un(e){return cn(function(){return e})()}function cn(e){function t(e){return e=s(e[0]*Ha,e[1]*Ha),[e[0]*p+u,c-e[1]*p]}function n(e){return e=s.invert((e[0]-u)/p,(c-e[1])/p),e&&[e[0]*Ba,e[1]*Ba]}function r(){s=At(a=dn(m,v,_),i);var e=i(g,y);return u=d-e[0]*p,c=h+e[1]*p,o()}function o(){return l&&(l.valid=!1,l=null),t}var i,a,s,u,c,l,f=rn(function(e,t){return e=i(e,t),[e[0]*p+u,c-e[1]*p]}),p=150,d=480,h=250,g=0,y=0,m=0,v=0,_=0,x=Vs,E=b,C=null,S=null;return t.stream=function(e){return l&&(l.valid=!1),l=ln(x(a,f(E(e)))),l.valid=!0,l},t.clipAngle=function(e){return arguments.length?(x=null==e?(C=e,Vs):Ht((C=+e)*Ha),o()):C},t.clipExtent=function(e){return arguments.length?(S=e,E=e?Zt(e[0][0],e[0][1],e[1][0],e[1][1]):b,o()):S},t.scale=function(e){return arguments.length?(p=+e,r()):p},t.translate=function(e){return arguments.length?(d=+e[0],h=+e[1],r()):[d,h]},t.center=function(e){return arguments.length?(g=e[0]%360*Ha,y=e[1]%360*Ha,r()):[g*Ba,y*Ba]},t.rotate=function(e){return arguments.length?(m=e[0]%360*Ha,v=e[1]%360*Ha,_=e.length>2?e[2]%360*Ha:0,r()):[m*Ba,v*Ba,_*Ba]},la.rebind(t,f,"precision"),function(){return i=e.apply(this,arguments),t.invert=i.invert&&n,r()}}function ln(e){return sn(e,function(t,n){e.point(t*Ha,n*Ha)})}function fn(e,t){return[e,t]}function pn(e,t){return[e>Va?e-Ua:e<-Va?e+Ua:e,t]}function dn(e,t,n){return e?t||n?At(gn(e),yn(t,n)):gn(e):t||n?yn(t,n):pn}function hn(e){return function(t,n){return t+=e,[t>Va?t-Ua:t<-Va?t+Ua:t,n]}}function gn(e){var t=hn(e);return t.invert=hn(-e),t}function yn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*r+s*o;return[Math.atan2(u*i-l*a,s*r-c*o),re(l*i+u*a)]}var r=Math.cos(e),o=Math.sin(e),i=Math.cos(t),a=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,u=Math.sin(e)*n,c=Math.sin(t),l=c*i-u*a;return[Math.atan2(u*i+c*a,s*r+l*o),re(l*r-s*o)]},n}function mn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(o,i,a,s){var u=a*t;null!=o?(o=vn(n,o),i=vn(n,i),(a>0?o<i:o>i)&&(o+=a*Ua)):(o=e+a*Ua,i=e-.5*u);for(var c,l=o;a>0?l>i:l<i;l-=u)s.point((c=Ct([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function vn(e,t){var n=mt(t);n[0]-=e,Et(n);var r=ne(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-ja)%(2*Math.PI)}function _n(e,t,n){var r=la.range(e,t-ja,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function bn(e,t,n){var r=la.range(e,t-ja,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function xn(e){return e.source}function En(e){return e.target}function Cn(e,t,n,r){var o=Math.cos(t),i=Math.sin(t),a=Math.cos(r),s=Math.sin(r),u=o*Math.cos(e),c=o*Math.sin(e),l=a*Math.cos(n),f=a*Math.sin(n),p=2*Math.asin(Math.sqrt(se(r-t)+o*a*se(n-e))),d=1/Math.sin(p),h=p?function(e){var t=Math.sin(e*=p)*d,n=Math.sin(p-e)*d,r=n*u+t*l,o=n*c+t*f,a=n*i+t*s;return[Math.atan2(o,r)*Ba,Math.atan2(a,Math.sqrt(r*r+o*o))*Ba]}:function(){return[e*Ba,t*Ba]};return h.distance=p,h}function Sn(){function e(e,o){var i=Math.sin(o*=Ha),a=Math.cos(o),s=ba((e*=Ha)-t),u=Math.cos(s);Ks+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=r*i-n*a*u)*s),n*i+r*a*u),t=e,n=i,r=a}var t,n,r;Qs.point=function(o,i){t=o*Ha,n=Math.sin(i*=Ha),r=Math.cos(i),Qs.point=e},Qs.lineEnd=function(){Qs.point=Qs.lineEnd=C}}function wn(e,t){function n(t,n){var r=Math.cos(t),o=Math.cos(n),i=e(r*o);return[i*o*Math.sin(t),i*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),o=t(r),i=Math.sin(o),a=Math.cos(o);return[Math.atan2(e*i,r*a),Math.asin(r&&n*i/r)]},n}function Tn(e,t){function n(e,t){a>0?t<-Ga+ja&&(t=-Ga+ja):t>Ga-ja&&(t=Ga-ja);var n=a/Math.pow(o(t),i);return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}var r=Math.cos(e),o=function(e){return Math.tan(Va/4+e/2)},i=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(o(t)/o(e)),a=r*Math.pow(o(e),i)/i;return i?(n.invert=function(e,t){var n=a-t,r=ee(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Ga]},n):Pn}function On(e,t){function n(e,t){var n=i-t;return[n*Math.sin(o*e),i-n*Math.cos(o*e)]}var r=Math.cos(e),o=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),i=r/o+e;return ba(o)<ja?fn:(n.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/o,i-ee(o)*Math.sqrt(e*e+n*n)]},n)}function Pn(e,t){return[e,Math.log(Math.tan(Va/4+t/2))]}function Rn(e){var t,n=un(e),r=n.scale,o=n.translate,i=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=o.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var a=i.apply(n,arguments);if(a===n){if(t=null==e){var s=Va*r(),u=o();i([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else t&&(a=null);return a},n.clipExtent(null)}function An(e,t){return[Math.log(Math.tan(Va/4+t/2)),-e]}function Mn(e){return e[0]}function Nn(e){return e[1]}function In(e){for(var t=e.length,n=[0,1],r=2,o=2;o<t;o++){for(;r>1&&te(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function Ln(e,t){return e[0]-t[0]||e[1]-t[1]}function kn(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Dn(e,t,n,r){var o=e[0],i=n[0],a=t[0]-o,s=r[0]-i,u=e[1],c=n[1],l=t[1]-u,f=r[1]-c,p=(s*(u-c)-f*(o-i))/(f*a-s*l);return[o+p*a,u+p*l]}function jn(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Fn(){ir(this),this.edge=this.site=this.circle=null}function Vn(e){var t=cu.pop()||new Fn;return t.site=e,t}function Un(e){Kn(e),au.remove(e),cu.push(e),ir(e)}function zn(e){var t=e.circle,n=t.x,r=t.cy,o={x:n,y:r},i=e.P,a=e.N,s=[e];Un(e);for(var u=i;u.circle&&ba(n-u.circle.x)<ja&&ba(r-u.circle.cy)<ja;)i=u.P,s.unshift(u),Un(u),u=i;s.unshift(u),Kn(u);for(var c=a;c.circle&&ba(n-c.circle.x)<ja&&ba(r-c.circle.cy)<ja;)a=c.N,s.push(c),Un(c),c=a;s.push(c),Kn(c);var l,f=s.length;for(l=1;l<f;++l)c=s[l],u=s[l-1],nr(c.edge,u.site,c.site,o);u=s[0],c=s[f-1],c.edge=er(u.site,c.site,null,o),Yn(u),Yn(c)}function Gn(e){for(var t,n,r,o,i=e.x,a=e.y,s=au._;s;)if(r=Hn(s,a)-i,r>ja)s=s.L;else{if(o=i-Bn(s,a),!(o>ja)){r>-ja?(t=s.P,n=s):o>-ja?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=Vn(e);if(au.insert(t,u),t||n){if(t===n)return Kn(t),n=Vn(t.site),au.insert(u,n),u.edge=n.edge=er(t.site,u.site),Yn(t),void Yn(n);if(!n)return void(u.edge=er(t.site,u.site));Kn(t),Kn(n);var c=t.site,l=c.x,f=c.y,p=e.x-l,d=e.y-f,h=n.site,g=h.x-l,y=h.y-f,m=2*(p*y-d*g),v=p*p+d*d,_=g*g+y*y,b={x:(y*v-d*_)/m+l,y:(p*_-g*v)/m+f};nr(n.edge,c,h,b),u.edge=er(c,e,null,b),n.edge=er(e,h,null,b),Yn(t),Yn(n)}}function Hn(e,t){var n=e.site,r=n.x,o=n.y,i=o-t;if(!i)return r;var a=e.P;if(!a)return-(1/0);n=a.site;var s=n.x,u=n.y,c=u-t;if(!c)return s;var l=s-r,f=1/i-1/c,p=l/c;return f?(-p+Math.sqrt(p*p-2*f*(l*l/(-2*c)-u+c/2+o-i/2)))/f+r:(r+s)/2}function Bn(e,t){var n=e.N;if(n)return Hn(n,t);var r=e.site;return r.y===t?r.x:1/0}function Zn(e){this.site=e,this.edges=[]}function qn(e){for(var t,n,r,o,i,a,s,u,c,l,f=e[0][0],p=e[1][0],d=e[0][1],h=e[1][1],g=iu,y=g.length;y--;)if(i=g[y],i&&i.prepare())for(s=i.edges,u=s.length,a=0;a<u;)l=s[a].end(),r=l.x,o=l.y,c=s[++a%u].start(),t=c.x,n=c.y,(ba(r-t)>ja||ba(o-n)>ja)&&(s.splice(a,0,new rr(tr(i.site,l,ba(r-f)<ja&&h-o>ja?{x:f,y:ba(t-f)<ja?n:h}:ba(o-h)<ja&&p-r>ja?{x:ba(n-h)<ja?t:p,y:h}:ba(r-p)<ja&&o-d>ja?{x:p,y:ba(t-p)<ja?n:d}:ba(o-d)<ja&&r-f>ja?{x:ba(n-d)<ja?t:f,y:d}:null),i.site,null)),++u)}function Wn(e,t){return t.angle-e.angle}function Xn(){ir(this),this.x=this.y=this.arc=this.site=this.cy=null}function Yn(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o.x,s=o.y,u=r.x-a,c=r.y-s,l=i.x-a,f=i.y-s,p=2*(u*f-c*l);if(!(p>=-Fa)){var d=u*u+c*c,h=l*l+f*f,g=(f*d-c*h)/p,y=(u*h-l*d)/p,f=y+s,m=lu.pop()||new Xn;m.arc=e,m.site=o,m.x=g+a,m.y=f+Math.sqrt(g*g+y*y),m.cy=f,e.circle=m;for(var v=null,_=uu._;_;)if(m.y<_.y||m.y===_.y&&m.x<=_.x){if(!_.L){v=_.P;break}_=_.L}else{if(!_.R){v=_;break}_=_.R}uu.insert(v,m),v||(su=m)}}}}function Kn(e){var t=e.circle;t&&(t.P||(su=t.N),uu.remove(t),lu.push(t),ir(t),e.circle=null)}function Qn(e){for(var t,n=ou,r=Bt(e[0][0],e[0][1],e[1][0],e[1][1]),o=n.length;o--;)t=n[o],(!$n(t,e)||!r(t)||ba(t.a.x-t.b.x)<ja&&ba(t.a.y-t.b.y)<ja)&&(t.a=t.b=null,n.splice(o,1))}function $n(e,t){var n=e.b;if(n)return!0;var r,o,i=e.a,a=t[0][0],s=t[1][0],u=t[0][1],c=t[1][1],l=e.l,f=e.r,p=l.x,d=l.y,h=f.x,g=f.y,y=(p+h)/2,m=(d+g)/2;if(g===d){if(y<a||y>=s)return;if(p>h){if(i){if(i.y>=c)return}else i={x:y,y:u};n={x:y,y:c}}else{if(i){if(i.y<u)return}else i={x:y,y:c};n={x:y,y:u}}}else if(r=(p-h)/(g-d),o=m-r*y,r<-1||r>1)if(p>h){if(i){if(i.y>=c)return}else i={x:(u-o)/r,y:u};n={x:(c-o)/r,y:c}}else{if(i){if(i.y<u)return}else i={x:(c-o)/r,y:c};n={x:(u-o)/r,y:u}}else if(d<g){if(i){if(i.x>=s)return}else i={x:a,y:r*a+o};n={x:s,y:r*s+o}}else{if(i){if(i.x<a)return}else i={x:s,y:r*s+o};n={x:a,y:r*a+o}}return e.a=i,e.b=n,!0}function Jn(e,t){this.l=e,this.r=t,this.a=this.b=null}function er(e,t,n,r){var o=new Jn(e,t);return ou.push(o),n&&nr(o,e,t,n),r&&nr(o,t,e,r),iu[e.i].edges.push(new rr(o,e,t)),iu[t.i].edges.push(new rr(o,t,e)),o}function tr(e,t,n){var r=new Jn(e,null);return r.a=t,r.b=n,ou.push(r),r}function nr(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function rr(e,t,n){var r=e.a,o=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(o.x-r.x,r.y-o.y):Math.atan2(r.x-o.x,o.y-r.y)}function or(){this._=null}function ir(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function ar(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function sr(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function ur(e){for(;e.L;)e=e.L;return e}function cr(e,t){var n,r,o,i=e.sort(lr).pop();for(ou=[],iu=new Array(e.length),au=new or,uu=new or;;)if(o=su,i&&(!o||i.y<o.y||i.y===o.y&&i.x<o.x))i.x===n&&i.y===r||(iu[i.i]=new Zn(i),Gn(i),n=i.x,r=i.y),i=e.pop();else{if(!o)break;zn(o.arc)}t&&(Qn(t),qn(t));var a={cells:iu,edges:ou};return au=uu=ou=iu=null,a}function lr(e,t){return t.y-e.y||t.x-e.x}function fr(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function pr(e){return e.x}function dr(e){return e.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gr(e,t,n,r,o,i){if(!e(t,n,r,o,i)){var a=.5*(n+o),s=.5*(r+i),u=t.nodes;u[0]&&gr(e,u[0],n,r,a,s),u[1]&&gr(e,u[1],a,r,o,s),u[2]&&gr(e,u[2],n,s,a,i),u[3]&&gr(e,u[3],a,s,o,i)}}function yr(e,t,n,r,o,i,a){var s,u=1/0;return function e(c,l,f,p,d){if(!(l>i||f>a||p<r||d<o)){if(h=c.point){var h,g=t-c.x,y=n-c.y,m=g*g+y*y;if(m<u){var v=Math.sqrt(u=m);r=t-v,o=n-v,i=t+v,a=n+v,s=h}}for(var _=c.nodes,b=.5*(l+p),x=.5*(f+d),E=t>=b,C=n>=x,S=C<<1|E,w=S+4;S<w;++S)if(c=_[3&S])switch(3&S){case 0:e(c,l,f,b,x);break;case 1:e(c,b,f,p,x);break;case 2:e(c,l,x,b,d);break;case 3:e(c,b,x,p,d)}}}(e,r,o,i,a),s}function mr(e,t){e=la.rgb(e),t=la.rgb(t);var n=e.r,r=e.g,o=e.b,i=t.r-n,a=t.g-r,s=t.b-o;return function(e){return"#"+Ee(Math.round(n+i*e))+Ee(Math.round(r+a*e))+Ee(Math.round(o+s*e))}}function vr(e,t){var n,r={},o={};for(n in e)n in t?r[n]=xr(e[n],t[n]):o[n]=e[n];for(n in t)n in e||(o[n]=t[n]);return function(e){for(n in r)o[n]=r[n](e);return o}}function _r(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function br(e,t){var n,r,o,i=pu.lastIndex=du.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=pu.exec(e))&&(r=du.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:_r(n,r)})),i=du.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?(t=u[0].x,function(e){return t(e)+""}):function(){return t}:(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function xr(e,t){for(var n,r=la.interpolators.length;--r>=0&&!(n=la.interpolators[r](e,t)););return n}function Er(e,t){var n,r=[],o=[],i=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(xr(e[n],t[n]));for(;n<i;++n)o[n]=e[n];for(;n<a;++n)o[n]=t[n];return function(e){for(n=0;n<s;++n)o[n]=r[n](e);return o}}function Cr(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function Sr(e){return function(t){return 1-e(1-t)}}function wr(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Tr(e){return e*e}function Or(e){return e*e*e}function Pr(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Rr(e){return function(t){return Math.pow(t,e)}}function Ar(e){return 1-Math.cos(e*Ga)}function Mr(e){return Math.pow(2,10*(e-1))}function Nr(e){return 1-Math.sqrt(1-e*e)}function Ir(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ua*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ua/t)}}function Lr(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function kr(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}function Dr(e,t){e=la.hcl(e),t=la.hcl(t);var n=e.h,r=e.c,o=e.l,i=t.h-n,a=t.c-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return pe(n+i*e,r+a*e,o+s*e)+""}}function jr(e,t){e=la.hsl(e),t=la.hsl(t);var n=e.h,r=e.s,o=e.l,i=t.h-n,a=t.s-r,s=t.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return le(n+i*e,r+a*e,o+s*e)+""}}function Fr(e,t){e=la.lab(e),t=la.lab(t);var n=e.l,r=e.a,o=e.b,i=t.l-n,a=t.a-r,s=t.b-o;return function(e){return he(n+i*e,r+a*e,o+s*e)+""}}function Vr(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Ur(e){var t=[e.a,e.b],n=[e.c,e.d],r=Gr(t),o=zr(t,n),i=Gr(Hr(n,t,-o))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,o*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Ba,this.translate=[e.e,e.f],this.scale=[r,i],this.skew=i?Math.atan2(o,i)*Ba:0}function zr(e,t){return e[0]*t[0]+e[1]*t[1]}function Gr(e){var t=Math.sqrt(zr(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Hr(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function Br(e){return e.length?e.pop()+",":""}function Zr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:_r(e[0],t[0])},{i:o-2,x:_r(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function qr(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Br(n)+"rotate(",null,")")-2,x:_r(e,t)})):t&&n.push(Br(n)+"rotate("+t+")")}function Wr(e,t,n,r){e!==t?r.push({i:n.push(Br(n)+"skewX(",null,")")-2,x:_r(e,t)}):t&&n.push(Br(n)+"skewX("+t+")")}function Xr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var o=n.push(Br(n)+"scale(",null,",",null,")");r.push({i:o-4,x:_r(e[0],t[0])},{i:o-2,x:_r(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Br(n)+"scale("+t+")")}function Yr(e,t){var n=[],r=[];return e=la.transform(e),t=la.transform(t),Zr(e.translate,t.translate,n,r),qr(e.rotate,t.rotate,n,r),Wr(e.skew,t.skew,n,r),Xr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,o=-1,i=r.length;++o<i;)n[(t=r[o]).i]=t.x(e);return n.join("")}}function Kr(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Qr(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function $r(e){for(var t=e.source,n=e.target,r=eo(t,n),o=[t];t!==r;)t=t.parent,o.push(t);for(var i=o.length;n!==r;)o.splice(i,0,n),n=n.parent;return o}function Jr(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function eo(e,t){if(e===t)return e;for(var n=Jr(e),r=Jr(t),o=n.pop(),i=r.pop(),a=null;o===i;)a=o,o=n.pop(),i=r.pop();return a}function to(e){e.fixed|=2}function no(e){e.fixed&=-7}function ro(e){e.fixed|=4,e.px=e.x,e.py=e.y}function oo(e){e.fixed&=-5}function io(e,t,n){var r=0,o=0;if(e.charge=0,!e.leaf)for(var i,a=e.nodes,s=a.length,u=-1;++u<s;)i=a[u],null!=i&&(io(i,t,n),e.charge+=i.charge,r+=i.charge*i.cx,o+=i.charge*i.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*n[e.point.index];e.charge+=e.pointCharge=c,r+=c*e.point.x,o+=c*e.point.y}e.cx=r/e.charge,e.cy=o/e.charge}function ao(e,t){return la.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=po,e}function so(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(o=e.children)&&(r=o.length))for(var r,o;--r>=0;)n.push(o[r])}function uo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(i=e.children)&&(o=i.length))for(var o,i,a=-1;++a<o;)n.push(i[a]);for(;null!=(e=r.pop());)t(e)}function co(e){return e.children}function lo(e){return e.value}function fo(e,t){return t.value-e.value}function po(e){return la.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function ho(e){return e.x}function go(e){return e.y}function yo(e,t,n){e.y0=t,e.y=n}function mo(e){return la.range(e.length)}function vo(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function _o(e){for(var t,n=1,r=0,o=e[0][1],i=e.length;n<i;++n)(t=e[n][1])>o&&(r=n,o=t);return r}function bo(e){return e.reduce(xo,0)}function xo(e,t){return e+t[1]}function Eo(e,t){return Co(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Co(e,t){for(var n=-1,r=+e[0],o=(e[1]-r)/t,i=[];++n<=t;)i[n]=o*n+r;return i}function So(e){return[la.min(e),la.max(e)]}function wo(e,t){return e.value-t.value}function To(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Oo(e,t){e._pack_next=t,t._pack_prev=e}function Po(e,t){var n=t.x-e.x,r=t.y-e.y,o=e.r+t.r;return.999*o*o>n*n+r*r}function Ro(e){function t(e){l=Math.min(e.x-e.r,l),f=Math.max(e.x+e.r,f),p=Math.min(e.y-e.r,p),d=Math.max(e.y+e.r,d)}if((n=e.children)&&(c=n.length)){var n,r,o,i,a,s,u,c,l=1/0,f=-(1/0),p=1/0,d=-(1/0);if(n.forEach(Ao),r=n[0],r.x=-r.r,r.y=0,t(r),c>1&&(o=n[1],o.x=o.r,o.y=0,t(o),c>2))for(i=n[2],Io(r,o,i),t(i),To(r,i),r._pack_prev=i,To(i,o),o=r._pack_next,a=3;a<c;a++){Io(r,o,i=n[a]);var h=0,g=1,y=1;for(s=o._pack_next;s!==o;s=s._pack_next,g++)if(Po(s,i)){h=1;break}if(1==h)for(u=r._pack_prev;u!==s._pack_prev&&!Po(u,i);u=u._pack_prev,y++);h?(g<y||g==y&&o.r<r.r?Oo(r,o=s):Oo(r=u,o),a--):(To(r,i),o=i,t(i))}var m=(l+f)/2,v=(p+d)/2,_=0;for(a=0;a<c;a++)i=n[a],i.x-=m,i.y-=v,_=Math.max(_,i.r+Math.sqrt(i.x*i.x+i.y*i.y));e.r=_,n.forEach(Mo)}}function Ao(e){e._pack_next=e._pack_prev=e}function Mo(e){delete e._pack_next,delete e._pack_prev}function No(e,t,n,r){var o=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,o)for(var i=-1,a=o.length;++i<a;)No(o[i],t,n,r)}function Io(e,t,n){var r=e.r+n.r,o=t.x-e.x,i=t.y-e.y;if(r&&(o||i)){var a=t.r+n.r,s=o*o+i*i;a*=a,r*=r;var u=.5+(r-a)/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=e.x+u*o+c*i,n.y=e.y+u*i-c*o}else n.x=e.x+r,n.y=e.y}function Lo(e,t){return e.parent==t.parent?1:2}function ko(e){var t=e.children;return t.length?t[0]:e.t}function Do(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function jo(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Fo(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)t=o[i],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Vo(e,t,n){return e.a.parent===t.parent?e.a:n}function Uo(e){return 1+la.max(e,function(e){return e.y})}function zo(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function Go(e){var t=e.children;return t&&t.length?Go(t[0]):e}function Ho(e){var t,n=e.children;return n&&(t=n.length)?Ho(n[t-1]):e}function Bo(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Zo(e,t){var n=e.x+t[3],r=e.y+t[0],o=e.dx-t[1]-t[3],i=e.dy-t[0]-t[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function qo(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Wo(e){return e.rangeExtent?e.rangeExtent():qo(e.range())}function Xo(e,t,n,r){var o=n(e[0],e[1]),i=r(t[0],t[1]);return function(e){return i(o(e))}}function Yo(e,t){var n,r=0,o=e.length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Ko(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Su}function Qo(e,t,n,r){var o=[],i=[],a=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<=s;)o.push(n(e[a-1],e[a])),i.push(r(t[a-1],t[a]));return function(t){var n=la.bisect(e,t,1,s)-1;return i[n](o[n](t))}}function $o(e,t,n,r){function o(){var o=Math.min(e.length,t.length)>2?Qo:Xo,u=r?Qr:Kr;return a=o(e,t,u,n),s=o(t,e,u,xr),i}function i(e){return a(e)}var a,s;return i.invert=function(e){return s(e)},i.domain=function(t){return arguments.length?(e=t.map(Number),o()):e},i.range=function(e){return arguments.length?(t=e,o()):t},i.rangeRound=function(e){return i.range(e).interpolate(Vr)},i.clamp=function(e){return arguments.length?(r=e,o()):r},i.interpolate=function(e){return arguments.length?(n=e,o()):n},i.ticks=function(t){return ni(e,t)},i.tickFormat=function(t,n){return ri(e,t,n)},i.nice=function(t){return ei(e,t),o()},i.copy=function(){return $o(e,t,n,r)},o()}function Jo(e,t){return la.rebind(e,t,"range","rangeRound","interpolate","clamp")}function ei(e,t){return Yo(e,Ko(ti(e,t)[2])),Yo(e,Ko(ti(e,t)[2])),e}function ti(e,t){null==t&&(t=10);var n=qo(e),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),i=t/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ni(e,t){return la.range.apply(la,ti(e,t))}function ri(e,t,n){var r=ti(e,t);if(n){var o=ps.exec(n);if(o.shift(),"s"===o[8]){var i=la.formatPrefix(Math.max(ba(r[0]),ba(r[1])));return o[7]||(o[7]="."+oi(i.scale(r[2]))),o[8]="f",n=la.format(o.join("")),function(e){return n(i.scale(e))+i.symbol}}o[7]||(o[7]="."+ii(o[8],r)),n=o.join("")}else n=",."+oi(r[2])+"f";return la.format(n)}function oi(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ii(e,t){var n=oi(t[2]);return e in wu?Math.abs(n-oi(Math.max(ba(t[0]),ba(t[1]))))+ +("e"!==e):n-2*("%"===e)}function ai(e,t,n,r){function o(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function a(t){return e(o(t))}return a.invert=function(t){return i(e.invert(t))},a.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(t=+n,e.domain(r.map(o)),a):t},a.nice=function(){var t=Yo(r.map(o),n?Math:Ou);return e.domain(t),r=t.map(i),a},a.ticks=function(){var e=qo(r),a=[],s=e[0],u=e[1],c=Math.floor(o(s)),l=Math.ceil(o(u)),f=t%1?2:t;if(isFinite(l-c)){if(n){for(;c<l;c++)for(var p=1;p<f;p++)a.push(i(c)*p);a.push(i(c))}else for(a.push(i(c));c++<l;)for(var p=f-1;p>0;p--)a.push(i(c)*p);for(c=0;a[c]<s;c++);for(l=a.length;a[l-1]>u;l--);a=a.slice(c,l)}return a},a.tickFormat=function(e,n){if(!arguments.length)return Tu;arguments.length<2?n=Tu:"function"!=typeof n&&(n=la.format(n));var r=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/i(Math.round(o(e)));return a*t<t-.5&&(a*=t),a<=r?n(e):""}},a.copy=function(){return ai(e.copy(),t,n,r)},Jo(a,e)}function si(e,t,n){function r(t){return e(o(t))}var o=ui(t),i=ui(1/t);return r.invert=function(t){return i(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(o)),r):n},r.ticks=function(e){return ni(n,e)},r.tickFormat=function(e,t){return ri(n,e,t)},r.nice=function(e){return r.domain(ei(n,e))},r.exponent=function(a){return arguments.length?(o=ui(t=a),i=ui(1/t),e.domain(n.map(o)),r):t},r.copy=function(){return si(e.copy(),t,n)},Jo(r,e)}function ui(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ci(e,t){function n(n){return i[((o.get(n)||("range"===t.t?o.set(n,e.push(n)):NaN))-1)%i.length]}function r(t,n){return la.range(e.length).map(function(e){return t+n*e})}var o,i,a;return n.domain=function(r){if(!arguments.length)return e;e=[],o=new f;for(var i,a=-1,s=r.length;++a<s;)o.has(i=r[a])||o.set(i,e.push(i));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(i=e,a=0,t={t:"range",a:arguments},n):i},n.rangePoints=function(o,s){arguments.length<2&&(s=0);var u=o[0],c=o[1],l=e.length<2?(u=(u+c)/2,0):(c-u)/(e.length-1+s);return i=r(u+l*s/2,l),a=0,t={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(o,s){arguments.length<2&&(s=0);var u=o[0],c=o[1],l=e.length<2?(u=c=Math.round((u+c)/2),0):(c-u)/(e.length-1+s)|0;return i=r(u+Math.round(l*s/2+(c-u-(e.length-1+s)*l)/2),l),a=0,t={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(o,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=o[1]<o[0],l=o[c-0],f=o[1-c],p=(f-l)/(e.length-s+2*u);return i=r(l+p*u,p),c&&i.reverse(),a=p*(1-s),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(o,s,u){arguments.length<2&&(s=0),arguments.length<3&&(u=s);var c=o[1]<o[0],l=o[c-0],f=o[1-c],p=Math.floor((f-l)/(e.length-s+2*u));return i=r(l+Math.round((f-l-(e.length-s)*p)/2),p),c&&i.reverse(),a=Math.round(p*(1-s)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return qo(t.a[0])},n.copy=function(){return ci(e,t)},n.domain(e)}function li(e,t){function n(){var n=0,o=t.length;for(s=[];++n<o;)s[n-1]=la.quantile(e,n/o);return r}function r(e){if(!isNaN(e=+e))return t[la.bisect(s,e)]}var s;return r.domain=function(t){return arguments.length?(e=t.map(i).filter(a).sort(o),n()):e},r.range=function(e){return arguments.length?(t=e,n()):t},r.quantiles=function(){return s},r.invertExtent=function(n){return n=t.indexOf(n),n<0?[NaN,NaN]:[n>0?s[n-1]:e[0],n<s.length?s[n]:e[e.length-1]]},r.copy=function(){return li(e,t)},n()}function fi(e,t,n){function r(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function o(){return i=n.length/(t-e),a=n.length-1,r}var i,a;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],o()):[e,t]},r.range=function(e){return arguments.length?(n=e,o()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=t<0?NaN:t/i+e,[t,t+1/i]},r.copy=function(){return fi(e,t,n)},o()}function pi(e,t){function n(n){if(n<=n)return t[la.bisect(e,n)];
17
- }return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return pi(e,t)},n}function di(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return ni(e,t)},t.tickFormat=function(t,n){return ri(e,t,n)},t.copy=function(){return di(e)},t}function hi(){return 0}function gi(e){return e.innerRadius}function yi(e){return e.outerRadius}function mi(e){return e.startAngle}function vi(e){return e.endAngle}function _i(e){return e&&e.padAngle}function bi(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function xi(e,t,n,r,o){var i=e[0]-t[0],a=e[1]-t[1],s=(o?r:-r)/Math.sqrt(i*i+a*a),u=s*a,c=-s*i,l=e[0]+u,f=e[1]+c,p=t[0]+u,d=t[1]+c,h=(l+p)/2,g=(f+d)/2,y=p-l,m=d-f,v=y*y+m*m,_=n-r,b=l*d-p*f,x=(m<0?-1:1)*Math.sqrt(Math.max(0,_*_*v-b*b)),E=(b*m-y*x)/v,C=(-b*y-m*x)/v,S=(b*m+y*x)/v,w=(-b*y+m*x)/v,T=E-h,O=C-g,P=S-h,R=w-g;return T*T+O*O>P*P+R*R&&(E=S,C=w),[[E-u,C-c],[E*n/_,C*n/_]]}function Ei(e){function t(t){function a(){c.push("M",i(e(l),s))}for(var u,c=[],l=[],f=-1,p=t.length,d=Pe(n),h=Pe(r);++f<p;)o.call(this,u=t[f],f)?l.push([+d.call(this,u,f),+h.call(this,u,f)]):l.length&&(a(),l=[]);return l.length&&a(),c.length?c.join(""):null}var n=Mn,r=Nn,o=Mt,i=Ci,a=i.key,s=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(o=e,t):o},t.interpolate=function(e){return arguments.length?(a="function"==typeof e?i=e:(i=Iu.get(e)||Ci).key,t):a},t.tension=function(e){return arguments.length?(s=e,t):s},t}function Ci(e){return e.length>1?e.join("L"):e+"Z"}function Si(e){return e.join("L")+"Z"}function wi(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&o.push("H",r[0]),o.join("")}function Ti(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("V",(r=e[t])[1],"H",r[0]);return o.join("")}function Oi(e){for(var t=0,n=e.length,r=e[0],o=[r[0],",",r[1]];++t<n;)o.push("H",(r=e[t])[0],"V",r[1]);return o.join("")}function Pi(e,t){return e.length<4?Ci(e):e[1]+Mi(e.slice(1,-1),Ni(e,t))}function Ri(e,t){return e.length<3?Si(e):e[0]+Mi((e.push(e[0]),e),Ni([e[e.length-2]].concat(e,[e[1]]),t))}function Ai(e,t){return e.length<3?Ci(e):e[0]+Mi(e,Ni(e,t))}function Mi(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Ci(e);var n=e.length!=t.length,r="",o=e[0],i=e[1],a=t[0],s=a,u=1;if(n&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],o=e[1],u=2),t.length>1){s=t[1],i=e[u],u++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1];for(var c=2;c<t.length;c++,u++)i=e[u],s=t[c],r+="S"+(i[0]-s[0])+","+(i[1]-s[1])+","+i[0]+","+i[1]}if(n){var l=e[u];r+="Q"+(i[0]+2*s[0]/3)+","+(i[1]+2*s[1]/3)+","+l[0]+","+l[1]}return r}function Ni(e,t){for(var n,r=[],o=(1-t)/2,i=e[0],a=e[1],s=1,u=e.length;++s<u;)n=i,i=a,a=e[s],r.push([o*(a[0]-n[0]),o*(a[1]-n[1])]);return r}function Ii(e){if(e.length<3)return Ci(e);var t=1,n=e.length,r=e[0],o=r[0],i=r[1],a=[o,o,o,(r=e[1])[0]],s=[i,i,i,r[1]],u=[o,",",i,"L",ji(Du,a),",",ji(Du,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),Fi(u,a,s);return e.pop(),u.push("L",r),u.join("")}function Li(e){if(e.length<4)return Ci(e);for(var t,n=[],r=-1,o=e.length,i=[0],a=[0];++r<3;)t=e[r],i.push(t[0]),a.push(t[1]);for(n.push(ji(Du,i)+","+ji(Du,a)),--r;++r<o;)t=e[r],i.shift(),i.push(t[0]),a.shift(),a.push(t[1]),Fi(n,i,a);return n.join("")}function ki(e){for(var t,n,r=-1,o=e.length,i=o+4,a=[],s=[];++r<4;)n=e[r%o],a.push(n[0]),s.push(n[1]);for(t=[ji(Du,a),",",ji(Du,s)],--r;++r<i;)n=e[r%o],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),Fi(t,a,s);return t.join("")}function Di(e,t){var n=e.length-1;if(n)for(var r,o,i=e[0][0],a=e[0][1],s=e[n][0]-i,u=e[n][1]-a,c=-1;++c<=n;)r=e[c],o=c/n,r[0]=t*r[0]+(1-t)*(i+o*s),r[1]=t*r[1]+(1-t)*(a+o*u);return Ii(e)}function ji(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Fi(e,t,n){e.push("C",ji(Lu,t),",",ji(Lu,n),",",ji(ku,t),",",ji(ku,n),",",ji(Du,t),",",ji(Du,n))}function Vi(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ui(e){for(var t=0,n=e.length-1,r=[],o=e[0],i=e[1],a=r[0]=Vi(o,i);++t<n;)r[t]=(a+(a=Vi(o=i,i=e[t+1])))/2;return r[t]=a,r}function zi(e){for(var t,n,r,o,i=[],a=Ui(e),s=-1,u=e.length-1;++s<u;)t=Vi(e[s],e[s+1]),ba(t)<ja?a[s]=a[s+1]=0:(n=a[s]/t,r=a[s+1]/t,o=n*n+r*r,o>9&&(o=3*t/Math.sqrt(o),a[s]=o*n,a[s+1]=o*r));for(s=-1;++s<=u;)o=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),i.push([o||0,a[s]*o||0]);return i}function Gi(e){return e.length<3?Ci(e):e[0]+Mi(e,zi(e))}function Hi(e){for(var t,n,r,o=-1,i=e.length;++o<i;)t=e[o],n=t[0],r=t[1]-Ga,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Bi(e){function t(t){function u(){g.push("M",s(e(m),f),l,c(e(y.reverse()),f),"Z")}for(var p,d,h,g=[],y=[],m=[],v=-1,_=t.length,b=Pe(n),x=Pe(o),E=n===r?function(){return d}:Pe(r),C=o===i?function(){return h}:Pe(i);++v<_;)a.call(this,p=t[v],v)?(y.push([d=+b.call(this,p,v),h=+x.call(this,p,v)]),m.push([+E.call(this,p,v),+C.call(this,p,v)])):y.length&&(u(),y=[],m=[]);return y.length&&u(),g.length?g.join(""):null}var n=Mn,r=Mn,o=0,i=Nn,a=Mt,s=Ci,u=s.key,c=s,l="L",f=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(o=i=e,t):i},t.y0=function(e){return arguments.length?(o=e,t):o},t.y1=function(e){return arguments.length?(i=e,t):i},t.defined=function(e){return arguments.length?(a=e,t):a},t.interpolate=function(e){return arguments.length?(u="function"==typeof e?s=e:(s=Iu.get(e)||Ci).key,c=s.reverse||s,l=s.closed?"M":"L",t):u},t.tension=function(e){return arguments.length?(f=e,t):f},t}function Zi(e){return e.radius}function qi(e){return[e.x,e.y]}function Wi(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Ga;return[n*Math.cos(r),n*Math.sin(r)]}}function Xi(){return 64}function Yi(){return"circle"}function Ki(e){var t=Math.sqrt(e/Va);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Qi(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function $i(e,t,n){return wa(e,Hu),e.namespace=t,e.id=n,e}function Ji(e,t,n,r){var o=e.id,i=e.namespace;return Z(e,"function"==typeof n?function(e,a,s){e[i][o].tween.set(t,r(n.call(e,e.__data__,a,s)))}:(n=r(n),function(e){e[i][o].tween.set(t,n)}))}function ea(e){return null==e&&(e=""),function(){this.textContent=e}}function ta(e){return null==e?"__transition__":"__transition_"+e+"__"}function na(e,t,n,r,o){function i(e){var t=g.delay;return c.t=t+u,t<=e?a(e-t):void(c.c=a)}function a(n){var o=h.active,i=h[o];i&&(i.timer.c=null,i.timer.t=NaN,--h.count,delete h[o],i.event&&i.event.interrupt.call(e,e.__data__,i.index));for(var a in h)if(+a<r){var f=h[a];f.timer.c=null,f.timer.t=NaN,--h.count,delete h[a]}c.c=s,Ie(function(){return c.c&&s(n||1)&&(c.c=null,c.t=NaN),1},0,u),h.active=r,g.event&&g.event.start.call(e,e.__data__,t),d=[],g.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&d.push(r)}),p=g.ease,l=g.duration}function s(o){for(var i=o/l,a=p(i),s=d.length;s>0;)d[--s].call(e,a);if(i>=1)return g.event&&g.event.end.call(e,e.__data__,t),--h.count?delete h[r]:delete e[n],1}var u,c,l,p,d,h=e[n]||(e[n]={active:0,count:0}),g=h[r];g||(u=o.time,c=Ie(i,0,u),g=h[r]={tween:new f,time:u,timer:c,delay:o.delay,duration:o.duration,ease:o.ease,index:t},o=null,++h.count)}function ra(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function oa(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function ia(e){return e.toISOString()}function aa(e,t,n){function r(t){return e(t)}function o(e,n){var r=e[1]-e[0],o=r/n,i=la.bisect($u,o);return i==$u.length?[t.year,ti(e.map(function(e){return e/31536e6}),n)[2]]:i?t[o/$u[i-1]<$u[i]/o?i-1:i]:[tc,ti(e,n)[2]]}return r.invert=function(t){return sa(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(sa)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,sa(+n+1),t).length}var i=r.domain(),a=qo(i),s=null==e?o(a,10):"number"==typeof e&&o(a,e);return s&&(e=s[0],t=s[1]),r.domain(Yo(i,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=sa(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=sa(+t+1);return t}}:e))},r.ticks=function(e,t){var n=qo(r.domain()),i=null==e?o(n,10):"number"==typeof e?o(n,e):!e.range&&[{range:e},t];return i&&(e=i[0],t=i[1]),e.range(n[0],sa(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return aa(e.copy(),t,n)},Jo(r,e)}function sa(e){return new Date(e)}function ua(e){return JSON.parse(e.responseText)}function ca(e){var t=da.createRange();return t.selectNode(da.body),t.createContextualFragment(e.responseText)}var la={version:"3.5.17"},fa=[].slice,pa=function(e){return fa.call(e)},da=this.document;if(da)try{pa(da.documentElement.childNodes)[0].nodeType}catch(e){pa=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),da)try{da.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var ha=this.Element.prototype,ga=ha.setAttribute,ya=ha.setAttributeNS,ma=this.CSSStyleDeclaration.prototype,va=ma.setProperty;ha.setAttribute=function(e,t){ga.call(this,e,t+"")},ha.setAttributeNS=function(e,t,n){ya.call(this,e,t,n+"")},ma.setProperty=function(e,t,n){va.call(this,e,t+"",n)}}la.ascending=o,la.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},la.min=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&n>r&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&n>r&&(n=r)}return n},la.max=function(e,t){var n,r,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=e[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=e[o])&&r>n&&(n=r)}else{for(;++o<i;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=t.call(e,e[o],o))&&r>n&&(n=r)}return n},la.extent=function(e,t){var n,r,o,i=-1,a=e.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=e[i])&&(n>r&&(n=r),o<r&&(o=r))}else{for(;++i<a;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=t.call(e,e[i],i))&&(n>r&&(n=r),o<r&&(o=r))}return[n,o]},la.sum=function(e,t){var n,r=0,o=e.length,i=-1;if(1===arguments.length)for(;++i<o;)a(n=+e[i])&&(r+=n);else for(;++i<o;)a(n=+t.call(e,e[i],i))&&(r+=n);return r},la.mean=function(e,t){var n,r=0,o=e.length,s=-1,u=o;if(1===arguments.length)for(;++s<o;)a(n=i(e[s]))?r+=n:--u;else for(;++s<o;)a(n=i(t.call(e,e[s],s)))?r+=n:--u;if(u)return r/u},la.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),o=+e[r-1],i=n-r;return i?o+i*(e[r]-o):o},la.median=function(e,t){var n,r=[],s=e.length,u=-1;if(1===arguments.length)for(;++u<s;)a(n=i(e[u]))&&r.push(n);else for(;++u<s;)a(n=i(t.call(e,e[u],u)))&&r.push(n);if(r.length)return la.quantile(r.sort(o),.5)},la.variance=function(e,t){var n,r,o=e.length,s=0,u=0,c=-1,l=0;if(1===arguments.length)for(;++c<o;)a(n=i(e[c]))&&(r=n-s,s+=r/++l,u+=r*(n-s));else for(;++c<o;)a(n=i(t.call(e,e[c],c)))&&(r=n-s,s+=r/++l,u+=r*(n-s));if(l>1)return u/(l-1)},la.deviation=function(){var e=la.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _a=s(o);la.bisectLeft=_a.left,la.bisect=la.bisectRight=_a.right,la.bisector=function(e){return s(1===e.length?function(t,n){return o(e(t),n)}:e)},la.shuffle=function(e,t,n){(i=arguments.length)<3&&(n=e.length,i<2&&(t=0));for(var r,o,i=n-t;i;)o=Math.random()*i--|0,r=e[i+t],e[i+t]=e[o+t],e[o+t]=r;return e},la.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},la.pairs=function(e){for(var t,n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=[t=o,o=e[++n]];return i},la.transpose=function(e){if(!(o=e.length))return[];for(var t=-1,n=la.min(e,u),r=new Array(n);++t<n;)for(var o,i=-1,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r},la.zip=function(){return la.transpose(arguments)},la.keys=function(e){var t=[];for(var n in e)t.push(n);return t},la.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},la.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},la.merge=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i<o;)a+=e[i].length;for(n=new Array(a);--o>=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n};var ba=Math.abs;la.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,o=[],i=c(ba(n)),a=-1;if(e*=i,t*=i,n*=i,n<0)for(;(r=e+n*++a)>t;)o.push(r/i);else for(;(r=e+n*++a)<t;)o.push(r/i);return o},la.map=function(e,t){var n=new f;if(e instanceof f)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,o=-1,i=e.length;if(1===arguments.length)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t.call(e,r=e[o],o),r)}else for(var a in e)n.set(a,e[a]);return n};var xa="__proto__",Ea="\0";l(f,{has:h,get:function(e){return this._[p(e)]},set:function(e,t){return this._[p(e)]=t},remove:g,keys:y,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:d(t),value:this._[t]});return e},size:m,empty:v,forEach:function(e){for(var t in this._)e.call(this,d(t),this._[t])}}),la.nest=function(){function e(t,a,s){if(s>=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var u,c,l,p,d=-1,h=a.length,g=i[s++],y=new f;++d<h;)(p=y.get(u=g(c=a[d])))?p.push(c):y.set(u,[c]);return t?(c=t(),l=function(n,r){c.set(n,e(t,r,s))}):(c={},l=function(n,r){c[n]=e(t,r,s)}),y.forEach(l),c}function t(e,n){if(n>=i.length)return e;var r=[],o=a[n++];return e.forEach(function(e,o){r.push({key:e,values:t(o,n)})}),o?r.sort(function(e,t){return o(e.key,t.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(t,n){return e(n,t,0)},o.entries=function(n){return t(e(la.map,n,0),0)},o.key=function(e){return i.push(e),o},o.sortKeys=function(e){return a[i.length-1]=e,o},o.sortValues=function(e){return n=e,o},o.rollup=function(e){return r=e,o},o},la.set=function(e){var t=new _;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},l(_,{has:h,add:function(e){return this._[p(e+="")]=!0,e},remove:g,values:y,size:m,empty:v,forEach:function(e){for(var t in this._)e.call(this,d(t))}}),la.behavior={},la.rebind=function(e,t){for(var n,r=1,o=arguments.length;++r<o;)e[n=arguments[r]]=x(e,t,t[n]);return e};var Ca=["webkit","ms","moz","Moz","o","O"];la.dispatch=function(){for(var e=new S,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=w(e);return e},S.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},la.event=null,la.requote=function(e){return e.replace(Sa,"\\$&")};var Sa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,wa={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},Ta=function(e,t){return t.querySelector(e)},Oa=function(e,t){return t.querySelectorAll(e)},Pa=function(e,t){var n=e.matches||e[E(e,"matchesSelector")];return(Pa=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(Ta=function(e,t){return Sizzle(e,t)[0]||null},Oa=Sizzle,Pa=Sizzle.matchesSelector),la.selection=function(){return la.select(da.documentElement)};var Ra=la.selection.prototype=[];Ra.select=function(e){var t,n,r,o,i=[];e=A(e);for(var a=-1,s=this.length;++a<s;){i.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var u=-1,c=r.length;++u<c;)(o=r[u])?(t.push(n=e.call(o,o.__data__,u,a)),n&&"__data__"in o&&(n.__data__=o.__data__)):t.push(null)}return R(i)},Ra.selectAll=function(e){var t,n,r=[];e=M(e);for(var o=-1,i=this.length;++o<i;)for(var a=this[o],s=-1,u=a.length;++s<u;)(n=a[s])&&(r.push(t=pa(e.call(n,n.__data__,s,o))),t.parentNode=n);return R(r)};var Aa="http://www.w3.org/1999/xhtml",Ma={svg:"http://www.w3.org/2000/svg",xhtml:Aa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};la.ns={prefix:Ma,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Ma.hasOwnProperty(n)?{space:Ma[n],local:e}:e}},Ra.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=la.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(N(t,e[t]));return this}return this.each(N(e,t))},Ra.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=k(e)).length,o=-1;if(t=n.classList){for(;++o<r;)if(!t.contains(e[o]))return!1}else for(t=n.getAttribute("class");++o<r;)if(!L(e[o]).test(t))return!1;return!0}for(t in e)this.each(D(t,e[t]));return this}return this.each(D(e,t))},Ra.style=function(e,t,n){var o=arguments.length;if(o<3){if("string"!=typeof e){o<2&&(t="");for(n in e)this.each(F(n,e[n],t));return this}if(o<2){var i=this.node();return r(i).getComputedStyle(i,null).getPropertyValue(e)}n=""}return this.each(F(e,t,n))},Ra.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(V(t,e[t]));return this}return this.each(V(e,t))},Ra.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},Ra.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},Ra.append=function(e){return e=U(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},Ra.insert=function(e,t){return e=U(e),t=A(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},Ra.remove=function(){return this.each(z)},Ra.data=function(e,t){function n(e,n){var r,o,i,a=e.length,l=n.length,p=Math.min(a,l),d=new Array(l),h=new Array(l),g=new Array(a);if(t){var y,m=new f,v=new Array(a);for(r=-1;++r<a;)(o=e[r])&&(m.has(y=t.call(o,o.__data__,r))?g[r]=o:m.set(y,o),v[r]=y);for(r=-1;++r<l;)(o=m.get(y=t.call(n,i=n[r],r)))?o!==!0&&(d[r]=o,o.__data__=i):h[r]=G(i),m.set(y,!0);for(r=-1;++r<a;)r in v&&m.get(v[r])!==!0&&(g[r]=e[r])}else{for(r=-1;++r<p;)o=e[r],i=n[r],o?(o.__data__=i,d[r]=o):h[r]=G(i);for(;r<l;++r)h[r]=G(n[r]);for(;r<a;++r)g[r]=e[r]}h.update=d,h.parentNode=d.parentNode=g.parentNode=e.parentNode,s.push(h),u.push(d),c.push(g)}var r,o,i=-1,a=this.length;if(!arguments.length){for(e=new Array(a=(r=this[0]).length);++i<a;)(o=r[i])&&(e[i]=o.__data__);return e}var s=q([]),u=R([]),c=R([]);if("function"==typeof e)for(;++i<a;)n(r=this[i],e.call(r,r.parentNode.__data__,i));else for(;++i<a;)n(r=this[i],e);return u.enter=function(){return s},u.exit=function(){return c},u},Ra.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},Ra.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=H(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return R(o)},Ra.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],o=r.length-1,i=r[o];--o>=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Ra.sort=function(e){e=B.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},Ra.each=function(e){return Z(this,function(t,n,r){e.call(t,t.__data__,n,r)})},Ra.call=function(e){var t=pa(arguments);return e.apply(t[0]=this,t),this},Ra.empty=function(){return!this.node()},Ra.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,o=n.length;r<o;r++){var i=n[r];if(i)return i}return null},Ra.size=function(){var e=0;return Z(this,function(){++e}),e};var Na=[];la.selection.enter=q,la.selection.enter.prototype=Na,Na.append=Ra.append,Na.empty=Ra.empty,Na.node=Ra.node,Na.call=Ra.call,Na.size=Ra.size,Na.select=function(e){for(var t,n,r,o,i,a=[],s=-1,u=this.length;++s<u;){r=(o=this[s]).update,a.push(t=[]),t.parentNode=o.parentNode;for(var c=-1,l=o.length;++c<l;)(i=o[c])?(t.push(r[c]=n=e.call(o.parentNode,i.__data__,c,s)),n.__data__=i.__data__):t.push(null)}return R(a)},Na.insert=function(e,t){return arguments.length<2&&(t=W(this)),Ra.insert.call(this,e,t)},la.select=function(e){var n;return"string"==typeof e?(n=[Ta(e,da)],n.parentNode=da.documentElement):(n=[e],n.parentNode=t(e)),R([n])},la.selectAll=function(e){var t;return"string"==typeof e?(t=pa(Oa(e,da)),t.parentNode=da.documentElement):(t=pa(e),t.parentNode=null),R([t])},Ra.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){r<2&&(t=!1);for(n in e)this.each(X(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(X(e,t,n))};var Ia=la.map({mouseenter:"mouseover",mouseleave:"mouseout"});da&&Ia.forEach(function(e){"on"+e in da&&Ia.remove(e)});var La,ka=0;la.mouse=function(e){return $(e,O())};var Da=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;la.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=O().changedTouches),t)for(var r,o=0,i=t.length;o<i;++o)if((r=t[o]).identifier===n)return $(e,r)},la.behavior.drag=function(){function e(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function t(e,t,r,i,a){return function(){function s(){var e,n,r=t(p,g);r&&(e=r[0]-_[0],n=r[1]-_[1],h|=e|n,_=r,d({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:e,dy:n}))}function u(){t(p,g)&&(m.on(i+y,null).on(a+y,null),v(h),d({type:"dragend"}))}var c,l=this,f=la.event.target.correspondingElement||la.event.target,p=l.parentNode,d=n.of(l,arguments),h=0,g=e(),y=".drag"+(null==g?"":"-"+g),m=la.select(r(f)).on(i+y,s).on(a+y,u),v=Q(f),_=t(p,g);o?(c=o.apply(l,arguments),c=[c.x-_[0],c.y-_[1]]):c=[0,0],d({type:"dragstart"})}}var n=P(e,"drag","dragstart","dragend"),o=null,i=t(C,la.mouse,r,"mousemove","mouseup"),a=t(J,la.touch,b,"touchmove","touchend");return e.origin=function(t){return arguments.length?(o=t,e):o},la.rebind(e,n,"on")},la.touches=function(e,t){return arguments.length<2&&(t=O().touches),t?pa(t).map(function(t){var n=$(e,t);return n.identifier=t.identifier,n}):[]};var ja=1e-6,Fa=ja*ja,Va=Math.PI,Ua=2*Va,za=Ua-ja,Ga=Va/2,Ha=Va/180,Ba=180/Va,Za=Math.SQRT2,qa=2,Wa=4;la.interpolateZoom=function(e,t){var n,r,o=e[0],i=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-o,f=u-i,p=l*l+f*f;if(p<Fa)r=Math.log(c/a)/Za,n=function(e){return[o+e*l,i+e*f,a*Math.exp(Za*e*r)]};else{var d=Math.sqrt(p),h=(c*c-a*a+Wa*p)/(2*a*qa*d),g=(c*c-a*a-Wa*p)/(2*c*qa*d),y=Math.log(Math.sqrt(h*h+1)-h),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-y)/Za,n=function(e){var t=e*r,n=ie(y),s=a/(qa*d)*(n*ae(Za*t+y)-oe(y));return[o+s*l,i+s*f,a*n/ie(Za*t+y)]}}return n.duration=1e3*r,n},la.behavior.zoom=function(){function e(e){e.on(M,f).on(Ya+".zoom",d).on("dblclick.zoom",h).on(L,p)}function t(e){return[(e[0]-S.x)/S.k,(e[1]-S.y)/S.k]}function n(e){return[e[0]*S.k+S.x,e[1]*S.k+S.y]}function o(e){S.k=Math.max(O[0],Math.min(O[1],e))}function i(e,t){t=n(t),S.x+=e[0]-t[0],S.y+=e[1]-t[1]}function a(t,n,r,a){t.__chart__={x:S.x,y:S.y,k:S.k},o(Math.pow(2,a)),i(y=n,r),t=la.select(t),R>0&&(t=t.transition().duration(R)),t.call(e.event)}function s(){x&&x.domain(b.range().map(function(e){return(e-S.x)/S.k}).map(b.invert)),C&&C.domain(E.range().map(function(e){return(e-S.y)/S.k}).map(E.invert))}function u(e){A++||e({type:"zoomstart"})}function c(e){s(),e({type:"zoom",scale:S.k,translate:[S.x,S.y]})}function l(e){--A||(e({type:"zoomend"}),y=null)}function f(){function e(){s=1,i(la.mouse(o),p),c(a)}function n(){f.on(N,null).on(I,null),d(s),l(a)}var o=this,a=k.of(o,arguments),s=0,f=la.select(r(o)).on(N,e).on(I,n),p=t(la.mouse(o)),d=Q(o);Gu.call(o),u(a)}function p(){function e(){var e=la.touches(h);return d=S.k,e.forEach(function(e){e.identifier in y&&(y[e.identifier]=t(e))}),e}function n(){var t=la.event.target;la.select(t).on(b,r).on(x,s),E.push(t);for(var n=la.event.changedTouches,o=0,i=n.length;o<i;++o)y[n[o].identifier]=null;var u=e(),c=Date.now();if(1===u.length){if(c-_<500){var l=u[0];a(h,l,y[l.identifier],Math.floor(Math.log(S.k)/Math.LN2)+1),T()}_=c}else if(u.length>1){var l=u[0],f=u[1],p=l[0]-f[0],d=l[1]-f[1];m=p*p+d*d}}function r(){var e,t,n,r,a=la.touches(h);Gu.call(h);for(var s=0,u=a.length;s<u;++s,r=null)if(n=a[s],r=y[n.identifier]){if(t)break;e=n,t=r}if(r){var l=(l=n[0]-e[0])*l+(l=n[1]-e[1])*l,f=m&&Math.sqrt(l/m);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],o(f*d)}_=null,i(e,t),c(g)}function s(){if(la.event.touches.length){for(var t=la.event.changedTouches,n=0,r=t.length;n<r;++n)delete y[t[n].identifier];for(var o in y)return void e()}la.selectAll(E).on(v,null),C.on(M,f).on(L,p),w(),l(g)}var d,h=this,g=k.of(h,arguments),y={},m=0,v=".zoom-"+la.event.changedTouches[0].identifier,b="touchmove"+v,x="touchend"+v,E=[],C=la.select(h),w=Q(h);n(),u(g),C.on(M,null).on(L,n)}function d(){var e=k.of(this,arguments);v?clearTimeout(v):(Gu.call(this),g=t(y=m||la.mouse(this)),u(e)),v=setTimeout(function(){v=null,l(e)},50),T(),o(Math.pow(2,.002*Xa())*S.k),i(y,g),c(e)}function h(){var e=la.mouse(this),n=Math.log(S.k)/Math.LN2;a(this,e,t(e),la.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var g,y,m,v,_,b,x,E,C,S={x:0,y:0,k:1},w=[960,500],O=Ka,R=250,A=0,M="mousedown.zoom",N="mousemove.zoom",I="mouseup.zoom",L="touchstart.zoom",k=P(e,"zoomstart","zoom","zoomend");return Ya||(Ya="onwheel"in da?(Xa=function(){return-la.event.deltaY*(la.event.deltaMode?120:1)},"wheel"):"onmousewheel"in da?(Xa=function(){return la.event.wheelDelta},"mousewheel"):(Xa=function(){return-la.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=k.of(this,arguments),t=S;Uu?la.select(this).transition().each("start.zoom",function(){S=this.__chart__||{x:0,y:0,k:1},u(e)}).tween("zoom:zoom",function(){var n=w[0],r=w[1],o=y?y[0]:n/2,i=y?y[1]:r/2,a=la.interpolateZoom([(o-S.x)/S.k,(i-S.y)/S.k,n/S.k],[(o-t.x)/t.k,(i-t.y)/t.k,n/t.k]);return function(t){var r=a(t),s=n/r[2];this.__chart__=S={x:o-r[0]*s,y:i-r[1]*s,k:s},c(e)}}).each("interrupt.zoom",function(){l(e)}).each("end.zoom",function(){l(e)}):(this.__chart__=S,u(e),c(e),l(e))})},e.translate=function(t){return arguments.length?(S={x:+t[0],y:+t[1],k:S.k},s(),e):[S.x,S.y]},e.scale=function(t){return arguments.length?(S={x:S.x,y:S.y,k:null},o(+t),s(),e):S.k},e.scaleExtent=function(t){return arguments.length?(O=null==t?Ka:[+t[0],+t[1]],e):O},e.center=function(t){return arguments.length?(m=t&&[+t[0],+t[1]],e):m},e.size=function(t){return arguments.length?(w=t&&[+t[0],+t[1]],e):w},e.duration=function(t){return arguments.length?(R=+t,e):R},e.x=function(t){return arguments.length?(x=t,b=t.copy(),S={x:0,y:0,k:1},e):x},e.y=function(t){return arguments.length?(C=t,E=t.copy(),S={x:0,y:0,k:1},e):C},la.rebind(e,k,"on")};var Xa,Ya,Ka=[0,1/0];la.color=ue,ue.prototype.toString=function(){return this.rgb()+""},la.hsl=ce;var Qa=ce.prototype=new ue;Qa.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,this.l/e)},Qa.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,e*this.l)},Qa.rgb=function(){return le(this.h,this.s,this.l)},la.hcl=fe;var $a=fe.prototype=new ue;$a.brighter=function(e){return new fe(this.h,this.c,Math.min(100,this.l+Ja*(arguments.length?e:1)))},$a.darker=function(e){return new fe(this.h,this.c,Math.max(0,this.l-Ja*(arguments.length?e:1)))},$a.rgb=function(){return pe(this.h,this.c,this.l).rgb()},la.lab=de;var Ja=18,es=.95047,ts=1,ns=1.08883,rs=de.prototype=new ue;rs.brighter=function(e){return new de(Math.min(100,this.l+Ja*(arguments.length?e:1)),this.a,this.b)},rs.darker=function(e){return new de(Math.max(0,this.l-Ja*(arguments.length?e:1)),this.a,this.b)},rs.rgb=function(){return he(this.l,this.a,this.b)},la.rgb=_e;var os=_e.prototype=new ue;os.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,o=30;return t||n||r?(t&&t<o&&(t=o),n&&n<o&&(n=o),r&&r<o&&(r=o),new _e(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new _e(o,o,o)},os.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new _e(e*this.r,e*this.g,e*this.b)},os.hsl=function(){return Se(this.r,this.g,this.b)},os.toString=function(){return"#"+Ee(this.r)+Ee(this.g)+Ee(this.b)};var is=la.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});is.forEach(function(e,t){is.set(e,be(t))}),la.functor=Pe,la.xhr=Re(b),la.dsv=function(e,t){function n(e,n,i){arguments.length<3&&(i=n,n=null);var a=Ae(e,t,null==n?r:o(n),i);return a.row=function(e){return arguments.length?a.response(null==(n=e)?r:o(e)):n},a}function r(e){return n.parse(e.responseText)}function o(e){return function(t){return n.parse(t.responseText,e)}}function i(t){return t.map(a).join(e);
18
- }function a(e){return s.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n]"),u=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var o=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(o(e),n)}:o})},n.parseRows=function(e,t){function n(){if(l>=c)return a;if(o)return o=!1,i;var t=l;if(34===e.charCodeAt(t)){for(var n=t;n++<c;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}l=n+2;var r=e.charCodeAt(n+1);return 13===r?(o=!0,10===e.charCodeAt(n+2)&&++l):10===r&&(o=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;l<c;){var r=e.charCodeAt(l++),s=1;if(10===r)o=!0;else if(13===r)o=!0,10===e.charCodeAt(l)&&(++l,++s);else if(r!==u)continue;return e.slice(t,l-s)}return e.slice(t)}for(var r,o,i={},a={},s=[],c=e.length,l=0,f=0;(r=n())!==a;){for(var p=[];r!==i&&r!==a;)p.push(r),r=n();t&&null==(p=t(p,f++))||s.push(p)}return s},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new _,o=[];return t.forEach(function(e){for(var t in e)r.has(t)||o.push(r.add(t))}),[o.map(a).join(e)].concat(t.map(function(t){return o.map(function(e){return a(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(i).join("\n")},n},la.csv=la.dsv(",","text/csv"),la.tsv=la.dsv("\t","text/tab-separated-values");var as,ss,us,cs,ls=this[E(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};la.timer=function(){Ie.apply(this,arguments)},la.timer.flush=function(){ke(),De()},la.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var fs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Fe);la.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=la.round(e,je(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),fs[8+n/3]};var ps=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ds=la.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=la.round(e,je(e,t))).toFixed(Math.max(0,Math.min(20,je(e*(1+1e-15),t))))}}),hs=la.time={},gs=Date;ze.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ys.setUTCDate.apply(this._,arguments)},setDay:function(){ys.setUTCDay.apply(this._,arguments)},setFullYear:function(){ys.setUTCFullYear.apply(this._,arguments)},setHours:function(){ys.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ys.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ys.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ys.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ys.setUTCSeconds.apply(this._,arguments)},setTime:function(){ys.setTime.apply(this._,arguments)}};var ys=Date.prototype;hs.year=Ge(function(e){return e=hs.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),hs.years=hs.year.range,hs.years.utc=hs.year.utc.range,hs.day=Ge(function(e){var t=new gs(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),hs.days=hs.day.range,hs.days.utc=hs.day.utc.range,hs.dayOfYear=function(e){var t=hs.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=hs[e]=Ge(function(e){return(e=hs.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=hs.year(e).getDay();return Math.floor((hs.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});hs[e+"s"]=n.range,hs[e+"s"].utc=n.utc.range,hs[e+"OfYear"]=function(e){var n=hs.year(e).getDay();return Math.floor((hs.dayOfYear(e)+(n+t)%7)/7)}}),hs.week=hs.sunday,hs.weeks=hs.sunday.range,hs.weeks.utc=hs.sunday.utc.range,hs.weekOfYear=hs.sundayOfYear;var ms={"-":"",_:" ",0:"0"},vs=/^\s*\d+/,_s=/^%/;la.locale=function(e){return{numberFormat:Ve(e),timeFormat:Be(e)}};var bs=la.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});la.format=bs.numberFormat,la.geo={},ft.prototype={s:0,t:0,add:function(e){pt(e,this.t,xs),pt(xs.s,this.s,this),this.s?this.t+=xs.t:this.s=xs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var xs=new ft;la.geo.stream=function(e,t){e&&Es.hasOwnProperty(e.type)?Es[e.type](e,t):dt(e,t)};var Es={Feature:function(e,t){dt(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r<o;)dt(n[r].geometry,t)}},Cs={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){ht(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)ht(n[r],t,0)},Polygon:function(e,t){gt(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,o=n.length;++r<o;)gt(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,o=n.length;++r<o;)dt(n[r],t)}};la.geo.area=function(e){return Ss=0,la.geo.stream(e,Ts),Ss};var Ss,ws=new ft,Ts={sphere:function(){Ss+=4*Va},point:C,lineStart:C,lineEnd:C,polygonStart:function(){ws.reset(),Ts.lineStart=yt},polygonEnd:function(){var e=2*ws;Ss+=e<0?4*Va+e:e,Ts.lineStart=Ts.lineEnd=Ts.point=C}};la.geo.bounds=function(){function e(e,t){_.push(b=[l=e,p=e]),t<f&&(f=t),t>d&&(d=t)}function t(t,n){var r=mt([t*Ha,n*Ha]);if(m){var o=_t(m,r),i=[o[1],-o[0],0],a=_t(i,o);Et(a),a=Ct(a);var u=t-h,c=u>0?1:-1,g=a[0]*Ba*c,y=ba(u)>180;if(y^(c*h<g&&g<c*t)){var v=a[1]*Ba;v>d&&(d=v)}else if(g=(g+360)%360-180,y^(c*h<g&&g<c*t)){var v=-a[1]*Ba;v<f&&(f=v)}else n<f&&(f=n),n>d&&(d=n);y?t<h?s(l,t)>s(l,p)&&(p=t):s(t,p)>s(l,p)&&(l=t):p>=l?(t<l&&(l=t),t>p&&(p=t)):t>h?s(l,t)>s(l,p)&&(p=t):s(t,p)>s(l,p)&&(l=t)}else e(t,n);m=r,h=t}function n(){x.point=t}function r(){b[0]=l,b[1]=p,x.point=e,m=null}function o(e,n){if(m){var r=e-h;v+=ba(r)>180?r+(r>0?360:-360):r}else g=e,y=n;Ts.point(e,n),t(e,n)}function i(){Ts.lineStart()}function a(){o(g,y),Ts.lineEnd(),ba(v)>ja&&(l=-(p=180)),b[0]=l,b[1]=p,m=null}function s(e,t){return(t-=e)<0?t+360:t}function u(e,t){return e[0]-t[0]}function c(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var l,f,p,d,h,g,y,m,v,_,b,x={point:e,lineStart:n,lineEnd:r,polygonStart:function(){x.point=o,x.lineStart=i,x.lineEnd=a,v=0,Ts.polygonStart()},polygonEnd:function(){Ts.polygonEnd(),x.point=e,x.lineStart=n,x.lineEnd=r,ws<0?(l=-(p=180),f=-(d=90)):v>ja?d=90:v<-ja&&(f=-90),b[0]=l,b[1]=p}};return function(e){d=p=-(l=f=1/0),_=[],la.geo.stream(e,x);var t=_.length;if(t){_.sort(u);for(var n,r=1,o=_[0],i=[o];r<t;++r)n=_[r],c(n[0],o)||c(n[1],o)?(s(o[0],n[1])>s(o[0],o[1])&&(o[1]=n[1]),s(n[0],o[1])>s(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,h=-(1/0),t=i.length-1,r=0,o=i[t];r<=t;o=n,++r)n=i[r],(a=s(o[1],n[0]))>h&&(h=a,l=n[0],p=o[1])}return _=b=null,l===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,f],[p,d]]}}(),la.geo.centroid=function(e){Os=Ps=Rs=As=Ms=Ns=Is=Ls=ks=Ds=js=0,la.geo.stream(e,Fs);var t=ks,n=Ds,r=js,o=t*t+n*n+r*r;return o<Fa&&(t=Ns,n=Is,r=Ls,Ps<ja&&(t=Rs,n=As,r=Ms),o=t*t+n*n+r*r,o<Fa)?[NaN,NaN]:[Math.atan2(n,t)*Ba,re(r/Math.sqrt(o))*Ba]};var Os,Ps,Rs,As,Ms,Ns,Is,Ls,ks,Ds,js,Fs={sphere:C,point:wt,lineStart:Ot,lineEnd:Pt,polygonStart:function(){Fs.lineStart=Rt},polygonEnd:function(){Fs.lineStart=Ot}},Vs=kt(Mt,Vt,zt,[-Va,-Va/2]),Us=1e9;la.geo.clipExtent=function(){var e,t,n,r,o,i,a={stream:function(e){return o&&(o.valid=!1),o=i(e),o.valid=!0,o},extent:function(s){return arguments.length?(i=Zt(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),o&&(o.valid=!1,o=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(la.geo.conicEqualArea=function(){return qt(Wt)}).raw=Wt,la.geo.albers=function(){return la.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},la.geo.albersUsa=function(){function e(e){var i=e[0],a=e[1];return t=null,n(i,a),t||(r(i,a),t)||o(i,a),t}var t,n,r,o,i=la.geo.albers(),a=la.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=la.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},e.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,o){t.point(e,o),n.point(e,o),r.point(e,o)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(i.precision(t),a.precision(t),s.precision(t),e):i.precision()},e.scale=function(t){return arguments.length?(i.scale(t),a.scale(.35*t),s.scale(t),e.translate(i.translate())):i.scale()},e.translate=function(t){if(!arguments.length)return i.translate();var c=i.scale(),l=+t[0],f=+t[1];return n=i.translate(t).clipExtent([[l-.455*c,f-.238*c],[l+.455*c,f+.238*c]]).stream(u).point,r=a.translate([l-.307*c,f+.201*c]).clipExtent([[l-.425*c+ja,f+.12*c+ja],[l-.214*c-ja,f+.234*c-ja]]).stream(u).point,o=s.translate([l-.205*c,f+.212*c]).clipExtent([[l-.214*c+ja,f+.166*c+ja],[l-.115*c-ja,f+.234*c-ja]]).stream(u).point,e},e.scale(1070)};var zs,Gs,Hs,Bs,Zs,qs,Ws={point:C,lineStart:C,lineEnd:C,polygonStart:function(){Gs=0,Ws.lineStart=Xt},polygonEnd:function(){Ws.lineStart=Ws.lineEnd=Ws.point=C,zs+=ba(Gs/2)}},Xs={point:Yt,lineStart:C,lineEnd:C,polygonStart:C,polygonEnd:C},Ys={point:$t,lineStart:Jt,lineEnd:en,polygonStart:function(){Ys.lineStart=tn},polygonEnd:function(){Ys.point=$t,Ys.lineStart=Jt,Ys.lineEnd=en}};la.geo.path=function(){function e(e){return e&&("function"==typeof s&&i.pointRadius(+s.apply(this,arguments)),a&&a.valid||(a=o(i)),la.geo.stream(e,a)),i.result()}function t(){return a=null,e}var n,r,o,i,a,s=4.5;return e.area=function(e){return zs=0,la.geo.stream(e,o(Ws)),zs},e.centroid=function(e){return Rs=As=Ms=Ns=Is=Ls=ks=Ds=js=0,la.geo.stream(e,o(Ys)),js?[ks/js,Ds/js]:Ls?[Ns/Ls,Is/Ls]:Ms?[Rs/Ms,As/Ms]:[NaN,NaN]},e.bounds=function(e){return Zs=qs=-(Hs=Bs=1/0),la.geo.stream(e,o(Xs)),[[Hs,Bs],[Zs,qs]]},e.projection=function(e){return arguments.length?(o=(n=e)?e.stream||on(e):b,t()):n},e.context=function(e){return arguments.length?(i=null==(r=e)?new Kt:new nn(e),"function"!=typeof s&&i.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(i.pointRadius(+t),+t),e):s},e.projection(la.geo.albersUsa()).context(null)},la.geo.transform=function(e){return{stream:function(t){var n=new an(t);for(var r in e)n[r]=e[r];return n}}},an.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},la.geo.projection=un,la.geo.projectionMutator=cn,(la.geo.equirectangular=function(){return un(fn)}).raw=fn.invert=fn,la.geo.rotation=function(e){function t(t){return t=e(t[0]*Ha,t[1]*Ha),t[0]*=Ba,t[1]*=Ba,t}return e=dn(e[0]%360*Ha,e[1]*Ha,e.length>2?e[2]*Ha:0),t.invert=function(t){return t=e.invert(t[0]*Ha,t[1]*Ha),t[0]*=Ba,t[1]*=Ba,t},t},pn.invert=fn,la.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=dn(-e[0]*Ha,-e[1]*Ha,0).invert,o=[];return n(null,null,1,{point:function(e,n){o.push(e=t(e,n)),e[0]*=Ba,e[1]*=Ba}}),{type:"Polygon",coordinates:[o]}}var t,n,r=[0,0],o=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=mn((t=+r)*Ha,o*Ha),e):t},e.precision=function(r){return arguments.length?(n=mn(t*Ha,(o=+r)*Ha),e):o},e.angle(90)},la.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ha,o=e[1]*Ha,i=t[1]*Ha,a=Math.sin(r),s=Math.cos(r),u=Math.sin(o),c=Math.cos(o),l=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=c*l-u*f*s)*n),u*l+c*f*s)},la.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return la.range(Math.ceil(i/y)*y,o,y).map(p).concat(la.range(Math.ceil(c/m)*m,u,m).map(d)).concat(la.range(Math.ceil(r/h)*h,n,h).filter(function(e){return ba(e%y)>ja}).map(l)).concat(la.range(Math.ceil(s/g)*g,a,g).filter(function(e){return ba(e%m)>ja}).map(f))}var n,r,o,i,a,s,u,c,l,f,p,d,h=10,g=h,y=90,m=360,v=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(d(u).slice(1),p(o).reverse().slice(1),d(c).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],c=+t[0][1],u=+t[1][1],i>o&&(t=i,i=o,o=t),c>u&&(t=c,c=u,u=t),e.precision(v)):[[i,c],[o,u]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),s>a&&(t=s,s=a,a=t),e.precision(v)):[[r,s],[n,a]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(y=+t[0],m=+t[1],e):[y,m]},e.minorStep=function(t){return arguments.length?(h=+t[0],g=+t[1],e):[h,g]},e.precision=function(t){return arguments.length?(v=+t,l=_n(s,a,90),f=bn(r,n,v),p=_n(c,u,90),d=bn(i,o,v),e):v},e.majorExtent([[-180,-90+ja],[180,90-ja]]).minorExtent([[-180,-80-ja],[180,80+ja]])},la.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||o.apply(this,arguments)]}}var t,n,r=xn,o=En;return e.distance=function(){return la.geo.distance(t||r.apply(this,arguments),n||o.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(o=t,n="function"==typeof t?null:t,e):o},e.precision=function(){return arguments.length?e:0},e},la.geo.interpolate=function(e,t){return Cn(e[0]*Ha,e[1]*Ha,t[0]*Ha,t[1]*Ha)},la.geo.length=function(e){return Ks=0,la.geo.stream(e,Qs),Ks};var Ks,Qs={sphere:C,point:C,lineStart:Sn,lineEnd:C,polygonStart:C,polygonEnd:C},$s=wn(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(la.geo.azimuthalEqualArea=function(){return un($s)}).raw=$s;var Js=wn(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},b);(la.geo.azimuthalEquidistant=function(){return un(Js)}).raw=Js,(la.geo.conicConformal=function(){return qt(Tn)}).raw=Tn,(la.geo.conicEquidistant=function(){return qt(On)}).raw=On;var eu=wn(function(e){return 1/e},Math.atan);(la.geo.gnomonic=function(){return un(eu)}).raw=eu,Pn.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ga]},(la.geo.mercator=function(){return Rn(Pn)}).raw=Pn;var tu=wn(function(){return 1},Math.asin);(la.geo.orthographic=function(){return un(tu)}).raw=tu;var nu=wn(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(la.geo.stereographic=function(){return un(nu)}).raw=nu,An.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ga]},(la.geo.transverseMercator=function(){var e=Rn(An),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=An,la.geom={},la.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,o=Pe(n),i=Pe(r),a=e.length,s=[],u=[];for(t=0;t<a;t++)s.push([+o.call(this,e[t],t),+i.call(this,e[t],t),t]);for(s.sort(Ln),t=0;t<a;t++)u.push([s[t][0],-s[t][1]]);var c=In(s),l=In(u),f=l[0]===c[0],p=l[l.length-1]===c[c.length-1],d=[];for(t=c.length-1;t>=0;--t)d.push(e[s[c[t]][2]]);for(t=+f;t<l.length-p;++t)d.push(e[s[l[t]][2]]);return d}var n=Mn,r=Nn;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},la.geom.polygon=function(e){return wa(e,ru),e};var ru=la.geom.polygon.prototype=[];ru.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],o=0;++t<n;)e=r,r=this[t],o+=e[1]*r[0]-e[0]*r[1];return.5*o},ru.centroid=function(e){var t,n,r=-1,o=this.length,i=0,a=0,s=this[o-1];for(arguments.length||(e=-1/(6*this.area()));++r<o;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],i+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[i*e,a*e]},ru.clip=function(e){for(var t,n,r,o,i,a,s=jn(e),u=-1,c=this.length-jn(this),l=this[c-1];++u<c;){for(t=e.slice(),e.length=0,o=this[u],i=t[(r=t.length-s)-1],n=-1;++n<r;)a=t[n],kn(a,l,o)?(kn(i,l,o)||e.push(Dn(i,a,l,o)),e.push(a)):kn(i,l,o)&&e.push(Dn(i,a,l,o)),i=a;s&&e.push(e[0]),l=o}return e};var ou,iu,au,su,uu,cu=[],lu=[];Zn.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Wn),t.length},rr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},or.prototype={insert:function(e,t){var n,r,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=ur(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(o=r.R,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(ar(this,n),e=n,n=e.U),n.C=!1,r.C=!0,sr(this,r))):(o=r.L,o&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(sr(this,n),e=n,n=e.U),n.C=!1,r.C=!0,ar(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,o=e.U,i=e.L,a=e.R;if(n=i?a?ur(a):i:a,o?o.L===e?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=a,a.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===o.L){if(t=o.R,t.C&&(t.C=!1,o.C=!0,ar(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,sr(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,ar(this,o),e=this._;break}}else if(t=o.L,t.C&&(t.C=!1,o.C=!0,sr(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ar(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,sr(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}},la.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=s[0][0],o=s[0][1],i=s[1][0],a=s[1][1];return cr(n(e),s).cells.forEach(function(n,s){var u=n.edges,c=n.site,l=t[s]=u.length?u.map(function(e){var t=e.start();return[t.x,t.y]}):c.x>=r&&c.x<=i&&c.y>=o&&c.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];l.point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(i(e,t)/ja)*ja,y:Math.round(a(e,t)/ja)*ja,i:t}})}var r=Mn,o=Nn,i=r,a=o,s=fu;return e?t(e):(t.links=function(e){return cr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return cr(n(e)).cells.forEach(function(n,r){for(var o,i,a=n.site,s=n.edges.sort(Wn),u=-1,c=s.length,l=s[c-1].edge,f=l.l===a?l.r:l.l;++u<c;)o=l,i=f,l=s[u].edge,f=l.l===a?l.r:l.l,r<i.i&&r<f.i&&fr(a,i,f)<0&&t.push([e[r],e[i.i],e[f.i]])}),t},t.x=function(e){return arguments.length?(i=Pe(r=e),t):r},t.y=function(e){return arguments.length?(a=Pe(o=e),t):o},t.clipExtent=function(e){return arguments.length?(s=null==e?fu:e,t):s===fu?null:s},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):s===fu?null:s&&s[1]},t)};var fu=[[-1e6,-1e6],[1e6,1e6]];la.geom.delaunay=function(e){return la.geom.voronoi().triangles(e)},la.geom.quadtree=function(e,t,n,r,o){function i(e){function i(e,t,n,r,o,i,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,l=e.y;if(null!=u)if(ba(u-n)+ba(l-r)<.01)c(e,t,n,r,o,i,a,s);else{var f=e.point;e.x=e.y=e.point=null,c(e,f,u,l,o,i,a,s),c(e,t,n,r,o,i,a,s)}else e.x=n,e.y=r,e.point=t}else c(e,t,n,r,o,i,a,s)}function c(e,t,n,r,o,a,s,u){var c=.5*(o+s),l=.5*(a+u),f=n>=c,p=r>=l,d=p<<1|f;e.leaf=!1,e=e.nodes[d]||(e.nodes[d]=hr()),f?o=c:s=c,p?a=l:u=l,i(e,t,n,r,o,a,s,u)}var l,f,p,d,h,g,y,m,v,_=Pe(s),b=Pe(u);if(null!=t)g=t,y=n,m=r,v=o;else if(m=v=-(g=y=1/0),f=[],p=[],h=e.length,a)for(d=0;d<h;++d)l=e[d],l.x<g&&(g=l.x),l.y<y&&(y=l.y),l.x>m&&(m=l.x),l.y>v&&(v=l.y),f.push(l.x),p.push(l.y);else for(d=0;d<h;++d){var x=+_(l=e[d],d),E=+b(l,d);x<g&&(g=x),E<y&&(y=E),x>m&&(m=x),E>v&&(v=E),f.push(x),p.push(E)}var C=m-g,S=v-y;C>S?v=y+C:m=g+S;var w=hr();if(w.add=function(e){i(w,e,+_(e,++d),+b(e,d),g,y,m,v)},w.visit=function(e){gr(e,w,g,y,m,v)},w.find=function(e){return yr(w,e[0],e[1],g,y,m,v)},d=-1,null==t){for(;++d<h;)i(w,e[d],f[d],p[d],g,y,m,v);--d}else e.forEach(w.add);return f=p=e=l=null,w}var a,s=Mn,u=Nn;return(a=arguments.length)?(s=pr,u=dr,3===a&&(o=n,r=t,n=t=0),i(e)):(i.x=function(e){return arguments.length?(s=e,i):s},i.y=function(e){return arguments.length?(u=e,i):u},i.extent=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],o=+e[1][1]),i):null==t?null:[[t,n],[r,o]]},i.size=function(e){return arguments.length?(null==e?t=n=r=o=null:(t=n=0,r=+e[0],o=+e[1]),i):null==t?null:[r-t,o-n]},i)},la.interpolateRgb=mr,la.interpolateObject=vr,la.interpolateNumber=_r,la.interpolateString=br;var pu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,du=new RegExp(pu.source,"g");la.interpolate=xr,la.interpolators=[function(e,t){var n=typeof t;return("string"===n?is.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?mr:br:t instanceof ue?mr:Array.isArray(t)?Er:"object"===n&&isNaN(t)?vr:_r)(e,t)}],la.interpolateArray=Er;var hu=function(){return b},gu=la.map({linear:hu,poly:Rr,quad:function(){return Tr},cubic:function(){return Or},sin:function(){return Ar},exp:function(){return Mr},circle:function(){return Nr},elastic:Ir,back:Lr,bounce:function(){return kr}}),yu=la.map({in:b,out:Sr,"in-out":wr,"out-in":function(e){return wr(Sr(e))}});la.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=gu.get(n)||hu,r=yu.get(r)||b,Cr(r(n.apply(null,fa.call(arguments,1))))},la.interpolateHcl=Dr,la.interpolateHsl=jr,la.interpolateLab=Fr,la.interpolateRound=Vr,la.transform=function(e){var t=da.createElementNS(la.ns.prefix.svg,"g");return(la.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Ur(n?n.matrix:mu)})(e)},Ur.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var mu={a:1,b:0,c:0,d:1,e:0,f:0};la.interpolateTransform=Yr,la.layout={},la.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push($r(e[n]));return t}},la.layout.chord=function(){function e(){var e,c,f,p,d,h={},g=[],y=la.range(i),m=[];for(n=[],r=[],e=0,p=-1;++p<i;){for(c=0,d=-1;++d<i;)c+=o[p][d];g.push(c),m.push(la.range(i)),e+=c}for(a&&y.sort(function(e,t){return a(g[e],g[t])}),s&&m.forEach(function(e,t){e.sort(function(e,n){return s(o[t][e],o[t][n])})}),e=(Ua-l*i)/e,c=0,p=-1;++p<i;){for(f=c,d=-1;++d<i;){var v=y[p],_=m[v][d],b=o[v][_],x=c,E=c+=b*e;h[v+"-"+_]={index:v,subindex:_,startAngle:x,endAngle:E,value:b}}r[v]={index:v,startAngle:f,endAngle:c,value:g[v]},c+=l}for(p=-1;++p<i;)for(d=p-1;++d<i;){var C=h[p+"-"+d],S=h[d+"-"+p];(C.value||S.value)&&n.push(C.value<S.value?{source:S,target:C}:{source:C,target:S})}u&&t()}function t(){n.sort(function(e,t){return u((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,o,i,a,s,u,c={},l=0;return c.matrix=function(e){return arguments.length?(i=(o=e)&&o.length,n=r=null,c):o},c.padding=function(e){return arguments.length?(l=e,n=r=null,c):l},c.sortGroups=function(e){return arguments.length?(a=e,n=r=null,c):a},c.sortSubgroups=function(e){return arguments.length?(s=e,n=null,c):s},c.sortChords=function(e){return arguments.length?(u=e,n&&t(),c):u},c.chords=function(){return n||e(),n},c.groups=function(){return r||e(),r},c},la.layout.force=function(){function e(e){return function(t,n,r,o){if(t.point!==e){var i=t.cx-e.x,a=t.cy-e.y,s=o-n,u=i*i+a*a;if(s*s/m<u){if(u<g){var c=t.charge/u;e.px-=i*c,e.py-=a*c}return!0}if(t.point&&u&&u<g){var c=t.pointCharge/u;e.px-=i*c,e.py-=a*c}}return!t.charge}}function t(e){e.px=la.event.x,e.py=la.event.y,u.resume()}var n,r,o,i,a,s,u={},c=la.dispatch("start","tick","end"),l=[1,1],f=.9,p=vu,d=_u,h=-30,g=bu,y=.1,m=.64,v=[],_=[];return u.tick=function(){if((o*=.99)<.005)return n=null,c.end({type:"end",alpha:o=0}),!0;var t,r,u,p,d,g,m,b,x,E=v.length,C=_.length;for(r=0;r<C;++r)u=_[r],p=u.source,d=u.target,b=d.x-p.x,x=d.y-p.y,(g=b*b+x*x)&&(g=o*a[r]*((g=Math.sqrt(g))-i[r])/g,b*=g,x*=g,d.x-=b*(m=p.weight+d.weight?p.weight/(p.weight+d.weight):.5),d.y-=x*m,p.x+=b*(m=1-m),p.y+=x*m);if((m=o*y)&&(b=l[0]/2,x=l[1]/2,r=-1,m))for(;++r<E;)u=v[r],u.x+=(b-u.x)*m,u.y+=(x-u.y)*m;if(h)for(io(t=la.geom.quadtree(v),o,s),r=-1;++r<E;)(u=v[r]).fixed||t.visit(e(u));for(r=-1;++r<E;)u=v[r],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*f,u.y-=(u.py-(u.py=u.y))*f);c.tick({type:"tick",alpha:o})},u.nodes=function(e){return arguments.length?(v=e,u):v},u.links=function(e){return arguments.length?(_=e,u):_},u.size=function(e){return arguments.length?(l=e,u):l},u.linkDistance=function(e){return arguments.length?(p="function"==typeof e?e:+e,u):p},u.distance=u.linkDistance,u.linkStrength=function(e){return arguments.length?(d="function"==typeof e?e:+e,u):d},u.friction=function(e){return arguments.length?(f=+e,u):f},u.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,u):h},u.chargeDistance=function(e){return arguments.length?(g=e*e,u):Math.sqrt(g)},u.gravity=function(e){return arguments.length?(y=+e,u):y},u.theta=function(e){return arguments.length?(m=e*e,u):Math.sqrt(m)},u.alpha=function(e){return arguments.length?(e=+e,o?e>0?o=e:(n.c=null,n.t=NaN,n=null,c.end({type:"end",alpha:o=0})):e>0&&(c.start({type:"start",alpha:o=e}),n=Ie(u.tick)),u):o},u.start=function(){function e(e,r){if(!n){for(n=new Array(o),u=0;u<o;++u)n[u]=[];for(u=0;u<c;++u){var i=_[u];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var a,s=n[t],u=-1,l=s.length;++u<l;)if(!isNaN(a=s[u][e]))return a;return Math.random()*r}var t,n,r,o=v.length,c=_.length,f=l[0],g=l[1];for(t=0;t<o;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t<c;++t)r=_[t],"number"==typeof r.source&&(r.source=v[r.source]),"number"==typeof r.target&&(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<o;++t)r=v[t],isNaN(r.x)&&(r.x=e("x",f)),isNaN(r.y)&&(r.y=e("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof p)for(t=0;t<c;++t)i[t]=+p.call(this,_[t],t);else for(t=0;t<c;++t)i[t]=p;if(a=[],"function"==typeof d)for(t=0;t<c;++t)a[t]=+d.call(this,_[t],t);else for(t=0;t<c;++t)a[t]=d;if(s=[],"function"==typeof h)for(t=0;t<o;++t)s[t]=+h.call(this,v[t],t);else for(t=0;t<o;++t)s[t]=h;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return r||(r=la.behavior.drag().origin(b).on("dragstart.force",to).on("drag.force",t).on("dragend.force",no)),arguments.length?void this.on("mouseover.force",ro).on("mouseout.force",oo).call(r):r},la.rebind(u,c,"on")};var vu=20,_u=1,bu=1/0;la.layout.hierarchy=function(){function e(o){var i,a=[o],s=[];for(o.depth=0;null!=(i=a.pop());)if(s.push(i),(c=n.call(e,i,i.depth))&&(u=c.length)){for(var u,c,l;--u>=0;)a.push(l=c[u]),l.parent=i,l.depth=i.depth+1;r&&(i.value=0),i.children=c}else r&&(i.value=+r.call(e,i,i.depth)||0),delete i.children;return uo(o,function(e){var n,o;t&&(n=e.children)&&n.sort(t),r&&(o=e.parent)&&(o.value+=e.value)}),s}var t=fo,n=co,r=lo;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(so(t,function(e){e.children&&(e.value=0)}),uo(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},la.layout.partition=function(){function e(t,n,r,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=r,t.dy=o,i&&(a=i.length)){var a,s,u,c=-1;for(r=t.value?r/t.value:0;++c<a;)e(s=i[c],n,u=s.value*r,o),n+=u}}function t(e){var n=e.children,r=0;if(n&&(o=n.length))for(var o,i=-1;++i<o;)r=Math.max(r,t(n[i]));return 1+r}function n(n,i){var a=r.call(this,n,i);return e(a[0],0,o[0],o[1]/t(a[0])),a}var r=la.layout.hierarchy(),o=[1,1];return n.size=function(e){return arguments.length?(o=e,n):o},ao(n,r)},la.layout.pie=function(){function e(a){var s,u=a.length,c=a.map(function(n,r){return+t.call(e,n,r)}),l=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof o?o.apply(this,arguments):o)-l,p=Math.min(Math.abs(f)/u,+("function"==typeof i?i.apply(this,arguments):i)),d=p*(f<0?-1:1),h=la.sum(c),g=h?(f-u*d)/h:0,y=la.range(u),m=[];return null!=n&&y.sort(n===xu?function(e,t){return c[t]-c[e]}:function(e,t){return n(a[e],a[t])}),y.forEach(function(e){m[e]={data:a[e],value:s=c[e],startAngle:l,endAngle:l+=s*g+d,padAngle:p}}),m}var t=Number,n=xu,r=0,o=Ua,i=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(o=t,e):o},e.padAngle=function(t){return arguments.length?(i=t,e):i},e};var xu={};la.layout.stack=function(){function e(s,u){if(!(p=s.length))return s;var c=s.map(function(n,r){return t.call(e,n,r)}),l=c.map(function(t){return t.map(function(t,n){return[i.call(e,t,n),a.call(e,t,n)]})}),f=n.call(e,l,u);c=la.permute(c,f),l=la.permute(l,f);var p,d,h,g,y=r.call(e,l,u),m=c[0].length;for(h=0;h<m;++h)for(o.call(e,c[0][h],g=y[h],l[0][h][1]),d=1;d<p;++d)o.call(e,c[d][h],g+=l[d-1][h][1],l[d][h][1]);return s}var t=b,n=mo,r=vo,o=yo,i=ho,a=go;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:Eu.get(t)||mo,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:Cu.get(t)||vo,e):r},e.x=function(t){return arguments.length?(i=t,e):i},e.y=function(t){return arguments.length?(a=t,e):a},e.out=function(t){return arguments.length?(o=t,e):o},e};var Eu=la.map({"inside-out":function(e){var t,n,r=e.length,o=e.map(_o),i=e.map(bo),a=la.range(r).sort(function(e,t){return o[e]-o[t]}),s=0,u=0,c=[],l=[];for(t=0;t<r;++t)n=a[t],s<u?(s+=i[n],c.push(n)):(u+=i[n],l.push(n));return l.reverse().concat(c)},reverse:function(e){return la.range(e.length).reverse()},default:mo}),Cu=la.map({silhouette:function(e){var t,n,r,o=e.length,i=e[0].length,a=[],s=0,u=[];for(n=0;n<i;++n){for(t=0,
19
- r=0;t<o;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;n<i;++n)u[n]=(s-a[n])/2;return u},wiggle:function(e){var t,n,r,o,i,a,s,u,c,l=e.length,f=e[0],p=f.length,d=[];for(d[0]=u=c=0,n=1;n<p;++n){for(t=0,o=0;t<l;++t)o+=e[t][n][1];for(t=0,i=0,s=f[n][0]-f[n-1][0];t<l;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;i+=a*e[t][n][1]}d[n]=u-=o?i/o*s:0,u<c&&(c=u)}for(n=0;n<p;++n)d[n]-=c;return d},expand:function(e){var t,n,r,o=e.length,i=e[0].length,a=1/o,s=[];for(n=0;n<i;++n){for(t=0,r=0;t<o;t++)r+=e[t][n][1];if(r)for(t=0;t<o;t++)e[t][n][1]/=r;else for(t=0;t<o;t++)e[t][n][1]=a}for(n=0;n<i;++n)s[n]=0;return s},zero:vo});la.layout.histogram=function(){function e(e,i){for(var a,s,u=[],c=e.map(n,this),l=r.call(this,c,i),f=o.call(this,l,c,i),i=-1,p=c.length,d=f.length-1,h=t?1:1/p;++i<d;)a=u[i]=[],a.dx=f[i+1]-(a.x=f[i]),a.y=0;if(d>0)for(i=-1;++i<p;)s=c[i],s>=l[0]&&s<=l[1]&&(a=u[la.bisect(f,s,1,d)-1],a.y+=h,a.push(e[i]));return u}var t=!0,n=Number,r=So,o=Eo;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=Pe(t),e):r},e.bins=function(t){return arguments.length?(o="number"==typeof t?function(e){return Co(e,t)}:Pe(t),e):o},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},la.layout.pack=function(){function e(e,i){var a=n.call(this,e,i),s=a[0],u=o[0],c=o[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,uo(s,function(e){e.r=+l(e.value)}),uo(s,Ro),r){var f=r*(t?1:Math.max(2*s.r/u,2*s.r/c))/2;uo(s,function(e){e.r+=f}),uo(s,Ro),uo(s,function(e){e.r-=f})}return No(s,u/2,c/2,t?1:1/Math.max(2*s.r/u,2*s.r/c)),a}var t,n=la.layout.hierarchy().sort(wo),r=0,o=[1,1];return e.size=function(t){return arguments.length?(o=t,e):o},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ao(e,n)},la.layout.tree=function(){function e(e,o){var l=a.call(this,e,o),f=l[0],p=t(f);if(uo(p,n),p.parent.m=-p.z,so(p,r),c)so(f,i);else{var d=f,h=f,g=f;so(f,function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>g.depth&&(g=e)});var y=s(d,h)/2-d.x,m=u[0]/(h.x+s(h,d)/2+y),v=u[1]/(g.depth||1);so(f,function(e){e.x=(e.x+y)*m,e.y=e.depth*v})}return l}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var o,i=t.children,a=0,s=i.length;a<s;++a)r.push((i[a]=o={_:i[a],parent:t,children:(o=i[a].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=o);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Fo(e);var i=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+s(e._,r._),e.m=e.z-i):e.z=i}else r&&(e.z=r.z+s(e._,r._));e.parent.A=o(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function o(e,t,n){if(t){for(var r,o=e,i=e,a=t,u=o.parent.children[0],c=o.m,l=i.m,f=a.m,p=u.m;a=Do(a),o=ko(o),a&&o;)u=ko(u),i=Do(i),i.a=e,r=a.z+f-o.z-c+s(a._,o._),r>0&&(jo(Vo(a,e,n),e,r),c+=r,l+=r),f+=a.m,c+=o.m,p+=u.m,l+=i.m;a&&!Do(i)&&(i.t=a,i.m+=f-l),o&&!ko(u)&&(u.t=o,u.m+=c-p,n=e)}return n}function i(e){e.x*=u[0],e.y=e.depth*u[1]}var a=la.layout.hierarchy().sort(null).value(null),s=Lo,u=[1,1],c=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(c=null==(u=t)?i:null,e):c?null:u},e.nodeSize=function(t){return arguments.length?(c=null==(u=t)?null:i,e):c?u:null},ao(e,a)},la.layout.cluster=function(){function e(e,i){var a,s=t.call(this,e,i),u=s[0],c=0;uo(u,function(e){var t=e.children;t&&t.length?(e.x=zo(t),e.y=Uo(t)):(e.x=a?c+=n(e,a):0,e.y=0,a=e)});var l=Go(u),f=Ho(u),p=l.x-n(l,f)/2,d=f.x+n(f,l)/2;return uo(u,o?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(d-p)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),s}var t=la.layout.hierarchy().sort(null).value(null),n=Lo,r=[1,1],o=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(o=null==(r=t),e):o?null:r},e.nodeSize=function(t){return arguments.length?(o=null!=(r=t),e):o?r:null},ao(e,t)},la.layout.treemap=function(){function e(e,t){for(var n,r,o=-1,i=e.length;++o<i;)r=(n=e[o]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function t(n){var i=n.children;if(i&&i.length){var a,s,u,c=f(n),l=[],p=i.slice(),h=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&n.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(e(p,c.dx*c.dy/n.value),l.area=0;(u=p.length)>0;)l.push(a=p[u-1]),l.area+=a.area,"squarify"!==d||(s=r(l,g))<=h?(p.pop(),h=s):(l.area-=l.pop().area,o(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,h=1/0);l.length&&(o(l,g,c,!0),l.length=l.area=0),i.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var i,a=f(t),s=r.slice(),u=[];for(e(s,a.dx*a.dy/t.value),u.area=0;i=s.pop();)u.push(i),u.area+=i.area,null!=i.z&&(o(u,i.z?a.dx:a.dy,a,!s.length),u.length=u.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,o=0,i=1/0,a=-1,s=e.length;++a<s;)(n=e[a].area)&&(n<i&&(i=n),n>o&&(o=n));return r*=r,t*=t,r?Math.max(t*o*h/r,r/(t*i*h)):1/0}function o(e,t,n,r){var o,i=-1,a=e.length,s=n.x,c=n.y,l=t?u(e.area/t):0;if(t==n.dx){for((r||l>n.dy)&&(l=n.dy);++i<a;)o=e[i],o.x=s,o.y=c,o.dy=l,s+=o.dx=Math.min(n.x+n.dx-s,l?u(o.area/l):0);o.z=!0,o.dx+=n.x+n.dx-s,n.y+=l,n.dy-=l}else{for((r||l>n.dx)&&(l=n.dx);++i<a;)o=e[i],o.x=s,o.y=c,o.dx=l,c+=o.dy=Math.min(n.y+n.dy-c,l?u(o.area/l):0);o.z=!1,o.dy+=n.y+n.dy-c,n.x+=l,n.dx-=l}}function i(r){var o=a||s(r),i=o[0];return i.x=i.y=0,i.value?(i.dx=c[0],i.dy=c[1]):i.dx=i.dy=0,a&&s.revalue(i),e([i],i.dx*i.dy/i.value),(a?n:t)(i),p&&(a=o),o}var a,s=la.layout.hierarchy(),u=Math.round,c=[1,1],l=null,f=Bo,p=!1,d="squarify",h=.5*(1+Math.sqrt(5));return i.size=function(e){return arguments.length?(c=e,i):c},i.padding=function(e){function t(t){var n=e.call(i,t,t.depth);return null==n?Bo(t):Zo(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return Zo(t,e)}if(!arguments.length)return l;var r;return f=null==(l=e)?Bo:"function"==(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,i},i.round=function(e){return arguments.length?(u=e?Math.round:Number,i):u!=Number},i.sticky=function(e){return arguments.length?(p=e,a=null,i):p},i.ratio=function(e){return arguments.length?(h=e,i):h},i.mode=function(e){return arguments.length?(d=e+"",i):d},ao(i,s)},la.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,o;do n=2*Math.random()-1,r=2*Math.random()-1,o=n*n+r*r;while(!o||o>1);return e+t*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var e=la.random.normal.apply(la,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=la.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},la.scale={};var Su={floor:b,ceil:b};la.scale.linear=function(){return $o([0,1],[0,1],xr,!1)};var wu={s:1,g:1,p:1,r:1,e:1};la.scale.log=function(){return ai(la.scale.linear().domain([0,1]),10,!0,[1,10])};var Tu=la.format(".0e"),Ou={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};la.scale.pow=function(){return si(la.scale.linear(),1,[0,1])},la.scale.sqrt=function(){return la.scale.pow().exponent(.5)},la.scale.ordinal=function(){return ci([],{t:"range",a:[[]]})},la.scale.category10=function(){return la.scale.ordinal().range(Pu)},la.scale.category20=function(){return la.scale.ordinal().range(Ru)},la.scale.category20b=function(){return la.scale.ordinal().range(Au)},la.scale.category20c=function(){return la.scale.ordinal().range(Mu)};var Pu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xe),Ru=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xe),Au=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xe),Mu=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xe);la.scale.quantile=function(){return li([],[])},la.scale.quantize=function(){return fi(0,1,[0,1])},la.scale.threshold=function(){return pi([.5],[0,1])},la.scale.identity=function(){return di([0,1])},la.svg={},la.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),l=a.apply(this,arguments)-Ga,f=s.apply(this,arguments)-Ga,p=Math.abs(f-l),d=l>f?0:1;if(c<e&&(h=c,c=e,e=h),p>=za)return t(c,d)+(e?t(e,1-d):"")+"Z";var h,g,y,m,v,_,b,x,E,C,S,w,T=0,O=0,P=[];if((m=(+u.apply(this,arguments)||0)/2)&&(y=i===Nu?Math.sqrt(e*e+c*c):+i.apply(this,arguments),d||(O*=-1),c&&(O=re(y/c*Math.sin(m))),e&&(T=re(y/e*Math.sin(m)))),c){v=c*Math.cos(l+O),_=c*Math.sin(l+O),b=c*Math.cos(f-O),x=c*Math.sin(f-O);var R=Math.abs(f-l-2*O)<=Va?0:1;if(O&&bi(v,_,b,x)===d^R){var A=(l+f)/2;v=c*Math.cos(A),_=c*Math.sin(A),b=x=null}}else v=_=0;if(e){E=e*Math.cos(f-T),C=e*Math.sin(f-T),S=e*Math.cos(l+T),w=e*Math.sin(l+T);var M=Math.abs(l-f+2*T)<=Va?0:1;if(T&&bi(E,C,S,w)===1-d^M){var N=(l+f)/2;E=e*Math.cos(N),C=e*Math.sin(N),S=w=null}}else E=C=0;if(p>ja&&(h=Math.min(Math.abs(c-e)/2,+o.apply(this,arguments)))>.001){g=e<c^d?0:1;var I=h,L=h;if(p<Va){var k=null==S?[E,C]:null==b?[v,_]:Dn([v,_],[S,w],[b,x],[E,C]),D=v-k[0],j=_-k[1],F=b-k[0],V=x-k[1],U=1/Math.sin(Math.acos((D*F+j*V)/(Math.sqrt(D*D+j*j)*Math.sqrt(F*F+V*V)))/2),z=Math.sqrt(k[0]*k[0]+k[1]*k[1]);L=Math.min(h,(e-z)/(U-1)),I=Math.min(h,(c-z)/(U+1))}if(null!=b){var G=xi(null==S?[E,C]:[S,w],[v,_],c,I,d),H=xi([b,x],[E,C],c,I,d);h===I?P.push("M",G[0],"A",I,",",I," 0 0,",g," ",G[1],"A",c,",",c," 0 ",1-d^bi(G[1][0],G[1][1],H[1][0],H[1][1]),",",d," ",H[1],"A",I,",",I," 0 0,",g," ",H[0]):P.push("M",G[0],"A",I,",",I," 0 1,",g," ",H[0])}else P.push("M",v,",",_);if(null!=S){var B=xi([v,_],[S,w],e,-L,d),Z=xi([E,C],null==b?[v,_]:[b,x],e,-L,d);h===L?P.push("L",Z[0],"A",L,",",L," 0 0,",g," ",Z[1],"A",e,",",e," 0 ",d^bi(Z[1][0],Z[1][1],B[1][0],B[1][1]),",",1-d," ",B[1],"A",L,",",L," 0 0,",g," ",B[0]):P.push("L",Z[0],"A",L,",",L," 0 0,",g," ",B[0])}else P.push("L",E,",",C)}else P.push("M",v,",",_),null!=b&&P.push("A",c,",",c," 0 ",R,",",d," ",b,",",x),P.push("L",E,",",C),null!=S&&P.push("A",e,",",e," 0 ",M,",",1-d," ",S,",",w);return P.push("Z"),P.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=gi,r=yi,o=hi,i=Nu,a=mi,s=vi,u=_i;return e.innerRadius=function(t){return arguments.length?(n=Pe(t),e):n},e.outerRadius=function(t){return arguments.length?(r=Pe(t),e):r},e.cornerRadius=function(t){return arguments.length?(o=Pe(t),e):o},e.padRadius=function(t){return arguments.length?(i=t==Nu?Nu:Pe(t),e):i},e.startAngle=function(t){return arguments.length?(a=Pe(t),e):a},e.endAngle=function(t){return arguments.length?(s=Pe(t),e):s},e.padAngle=function(t){return arguments.length?(u=Pe(t),e):u},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ga;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Nu="auto";la.svg.line=function(){return Ei(b)};var Iu=la.map({linear:Ci,"linear-closed":Si,step:wi,"step-before":Ti,"step-after":Oi,basis:Ii,"basis-open":Li,"basis-closed":ki,bundle:Di,cardinal:Ai,"cardinal-open":Pi,"cardinal-closed":Ri,monotone:Gi});Iu.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Lu=[0,2/3,1/3,0],ku=[0,1/3,2/3,0],Du=[0,1/6,2/3,1/6];la.svg.line.radial=function(){var e=Ei(Hi);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Ti.reverse=Oi,Oi.reverse=Ti,la.svg.area=function(){return Bi(b)},la.svg.area.radial=function(){var e=Bi(Hi);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},la.svg.chord=function(){function e(e,s){var u=t(this,i,e,s),c=t(this,a,e,s);return"M"+u.p0+r(u.r,u.p1,u.a1-u.a0)+(n(u,c)?o(u.r,u.p1,u.r,u.p0):o(u.r,u.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+o(c.r,c.p1,u.r,u.p0))+"Z"}function t(e,t,n,r){var o=t.call(e,n,r),i=s.call(e,o,r),a=u.call(e,o,r)-Ga,l=c.call(e,o,r)-Ga;return{r:i,a0:a,a1:l,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(l),i*Math.sin(l)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Va)+",1 "+t}function o(e,t,n,r){return"Q 0,0 "+r}var i=xn,a=En,s=Zi,u=mi,c=vi;return e.radius=function(t){return arguments.length?(s=Pe(t),e):s},e.source=function(t){return arguments.length?(i=Pe(t),e):i},e.target=function(t){return arguments.length?(a=Pe(t),e):a},e.startAngle=function(t){return arguments.length?(u=Pe(t),e):u},e.endAngle=function(t){return arguments.length?(c=Pe(t),e):c},e},la.svg.diagonal=function(){function e(e,o){var i=t.call(this,e,o),a=n.call(this,e,o),s=(i.y+a.y)/2,u=[i,{x:i.x,y:s},{x:a.x,y:s},a];return u=u.map(r),"M"+u[0]+"C"+u[1]+" "+u[2]+" "+u[3]}var t=xn,n=En,r=qi;return e.source=function(n){return arguments.length?(t=Pe(n),e):t},e.target=function(t){return arguments.length?(n=Pe(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},la.svg.diagonal.radial=function(){var e=la.svg.diagonal(),t=qi,n=e.projection;return e.projection=function(e){return arguments.length?n(Wi(t=e)):t},e},la.svg.symbol=function(){function e(e,r){return(ju.get(t.call(this,e,r))||Ki)(n.call(this,e,r))}var t=Yi,n=Xi;return e.type=function(n){return arguments.length?(t=Pe(n),e):t},e.size=function(t){return arguments.length?(n=Pe(t),e):n},e};var ju=la.map({circle:Ki,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Vu)),n=t*Vu;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Fu),n=t*Fu/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Fu),n=t*Fu/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});la.svg.symbolTypes=ju.keys();var Fu=Math.sqrt(3),Vu=Math.tan(30*Ha);Ra.transition=function(e){for(var t,n,r=Uu||++Bu,o=ta(e),i=[],a=zu||{time:Date.now(),ease:Pr,delay:0,duration:250},s=-1,u=this.length;++s<u;){i.push(t=[]);for(var c=this[s],l=-1,f=c.length;++l<f;)(n=c[l])&&na(n,l,o,r,a),t.push(n)}return $i(i,o,r)},Ra.interrupt=function(e){return this.each(null==e?Gu:Qi(ta(e)))};var Uu,zu,Gu=Qi(ta()),Hu=[],Bu=0;Hu.call=Ra.call,Hu.empty=Ra.empty,Hu.node=Ra.node,Hu.size=Ra.size,la.transition=function(e,t){return e&&e.transition?Uu?e.transition(t):e:la.selection().transition(e)},la.transition.prototype=Hu,Hu.select=function(e){var t,n,r,o=this.id,i=this.namespace,a=[];e=A(e);for(var s=-1,u=this.length;++s<u;){a.push(t=[]);for(var c=this[s],l=-1,f=c.length;++l<f;)(r=c[l])&&(n=e.call(r,r.__data__,l,s))?("__data__"in r&&(n.__data__=r.__data__),na(n,l,i,o,r[i][o]),t.push(n)):t.push(null)}return $i(a,i,o)},Hu.selectAll=function(e){var t,n,r,o,i,a=this.id,s=this.namespace,u=[];e=M(e);for(var c=-1,l=this.length;++c<l;)for(var f=this[c],p=-1,d=f.length;++p<d;)if(r=f[p]){i=r[s][a],n=e.call(r,r.__data__,p,c),u.push(t=[]);for(var h=-1,g=n.length;++h<g;)(o=n[h])&&na(o,h,s,a,i),t.push(o)}return $i(u,s,a)},Hu.filter=function(e){var t,n,r,o=[];"function"!=typeof e&&(e=H(e));for(var i=0,a=this.length;i<a;i++){o.push(t=[]);for(var n=this[i],s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,i)&&t.push(r)}return $i(o,this.namespace,this.id)},Hu.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):Z(this,null==t?function(t){t[r][n].tween.remove(e)}:function(o){o[r][n].tween.set(e,t)})},Hu.attr=function(e,t){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function o(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(s);return n!==e&&(t=a(n,e),function(e){this.setAttribute(s,t(e))})})}function i(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(s.space,s.local);return n!==e&&(t=a(n,e),function(e){this.setAttributeNS(s.space,s.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var a="transform"==e?Yr:xr,s=la.ns.qualify(e);return Ji(this,"attr."+e,t,s.local?i:o)},Hu.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(o));return r&&function(e){this.setAttribute(o,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(o.space,o.local));return r&&function(e){this.setAttributeNS(o.space,o.local,r(e))}}var o=la.ns.qualify(e);return this.tween("attr."+e,o.local?r:n)},Hu.style=function(e,t,n){function o(){this.style.removeProperty(e)}function i(t){return null==t?o:(t+="",function(){var o,i=r(this).getComputedStyle(this,null).getPropertyValue(e);return i!==t&&(o=xr(i,t),function(t){this.style.setProperty(e,o(t),n)})})}var a=arguments.length;if(a<3){if("string"!=typeof e){a<2&&(t="");for(n in e)this.style(n,e[n],t);return this}n=""}return Ji(this,"style."+e,t,i)},Hu.styleTween=function(e,t,n){function o(o,i){var a=t.call(this,o,i,r(this).getComputedStyle(this,null).getPropertyValue(e));return a&&function(t){this.style.setProperty(e,a(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,o)},Hu.text=function(e){return Ji(this,"text",e,ea)},Hu.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},Hu.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=la.ease.apply(la,arguments)),Z(this,function(r){r[n][t].ease=e}))},Hu.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:Z(this,"function"==typeof e?function(r,o,i){r[n][t].delay=+e.call(r,r.__data__,o,i)}:(e=+e,function(r){r[n][t].delay=e}))},Hu.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:Z(this,"function"==typeof e?function(r,o,i){r[n][t].duration=Math.max(1,e.call(r,r.__data__,o,i))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Hu.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var o=zu,i=Uu;try{Uu=n,Z(this,function(t,o,i){zu=t[r][n],e.call(t,t.__data__,o,i)})}finally{zu=o,Uu=i}}else Z(this,function(o){var i=o[r][n];(i.event||(i.event=la.dispatch("start","end","interrupt"))).on(e,t)});return this},Hu.transition=function(){for(var e,t,n,r,o=this.id,i=++Bu,a=this.namespace,s=[],u=0,c=this.length;u<c;u++){s.push(e=[]);for(var t=this[u],l=0,f=t.length;l<f;l++)(n=t[l])&&(r=n[a][o],na(n,l,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return $i(s,a,i)},la.svg.axis=function(){function e(e){e.each(function(){var e,c=la.select(this),l=this.__chart__||n,f=this.__chart__=n.copy(),p=null==u?f.ticks?f.ticks.apply(f,s):f.domain():u,d=null==t?f.tickFormat?f.tickFormat.apply(f,s):b:t,h=c.selectAll(".tick").data(p,f),g=h.enter().insert("g",".domain").attr("class","tick").style("opacity",ja),y=la.transition(h.exit()).style("opacity",ja).remove(),m=la.transition(h.order()).style("opacity",1),v=Math.max(o,0)+a,_=Wo(f),x=c.selectAll(".domain").data([0]),E=(x.enter().append("path").attr("class","domain"),la.transition(x));g.append("line"),g.append("text");var C,S,w,T,O=g.select("line"),P=m.select("line"),R=h.select("text").text(d),A=g.select("text"),M=m.select("text"),N="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=ra,C="x",w="y",S="x2",T="y2",R.attr("dy",N<0?"0em":".71em").style("text-anchor","middle"),E.attr("d","M"+_[0]+","+N*i+"V0H"+_[1]+"V"+N*i)):(e=oa,C="y",w="x",S="y2",T="x2",R.attr("dy",".32em").style("text-anchor",N<0?"end":"start"),E.attr("d","M"+N*i+","+_[0]+"H0V"+_[1]+"H"+N*i)),O.attr(T,N*o),A.attr(w,N*v),P.attr(S,0).attr(T,N*o),M.attr(C,0).attr(w,N*v),f.rangeBand){var I=f,L=I.rangeBand()/2;l=f=function(e){return I(e)+L}}else l.rangeBand?l=f:y.call(e,f,l);g.call(e,l,f),m.call(e,f,f)})}var t,n=la.scale.linear(),r=Zu,o=6,i=6,a=3,s=[10],u=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in qu?t+"":Zu,e):r},e.ticks=function(){return arguments.length?(s=pa(arguments),e):s},e.tickValues=function(t){return arguments.length?(u=t,e):u},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(o=+t,i=+arguments[n-1],e):o},e.innerTickSize=function(t){return arguments.length?(o=+t,e):o},e.outerTickSize=function(t){return arguments.length?(i=+t,e):i},e.tickPadding=function(t){return arguments.length?(a=+t,e):a},e.tickSubdivide=function(){return arguments.length&&e},e};var Zu="bottom",qu={top:1,right:1,bottom:1,left:1};la.svg.brush=function(){function e(r){r.each(function(){var r=la.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),a=r.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),r.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=r.selectAll(".resize").data(g,b);s.exit().remove(),s.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Wu[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",e.empty()?"none":null);var u,f=la.transition(r),p=la.transition(a);c&&(u=Wo(c),p.attr("x",u[0]).attr("width",u[1]-u[0]),n(f)),l&&(u=Wo(l),p.attr("y",u[0]).attr("height",u[1]-u[0]),o(f)),t(f)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+f[+/e$/.test(e)]+","+p[+/^s/.test(e)]+")"})}function n(e){e.select(".extent").attr("x",f[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function o(e){e.select(".extent").attr("y",p[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function i(){function i(){32==la.event.keyCode&&(R||(_=null,M[0]-=f[1],M[1]-=p[1],R=2),T())}function g(){32==la.event.keyCode&&2==R&&(M[0]+=f[1],M[1]+=p[1],R=0,T())}function y(){var e=la.mouse(x),r=!1;b&&(e[0]+=b[0],e[1]+=b[1]),R||(la.event.altKey?(_||(_=[(f[0]+f[1])/2,(p[0]+p[1])/2]),M[0]=f[+(e[0]<_[0])],M[1]=p[+(e[1]<_[1])]):_=null),O&&m(e,c,0)&&(n(S),r=!0),P&&m(e,l,1)&&(o(S),r=!0),r&&(t(S),C({type:"brush",mode:R?"move":"resize"}))}function m(e,t,n){var r,o,i=Wo(t),u=i[0],c=i[1],l=M[n],g=n?p:f,y=g[1]-g[0];if(R&&(u-=l,c-=y+l),r=(n?h:d)?Math.max(u,Math.min(c,e[n])):e[n],R?o=(r+=l)+y:(_&&(l=Math.max(u,Math.min(c,2*_[n]-r))),l<r?(o=r,r=l):o=l),g[0]!=r||g[1]!=o)return n?s=null:a=null,g[0]=r,g[1]=o,!0}function v(){y(),S.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),la.select("body").style("cursor",null),N.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),C({type:"brushend"})}var _,b,x=this,E=la.select(la.event.target),C=u.of(x,arguments),S=la.select(x),w=E.datum(),O=!/^(n|s)$/.test(w)&&c,P=!/^(e|w)$/.test(w)&&l,R=E.classed("extent"),A=Q(x),M=la.mouse(x),N=la.select(r(x)).on("keydown.brush",i).on("keyup.brush",g);if(la.event.changedTouches?N.on("touchmove.brush",y).on("touchend.brush",v):N.on("mousemove.brush",y).on("mouseup.brush",v),S.interrupt().selectAll("*").interrupt(),R)M[0]=f[0]-M[0],M[1]=p[0]-M[1];else if(w){var I=+/w$/.test(w),L=+/^n/.test(w);b=[f[1-I]-M[0],p[1-L]-M[1]],M[0]=f[I],M[1]=p[L]}else la.event.altKey&&(_=M.slice());S.style("pointer-events","none").selectAll(".resize").style("display",null),la.select("body").style("cursor",E.style("cursor")),C({type:"brushstart"}),y()}var a,s,u=P(e,"brushstart","brush","brushend"),c=null,l=null,f=[0,0],p=[0,0],d=!0,h=!0,g=Xu[0];return e.event=function(e){e.each(function(){var e=u.of(this,arguments),t={x:f,y:p,i:a,j:s},n=this.__chart__||t;this.__chart__=t,Uu?la.select(this).transition().each("start.brush",function(){a=n.i,s=n.j,f=n.x,p=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=Er(f,t.x),r=Er(p,t.y);return a=s=null,function(o){f=t.x=n(o),p=t.y=r(o),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=t.i,s=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(c=t,g=Xu[!c<<1|!l],e):c},e.y=function(t){return arguments.length?(l=t,g=Xu[!c<<1|!l],e):l},e.clamp=function(t){return arguments.length?(c&&l?(d=!!t[0],h=!!t[1]):c?d=!!t:l&&(h=!!t),e):c&&l?[d,h]:c?d:l?h:null},e.extent=function(t){var n,r,o,i,u;return arguments.length?(c&&(n=t[0],r=t[1],l&&(n=n[0],r=r[0]),a=[n,r],c.invert&&(n=c(n),r=c(r)),r<n&&(u=n,n=r,r=u),n==f[0]&&r==f[1]||(f=[n,r])),l&&(o=t[0],i=t[1],c&&(o=o[1],i=i[1]),s=[o,i],l.invert&&(o=l(o),i=l(i)),i<o&&(u=o,o=i,i=u),o==p[0]&&i==p[1]||(p=[o,i])),e):(c&&(a?(n=a[0],r=a[1]):(n=f[0],r=f[1],c.invert&&(n=c.invert(n),r=c.invert(r)),r<n&&(u=n,n=r,r=u))),l&&(s?(o=s[0],i=s[1]):(o=p[0],i=p[1],l.invert&&(o=l.invert(o),i=l.invert(i)),i<o&&(u=o,o=i,i=u))),c&&l?[[n,o],[r,i]]:c?[n,r]:l&&[o,i])},e.clear=function(){return e.empty()||(f=[0,0],p=[0,0],a=s=null),e},e.empty=function(){return!!c&&f[0]==f[1]||!!l&&p[0]==p[1]},la.rebind(e,u,"on")};var Wu={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Xu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Yu=hs.format=bs.timeFormat,Ku=Yu.utc,Qu=Ku("%Y-%m-%dT%H:%M:%S.%LZ");Yu.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ia:Qu,ia.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},ia.toString=Qu.toString,hs.second=Ge(function(e){return new gs(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),hs.seconds=hs.second.range,hs.seconds.utc=hs.second.utc.range,hs.minute=Ge(function(e){return new gs(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),hs.minutes=hs.minute.range,hs.minutes.utc=hs.minute.utc.range,hs.hour=Ge(function(e){var t=e.getTimezoneOffset()/60;return new gs(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),hs.hours=hs.hour.range,hs.hours.utc=hs.hour.utc.range,hs.month=Ge(function(e){return e=hs.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),hs.months=hs.month.range,hs.months.utc=hs.month.utc.range;var $u=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ju=[[hs.second,1],[hs.second,5],[hs.second,15],[hs.second,30],[hs.minute,1],[hs.minute,5],[hs.minute,15],[hs.minute,30],[hs.hour,1],[hs.hour,3],[hs.hour,6],[hs.hour,12],[hs.day,1],[hs.day,2],[hs.week,1],[hs.month,1],[hs.month,3],[hs.year,1]],ec=Yu.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Mt]]),tc={range:function(e,t,n){return la.range(Math.ceil(e/n)*n,+t,n).map(sa)},floor:b,ceil:b};Ju.year=hs.year,hs.scale=function(){return aa(la.scale.linear(),Ju,ec)};var nc=Ju.map(function(e){return[e[0].utc,e[1]]}),rc=Ku.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Mt]]);nc.year=hs.year.utc,hs.scale.utc=function(){return aa(la.scale.linear(),nc,rc)},la.text=Re(function(e){return e.responseText}),la.json=function(e,t){return Ae(e,"application/json",ua,t)},la.html=function(e,t){return Ae(e,"text/html",ca,t)},la.xml=Re(function(e){return e.responseXML}),"function"==typeof e&&e.amd?(this.d3=la,e(la)):"object"==typeof n&&n.exports?n.exports=la:this.d3=la}()},{}],279:[function(e,t,n){"use strict";t.exports=e("react/lib/ReactDOM")},{"react/lib/ReactDOM":389}],280:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("./GatewayRegistry"),l=r(c),f=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.gatewayRegistry=r.gatewayRegistry,a}return a(t,e),t.prototype.componentWillMount=function(){this.renderIntoGatewayNode(this.props)},t.prototype.componentWillReceiveProps=function(e){this.gatewayRegistry.clearChild(this.props.into),this.renderIntoGatewayNode(e)},t.prototype.componentWillUnmount=function(){this.gatewayRegistry.removeChild(this.props.into)},t.prototype.renderIntoGatewayNode=function(e){this.gatewayRegistry.addChild(this.props.into,e.children)},t.prototype.render=function(){return null},t}(u.default.Component);f.contextTypes={gatewayRegistry:u.default.PropTypes.instanceOf(l.default).isRequired},f.propTypes={into:u.default.PropTypes.string.isRequired,children:u.default.PropTypes.oneOfType([u.default.PropTypes.element,u.default.PropTypes.string])},n.default=f},{"./GatewayRegistry":283,react:514}],281:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}n.__esModule=!0;var u=e("react"),c=r(u),l=e("./GatewayRegistry"),f=r(l),p=e("react-prop-types"),d=function(e){function t(n,r){i(this,t);var o=a(this,e.call(this,n,r));return o.state={child:null},o.gatewayRegistry=r.gatewayRegistry,o}return s(t,e),t.prototype.componentWillMount=function(){this.gatewayRegistry.addContainer(this.props.name,this)},t.prototype.componentWillUnmount=function(){this.gatewayRegistry.removeContainer(this.props.name,this)},t.prototype.render=function(){var e=this.props,t=e.component,n=e.tagName,r=o(e,["component","tagName"]);return delete r.name,c.default.createElement(t||n||"div",r,this.state.child)},t}(c.default.Component);d.contextTypes={gatewayRegistry:c.default.PropTypes.instanceOf(f.default).isRequired},d.propTypes={name:c.default.PropTypes.string.isRequired,tagName:(0,p.deprecated)(c.default.PropTypes.string,'Use "component" instead.'),
20
- component:c.default.PropTypes.oneOfType([c.default.PropTypes.string,c.default.PropTypes.func])},n.default=d},{"./GatewayRegistry":283,react:514,"react-prop-types":289}],282:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("./GatewayRegistry"),l=r(c),f=function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.gatewayRegistry=new l.default,a}return a(t,e),t.prototype.getChildContext=function(){return{gatewayRegistry:this.gatewayRegistry}},t.prototype.render=function(){return this.props.children},t}(u.default.Component);f.childContextTypes={gatewayRegistry:u.default.PropTypes.instanceOf(l.default).isRequired},f.propTypes={children:u.default.PropTypes.element},n.default=f},{"./GatewayRegistry":283,react:514}],283:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=function(){function e(){r(this,e),this._containers={},this._children={}}return e.prototype._renderContainer=function(e){this._containers[e]&&this._containers[e].setState({child:this._children[e]})},e.prototype.addContainer=function(e,t){this._containers[e]=t,this._renderContainer(e)},e.prototype.removeContainer=function(e){this._containers[e]=null},e.prototype.addChild=function(e,t){this._children[e]&&console.warn("Only a single Gateway can be rendered at a time into a GatewayDest."+('You rendered multiple into "'+e+'"')),this._children[e]=t,this._renderContainer(e)},e.prototype.clearChild=function(e){this._children[e]=null},e.prototype.removeChild=function(e){this.clearChild(e),this._renderContainer(e)},e}();n.default=o},{}],284:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.GatewayProvider=n.GatewayDest=n.Gateway=void 0;var o=e("./Gateway"),i=r(o),a=e("./GatewayDest"),s=r(a),u=e("./GatewayProvider"),c=r(u);n.Gateway=i.default,n.GatewayDest=s.default,n.GatewayProvider=c.default},{"./Gateway":280,"./GatewayDest":281,"./GatewayProvider":282}],285:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){function e(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=null;return n.forEach(function(e){if(null==o){var n=e.apply(void 0,t);null!=n&&(o=n)}}),o}for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,a.default)(e)}n.__esModule=!0,n.default=o;var i=e("./utils/createChainableTypeChecker"),a=r(i)},{"./utils/createChainableTypeChecker":291}],286:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement. You can usually obtain a ReactComponent or DOMElement from a ReactElement by attaching a ref to it."):"object"===u&&"function"==typeof a.render||1===a.nodeType?null:new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected a ReactComponent or a ")+"DOMElement.")}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=e("react"),s=r(a),u=e("./utils/createChainableTypeChecker"),c=r(u);n.default=(0,c.default)(o)},{"./utils/createChainableTypeChecker":291,react:514}],287:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){return function(n,r,o,i,a){var c=o||"<<anonymous>>",l=a||r;if(null!=n[r]){var f=o+"."+r;(0,s.default)(u[f],"The "+i+" `"+l+"` of "+("`"+c+"` is deprecated. "+t+".")),u[f]=!0}for(var p=arguments.length,d=Array(p>5?p-5:0),h=5;h<p;h++)d[h-5]=arguments[h];return e.apply(void 0,[n,r,o,i,a].concat(d))}}function i(){u={}}n.__esModule=!0,n.default=o;var a=e("warning"),s=r(a),u={};o._resetWarned=i},{warning:292}],288:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r,o){var a=e[t],u="undefined"==typeof a?"undefined":i(a);return s.default.isValidElement(a)?new Error("Invalid "+r+" `"+o+"` of type ReactElement "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):"function"!==u&&"string"!==u?new Error("Invalid "+r+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected an element type (a string ")+"or a ReactClass)."):null}n.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=e("react"),s=r(a),u=e("./utils/createChainableTypeChecker"),c=r(u);n.default=(0,c.default)(o)},{"./utils/createChainableTypeChecker":291,react:514}],289:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.isRequiredForA11y=n.elementType=n.deprecated=n.componentOrElement=n.all=void 0;var o=e("./all"),i=r(o),a=e("./componentOrElement"),s=r(a),u=e("./deprecated"),c=r(u),l=e("./elementType"),f=r(l),p=e("./isRequiredForA11y"),d=r(p);n.all=i.default,n.componentOrElement=s.default,n.deprecated=c.default,n.elementType=f.default,n.isRequiredForA11y=d.default},{"./all":285,"./componentOrElement":286,"./deprecated":287,"./elementType":288,"./isRequiredForA11y":290}],290:[function(e,t,n){"use strict";function r(e){return function(t,n,r,o,i){var a=r||"<<anonymous>>",s=i||n;if(null==t[n])return new Error("The "+o+" `"+s+"` is required to make "+("`"+a+"` accessible for users of assistive ")+"technologies such as screen readers.");for(var u=arguments.length,c=Array(u>5?u-5:0),l=5;l<u;l++)c[l-5]=arguments[l];return e.apply(void 0,[t,n,r,o,i].concat(c))}}n.__esModule=!0,n.default=r},{}],291:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){var s=o||"<<anonymous>>",u=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+u+"` was not specified "+("in `"+s+"`.")):null;for(var c=arguments.length,l=Array(c>6?c-6:0),f=6;f<c;f++)l[f-6]=arguments[f];return e.apply(void 0,[n,r,s,i,u].concat(l))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}n.__esModule=!0,n.default=r},{}],292:[function(e,t,n){arguments[4][188][0].apply(n,arguments)},{dup:188}],293:[function(e,t,n){(function(t,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}function i(){var e=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],t=Array.isArray(e)?e:[e];t.forEach(function(e){e&&e.locale&&(M.__addLocaleData(e),N.__addLocaleData(e))})}function a(e){for(var t=(e||"").split("-");t.length>0;){if(s(t.join("-")))return!0;t.pop()}return!1}function s(e){var t=e&&e.toLowerCase();return!(!M.__localeData__[t]||!N.__localeData__[t])}function u(e){return(""+e).replace(Ae,function(e){return Re[e]})}function c(e,t){var n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function l(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.intl;k(t,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function f(e,t){if(e===t)return!0;if("object"!==("undefined"==typeof e?"undefined":pe.typeof(e))||null===e||"object"!==("undefined"==typeof t?"undefined":pe.typeof(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i<n.length;i++)if(!o(n[i])||e[n[i]]!==t[n[i]])return!1;return!0}function p(e,t,n){var r=e.props,o=e.state,i=e.context,a=void 0===i?{}:i,s=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=a.intl,l=void 0===u?{}:u,p=s.intl,d=void 0===p?{}:p;return!f(t,r)||!f(n,o)||!(d===l||f(c(d,Pe),c(l,Pe)))}function d(e){return e.displayName||e.name||"Component"}function h(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=t.intlPropName,r=void 0===n?"intl":n,o=t.withRef,i=void 0!==o&&o,a=function(t){function n(e,t){z(this,n);var r=te(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return l(t),r}return X(n,t),G(n,[{key:"getWrappedInstance",value:function(){return k(i,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return L.createElement(e,pe.extends({},this.props,Z({},r,this.context.intl),{ref:i?"wrappedInstance":null}))}}]),n}(I.Component);return a.displayName="InjectIntl("+d(e)+")",a.contextTypes={intl:Ee},a.WrappedComponent=e,a}function g(e){return e}function y(e){return M.prototype._resolveLocale(e)}function m(e){return M.prototype._findPluralRuleFunction(e)}function v(e){var t=N.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function _(e,n,r){var o=e&&e[n]&&e[n][r];return o?o:void("production"!==t.env.NODE_ENV&&console.error("[React Intl] No "+n+" format named: "+r))}function b(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=s&&_(a,"date",s),f=c(o,Ne,l);try{return n.getDateTimeFormat(i,f).format(u)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting date.\n"+e)}return String(u)}function x(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=s&&_(a,"time",s),f=c(o,Ne,l);f.hour||f.minute||f.second||(f=pe.extends({},f,{hour:"numeric",minute:"numeric"}));try{return n.getDateTimeFormat(i,f).format(u)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting time.\n"+e)}return String(u)}function E(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=new Date(r),l=new Date(o.now),f=s&&_(a,"relative",s),p=c(o,Le,f),d=pe.extends({},N.thresholds);v(De);try{return n.getRelativeFormat(i,p).format(u,{now:isFinite(l)?l:n.now()})}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting relative time.\n"+e)}finally{v(d)}return String(u)}function C(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=o.format,u=s&&_(a,"number",s),l=c(o,Ie,u);try{return n.getNumberFormat(i,l).format(r)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting number.\n"+e)}return String(r)}function S(e,n,r){var o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=c(o,ke);try{return n.getPluralFormat(i,a).format(r)}catch(e){"production"!==t.env.NODE_ENV&&console.error("[React Intl] Error formatting plural.\n"+e)}return"other"}function w(e,n){var r=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],i=e.locale,a=e.formats,s=e.messages,u=e.defaultLocale,c=e.defaultFormats,l=r.id,f=r.defaultMessage;k(l,"[React Intl] An `id` must be provided to format a message.");var p=s&&s[l],d=Object.keys(o).length>0;if(!d&&"production"===t.env.NODE_ENV)return p||f||l;var h=void 0;if(p)try{var g=n.getMessageFormat(p,i,a);h=g.format(o)}catch(e){"production"!==t.env.NODE_ENV&&console.error('[React Intl] Error formatting message: "'+l+'" for locale: "'+i+'"'+(f?", using default message as fallback.":"")+("\n"+e))}else"production"!==t.env.NODE_ENV&&(!f||i&&i.toLowerCase()!==u.toLowerCase())&&console.error('[React Intl] Missing message: "'+l+'" for locale: "'+i+'"'+(f?", using default message as fallback.":""));if(!h&&f)try{var y=n.getMessageFormat(f,u,c);h=y.format(o)}catch(e){"production"!==t.env.NODE_ENV&&console.error('[React Intl] Error formatting the default message for: "'+l+'"\n'+e)}return h||"production"!==t.env.NODE_ENV&&console.error('[React Intl] Cannot format message: "'+l+'", '+("using message "+(p||f?"source":"id")+" as fallback.")),h||p||f||l}function T(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],o=Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"==typeof n?u(n):n,e},{});return w(e,t,n,o)}function O(e){var t=Math.abs(e);return t<Ze?"second":t<qe?"minute":t<We?"hour":"day"}function P(e){switch(e){case"second":return Be;case"minute":return Ze;case"hour":return qe;case"day":return We;default:return Xe}}function R(e,t){if(e===t)return!0;var n=new Date(e).getTime(),r=new Date(t).getTime();return isFinite(n)&&isFinite(r)&&n===r}Object.defineProperty(n,"__esModule",{value:!0});var A=o(e("../locale-data/index.js")),M=o(e("intl-messageformat")),N=o(e("intl-relativeformat")),I=e("react"),L=o(I),k=o(e("invariant")),D=o(e("intl-format-cache")),j={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}},F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},V=function(){var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;return function(t,n,r,o){var i=t&&t.defaultProps,a=arguments.length-3;if(n||0===a||(n={}),n&&i)for(var s in i)void 0===n[s]&&(n[s]=i[s]);else n||(n=i||{});if(1===a)n.children=o;else if(a>1){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+3];n.children=u}return{$$typeof:e,type:t,key:void 0===r?null:""+r,ref:null,props:n,_owner:null}}}(),U=function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){function r(o,i){try{var a=t[o](i),s=a.value}catch(e){return void n(e)}return a.done?void e(s):Promise.resolve(s).then(function(e){return r("next",e)},function(e){return r("throw",e)})}return r("next")})}},z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},G=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}}(),H=function(e,t){for(var n in t){var r=t[n];r.configurable=r.enumerable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n,r)}return e},B=function(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r],i=Object.getOwnPropertyDescriptor(t,o);i&&i.configurable&&void 0===e[o]&&Object.defineProperty(e,o,i)}return e},Z=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},q=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},W=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;if(void 0!==a)return a.call(r)},X=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)},Y=function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t},K=function(e){return e&&e.__esModule?e:{default:e}},Q=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},$=function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")},J=function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},ee=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},te=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},ne="undefined"==typeof r?self:r,re=function e(t,n,r,o){var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);null!==a&&e(a,n,r,o)}else if("value"in i&&i.writable)i.value=r;else{var s=i.set;void 0!==s&&s.call(o,r)}return r},oe=function(){function e(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ie=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,r=[],o=e[Symbol.iterator]();!(n=o.next()).done&&(r.push(n.value),!t||r.length!==t););return r}throw new TypeError("Invalid attempt to destructure non-iterable instance")},ae=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},se=function(e,t){return e.raw=t,e},ue=function(e,t,n){if(e===n)throw new ReferenceError(t+" is not defined - temporal dead zone");return e},ce={},le=function(e){return Array.isArray(e)?e:Array.from(e)},fe=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},pe=Object.freeze({jsx:V,asyncToGenerator:U,classCallCheck:z,createClass:G,defineEnumerableProperties:H,defaults:B,defineProperty:Z,get:W,inherits:X,interopRequireDefault:K,interopRequireWildcard:Q,newArrowCheck:$,objectDestructuringEmpty:J,objectWithoutProperties:ee,possibleConstructorReturn:te,selfGlobal:ne,set:re,slicedToArray:oe,slicedToArrayLoose:ie,taggedTemplateLiteral:ae,taggedTemplateLiteralLoose:se,temporalRef:ue,temporalUndefined:ce,toArray:le,toConsumableArray:fe,typeof:F,extends:q,instanceof:Y}),de=I.PropTypes.bool,he=I.PropTypes.number,ge=I.PropTypes.string,ye=I.PropTypes.func,me=I.PropTypes.object,ve=I.PropTypes.oneOf,_e=I.PropTypes.shape,be={locale:ge,formats:me,messages:me,defaultLocale:ge,defaultFormats:me},xe={formatDate:ye.isRequired,formatTime:ye.isRequired,formatRelative:ye.isRequired,formatNumber:ye.isRequired,formatPlural:ye.isRequired,formatMessage:ye.isRequired,formatHTMLMessage:ye.isRequired},Ee=_e(pe.extends({},be,xe,{formatters:me,now:ye.isRequired})),Ce={id:ge.isRequired,description:ge,defaultMessage:ge},Se={localeMatcher:ve(["best fit","lookup"]),formatMatcher:ve(["basic","best fit"]),timeZone:ge,hour12:de,weekday:ve(["narrow","short","long"]),era:ve(["narrow","short","long"]),year:ve(["numeric","2-digit"]),month:ve(["numeric","2-digit","narrow","short","long"]),day:ve(["numeric","2-digit"]),hour:ve(["numeric","2-digit"]),minute:ve(["numeric","2-digit"]),second:ve(["numeric","2-digit"]),timeZoneName:ve(["short","long"])},we={localeMatcher:ve(["best fit","lookup"]),style:ve(["decimal","currency","percent"]),currency:ge,currencyDisplay:ve(["symbol","code","name"]),useGrouping:de,minimumIntegerDigits:he,minimumFractionDigits:he,maximumFractionDigits:he,minimumSignificantDigits:he,maximumSignificantDigits:he},Te={style:ve(["best fit","numeric"]),units:ve(["second","minute","hour","day","month","year"])},Oe={style:ve(["cardinal","ordinal"])},Pe=Object.keys(be),Re={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Ae=/[&><"']/g,Me=function e(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];z(this,e);var r="ordinal"===n.style,o=m(y(t));this.format=function(e){return o(e,r)}},Ne=Object.keys(Se),Ie=Object.keys(we),Le=Object.keys(Te),ke=Object.keys(Oe),De={second:60,minute:60,hour:24,day:30,month:12},je=Object.freeze({formatDate:b,formatTime:x,formatRelative:E,formatNumber:C,formatPlural:S,formatMessage:w,formatHTMLMessage:T}),Fe=Object.keys(be),Ve=Object.keys(xe),Ue={formats:{},messages:{},defaultLocale:"en",defaultFormats:{}},ze=function(e){function n(e,t){z(this,n);var r=te(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));k("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=t.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():Date.now();var a=o||{},s=a.formatters,u=void 0===s?{getDateTimeFormat:D(Intl.DateTimeFormat),getNumberFormat:D(Intl.NumberFormat),getMessageFormat:D(M),getRelativeFormat:D(N),getPluralFormat:D(Me)}:s;return r.state=pe.extends({},u,{now:function(){return r._didDisplay?Date.now():i}}),r}return X(n,e),G(n,[{key:"getConfig",value:function(){var e=this.context.intl,n=c(this.props,Fe,e);for(var r in Ue)void 0===n[r]&&(n[r]=Ue[r]);if(!a(n.locale)){var o=n,i=o.locale,s=o.defaultLocale,u=o.defaultFormats;"production"!==t.env.NODE_ENV&&console.error('[React Intl] Missing locale data for locale: "'+i+'". '+('Using default locale: "'+s+'" as fallback.')),n=pe.extends({},n,{locale:s,formats:u,messages:Ue.messages})}return n}},{key:"getBoundFormatFns",value:function(e,t){return Ve.reduce(function(n,r){return n[r]=je[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,o=ee(n,["now"]);return{intl:pe.extends({},e,t,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return I.Children.only(this.props.children)}}]),n}(I.Component);ze.displayName="IntlProvider",ze.contextTypes={intl:Ee},ze.childContextTypes={intl:Ee.isRequired},ze.propTypes=pe.extends({},be,{children:I.PropTypes.element.isRequired,initialNow:I.PropTypes.any});var Ge=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return X(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatDate,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):L.createElement("span",null,o)}}]),t}(I.Component);Ge.displayName="FormattedDate",Ge.contextTypes={intl:Ee},Ge.propTypes=pe.extends({},Se,{value:I.PropTypes.any.isRequired,format:I.PropTypes.string,children:I.PropTypes.func});var He=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return X(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatTime,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):L.createElement("span",null,o)}}]),t}(I.Component);He.displayName="FormattedTime",He.contextTypes={intl:Ee},He.propTypes=pe.extends({},Se,{value:I.PropTypes.any.isRequired,format:I.PropTypes.string,children:I.PropTypes.func});var Be=1e3,Ze=6e4,qe=36e5,We=864e5,Xe=2147483647,Ye=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));l(n);var o=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return r.state={now:o},r}return X(t,e),G(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this,r=e.updateInterval;if(r){var o=new Date(e.value).getTime(),i=o-t.now,a=e.units||O(i),s=P(a),u=Math.abs(i%s),c=i<0?Math.max(r,s-u):Math.max(r,u);clearTimeout(this._timer),this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},c)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){var t=e.value;R(t,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl.formatRelative,t=this.props,n=t.value,r=t.children,o=e(n,pe.extends({},this.props,this.state));return"function"==typeof r?r(o):L.createElement("span",null,o)}}]),t}(I.Component);Ye.displayName="FormattedRelative",Ye.contextTypes={intl:Ee},Ye.propTypes=pe.extends({},Te,{value:I.PropTypes.any.isRequired,format:I.PropTypes.string,updateInterval:I.PropTypes.number,initialNow:I.PropTypes.any,children:I.PropTypes.func}),Ye.defaultProps={updateInterval:1e4};var Ke=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return X(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatNumber,t=this.props,n=t.value,r=t.children,o=e(n,this.props);return"function"==typeof r?r(o):L.createElement("span",null,o)}}]),t}(I.Component);Ke.displayName="FormattedNumber",Ke.contextTypes={intl:Ee},Ke.propTypes=pe.extends({},we,{value:I.PropTypes.any.isRequired,format:I.PropTypes.string,children:I.PropTypes.func});var Qe=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return X(t,e),G(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return p.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl.formatPlural,t=this.props,n=t.value,r=t.other,o=t.children,i=e(n,this.props),a=this.props[i]||r;return"function"==typeof o?o(a):L.createElement("span",null,a)}}]),t}(I.Component);Qe.displayName="FormattedPlural",Qe.contextTypes={intl:Ee},Qe.propTypes=pe.extends({},Oe,{value:I.PropTypes.any.isRequired,other:I.PropTypes.node.isRequired,zero:I.PropTypes.node,one:I.PropTypes.node,two:I.PropTypes.node,few:I.PropTypes.node,many:I.PropTypes.node,children:I.PropTypes.func}),Qe.defaultProps={style:"cardinal"};var $e=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return X(t,e),G(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!f(n,t))return!0;for(var r=pe.extends({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return p.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl.formatMessage,t=this.props,n=t.id,r=t.description,o=t.defaultMessage,i=t.values,a=t.tagName,s=t.children,u=void 0,c=void 0,l=void 0,f=i&&Object.keys(i).length>0;f&&!function(){var e=Math.floor(1099511627776*Math.random()).toString(16),t=function(){var t=0;return function(){return"ELEMENT-"+e+"-"+(t+=1)}}();u="@__"+e+"__@",c={},l={},Object.keys(i).forEach(function(e){var n=i[e];if(I.isValidElement(n)){var r=t();c[e]=u+r+u,l[r]=n}else c[e]=n})}();var p={id:n,description:r,defaultMessage:o},d=e(p,c||i),h=void 0,g=l&&Object.keys(l).length>0;return h=g?d.split(u).filter(function(e){return!!e}).map(function(e){return l[e]||e}):[d],"function"==typeof s?s.apply(void 0,fe(h)):I.createElement.apply(void 0,[a,null].concat(fe(h)))}}]),t}(I.Component);$e.displayName="FormattedMessage",$e.contextTypes={intl:Ee},$e.propTypes=pe.extends({},Ce,{values:I.PropTypes.object,tagName:I.PropTypes.string,children:I.PropTypes.func}),$e.defaultProps={values:{},tagName:"span"};var Je=function(e){function t(e,n){z(this,t);var r=te(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return X(t,e),G(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!f(n,t))return!0;for(var r=pe.extends({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return p.apply(void 0,[this,r].concat(i))}},{key:"render",value:function(){var e=this.context.intl.formatHTMLMessage,t=this.props,n=t.id,r=t.description,o=t.defaultMessage,i=t.values,a=t.tagName,s=t.children,u={id:n,description:r,defaultMessage:o},c=e(u,i);return"function"==typeof s?s(c):I.createElement(a,{dangerouslySetInnerHTML:{__html:c}})}}]),t}(I.Component);Je.displayName="FormattedHTMLMessage",Je.contextTypes={intl:Ee},Je.propTypes=pe.extends({},Ce,{values:I.PropTypes.object,tagName:I.PropTypes.string,children:I.PropTypes.func}),Je.defaultProps={values:{},tagName:"span"},i(j),i(A),n.addLocaleData=i,n.intlShape=Ee,n.injectIntl=h,n.defineMessages=g,n.IntlProvider=ze,n.FormattedDate=Ge,n.FormattedTime=He,n.FormattedRelative=Ye,n.FormattedNumber=Ke,n.FormattedPlural=Qe,n.FormattedMessage=$e,n.FormattedHTMLMessage=Je}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../locale-data/index.js":1,_process:2,"intl-format-cache":294,"intl-messageformat":297,"intl-relativeformat":306,invariant:312,react:514}],294:[function(e,t,n){"use strict";n=t.exports=e("./lib/memoizer").default,n.default=n},{"./lib/memoizer":296}],295:[function(e,t,n){"use strict";var r=Function.prototype.bind||function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},o=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),o.prototype=new r,o},o=Object.prototype.hasOwnProperty,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!o.call(e,t)||"value"in n)&&(e[t]=n.value)}),s=Object.create||function(e,t){
21
- function n(){}var r,i;n.prototype=e,r=new n;for(i in t)o.call(t,i)&&a(r,i,t[i]);return r};n.bind=r,n.defineProperty=a,n.objCreate=s},{}],296:[function(e,t,n){"use strict";function r(e){var t=a.objCreate(null);return function(){var n=Array.prototype.slice.call(arguments),r=o(n),i=r&&t[r];return i||(i=new(a.bind.apply(e,[null].concat(n))),r&&(t[r]=i)),i}}function o(e){if("undefined"!=typeof JSON){var t,n,r,o=[];for(t=0,n=e.length;t<n;t+=1)r=e[t],r&&"object"==typeof r?o.push(i(r)):o.push(r);return JSON.stringify(o)}}function i(e){var t,n,r,o,i=[],a=[];for(t in e)e.hasOwnProperty(t)&&a.push(t);var s=a.sort();for(n=0,r=s.length;n<r;n+=1)t=s[n],o={},o[t]=e[t],i[n]=o;return i}var a=e("./es5");n.default=r},{"./es5":295}],297:[function(e,t,n){"use strict";var r=e("./lib/main").default;e("./lib/locales"),n=t.exports=r,n.default=n},{"./lib/locales":1,"./lib/main":302}],298:[function(e,t,n){"use strict";function r(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function o(e){this.id=e}function i(e,t,n,r,o){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=o}function a(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function s(e,t){this.id=e,this.options=t}n.default=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,o=e.elements,i=[];for(t=0,n=o.length;t<n;t+=1)switch(r=o[t],r.type){case"messageTextElement":i.push(this.compileMessageText(r));break;case"argumentElement":i.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return i},r.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new a(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},r.prototype.compileArgument=function(e){var t=e.format;if(!t)return new o(e.id);var n,r=this.formats,a=this.locales,u=this.pluralFn;switch(t.type){case"numberFormat":return n=r.number[t.style],{id:e.id,format:new Intl.NumberFormat(a,n).format};case"dateFormat":return n=r.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"timeFormat":return n=r.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(a,n).format};case"pluralFormat":return n=this.compileOptions(e),new i(e.id,t.ordinal,t.offset,n,u);case"selectFormat":return n=this.compileOptions(e),new s(e.id,n);default:throw new Error("Message element does not have a valid format type")}},r.prototype.compileOptions=function(e){var t=e.format,n=t.options,r={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===t.type?e:null;var o,i,a;for(o=0,i=n.length;o<i;o+=1)a=n[o],r[a.selector]=this.compileMessage(a.value);return this.currentPlural=this.pluralStack.pop(),r},o.prototype.format=function(e){return e?"string"==typeof e?e:String(e):""},i.prototype.getOption=function(e){var t=this.options,n=t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)];return n||t.other},a.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},s.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},{}],299:[function(e,t,n){"use strict";function r(e,t,n){var o="string"==typeof e?r.__parse(e):e;if(!o||"messageFormatPattern"!==o.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(r.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var a=this._findPluralRuleFunction(this._locale),s=this._compilePattern(o,t,n,a),u=this;this.format=function(e){return u._format(s,e)}}var o=e("./utils"),i=e("./es5"),a=e("./compiler"),s=e("intl-messageformat-parser");n.default=r,i.defineProperty(r,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(r,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(r,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");r.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(r,"__parse",{value:s.default.parse}),i.defineProperty(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),r.prototype.resolvedOptions=function(){return{locale:this._locale}},r.prototype._compilePattern=function(e,t,n,r){var o=new a.default(t,n,r);return o.compile(e)},r.prototype._findPluralRuleFunction=function(e){for(var t=r.__localeData__,n=t[e.toLowerCase()];n;){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},r.prototype._format=function(e,t){var n,r,i,a,s,u="";for(n=0,r=e.length;n<r;n+=1)if(i=e[n],"string"!=typeof i){if(a=i.id,!t||!o.hop.call(t,a))throw new Error("A value must be provided for: "+a);s=t[a],u+=i.options?this._format(i.getOption(s),t):i.format(s)}else u+=i;return u},r.prototype._mergeFormats=function(e,t){var n,r,a={};for(n in e)o.hop.call(e,n)&&(a[n]=r=i.objCreate(e[n]),t&&o.hop.call(t,n)&&o.extend(r,t[n]));return a},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,o,i,a=r.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(o=e[t].toLowerCase().split("-");o.length;){if(i=a[o.join("-")])return i.locale;o.pop()}var s=e.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+e.join(", ")+", or the default locale: "+s)}},{"./compiler":298,"./es5":301,"./utils":303,"intl-messageformat-parser":304}],300:[function(e,t,n){"use strict";n.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"}}},{}],301:[function(e,t,n){"use strict";var r=e("./utils"),o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),i=(!o&&!Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.hop.call(e,t)||"value"in n)&&(e[t]=n.value)}),a=Object.create||function(e,t){function n(){}var o,a;n.prototype=e,o=new n;for(a in t)r.hop.call(t,a)&&i(o,a,t[a]);return o};n.defineProperty=i,n.objCreate=a},{"./utils":303}],302:[function(e,t,n){"use strict";var r=e("./core"),o=e("./en");r.default.__addLocaleData(o.default),r.default.defaultLocale="en",n.default=r.default},{"./core":299,"./en":300}],303:[function(e,t,n){"use strict";function r(e){var t,n,r,i,a=Array.prototype.slice.call(arguments,1);for(t=0,n=a.length;t<n;t+=1)if(r=a[t])for(i in r)o.call(r,i)&&(e[i]=r[i]);return e}n.extend=r;var o=Object.prototype.hasOwnProperty;n.hop=o},{}],304:[function(e,t,n){"use strict";n=t.exports=e("./lib/parser").default,n.default=n},{"./lib/parser":305}],305:[function(e,t,n){"use strict";n.default=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,o,i){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=o,this.column=i,this.name="SyntaxError"}function n(e){function n(t){function n(t,n,r){var o,i;for(o=n;o<r;o++)i=e.charAt(o),"\n"===i?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===i||"\u2028"===i||"\u2029"===i?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Ye!==t&&(Ye>t&&(Ye=0,Ke={line:1,column:1,seenCR:!1}),n(Ke,Ye,t),Ye=t),Ke}function r(e){We<Qe||(We>Qe&&(Qe=We,$e=[]),$e.push(e))}function o(r,o,i){function a(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,o,i,a=new Array(e.length);for(i=0;i<e.length;i++)a[i]=e[i].description;return r=e.length>1?a.slice(0,-1).join(", ")+" or "+a[e.length-1]:a[0],o=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+o+" found."}var u=n(i),c=i<e.length?e.charAt(i):null;return null!==o&&a(o),new t(null!==r?r:s(o,c),o,c,i,u.line,u.column)}function i(){var e;return e=a()}function a(){var e,t,n;for(e=We,t=[],n=s();n!==A;)t.push(n),n=s();return t!==A&&(Xe=e,t=I(t)),e=t}function s(){var e;return e=c(),e===A&&(e=f()),e}function u(){var t,n,r,o,i,a;if(t=We,n=[],r=We,o=E(),o!==A?(i=O(),i!==A?(a=E(),a!==A?(o=[o,i,a],r=o):(We=r,r=L)):(We=r,r=L)):(We=r,r=L),r!==A)for(;r!==A;)n.push(r),r=We,o=E(),o!==A?(i=O(),i!==A?(a=E(),a!==A?(o=[o,i,a],r=o):(We=r,r=L)):(We=r,r=L)):(We=r,r=L);else n=L;return n!==A&&(Xe=t,n=k(n)),t=n,t===A&&(t=We,n=x(),n!==A&&(n=e.substring(t,We)),t=n),t}function c(){var e,t;return e=We,t=u(),t!==A&&(Xe=e,t=D(t)),e=t}function l(){var t,n,o;if(t=w(),t===A){if(t=We,n=[],j.test(e.charAt(We))?(o=e.charAt(We),We++):(o=A,0===Je&&r(F)),o!==A)for(;o!==A;)n.push(o),j.test(e.charAt(We))?(o=e.charAt(We),We++):(o=A,0===Je&&r(F));else n=L;n!==A&&(n=e.substring(t,We)),t=n}return t}function f(){var t,n,o,i,a,s,u,c,f;return t=We,123===e.charCodeAt(We)?(n=V,We++):(n=A,0===Je&&r(U)),n!==A?(o=E(),o!==A?(i=l(),i!==A?(a=E(),a!==A?(s=We,44===e.charCodeAt(We)?(u=G,We++):(u=A,0===Je&&r(H)),u!==A?(c=E(),c!==A?(f=p(),f!==A?(u=[u,c,f],s=u):(We=s,s=L)):(We=s,s=L)):(We=s,s=L),s===A&&(s=z),s!==A?(u=E(),u!==A?(125===e.charCodeAt(We)?(c=B,We++):(c=A,0===Je&&r(Z)),c!==A?(Xe=t,n=q(i,s),t=n):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L),t}function p(){var e;return e=d(),e===A&&(e=h(),e===A&&(e=g(),e===A&&(e=y()))),e}function d(){var t,n,o,i,a,s,u;return t=We,e.substr(We,6)===W?(n=W,We+=6):(n=A,0===Je&&r(X)),n===A&&(e.substr(We,4)===Y?(n=Y,We+=4):(n=A,0===Je&&r(K)),n===A&&(e.substr(We,4)===Q?(n=Q,We+=4):(n=A,0===Je&&r($)))),n!==A?(o=E(),o!==A?(i=We,44===e.charCodeAt(We)?(a=G,We++):(a=A,0===Je&&r(H)),a!==A?(s=E(),s!==A?(u=O(),u!==A?(a=[a,s,u],i=a):(We=i,i=L)):(We=i,i=L)):(We=i,i=L),i===A&&(i=z),i!==A?(Xe=t,n=J(n,i),t=n):(We=t,t=L)):(We=t,t=L)):(We=t,t=L),t}function h(){var t,n,o,i,a,s;return t=We,e.substr(We,6)===ee?(n=ee,We+=6):(n=A,0===Je&&r(te)),n!==A?(o=E(),o!==A?(44===e.charCodeAt(We)?(i=G,We++):(i=A,0===Je&&r(H)),i!==A?(a=E(),a!==A?(s=b(),s!==A?(Xe=t,n=ne(s),t=n):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L),t}function g(){var t,n,o,i,a,s;return t=We,e.substr(We,13)===re?(n=re,We+=13):(n=A,0===Je&&r(oe)),n!==A?(o=E(),o!==A?(44===e.charCodeAt(We)?(i=G,We++):(i=A,0===Je&&r(H)),i!==A?(a=E(),a!==A?(s=b(),s!==A?(Xe=t,n=ie(s),t=n):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L),t}function y(){var t,n,o,i,a,s,u;if(t=We,e.substr(We,6)===ae?(n=ae,We+=6):(n=A,0===Je&&r(se)),n!==A)if(o=E(),o!==A)if(44===e.charCodeAt(We)?(i=G,We++):(i=A,0===Je&&r(H)),i!==A)if(a=E(),a!==A){if(s=[],u=v(),u!==A)for(;u!==A;)s.push(u),u=v();else s=L;s!==A?(Xe=t,n=ue(s),t=n):(We=t,t=L)}else We=t,t=L;else We=t,t=L;else We=t,t=L;else We=t,t=L;return t}function m(){var t,n,o,i;return t=We,n=We,61===e.charCodeAt(We)?(o=ce,We++):(o=A,0===Je&&r(le)),o!==A?(i=w(),i!==A?(o=[o,i],n=o):(We=n,n=L)):(We=n,n=L),n!==A&&(n=e.substring(t,We)),t=n,t===A&&(t=O()),t}function v(){var t,n,o,i,s,u,c,l,f;return t=We,n=E(),n!==A?(o=m(),o!==A?(i=E(),i!==A?(123===e.charCodeAt(We)?(s=V,We++):(s=A,0===Je&&r(U)),s!==A?(u=E(),u!==A?(c=a(),c!==A?(l=E(),l!==A?(125===e.charCodeAt(We)?(f=B,We++):(f=A,0===Je&&r(Z)),f!==A?(Xe=t,n=fe(o,c),t=n):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L)):(We=t,t=L),t}function _(){var t,n,o,i;return t=We,e.substr(We,7)===pe?(n=pe,We+=7):(n=A,0===Je&&r(de)),n!==A?(o=E(),o!==A?(i=w(),i!==A?(Xe=t,n=he(i),t=n):(We=t,t=L)):(We=t,t=L)):(We=t,t=L),t}function b(){var e,t,n,r,o;if(e=We,t=_(),t===A&&(t=z),t!==A)if(n=E(),n!==A){if(r=[],o=v(),o!==A)for(;o!==A;)r.push(o),o=v();else r=L;r!==A?(Xe=e,t=ge(t,r),e=t):(We=e,e=L)}else We=e,e=L;else We=e,e=L;return e}function x(){var t,n;if(Je++,t=[],me.test(e.charAt(We))?(n=e.charAt(We),We++):(n=A,0===Je&&r(ve)),n!==A)for(;n!==A;)t.push(n),me.test(e.charAt(We))?(n=e.charAt(We),We++):(n=A,0===Je&&r(ve));else t=L;return Je--,t===A&&(n=A,0===Je&&r(ye)),t}function E(){var t,n,o;for(Je++,t=We,n=[],o=x();o!==A;)n.push(o),o=x();return n!==A&&(n=e.substring(t,We)),t=n,Je--,t===A&&(n=A,0===Je&&r(_e)),t}function C(){var t;return be.test(e.charAt(We))?(t=e.charAt(We),We++):(t=A,0===Je&&r(xe)),t}function S(){var t;return Ee.test(e.charAt(We))?(t=e.charAt(We),We++):(t=A,0===Je&&r(Ce)),t}function w(){var t,n,o,i,a,s;if(t=We,48===e.charCodeAt(We)?(n=Se,We++):(n=A,0===Je&&r(we)),n===A){if(n=We,o=We,Te.test(e.charAt(We))?(i=e.charAt(We),We++):(i=A,0===Je&&r(Oe)),i!==A){for(a=[],s=C();s!==A;)a.push(s),s=C();a!==A?(i=[i,a],o=i):(We=o,o=L)}else We=o,o=L;o!==A&&(o=e.substring(n,We)),n=o}return n!==A&&(Xe=t,n=Pe(n)),t=n}function T(){var t,n,o,i,a,s,u,c;return Re.test(e.charAt(We))?(t=e.charAt(We),We++):(t=A,0===Je&&r(Ae)),t===A&&(t=We,e.substr(We,2)===Me?(n=Me,We+=2):(n=A,0===Je&&r(Ne)),n!==A&&(Xe=t,n=Ie()),t=n,t===A&&(t=We,e.substr(We,2)===Le?(n=Le,We+=2):(n=A,0===Je&&r(ke)),n!==A&&(Xe=t,n=De()),t=n,t===A&&(t=We,e.substr(We,2)===je?(n=je,We+=2):(n=A,0===Je&&r(Fe)),n!==A&&(Xe=t,n=Ve()),t=n,t===A&&(t=We,e.substr(We,2)===Ue?(n=Ue,We+=2):(n=A,0===Je&&r(ze)),n!==A&&(Xe=t,n=Ge()),t=n,t===A&&(t=We,e.substr(We,2)===He?(n=He,We+=2):(n=A,0===Je&&r(Be)),n!==A?(o=We,i=We,a=S(),a!==A?(s=S(),s!==A?(u=S(),u!==A?(c=S(),c!==A?(a=[a,s,u,c],i=a):(We=i,i=L)):(We=i,i=L)):(We=i,i=L)):(We=i,i=L),i!==A&&(i=e.substring(o,We)),o=i,o!==A?(Xe=t,n=Ze(o),t=n):(We=t,t=L)):(We=t,t=L)))))),t}function O(){var e,t,n;if(e=We,t=[],n=T(),n!==A)for(;n!==A;)t.push(n),n=T();else t=L;return t!==A&&(Xe=e,t=qe(t)),e=t}var P,R=arguments.length>1?arguments[1]:{},A={},M={start:i},N=i,I=function(e){return{type:"messageFormatPattern",elements:e}},L=A,k=function(e){var t,n,r,o,i,a="";for(t=0,r=e.length;t<r;t+=1)for(o=e[t],n=0,i=o.length;n<i;n+=1)a+=o[n];return a},D=function(e){return{type:"messageTextElement",value:e}},j=/^[^ \t\n\r,.+={}#]/,F={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},V="{",U={type:"literal",value:"{",description:'"{"'},z=null,G=",",H={type:"literal",value:",",description:'","'},B="}",Z={type:"literal",value:"}",description:'"}"'},q=function(e,t){return{type:"argumentElement",id:e,format:t&&t[2]}},W="number",X={type:"literal",value:"number",description:'"number"'},Y="date",K={type:"literal",value:"date",description:'"date"'},Q="time",$={type:"literal",value:"time",description:'"time"'},J=function(e,t){return{type:e+"Format",style:t&&t[2]}},ee="plural",te={type:"literal",value:"plural",description:'"plural"'},ne=function(e){return{type:e.type,ordinal:!1,offset:e.offset||0,options:e.options}},re="selectordinal",oe={type:"literal",value:"selectordinal",description:'"selectordinal"'},ie=function(e){return{type:e.type,ordinal:!0,offset:e.offset||0,options:e.options}},ae="select",se={type:"literal",value:"select",description:'"select"'},ue=function(e){return{type:"selectFormat",options:e}},ce="=",le={type:"literal",value:"=",description:'"="'},fe=function(e,t){return{type:"optionalFormatPattern",selector:e,value:t}},pe="offset:",de={type:"literal",value:"offset:",description:'"offset:"'},he=function(e){return e},ge=function(e,t){return{type:"pluralFormat",offset:e,options:t}},ye={type:"other",description:"whitespace"},me=/^[ \t\n\r]/,ve={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},_e={type:"other",description:"optionalWhitespace"},be=/^[0-9]/,xe={type:"class",value:"[0-9]",description:"[0-9]"},Ee=/^[0-9a-f]/i,Ce={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},Se="0",we={type:"literal",value:"0",description:'"0"'},Te=/^[1-9]/,Oe={type:"class",value:"[1-9]",description:"[1-9]"},Pe=function(e){return parseInt(e,10)},Re=/^[^{}\\\0-\x1F \t\n\r]/,Ae={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},Me="\\\\",Ne={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},Ie=function(){return"\\"},Le="\\#",ke={type:"literal",value:"\\#",description:'"\\\\#"'},De=function(){return"\\#"},je="\\{",Fe={type:"literal",value:"\\{",description:'"\\\\{"'},Ve=function(){return"{"},Ue="\\}",ze={type:"literal",value:"\\}",description:'"\\\\}"'},Ge=function(){return"}"},He="\\u",Be={type:"literal",value:"\\u",description:'"\\\\u"'},Ze=function(e){return String.fromCharCode(parseInt(e,16))},qe=function(e){return e.join("")},We=0,Xe=0,Ye=0,Ke={line:1,column:1,seenCR:!1},Qe=0,$e=[],Je=0;if("startRule"in R){if(!(R.startRule in M))throw new Error("Can't start parsing from rule \""+R.startRule+'".');N=M[R.startRule]}if(P=N(),P!==A&&We===e.length)return P;throw P!==A&&We<e.length&&r({type:"end",description:"end of input"}),o(null,$e,Qe)}return e(t,Error),{SyntaxError:t,parse:n}}()},{}],306:[function(e,t,n){"use strict";var r=e("./lib/main").default;e("./lib/locales"),n=t.exports=r,n.default=n},{"./lib/locales":1,"./lib/main":311}],307:[function(e,t,n){"use strict";function r(e,t){t=t||{},a.isArray(e)&&(e=e.concat()),a.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),a.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),a.defineProperty(this,"_locales",{value:e}),a.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),a.defineProperty(this,"_messages",{value:a.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}var o=e("intl-messageformat"),i=e("./diff"),a=e("./es5");n.default=r;var s=["second","minute","hour","day","month","year"],u=["best fit","numeric"];a.defineProperty(r,"__localeData__",{value:a.objCreate(null)}),a.defineProperty(r,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlRelativeFormat is missing a `locale` property value");r.__localeData__[e.locale.toLowerCase()]=e,o.default.__addLocaleData(e)}}),a.defineProperty(r,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),a.defineProperty(r,"thresholds",{enumerable:!0,value:{second:45,minute:45,hour:22,day:26,month:11}}),r.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}},r.prototype._compileMessage=function(e){var t,n=this._locales,r=(this._locale,this._fields[e]),i=r.relativeTime,a="",s="";for(t in i.future)i.future.hasOwnProperty(t)&&(a+=" "+t+" {"+i.future[t].replace("{0}","#")+"}");for(t in i.past)i.past.hasOwnProperty(t)&&(s+=" "+t+" {"+i.past[t].replace("{0}","#")+"}");var u="{when, select, future {{0, plural, "+a+"}}past {{0, plural, "+s+"}}}";return new o.default(u,n)},r.prototype._getMessage=function(e){var t=this._messages;return t[e]||(t[e]=this._compileMessage(e)),t[e]},r.prototype._getRelativeUnits=function(e,t){var n=this._fields[t];if(n.relative)return n.relative[e]},r.prototype._findFields=function(e){for(var t=r.__localeData__,n=t[e.toLowerCase()];n;){if(n.fields)return n.fields;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+e)},r.prototype._format=function(e,t){var n=t&&void 0!==t.now?t.now:a.dateNow();if(void 0===e&&(e=n),!isFinite(n))throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not in valid range.");if(!isFinite(e))throw new RangeError("The date value provided to IntlRelativeFormat#format() is not in valid range.");var r=i.default(n,e),o=this._options.units||this._selectUnits(r),s=r[o];if("numeric"!==this._options.style){var u=this._getRelativeUnits(s,o);if(u)return u}return this._getMessage(o).format({0:Math.abs(s),when:s<0?"past":"future"})},r.prototype._isValidUnits=function(e){if(!e||a.arrIndexOf.call(s,e)>=0)return!0;if("string"==typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&a.arrIndexOf.call(s,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+s.join('", "')+'"')},r.prototype._resolveLocale=function(e){"string"==typeof e&&(e=[e]),e=(e||[]).concat(r.defaultLocale);var t,n,o,i,a=r.__localeData__;for(t=0,n=e.length;t<n;t+=1)for(o=e[t].toLowerCase().split("-");o.length;){if(i=a[o.join("-")])return i.locale;o.pop()}var s=e.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+e.join(", ")+", or the default locale: "+s)},r.prototype._resolveStyle=function(e){if(!e)return u[0];if(a.arrIndexOf.call(u,e)>=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+u.join('", "')+'"')},r.prototype._selectUnits=function(e){var t,n,o;for(t=0,n=s.length;t<n&&(o=s[t],!(Math.abs(e[o])<r.thresholds[o]));t+=1);return o}},{"./diff":308,"./es5":310,"intl-messageformat":297}],308:[function(e,t,n){"use strict";function r(e){return 400*e/146097}var o=Math.round;n.default=function(e,t){e=+e,t=+t;var n=o(t-e),i=o(n/1e3),a=o(i/60),s=o(a/60),u=o(s/24),c=o(u/7),l=r(u),f=o(12*l),p=o(l);return{millisecond:n,second:i,minute:a,hour:s,day:u,week:c,month:f,year:p}}},{}],309:[function(e,t,n){"use strict";n.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],o=Number(n[0])==e,i=o&&n[0].slice(-1),a=o&&n[0].slice(-2);return t?1==i&&11!=a?"one":2==i&&12!=a?"two":3==i&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},minute:{displayName:"minute",relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}}}}},{}],310:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.call(e,t)||"value"in n)&&(e[t]=n.value)}),s=Object.create||function(e,t){function n(){}var o,i;n.prototype=e,o=new n;for(i in t)r.call(t,i)&&a(o,i,t[i]);return o},u=Array.prototype.indexOf||function(e,t){var n=this;if(!n.length)return-1;for(var r=t||0,o=n.length;r<o;r++)if(n[r]===e)return r;return-1},c=Array.isArray||function(e){return"[object Array]"===o.call(e)},l=Date.now||function(){return(new Date).getTime()};n.defineProperty=a,n.objCreate=s,n.arrIndexOf=u,n.isArray=c,n.dateNow=l},{}],311:[function(e,t,n){arguments[4][302][0].apply(n,arguments)},{"./core":307,"./en":309,dup:302}],312:[function(e,t,n){arguments[4][185][0].apply(n,arguments)},{dup:185}],313:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0,n.default=void 0;var s=e("react"),u=e("../utils/storeShape"),c=r(u),l=e("../utils/warning"),f=(r(l),function(e){function t(n,r){o(this,t);var a=i(this,e.call(this,n,r));return a.store=n.store,a}return a(t,e),t.prototype.getChildContext=function(){return{store:this.store}},t.prototype.render=function(){var e=this.props.children;return s.Children.only(e)},t}(s.Component));n.default=f,f.propTypes={store:c.default.isRequired,children:s.PropTypes.element.isRequired},f.childContextTypes={store:c.default.isRequired}},{"../utils/storeShape":317,"../utils/warning":318,react:514}],314:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return e.displayName||e.name||"Component"}function u(e,t){try{return e.apply(t)}catch(e){return O.value=e,O}}function c(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],c=Boolean(e),p=e||S,h=void 0;h="function"==typeof t?t:t?(0,m.default)(t):w;var y=n||T,v=r.pure,_=void 0===v||v,b=r.withRef,E=void 0!==b&&b,R=_&&y!==T,A=P++;return function(e){function t(e,t,n){var r=y(e,t,n);return r}var n="Connect("+s(e)+")",r=function(r){function s(e,t){o(this,s);var a=i(this,r.call(this,e,t));a.version=A,a.store=e.store||t.store,(0,C.default)(a.store,'Could not find "store" in either the context or '+('props of "'+n+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+n+'".'));var u=a.store.getState();return a.state={storeState:u},a.clearCache(),a}return a(s,r),s.prototype.shouldComponentUpdate=function(){return!_||this.haveOwnPropsChanged||this.hasStoreStateChanged},s.prototype.computeStateProps=function(e,t){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,t);var n=e.getState(),r=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(n,t):this.finalMapStateToProps(n);return r},s.prototype.configureFinalMapState=function(e,t){var n=p(e.getState(),t),r="function"==typeof n;return this.finalMapStateToProps=r?n:p,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,r?this.computeStateProps(e,t):n},s.prototype.computeDispatchProps=function(e,t){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,t);var n=e.dispatch,r=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(n,t):this.finalMapDispatchToProps(n);return r},s.prototype.configureFinalMapDispatch=function(e,t){var n=h(e.dispatch,t),r="function"==typeof n;return this.finalMapDispatchToProps=r?n:h,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,r?this.computeDispatchProps(e,t):n},s.prototype.updateStatePropsIfNeeded=function(){var e=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,g.default)(e,this.stateProps))&&(this.stateProps=e,!0)},s.prototype.updateDispatchPropsIfNeeded=function(){var e=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,g.default)(e,this.dispatchProps))&&(this.dispatchProps=e,!0)},s.prototype.updateMergedPropsIfNeeded=function(){var e=t(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&R&&(0,g.default)(e,this.mergedProps))&&(this.mergedProps=e,!0)},s.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},s.prototype.trySubscribe=function(){c&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},s.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},s.prototype.componentDidMount=function(){this.trySubscribe()},s.prototype.componentWillReceiveProps=function(e){_&&(0,g.default)(e,this.props)||(this.haveOwnPropsChanged=!0)},s.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},s.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},s.prototype.handleChange=function(){if(this.unsubscribe){var e=this.store.getState(),t=this.state.storeState;if(!_||t!==e){if(_&&!this.doStatePropsDependOnOwnProps){var n=u(this.updateStatePropsIfNeeded,this);if(!n)return;n===O&&(this.statePropsPrecalculationError=O.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:e})}}},s.prototype.getWrappedInstance=function(){return(0,C.default)(E,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},s.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,r=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,s=!0;_&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var u=!1,c=!1;r?u=!0:a&&(u=this.updateStatePropsIfNeeded()),s&&(c=this.updateDispatchPropsIfNeeded());var p=!0;return p=!!(u||c||t)&&this.updateMergedPropsIfNeeded(),!p&&i?i:(E?this.renderedElement=(0,f.createElement)(e,l({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,f.createElement)(e,this.mergedProps),this.renderedElement)},s}(f.Component);return r.displayName=n,r.WrappedComponent=e,r.contextTypes={store:d.default},r.propTypes={store:d.default},(0,x.default)(r,e)}}var l=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.__esModule=!0,n.default=c;var f=e("react"),p=e("../utils/storeShape"),d=r(p),h=e("../utils/shallowEqual"),g=r(h),y=e("../utils/wrapActionCreators"),m=r(y),v=e("../utils/warning"),_=(r(v),e("lodash/isPlainObject")),b=(r(_),e("hoist-non-react-statics")),x=r(b),E=e("invariant"),C=r(E),S=function(e){return{}},w=function(e){return{dispatch:e}},T=function(e,t,n){return l({},n,e,t)},O={
22
- value:null},P=0},{"../utils/shallowEqual":316,"../utils/storeShape":317,"../utils/warning":318,"../utils/wrapActionCreators":319,"hoist-non-react-statics":320,invariant:321,"lodash/isPlainObject":326,react:514}],315:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.connect=n.Provider=void 0;var o=e("./components/Provider"),i=r(o),a=e("./components/connect"),s=r(a);n.Provider=i.default,n.connect=s.default},{"./components/Provider":313,"./components/connect":314}],316:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!o.call(t,n[i])||e[n[i]]!==t[n[i]])return!1;return!0}n.__esModule=!0,n.default=r},{}],317:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("react");n.default=r.PropTypes.shape({subscribe:r.PropTypes.func.isRequired,dispatch:r.PropTypes.func.isRequired,getState:r.PropTypes.func.isRequired})},{react:514}],318:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],319:[function(e,t,n){"use strict";function r(e){return function(t){return(0,o.bindActionCreators)(e,t)}}n.__esModule=!0,n.default=r;var o=e("redux")},{redux:523}],320:[function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},i="function"==typeof Object.getOwnPropertySymbols;t.exports=function(e,t,n){if("string"!=typeof t){var a=Object.getOwnPropertyNames(t);i&&(a=a.concat(Object.getOwnPropertySymbols(t)));for(var s=0;s<a.length;++s)if(!(r[a[s]]||o[a[s]]||n&&n[a[s]]))try{e[a[s]]=t[a[s]]}catch(e){}}return e}},{}],321:[function(e,t,n){arguments[4][185][0].apply(n,arguments)},{dup:185}],322:[function(e,t,n){var r=e("./_overArg"),o=r(Object.getPrototypeOf,Object);t.exports=o},{"./_overArg":324}],323:[function(e,t,n){arguments[4][233][0].apply(n,arguments)},{dup:233}],324:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],325:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],326:[function(e,t,n){function r(e){if(!a(e)||d.call(e)!=s||i(e))return!1;var t=o(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}var o=e("./_getPrototype"),i=e("./_isHostObject"),a=e("./isObjectLike"),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=l.call(Object),d=c.toString;t.exports=r},{"./_getPrototype":322,"./_isHostObject":323,"./isObjectLike":325}],327:[function(e,t,n){"use strict";function r(e,t,n){function r(){a=!0,n.apply(this,arguments)}function o(){a||(i<e?t.call(this,i++,o,r):r.apply(this,arguments))}var i=0,a=!1;o()}function o(e,t,n){function r(e,t,r){a||(t?(a=!0,n(t)):(i[e]=r,a=++s===o,a&&n(null,i)))}var o=e.length,i=[];if(0===o)return n(null,i);var a=!1,s=0;e.forEach(function(e,n){t(e,n,function(e,t){r(n,e,t)})})}n.__esModule=!0,n.loopAsync=r,n.mapAsync=o},{}],328:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("./PropTypes"),o={contextTypes:{history:r.history},componentWillMount:function(){this.history=this.context.history}};n.default=o,t.exports=n.default},{"./PropTypes":335}],329:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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)}n.__esModule=!0;var a=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=e("react"),u=r(s),c=e("./Link"),l=r(c),f=function(e){function t(){o(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.render=function(){return u.default.createElement(l.default,a({},this.props,{onlyActiveOnIndex:!0}))},t}(s.Component);n.default=f,t.exports=n.default},{"./Link":333,react:514}],330:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}n.__esModule=!0;var s=e("warning"),u=o(s),c=e("invariant"),l=o(c),f=e("react"),p=o(f),d=e("./Redirect"),h=o(d),g=e("./PropTypes"),y=p.default.PropTypes,m=y.string,v=y.object,_=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?l.default(!1,"<IndexRedirect> elements are for router configuration only and should not be rendered"):l.default(!1)},t}(f.Component);_.propTypes={to:m.isRequired,query:v,state:v,onEnter:g.falsy,children:g.falsy},_.createRouteFromReactElement=function(e,t){t?t.indexRoute=h.default.createRouteFromReactElement(e):"production"!==r.env.NODE_ENV?u.default(!1,"An <IndexRedirect> does not make sense at the root of your route config"):void 0},n.default=_,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":335,"./Redirect":336,_process:2,invariant:351,react:514,warning:352}],331:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}n.__esModule=!0;var s=e("warning"),u=o(s),c=e("invariant"),l=o(c),f=e("react"),p=o(f),d=e("./RouteUtils"),h=e("./PropTypes"),g=p.default.PropTypes.func,y=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?l.default(!1,"<IndexRoute> elements are for router configuration only and should not be rendered"):l.default(!1)},t}(f.Component);y.propTypes={path:h.falsy,component:h.component,components:h.components,getComponent:g,getComponents:g},y.createRouteFromReactElement=function(e,t){t?t.indexRoute=d.createRouteFromReactElement(e):"production"!==r.env.NODE_ENV?u.default(!1,"An <IndexRoute> does not make sense at the root of your route config"):void 0},n.default=y,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":335,"./RouteUtils":339,_process:2,invariant:351,react:514,warning:352}],332:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var i=e("react"),a=o(i),s=e("invariant"),u=o(s),c=a.default.PropTypes.object,l={contextTypes:{history:c.isRequired,route:c},propTypes:{route:c},componentDidMount:function(){this.routerWillLeave?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"The Lifecycle mixin requires you to define a routerWillLeave method"):u.default(!1);var e=this.props.route||this.context.route;e?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"The Lifecycle mixin must be used on either a) a <Route component> or b) a descendant of a <Route component> that uses the RouteContext mixin"):u.default(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(e,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};n.default=l,t.exports=n.default}).call(this,e("_process"))},{_process:2,invariant:351,react:514}],333:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}function s(e){return 0===e.button}function u(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}n.__esModule=!0;var l=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},f=e("react"),p=r(f),d=p.default.PropTypes,h=d.bool,g=d.object,y=d.string,m=d.func,v=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.handleClick=function(e){var t=!0;if(this.props.onClick&&this.props.onClick(e),!u(e)&&s(e)){if(e.defaultPrevented===!0&&(t=!1),this.props.target)return void(t||e.preventDefault());if(e.preventDefault(),t){var n=this.props,r=n.state,o=n.to,i=n.query,a=n.hash;a&&(o+=a),this.context.history.pushState(r,o,i)}}},t.prototype.render=function(){var e=this,t=this.props,n=t.to,r=t.query,i=t.hash,a=(t.state,t.activeClassName),s=t.activeStyle,u=t.onlyActiveOnIndex,f=o(t,["to","query","hash","state","activeClassName","activeStyle","onlyActiveOnIndex"]);f.onClick=function(t){return e.handleClick(t)};var d=this.context.history;return d&&(f.href=d.createHref(n,r),i&&(f.href+=i),(a||null!=s&&!c(s))&&d.isActive(n,r,u)&&(a&&(f.className+=""===f.className?a:" "+a),s&&(f.style=l({},f.style,s)))),p.default.createElement("a",f)},t}(f.Component);v.contextTypes={history:g},v.propTypes={to:y.isRequired,query:g,hash:y,state:g,activeStyle:g,activeClassName:y,onlyActiveOnIndex:h.isRequired,onClick:m},v.defaultProps={onlyActiveOnIndex:!1,className:"",style:{}},n.default=v,t.exports=n.default},{react:514}],334:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i(e){return o(e).replace(/\/+/g,"/+")}function a(e){for(var t="",n=[],r=[],o=void 0,a=0,s=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;o=s.exec(e);)o.index!==a&&(r.push(e.slice(a,o.index)),t+=i(e.slice(a,o.index))),o[1]?(t+="([^/?#]+)",n.push(o[1])):"**"===o[0]?(t+="([\\s\\S]*)",n.push("splat")):"*"===o[0]?(t+="([\\s\\S]*?)",n.push("splat")):"("===o[0]?t+="(?:":")"===o[0]&&(t+=")?"),r.push(o[0]),a=s.lastIndex;return a!==e.length&&(r.push(e.slice(a,e.length)),t+=i(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}function s(e){return e in h||(h[e]=a(e)),h[e]}function u(e,t){"/"!==e.charAt(0)&&(e="/"+e),"/"!==t.charAt(0)&&(t="/"+t);var n=s(e),r=n.regexpSource,o=n.paramNames,i=n.tokens;r+="/*";var a="*"!==i[i.length-1];a&&(r+="([\\s\\S]*?)");var u=t.match(new RegExp("^"+r+"$","i")),c=void 0,l=void 0;if(null!=u){if(a){c=u.pop();var f=u[0].substr(0,u[0].length-c.length);if(c&&"/"!==f.charAt(f.length-1))return{remainingPathname:null,paramNames:o,paramValues:null}}else c="";l=u.slice(1).map(function(e){return null!=e?decodeURIComponent(e):e})}else c=l=null;return{remainingPathname:c,paramNames:o,paramValues:l}}function c(e){return s(e).paramNames}function l(e,t){var n=u(e,t),r=n.paramNames,o=n.paramValues;return null!=o?r.reduce(function(e,t,n){return e[t]=o[n],e},{}):null}function f(e,n){n=n||{};for(var r=s(e),o=r.tokens,i=0,a="",u=0,c=void 0,l=void 0,f=void 0,p=0,h=o.length;p<h;++p)c=o[p],"*"===c||"**"===c?(f=Array.isArray(n.splat)?n.splat[u++]:n.splat,null!=f||i>0?void 0:"production"!==t.env.NODE_ENV?d.default(!1,'Missing splat #%s for path "%s"',u,e):d.default(!1),null!=f&&(a+=encodeURI(f))):"("===c?i+=1:")"===c?i-=1:":"===c.charAt(0)?(l=c.substring(1),f=n[l],null!=f||i>0?void 0:"production"!==t.env.NODE_ENV?d.default(!1,'Missing "%s" parameter for path "%s"',l,e):d.default(!1),null!=f&&(a+=encodeURIComponent(f))):a+=c;return a.replace(/\/+/g,"/")}n.__esModule=!0,n.compilePattern=s,n.matchPattern=u,n.getParamNames=c,n.getParams=l,n.formatPattern=f;var p=e("invariant"),d=r(p),h={}}).call(this,e("_process"))},{_process:2,invariant:351}],335:[function(e,t,n){"use strict";function r(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}n.__esModule=!0,n.falsy=r;var o=e("react"),i=o.PropTypes.func,a=o.PropTypes.object,s=o.PropTypes.arrayOf,u=o.PropTypes.oneOfType,c=o.PropTypes.element,l=o.PropTypes.shape,f=o.PropTypes.string,p=l({listen:i.isRequired,pushState:i.isRequired,replaceState:i.isRequired,go:i.isRequired});n.history=p;var d=l({pathname:f.isRequired,search:f.isRequired,state:a,action:f.isRequired,key:f});n.location=d;var h=u([i,f]);n.component=h;var g=u([h,a]);n.components=g;var y=u([a,c]);n.route=y;var m=u([y,s(y)]);n.routes=m,n.default={falsy:r,history:p,location:d,component:h,components:g,route:y}},{react:514}],336:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}n.__esModule=!0;var s=e("invariant"),u=o(s),c=e("react"),l=o(c),f=e("./RouteUtils"),p=e("./PatternUtils"),d=e("./PropTypes"),h=l.default.PropTypes,g=h.string,y=h.object,m=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?u.default(!1,"<Redirect> elements are for router configuration only and should not be rendered"):u.default(!1)},t}(c.Component);m.createRouteFromReactElement=function(e){var t=f.createRouteFromReactElement(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,o=e.params,i=void 0;if("/"===t.to.charAt(0))i=p.formatPattern(t.to,o);else if(t.to){var a=e.routes.indexOf(t),s=m.getRoutePattern(e.routes,a-1),u=s.replace(/\/*$/,"/")+t.to;i=p.formatPattern(u,o)}else i=r.pathname;n(t.state||r.state,i,t.query||r.query)},t},m.getRoutePattern=function(e,t){for(var n="",r=t;r>=0;r--){var o=e[r],i=o.path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n},m.propTypes={path:g,from:g,to:g.isRequired,query:y,state:y,onEnter:d.falsy,children:d.falsy},n.default=m,t.exports=n.default}).call(this,e("_process"))},{"./PatternUtils":334,"./PropTypes":335,"./RouteUtils":339,_process:2,invariant:351,react:514}],337:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}n.__esModule=!0;var s=e("invariant"),u=o(s),c=e("react"),l=o(c),f=e("./RouteUtils"),p=e("./PropTypes"),d=l.default.PropTypes,h=d.string,g=d.func,y=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.render=function(){"production"!==r.env.NODE_ENV?u.default(!1,"<Route> elements are for router configuration only and should not be rendered"):u.default(!1)},t}(c.Component);y.createRouteFromReactElement=f.createRouteFromReactElement,y.propTypes={path:h,component:p.component,components:p.components,getComponent:g,getComponents:g},n.default=y,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":335,"./RouteUtils":339,_process:2,invariant:351,react:514}],338:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var o=e("react"),i=r(o),a=i.default.PropTypes.object,s={propTypes:{route:a.isRequired},childContextTypes:{route:a.isRequired},getChildContext:function(){return{route:this.props.route}}};n.default=s,t.exports=n.default},{react:514}],339:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return null==e||d.default.isValidElement(e)}function i(e){return o(e)||Array.isArray(e)&&e.every(o)}function a(e,n,r){e=e||"UnknownComponent";for(var o in n)if(n.hasOwnProperty(o)){var i=n[o](r,o,e);i instanceof Error&&("production"!==t.env.NODE_ENV?g.default(!1,i.message):void 0)}}function s(e,t){return f({},e,t)}function u(e){var t=e.type,n=s(t.defaultProps,e.props);if(t.propTypes&&a(t.displayName||t.name,t.propTypes,n),n.children){var r=c(n.children,n);r.length&&(n.childRoutes=r),delete n.children}return n}function c(e,t){var n=[];return d.default.Children.forEach(e,function(e){if(d.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(u(e))}),n}function l(e){return i(e)?e=c(e):e&&!Array.isArray(e)&&(e=[e]),e}n.__esModule=!0;var f=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.isReactChildren=i,n.createRouteFromReactElement=u,n.createRoutesFromReactChildren=c,n.createRoutes=l;var p=e("react"),d=r(p),h=e("warning"),g=r(h)}).call(this,e("_process"))},{_process:2,react:514,warning:352}],340:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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)}n.__esModule=!0;var u=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},c=e("warning"),l=o(c),f=e("react"),p=o(f),d=e("history/lib/createHashHistory"),h=o(d),g=e("./RouteUtils"),y=e("./RoutingContext"),m=o(y),v=e("./useRoutes"),_=o(v),b=e("./PropTypes"),x=p.default.PropTypes,E=x.func,C=x.object,S=function(e){function t(n,r){a(this,t),e.call(this,n,r),this.state={location:null,routes:null,params:null,components:null}}return s(t,e),t.prototype.handleError=function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.history,r=t.children,o=t.routes,i=t.parseQueryString,a=t.stringifyQuery,s=n?function(){return n}:h.default;this.history=_.default(s)({routes:g.createRoutes(o||r),parseQueryString:i,stringifyQuery:a}),this._unlisten=this.history.listen(function(t,n){t?e.handleError(t):e.setState(n,e.props.onUpdate)})},t.prototype.componentWillReceiveProps=function(e){"production"!==r.env.NODE_ENV?l.default(e.history===this.props.history,"You cannot change <Router history>; it will be ignored"):void 0,"production"!==r.env.NODE_ENV?l.default((e.routes||e.children)===(this.props.routes||this.props.children),"You cannot change <Router routes>; it will be ignored"):void 0},t.prototype.componentWillUnmount=function(){this._unlisten&&this._unlisten()},t.prototype.render=function(){var e=this.state,n=e.location,r=e.routes,o=e.params,a=e.components,s=this.props,c=s.RoutingContext,l=s.createElement,f=i(s,["RoutingContext","createElement"]);return null==n?null:(Object.keys(t.propTypes).forEach(function(e){return delete f[e]}),p.default.createElement(c,u({},f,{history:this.history,createElement:l,location:n,routes:r,params:o,components:a})))},t}(f.Component);S.propTypes={history:C,children:b.routes,routes:b.routes,RoutingContext:E.isRequired,createElement:E,onError:E,onUpdate:E,parseQueryString:E,stringifyQuery:E},S.defaultProps={RoutingContext:m.default},n.default=S,t.exports=n.default}).call(this,e("_process"))},{"./PropTypes":335,"./RouteUtils":339,"./RoutingContext":341,"./useRoutes":350,_process:2,"history/lib/createHashHistory":172,react:514,warning:352}],341:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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)}n.__esModule=!0;var s=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},u=e("invariant"),c=o(u),l=e("react"),f=o(l),p=e("./RouteUtils"),d=e("./getRouteParams"),h=o(d),g=f.default.PropTypes,y=g.array,m=g.func,v=g.object,_=function(e){function t(){i(this,t),e.apply(this,arguments)}return a(t,e),t.prototype.getChildContext=function(){var e=this.props,t=e.history,n=e.location;return{history:t,location:n}},t.prototype.createElement=function(e,t){return null==e?null:this.props.createElement(e,t)},t.prototype.render=function(){var e=this,t=this.props,n=t.history,o=t.location,i=t.routes,a=t.params,u=t.components,l=null;return u&&(l=u.reduceRight(function(t,r,u){if(null==r)return t;var c=i[u],l=h.default(c,a),f={history:n,location:o,params:a,route:c,routeParams:l,routes:i};if(p.isReactChildren(t))f.children=t;else if(t)for(var d in t)t.hasOwnProperty(d)&&(f[d]=t[d]);if("object"==typeof r){var g={};for(var y in r)r.hasOwnProperty(y)&&(g[y]=e.createElement(r[y],s({key:y},f)));return g}return e.createElement(r,f)},l)),null===l||l===!1||f.default.isValidElement(l)?void 0:"production"!==r.env.NODE_ENV?c.default(!1,"The root route must render a single element"):c.default(!1),l},t}(l.Component);_.propTypes={history:v.isRequired,createElement:m.isRequired,location:v.isRequired,routes:y.isRequired,params:v.isRequired,components:y.isRequired},_.defaultProps={createElement:f.default.createElement},_.childContextTypes={history:v.isRequired,location:v.isRequired},n.default=_,t.exports=n.default}).call(this,e("_process"))},{"./RouteUtils":339,"./getRouteParams":345,_process:2,invariant:351,react:514}],342:[function(e,t,n){"use strict";function r(e,t){return function(n,r,o){e.apply(t,arguments),e.length<3&&o()}}function o(e){return e.reduce(function(e,t){return t.onEnter&&e.push(r(t.onEnter,t)),e},[])}function i(e,t,n){function r(e,t,n){a={pathname:t,query:n,state:e}}var i=o(e);if(!i.length)return void n();var a=void 0;s.loopAsync(i.length,function(e,n,o){i[e](t,r,function(e){e||a?o(e,a):n()})},n)}function a(e){for(var t=0,n=e.length;t<n;++t)e[t].onLeave&&e[t].onLeave.call(e[t])}n.__esModule=!0,n.runEnterHooks=i,n.runLeaveHooks=a;var s=e("./AsyncUtils")},{"./AsyncUtils":327}],343:[function(e,t,n){"use strict";function r(e,t,n){if(!e.path)return!1;var r=i.getParamNames(e.path);return r.some(function(e){return t.params[e]!==n.params[e]})}function o(e,t){var n=e&&e.routes,o=t.routes,i=void 0,a=void 0;return n?(i=n.filter(function(n){return o.indexOf(n)===-1||r(n,e,t)}),i.reverse(),a=o.filter(function(e){return n.indexOf(e)===-1||i.indexOf(e)!==-1})):(i=[],a=o),{leaveRoutes:i,enterRoutes:a}}n.__esModule=!0;var i=e("./PatternUtils");n.default=o,t.exports=n.default},{"./PatternUtils":334}],344:[function(e,t,n){"use strict";function r(e,t,n){t.component||t.components?n(null,t.component||t.components):t.getComponent?t.getComponent(e,n):t.getComponents?t.getComponents(e,n):n()}function o(e,t){i.mapAsync(e.routes,function(t,n,o){r(e.location,t,o)},t)}n.__esModule=!0;var i=e("./AsyncUtils");n.default=o,t.exports=n.default},{"./AsyncUtils":327}],345:[function(e,t,n){"use strict";function r(e,t){var n={};if(!e.path)return n;var r=o.getParamNames(e.path);for(var i in t)t.hasOwnProperty(i)&&r.indexOf(i)!==-1&&(n[i]=t[i]);return n}n.__esModule=!0;var o=e("./PatternUtils");n.default=r,t.exports=n.default},{"./PatternUtils":334}],346:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var o=e("./Router"),i=r(o);n.Router=i.default;var a=e("./Link"),s=r(a);n.Link=s.default;var u=e("./IndexLink"),c=r(u);n.IndexLink=c.default;var l=e("./IndexRedirect"),f=r(l);n.IndexRedirect=f.default;var p=e("./IndexRoute"),d=r(p);n.IndexRoute=d.default;var h=e("./Redirect"),g=r(h);n.Redirect=g.default;var y=e("./Route"),m=r(y);n.Route=m.default;var v=e("./History"),_=r(v);n.History=_.default;var b=e("./Lifecycle"),x=r(b);n.Lifecycle=x.default;var E=e("./RouteContext"),C=r(E);n.RouteContext=C.default;var S=e("./useRoutes"),w=r(S);n.useRoutes=w.default;var T=e("./RouteUtils");n.createRoutes=T.createRoutes;var O=e("./RoutingContext"),P=r(O);n.RoutingContext=P.default;var R=e("./PropTypes"),A=r(R);n.PropTypes=A.default;var M=e("./match"),N=r(M);n.match=N.default;var I=r(o);n.default=I.default},{"./History":328,"./IndexLink":329,"./IndexRedirect":330,"./IndexRoute":331,"./Lifecycle":332,"./Link":333,"./PropTypes":335,"./Redirect":336,"./Route":337,"./RouteContext":338,"./RouteUtils":339,"./Router":340,"./RoutingContext":341,"./match":348,"./useRoutes":350}],347:[function(e,t,n){"use strict";function r(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return r(e,t[n])});if("object"==typeof e){for(var n in e)if(e.hasOwnProperty(n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!t.hasOwnProperty(n))return!1;if(!r(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function o(e,t,n){return e.every(function(e,r){return String(t[r])===String(n[e])})}function i(e,t,n){for(var r=e,i=[],a=[],s=0,u=t.length;s<u;++s){var l=t[s],f=l.path||"";if("/"===f.charAt(0)&&(r=e,i=[],a=[]),null!==r){var p=c.matchPattern(f,r);r=p.remainingPathname,i=[].concat(i,p.paramNames),a=[].concat(a,p.paramValues)}if(""===r&&l.path&&o(i,a,n))return s}return null}function a(e,t,n,r){var o=i(e,t,n);return null!==o&&(!r||t.slice(o+1).every(function(e){return!e.path}))}function s(e,t){return null==t?null==e:null==e||r(e,t)}function u(e,t,n,r,o,i){return null!=r&&(!!a(e,o,i,n)&&s(t,r.query))}n.__esModule=!0;var c=e("./PatternUtils");n.default=u,t.exports=n.default},{"./PatternUtils":334}],348:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=e.routes,o=e.location,i=e.parseQueryString,s=e.stringifyQuery,c=e.basename;o?void 0:"production"!==r.env.NODE_ENV?u.default(!1,"match needs a location"):u.default(!1);var l=y({routes:d.createRoutes(n),parseQueryString:i,stringifyQuery:s,basename:c});"string"==typeof o&&(o=l.createLocation(o)),l.match(o,function(e,n,r){t(e,n,r&&a({},r,{history:l}))})}n.__esModule=!0;var a=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=e("invariant"),u=o(s),c=e("history/lib/createMemoryHistory"),l=o(c),f=e("history/lib/useBasename"),p=o(f),d=e("./RouteUtils"),h=e("./useRoutes"),g=o(h),y=g.default(p.default(l.default));n.default=i,t.exports=n.default}).call(this,e("_process"))},{"./RouteUtils":339,"./useRoutes":350,_process:2,"history/lib/createMemoryHistory":175,"history/lib/useBasename":180,invariant:351}],349:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){e.childRoutes?n(null,e.childRoutes):e.getChildRoutes?e.getChildRoutes(t,function(e,t){n(e,!e&&g.createRoutes(t))}):n()}function a(e,t,n){e.indexRoute?n(null,e.indexRoute):e.getIndexRoute?e.getIndexRoute(t,function(e,t){n(e,!e&&g.createRoutes(t)[0])}):e.childRoutes?!function(){var r=e.childRoutes.filter(function(e){return!e.hasOwnProperty("path")});d.loopAsync(r.length,function(e,n,o){a(r[e],t,function(t,i){if(t||i){var a=[r[e]].concat(Array.isArray(i)?i:[i]);o(t,a)}else n()})},function(e,t){n(null,t)})}():n()}function s(e,t,n){return t.reduce(function(e,t,r){var o=n&&n[r];return Array.isArray(e[t])?e[t].push(o):t in e?e[t]=[e[t],o]:e[t]=o,e},e)}function u(e,t){return s({},e,t)}function c(e,t,n,o,s,c){var f=e.path||"";if("/"===f.charAt(0)&&(n=t.pathname,o=[],s=[]),null!==n){var d=h.matchPattern(f,n);if(n=d.remainingPathname,o=[].concat(o,d.paramNames),s=[].concat(s,d.paramValues),""===n&&e.path){var g=function(){var n={routes:[e],params:u(o,s)};return a(e,t,function(e,t){if(e)c(e);else{if(Array.isArray(t)){var o;"production"!==r.env.NODE_ENV?p.default(t.every(function(e){return!e.path}),"Index routes should not have paths"):void 0,(o=n.routes).push.apply(o,t)}else t&&("production"!==r.env.NODE_ENV?p.default(!t.path,"Index routes should not have paths"):void 0,n.routes.push(t));c(null,n)}}),{v:void 0}}();if("object"==typeof g)return g.v}}null!=n||e.childRoutes?i(e,t,function(r,i){r?c(r):i?l(i,t,function(t,n){t?c(t):n?(n.routes.unshift(e),c(null,n)):c()},n,o,s):c()}):c()}function l(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?t.pathname:arguments[3],o=arguments.length<=4||void 0===arguments[4]?[]:arguments[4],i=arguments.length<=5||void 0===arguments[5]?[]:arguments[5];return function(){d.loopAsync(e.length,function(n,a,s){c(e[n],t,r,o,i,function(e,t){e||t?s(e,t):a()})},n)}()}n.__esModule=!0;var f=e("warning"),p=o(f),d=e("./AsyncUtils"),h=e("./PatternUtils"),g=e("./RouteUtils");n.default=l,t.exports=n.default}).call(this,e("_process"))},{"./AsyncUtils":327,"./PatternUtils":334,"./RouteUtils":339,_process:2,warning:352}],350:[function(e,t,n){(function(r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e){for(var t in e)if(e.hasOwnProperty(t))return!0;return!1}function s(e){return function(){function t(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2];return v.default(e,t,n,O.location,O.routes,O.params)}function n(e){var t=e.pathname,n=e.query,r=e.state;return T.createLocation(T.createPath(t,n),r,f.REPLACE)}function o(e,t){P&&P.location===e?s(P,t):E.default(S,e,function(n,r){n?t(n):r?s(u({},r,{location:e}),t):t()})}function s(e,t){var r=g.default(O,e),o=r.leaveRoutes,i=r.enterRoutes;y.runLeaveHooks(o),y.runEnterHooks(i,e,function(r,o){r?t(r):o?t(null,n(o)):b.default(e,function(n,r){n?t(n):t(null,null,O=u({},e,{components:r}))})})}function c(e){return e.__id__||(e.__id__=R++)}function p(e){return e.reduce(function(e,t){return e.push.apply(e,A[c(t)]),e},[])}function h(e,t){E.default(S,e,function(n,r){if(null==r)return void t();P=u({},r,{location:e});for(var o=p(g.default(O,P).leaveRoutes),i=void 0,a=0,s=o.length;null==i&&a<s;++a)i=o[a](e);t(i)})}function m(){if(O.routes){for(var e=p(O.routes),t=void 0,n=0,r=e.length;"string"!=typeof t&&n<r;++n)t=e[n]();return t}}function _(e,t){var n=c(e),r=A[n];if(null==r){var o=!a(A);r=A[n]=[t],o&&(M=T.listenBefore(h),T.listenBeforeUnload&&(N=T.listenBeforeUnload(m)))}else r.indexOf(t)===-1&&r.push(t);return function(){var e=A[n];if(null!=e){var r=e.filter(function(e){return e!==t});0===r.length?(delete A[n],
23
- a(A)||(M&&(M(),M=null),N&&(N(),N=null))):A[n]=r}}}function x(e){return T.listen(function(t){O.location===t?e(null,O):o(t,function(n,o,i){n?e(n):o?T.transitionTo(o):i?e(null,i):"production"!==r.env.NODE_ENV?l.default(!1,'Location "%s" did not match any routes',t.pathname+t.search+t.hash):void 0})})}var C=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],S=C.routes,w=i(C,["routes"]),T=d.default(e)(w),O={},P=void 0,R=1,A={},M=void 0,N=void 0;return u({},T,{isActive:t,match:o,listenBeforeLeavingRoute:_,listen:x})}}n.__esModule=!0;var u=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},c=e("warning"),l=o(c),f=e("history/lib/Actions"),p=e("history/lib/useQueries"),d=o(p),h=e("./computeChangedRoutes"),g=o(h),y=e("./TransitionUtils"),m=e("./isActive"),v=o(m),_=e("./getComponents"),b=o(_),x=e("./matchRoutes"),E=o(x);n.default=s,t.exports=n.default}).call(this,e("_process"))},{"./TransitionUtils":342,"./computeChangedRoutes":343,"./getComponents":344,"./isActive":347,"./matchRoutes":349,_process:2,"history/lib/Actions":166,"history/lib/useQueries":181,warning:352}],351:[function(e,t,n){arguments[4][185][0].apply(n,arguments)},{dup:185}],352:[function(e,t,n){arguments[4][188][0].apply(n,arguments)},{dup:188}],353:[function(e,t,n){"use strict";var r=e("./ReactMount"),o=e("./findDOMNode"),i=e("fbjs/lib/focusNode"),a={componentDidMount:function(){this.props.autoFocus&&i(o(this))}},s={Mixin:a,focusDOMComponent:function(){i(r.getNode(this._rootNodeID))}};t.exports=s},{"./ReactMount":419,"./findDOMNode":465,"fbjs/lib/focusNode":496}],354:[function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function o(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function i(e){switch(e){case P.topCompositionStart:return R.compositionStart;case P.topCompositionEnd:return R.compositionEnd;case P.topCompositionUpdate:return R.compositionUpdate}}function a(e,t){return e===P.topKeyDown&&t.keyCode===x}function s(e,t){switch(e){case P.topKeyUp:return b.indexOf(t.keyCode)!==-1;case P.topKeyDown:return t.keyCode!==x;case P.topKeyPress:case P.topMouseDown:case P.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r,o){var c,l;if(E?c=i(e):M?s(e,r)&&(c=R.compositionEnd):a(e,r)&&(c=R.compositionStart),!c)return null;w&&(M||c!==R.compositionStart?c===R.compositionEnd&&M&&(l=M.getData()):M=y.getPooled(t));var f=m.getPooled(c,n,r,o);if(l)f.data=l;else{var p=u(r);null!==p&&(f.data=p)}return h.accumulateTwoPhaseDispatches(f),f}function l(e,t){switch(e){case P.topCompositionEnd:return u(t);case P.topKeyPress:var n=t.which;return n!==T?null:(A=!0,O);case P.topTextInput:var r=t.data;return r===O&&A?null:r;default:return null}}function f(e,t){if(M){if(e===P.topCompositionEnd||s(e,t)){var n=M.getData();return y.release(M),M=null,n}return null}switch(e){case P.topPaste:return null;case P.topKeyPress:return t.which&&!o(t)?String.fromCharCode(t.which):null;case P.topCompositionEnd:return w?null:t.data;default:return null}}function p(e,t,n,r,o){var i;if(i=S?l(e,r):f(e,r),!i)return null;var a=v.getPooled(R.beforeInput,n,r,o);return a.data=i,h.accumulateTwoPhaseDispatches(a),a}var d=e("./EventConstants"),h=e("./EventPropagators"),g=e("fbjs/lib/ExecutionEnvironment"),y=e("./FallbackCompositionState"),m=e("./SyntheticCompositionEvent"),v=e("./SyntheticInputEvent"),_=e("fbjs/lib/keyOf"),b=[9,13,27,32],x=229,E=g.canUseDOM&&"CompositionEvent"in window,C=null;g.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var S=g.canUseDOM&&"TextEvent"in window&&!C&&!r(),w=g.canUseDOM&&(!E||C&&C>8&&C<=11),T=32,O=String.fromCharCode(T),P=d.topLevelTypes,R={beforeInput:{phasedRegistrationNames:{bubbled:_({onBeforeInput:null}),captured:_({onBeforeInputCapture:null})},dependencies:[P.topCompositionEnd,P.topKeyPress,P.topTextInput,P.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:_({onCompositionEnd:null}),captured:_({onCompositionEndCapture:null})},dependencies:[P.topBlur,P.topCompositionEnd,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:_({onCompositionStart:null}),captured:_({onCompositionStartCapture:null})},dependencies:[P.topBlur,P.topCompositionStart,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:_({onCompositionUpdate:null}),captured:_({onCompositionUpdateCapture:null})},dependencies:[P.topBlur,P.topCompositionUpdate,P.topKeyDown,P.topKeyPress,P.topKeyUp,P.topMouseDown]}},A=!1,M=null,N={eventTypes:R,extractEvents:function(e,t,n,r,o){return[c(e,t,n,r,o),p(e,t,n,r,o)]}};t.exports=N},{"./EventConstants":366,"./EventPropagators":370,"./FallbackCompositionState":371,"./SyntheticCompositionEvent":447,"./SyntheticInputEvent":451,"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/keyOf":506}],355:[function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};t.exports=s},{}],356:[function(e,t,n){"use strict";var r=e("./CSSProperty"),o=e("fbjs/lib/ExecutionEnvironment"),i=e("./ReactPerf"),a=(e("fbjs/lib/camelizeStyleName"),e("./dangerousStyleValue")),s=e("fbjs/lib/hyphenateStyleName"),u=e("fbjs/lib/memoizeStringOnly"),c=(e("fbjs/lib/warning"),u(function(e){return s(e)})),l=!1,f="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(e){l=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}var d={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=c(n)+":",t+=a(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var o in t)if(t.hasOwnProperty(o)){var i=a(o,t[o]);if("float"===o&&(o=f),i)n[o]=i;else{var s=l&&r.shorthandPropertyExpansions[o];if(s)for(var u in s)n[u]="";else n[o]=""}}}};i.measureMethods(d,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=d},{"./CSSProperty":355,"./ReactPerf":425,"./dangerousStyleValue":462,"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/camelizeStyleName":490,"fbjs/lib/hyphenateStyleName":501,"fbjs/lib/memoizeStringOnly":508,"fbjs/lib/warning":513}],357:[function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("fbjs/lib/invariant");i(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){e.length!==t.length?a(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":374,"./PooledClass":375,"fbjs/lib/invariant":502}],358:[function(e,t,n){"use strict";function r(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function o(e){var t=C.getPooled(R.change,M,e,S(e));b.accumulateTwoPhaseDispatches(t),E.batchedUpdates(i,t)}function i(e){_.enqueueEvents(e),_.processEventQueue(!1)}function a(e,t){A=e,M=t,A.attachEvent("onchange",o)}function s(){A&&(A.detachEvent("onchange",o),A=null,M=null)}function u(e,t,n){if(e===P.topChange)return n}function c(e,t,n){e===P.topFocus?(s(),a(t,n)):e===P.topBlur&&s()}function l(e,t){A=e,M=t,N=e.value,I=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(A,"value",D),A.attachEvent("onpropertychange",p)}function f(){A&&(delete A.value,A.detachEvent("onpropertychange",p),A=null,M=null,N=null,I=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==N&&(N=t,o(e))}}function d(e,t,n){if(e===P.topInput)return n}function h(e,t,n){e===P.topFocus?(f(),l(t,n)):e===P.topBlur&&f()}function g(e,t,n){if((e===P.topSelectionChange||e===P.topKeyUp||e===P.topKeyDown)&&A&&A.value!==N)return N=A.value,M}function y(e){return e.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function m(e,t,n){if(e===P.topClick)return n}var v=e("./EventConstants"),_=e("./EventPluginHub"),b=e("./EventPropagators"),x=e("fbjs/lib/ExecutionEnvironment"),E=e("./ReactUpdates"),C=e("./SyntheticEvent"),S=e("./getEventTarget"),w=e("./isEventSupported"),T=e("./isTextInputElement"),O=e("fbjs/lib/keyOf"),P=v.topLevelTypes,R={change:{phasedRegistrationNames:{bubbled:O({onChange:null}),captured:O({onChangeCapture:null})},dependencies:[P.topBlur,P.topChange,P.topClick,P.topFocus,P.topInput,P.topKeyDown,P.topKeyUp,P.topSelectionChange]}},A=null,M=null,N=null,I=null,L=!1;x.canUseDOM&&(L=w("change")&&(!("documentMode"in document)||document.documentMode>8));var k=!1;x.canUseDOM&&(k=w("input")&&(!("documentMode"in document)||document.documentMode>9));var D={get:function(){return I.get.call(this)},set:function(e){N=""+e,I.set.call(this,e)}},j={eventTypes:R,extractEvents:function(e,t,n,o,i){var a,s;if(r(t)?L?a=u:s=c:T(t)?k?a=d:(a=g,s=h):y(t)&&(a=m),a){var l=a(e,t,n);if(l){var f=C.getPooled(R.change,l,o,i);return f.type="change",b.accumulateTwoPhaseDispatches(f),f}}s&&s(e,t,n)}};t.exports=j},{"./EventConstants":366,"./EventPluginHub":367,"./EventPropagators":370,"./ReactUpdates":440,"./SyntheticEvent":449,"./getEventTarget":471,"./isEventSupported":476,"./isTextInputElement":477,"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/keyOf":506}],359:[function(e,t,n){"use strict";var r=0,o={createReactRootIndex:function(){return r++}};t.exports=o},{}],360:[function(e,t,n){"use strict";function r(e,t,n){var r=n>=e.childNodes.length?null:e.childNodes.item(n);e.insertBefore(t,r)}var o=e("./Danger"),i=e("./ReactMultiChildUpdateTypes"),a=e("./ReactPerf"),s=e("./setInnerHTML"),u=e("./setTextContent"),c=e("fbjs/lib/invariant"),l={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:u,processUpdates:function(e,t){for(var n,a=null,l=null,f=0;f<e.length;f++)if(n=e[f],n.type===i.MOVE_EXISTING||n.type===i.REMOVE_NODE){var p=n.fromIndex,d=n.parentNode.childNodes[p],h=n.parentID;d?void 0:c(!1),a=a||{},a[h]=a[h]||[],a[h][p]=d,l=l||[],l.push(d)}var g;if(g=t.length&&"string"==typeof t[0]?o.dangerouslyRenderMarkup(t):t,l)for(var y=0;y<l.length;y++)l[y].parentNode.removeChild(l[y]);for(var m=0;m<e.length;m++)switch(n=e[m],n.type){case i.INSERT_MARKUP:r(n.parentNode,g[n.markupIndex],n.toIndex);break;case i.MOVE_EXISTING:r(n.parentNode,a[n.parentID][n.fromIndex],n.toIndex);break;case i.SET_MARKUP:s(n.parentNode,n.content);break;case i.TEXT_CONTENT:u(n.parentNode,n.content);break;case i.REMOVE_NODE:}}};a.measureMethods(l,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),t.exports=l},{"./Danger":363,"./ReactMultiChildUpdateTypes":421,"./ReactPerf":425,"./setInnerHTML":481,"./setTextContent":482,"fbjs/lib/invariant":502}],361:[function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=e("fbjs/lib/invariant"),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},c=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?o(!1):void 0;var p=f.toLowerCase(),d=n[f],h={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(d,t.MUST_USE_ATTRIBUTE),mustUseProperty:r(d,t.MUST_USE_PROPERTY),hasSideEffects:r(d,t.HAS_SIDE_EFFECTS),hasBooleanValue:r(d,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(d,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(d,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(d,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.mustUseAttribute&&h.mustUseProperty?o(!1):void 0,!h.mustUseProperty&&h.hasSideEffects?o(!1):void 0,h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:o(!1),u.hasOwnProperty(f)){var g=u[f];h.attributeName=g}a.hasOwnProperty(f)&&(h.attributeNamespace=a[f]),c.hasOwnProperty(f)&&(h.propertyName=c[f]),l.hasOwnProperty(f)&&(h.mutationMethod=l[f]),s.properties[f]=h}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=a[e];return r||(a[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:i};t.exports=s},{"fbjs/lib/invariant":502}],362:[function(e,t,n){"use strict";function r(e){return!!l.hasOwnProperty(e)||!c.hasOwnProperty(e)&&(u.test(e)?(l[e]=!0,!0):(c[e]=!0,!1))}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&t===!1}var i=e("./DOMProperty"),a=e("./ReactPerf"),s=e("./quoteAttributeValueForBrowser"),u=(e("fbjs/lib/warning"),/^[a-zA-Z_][\w\.\-]*$/),c={},l={},f={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+s(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&t===!0?r+'=""':r+"="+s(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+s(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+s(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var a=r.mutationMethod;if(a)a(e,n);else if(o(r,n))this.deleteValueForProperty(e,t);else if(r.mustUseAttribute){var s=r.attributeName,u=r.attributeNamespace;u?e.setAttributeNS(u,s,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?e.setAttribute(s,""):e.setAttribute(s,""+n)}else{var c=r.propertyName;r.hasSideEffects&&""+e[c]==""+n||(e[c]=n)}}else i.isCustomAttribute(t)&&f.setValueForAttribute(e,t,n)},setValueForAttribute:function(e,t,n){r(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseAttribute)e.removeAttribute(n.attributeName);else{var o=n.propertyName,a=i.getDefaultValueForProperty(e.nodeName,o);n.hasSideEffects&&""+e[o]===a||(e[o]=a)}}else i.isCustomAttribute(t)&&e.removeAttribute(t)}};a.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=f},{"./DOMProperty":361,"./ReactPerf":425,"./quoteAttributeValueForBrowser":479,"fbjs/lib/warning":513}],363:[function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var o=e("fbjs/lib/ExecutionEnvironment"),i=e("fbjs/lib/createNodesFromMarkup"),a=e("fbjs/lib/emptyFunction"),s=e("fbjs/lib/getMarkupWrap"),u=e("fbjs/lib/invariant"),c=/^(<[^ \/>]+)/,l="data-danger-index",f={dangerouslyRenderMarkup:function(e){o.canUseDOM?void 0:u(!1);for(var t,n={},f=0;f<e.length;f++)e[f]?void 0:u(!1),t=r(e[f]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][f]=e[f];var p=[],d=0;for(t in n)if(n.hasOwnProperty(t)){var h,g=n[t];for(h in g)if(g.hasOwnProperty(h)){var y=g[h];g[h]=y.replace(c,"$1 "+l+'="'+h+'" ')}for(var m=i(g.join(""),a),v=0;v<m.length;++v){var _=m[v];_.hasAttribute&&_.hasAttribute(l)&&(h=+_.getAttribute(l),_.removeAttribute(l),p.hasOwnProperty(h)?u(!1):void 0,p[h]=_,d+=1)}}return d!==p.length?u(!1):void 0,p.length!==e.length?u(!1):void 0,p},dangerouslyReplaceNodeWithMarkup:function(e,t){o.canUseDOM?void 0:u(!1),t?void 0:u(!1),"html"===e.tagName.toLowerCase()?u(!1):void 0;var n;n="string"==typeof t?i(t,a)[0]:t,e.parentNode.replaceChild(n,e)}};t.exports=f},{"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/createNodesFromMarkup":493,"fbjs/lib/emptyFunction":494,"fbjs/lib/getMarkupWrap":498,"fbjs/lib/invariant":502}],364:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyOf"),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=o},{"fbjs/lib/keyOf":506}],365:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("./EventPropagators"),i=e("./SyntheticMouseEvent"),a=e("./ReactMount"),s=e("fbjs/lib/keyOf"),u=r.topLevelTypes,c=a.getFirstReactDOM,l={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},f=[null,null],p={eventTypes:l,extractEvents:function(e,t,n,r,s){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var p;if(t.window===t)p=t;else{var d=t.ownerDocument;p=d?d.defaultView||d.parentWindow:window}var h,g,y="",m="";if(e===u.topMouseOut?(h=t,y=n,g=c(r.relatedTarget||r.toElement),g?m=a.getID(g):g=p,g=g||p):(h=p,g=t,m=n),h===g)return null;var v=i.getPooled(l.mouseLeave,y,r,s);v.type="mouseleave",v.target=h,v.relatedTarget=g;var _=i.getPooled(l.mouseEnter,m,r,s);return _.type="mouseenter",_.target=g,_.relatedTarget=h,o.accumulateEnterLeaveDispatches(v,_,y,m),f[0]=v,f[1]=_,f}};t.exports=p},{"./EventConstants":366,"./EventPropagators":370,"./ReactMount":419,"./SyntheticMouseEvent":453,"fbjs/lib/keyOf":506}],366:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({bubbled:null,captured:null}),i=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};t.exports=a},{"fbjs/lib/keyMirror":505}],367:[function(e,t,n){"use strict";var r=e("./EventPluginRegistry"),o=e("./EventPluginUtils"),i=e("./ReactErrorUtils"),a=e("./accumulateInto"),s=e("./forEachAccumulated"),u=e("fbjs/lib/invariant"),c=(e("fbjs/lib/warning"),{}),l=null,f=function(e,t){e&&(o.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},p=function(e){return f(e,!0)},d=function(e){return f(e,!1)},h=null,g={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(e){h=e},getInstanceHandle:function(){return h},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){"function"!=typeof n?u(!1):void 0;var o=c[t]||(c[t]={});o[e]=n;var i=r.registrationNameModules[t];i&&i.didPutListener&&i.didPutListener(e,t,n)},getListener:function(e,t){var n=c[t];return n&&n[e]},deleteListener:function(e,t){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var o=c[t];o&&delete o[e]},deleteAllListeners:function(e){for(var t in c)if(c[t][e]){var n=r.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t),delete c[t][e]}},extractEvents:function(e,t,n,o,i){for(var s,u=r.plugins,c=0;c<u.length;c++){var l=u[c];if(l){var f=l.extractEvents(e,t,n,o,i);f&&(s=a(s,f))}}return s},enqueueEvents:function(e){e&&(l=a(l,e))},processEventQueue:function(e){var t=l;l=null,e?s(t,p):s(t,d),l?u(!1):void 0,i.rethrowCaughtError()},__purge:function(){c={}},__getListenerBank:function(){return c}};t.exports=g},{"./EventPluginRegistry":368,"./EventPluginUtils":369,"./ReactErrorUtils":410,"./accumulateInto":459,"./forEachAccumulated":467,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],368:[function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(n>-1?void 0:a(!1),!c.plugins[n]){t.extractEvents?void 0:a(!1),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)?void 0:a(!1)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]?a(!1):void 0,c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=e("fbjs/lib/invariant"),s=null,u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){s?a(!1):void 0,s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]?a(!1):void 0,u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=c.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=c},{"fbjs/lib/invariant":502}],369:[function(e,t,n){"use strict";function r(e){return e===y.topMouseUp||e===y.topTouchEnd||e===y.topTouchCancel}function o(e){return e===y.topMouseMove||e===y.topTouchMove}function i(e){return e===y.topMouseDown||e===y.topTouchStart}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=g.Mount.getNode(r),t?d.invokeGuardedCallbackWithCatch(o,n,e,r):d.invokeGuardedCallback(o,n,e,r),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)a(e,t,n[o],r[o]);else n&&a(e,t,n,r);e._dispatchListeners=null,e._dispatchIDs=null}function u(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function c(e){var t=u(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function l(e){var t=e._dispatchListeners,n=e._dispatchIDs;Array.isArray(t)?h(!1):void 0;var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function f(e){return!!e._dispatchListeners}var p=e("./EventConstants"),d=e("./ReactErrorUtils"),h=e("fbjs/lib/invariant"),g=(e("fbjs/lib/warning"),{Mount:null,injectMount:function(e){g.Mount=e}}),y=p.topLevelTypes,m={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:c,hasDispatches:f,getNode:function(e){return g.Mount.getNode(e)},getID:function(e){return g.Mount.getID(e)},injection:g};t.exports=m},{"./EventConstants":366,"./ReactErrorUtils":410,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],370:[function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return v(e,r)}function o(e,t,n){var o=t?m.bubbled:m.captured,i=r(e,n,o);i&&(n._dispatchListeners=g(n._dispatchListeners,i),n._dispatchIDs=g(n._dispatchIDs,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,o,e)}function a(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(e.dispatchMarker,o,e)}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=v(e,r);o&&(n._dispatchListeners=g(n._dispatchListeners,o),n._dispatchIDs=g(n._dispatchIDs,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e.dispatchMarker,null,e)}function c(e){y(e,i)}function l(e){y(e,a)}function f(e,t,n,r){h.injection.getInstanceHandle().traverseEnterLeave(n,r,s,e,t)}function p(e){y(e,u)}var d=e("./EventConstants"),h=e("./EventPluginHub"),g=(e("fbjs/lib/warning"),e("./accumulateInto")),y=e("./forEachAccumulated"),m=d.PropagationPhases,v=h.getListener,_={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};t.exports=_},{"./EventConstants":366,"./EventPluginHub":367,"./accumulateInto":459,"./forEachAccumulated":467,"fbjs/lib/warning":513}],371:[function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("./getTextContentAccessor");i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},{"./Object.assign":374,"./PooledClass":375,"./getTextContentAccessor":474}],372:[function(e,t,n){"use strict";var r,o=e("./DOMProperty"),i=e("fbjs/lib/ExecutionEnvironment"),a=o.injection.MUST_USE_ATTRIBUTE,s=o.injection.MUST_USE_PROPERTY,u=o.injection.HAS_BOOLEAN_VALUE,c=o.injection.HAS_SIDE_EFFECTS,l=o.injection.HAS_NUMERIC_VALUE,f=o.injection.HAS_POSITIVE_NUMERIC_VALUE,p=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var d=document.implementation;r=d&&d.hasFeature&&d.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var h={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,capture:a|u,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:s|u,classID:a,className:r?a:s,cols:a|f,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,default:u,defer:u,dir:null,disabled:a|u,download:p,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:s|u,muted:s|u,name:null,nonce:a,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,reversed:u,role:a,rows:a|f,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|f,sizes:a,span:f,spellCheck:null,src:null,srcDoc:s,srcLang:null,srcSet:a,start:l,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|c,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,typeof:a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=h},{"./DOMProperty":361,"fbjs/lib/ExecutionEnvironment":488}],373:[function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink?c(!1):void 0}function o(e){r(e),null!=e.value||null!=e.onChange?c(!1):void 0}function i(e){r(e),null!=e.checked||null!=e.onChange?c(!1):void 0}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=e("./ReactPropTypes"),u=e("./ReactPropTypeLocations"),c=e("fbjs/lib/invariant"),l=(e("fbjs/lib/warning"),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(e,t,n){return!e[t]||l[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:s.func},p={},d={checkPropTypes:function(e,t,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](t,r,e,u.prop);if(o instanceof Error&&!(o.message in p)){p[o.message]=!0;a(n)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};t.exports=d},{"./ReactPropTypeLocations":427,"./ReactPropTypes":428,"fbjs/lib/invariant":502,
24
- "fbjs/lib/warning":513}],374:[function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var a=Object(i);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}t.exports=r},{}],375:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t?void 0:r(!1),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,f=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||f,n.poolSize||(n.poolSize=l),n.release=c,n},d={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:u};t.exports=d},{"fbjs/lib/invariant":502}],376:[function(e,t,n){"use strict";var r=e("./ReactDOM"),o=e("./ReactDOMServer"),i=e("./ReactIsomorphic"),a=e("./Object.assign"),s=e("./deprecated"),u={};a(u,i),a(u,{findDOMNode:s("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:s("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:s("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:s("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:s("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),u.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,u.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.exports=u},{"./Object.assign":374,"./ReactDOM":389,"./ReactDOMServer":399,"./ReactIsomorphic":417,"./deprecated":463}],377:[function(e,t,n){"use strict";var r=(e("./ReactInstanceMap"),e("./findDOMNode")),o=(e("fbjs/lib/warning"),"_getDOMNodeDidWarn"),i={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};t.exports=i},{"./ReactInstanceMap":416,"./findDOMNode":465,"fbjs/lib/warning":513}],378:[function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,y)||(e[y]=h++,p[e[y]]={}),p[e[y]]}var o=e("./EventConstants"),i=e("./EventPluginHub"),a=e("./EventPluginRegistry"),s=e("./ReactEventEmitterMixin"),u=e("./ReactPerf"),c=e("./ViewportMetrics"),l=e("./Object.assign"),f=e("./isEventSupported"),p={},d=!1,h=0,g={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},y="_reactListenersID"+String(Math.random()).slice(2),m=l({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,i=r(n),s=a.registrationNameDependencies[e],u=o.topLevelTypes,c=0;c<s.length;c++){var l=s[c];i.hasOwnProperty(l)&&i[l]||(l===u.topWheel?f("wheel")?m.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):f("mousewheel")?m.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):m.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):l===u.topScroll?f("scroll",!0)?m.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):m.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",m.ReactEventListener.WINDOW_HANDLE):l===u.topFocus||l===u.topBlur?(f("focus",!0)?(m.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),m.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):f("focusin")&&(m.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),m.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),i[u.topBlur]=!0,i[u.topFocus]=!0):g.hasOwnProperty(l)&&m.ReactEventListener.trapBubbledEvent(l,g[l],n),i[l]=!0)}},trapBubbledEvent:function(e,t,n){return m.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return m.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!d){var e=c.refreshScrollValues;m.ReactEventListener.monitorScrollValue(e),d=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});u.measureMethods(m,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),t.exports=m},{"./EventConstants":366,"./EventPluginHub":367,"./EventPluginRegistry":368,"./Object.assign":374,"./ReactEventEmitterMixin":411,"./ReactPerf":425,"./ViewportMetrics":458,"./isEventSupported":476}],379:[function(e,t,n){"use strict";function r(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}}}var o=e("./React"),i=e("./Object.assign"),a=e("./ReactTransitionGroup"),s=e("./ReactCSSTransitionGroupChild"),u=o.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:s.propTypes.name,transitionAppear:o.PropTypes.bool,transitionEnter:o.PropTypes.bool,transitionLeave:o.PropTypes.bool,transitionAppearTimeout:r("Appear"),transitionEnterTimeout:r("Enter"),transitionLeaveTimeout:r("Leave")},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){return o.createElement(s,{name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},e)},render:function(){return o.createElement(a,i({},this.props,{childFactory:this._wrapChild}))}});t.exports=u},{"./Object.assign":374,"./React":376,"./ReactCSSTransitionGroupChild":380,"./ReactTransitionGroup":438}],380:[function(e,t,n){"use strict";var r=e("./React"),o=e("./ReactDOM"),i=e("fbjs/lib/CSSCore"),a=e("./ReactTransitionEvents"),s=e("./onlyChild"),u=17,c=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(e,t,n){var r=o.findDOMNode(this);if(!r)return void(t&&t());var s=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||s+"-active",c=null,l=function(e){e&&e.target!==r||(clearTimeout(c),i.removeClass(r,s),i.removeClass(r,u),a.removeEndEventListener(r,l),t&&t())};i.addClass(r,s),this.queueClass(u),n?(c=setTimeout(l,n),this.transitionTimeouts.push(c)):a.addEndEventListener(r,l)},queueClass:function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,u))},flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(i.addClass.bind(i,o.findDOMNode(this))),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)})},componentWillAppear:function(e){this.props.appear?this.transition("appear",e,this.props.appearTimeout):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},render:function(){return s(this.props.children)}});t.exports=c},{"./React":376,"./ReactDOM":389,"./ReactTransitionEvents":437,"./onlyChild":478,"fbjs/lib/CSSCore":486}],381:[function(e,t,n){"use strict";function r(e,t,n){var r=void 0===e[n];null!=t&&r&&(e[n]=i(t,null))}var o=e("./ReactReconciler"),i=e("./instantiateReactComponent"),a=e("./shouldUpdateReactComponent"),s=e("./traverseAllChildren"),u=(e("fbjs/lib/warning"),{instantiateChildren:function(e,t,n){if(null==e)return null;var o={};return s(e,r,o),o},updateChildren:function(e,t,n,r){if(!t&&!e)return null;var s;for(s in t)if(t.hasOwnProperty(s)){var u=e&&e[s],c=u&&u._currentElement,l=t[s];if(null!=u&&a(c,l))o.receiveComponent(u,l,n,r),t[s]=u;else{u&&o.unmountComponent(u,s);var f=i(l,null);t[s]=f}}for(s in e)!e.hasOwnProperty(s)||t&&t.hasOwnProperty(s)||o.unmountComponent(e[s]);return t},unmountChildren:function(e){for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];o.unmountComponent(n)}}});t.exports=u},{"./ReactReconciler":430,"./instantiateReactComponent":475,"./shouldUpdateReactComponent":483,"./traverseAllChildren":484,"fbjs/lib/warning":513}],382:[function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"//")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);m(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,y.thatReturnsArgument):null!=u&&(g.isValidElement(u)&&(u=g.cloneAndReplaceKey(u,i+(u!==t?r(u.key||"")+"/":"")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);m(e,u,c),s.release(c)}function l(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function f(e,t,n){return null}function p(e,t){return m(e,f,null)}function d(e){var t=[];return c(e,t,null,y.thatReturnsArgument),t}var h=e("./PooledClass"),g=e("./ReactElement"),y=e("fbjs/lib/emptyFunction"),m=e("./traverseAllChildren"),v=h.twoArgumentPooler,_=h.fourArgumentPooler,b=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,v),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,_);var x={forEach:a,map:l,mapIntoWithKeyPrefixInternal:c,count:p,toArray:d};t.exports=x},{"./PooledClass":375,"./ReactElement":406,"./traverseAllChildren":484,"fbjs/lib/emptyFunction":494}],383:[function(e,t,n){"use strict";function r(e,t){var n=E.hasOwnProperty(t)?E[t]:null;S.hasOwnProperty(t)&&(n!==b.OVERRIDE_BASE?y(!1):void 0),e.hasOwnProperty(t)&&(n!==b.DEFINE_MANY&&n!==b.DEFINE_MANY_MERGED?y(!1):void 0)}function o(e,t){if(t){"function"==typeof t?y(!1):void 0,p.isValidElement(t)?y(!1):void 0;var n=e.prototype;t.hasOwnProperty(_)&&C.mixins(e,t.mixins);for(var o in t)if(t.hasOwnProperty(o)&&o!==_){var i=t[o];if(r(n,o),C.hasOwnProperty(o))C[o](e,i);else{var a=E.hasOwnProperty(o),c=n.hasOwnProperty(o),l="function"==typeof i,f=l&&!a&&!c&&t.autobind!==!1;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=i,n[o]=i;else if(c){var d=E[o];!a||d!==b.DEFINE_MANY_MERGED&&d!==b.DEFINE_MANY?y(!1):void 0,d===b.DEFINE_MANY_MERGED?n[o]=s(n[o],i):d===b.DEFINE_MANY&&(n[o]=u(n[o],i))}else n[o]=i}}}}function i(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in C;o?y(!1):void 0;var i=n in e;i?y(!1):void 0,e[n]=r}}}function a(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:y(!1);for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?y(!1):void 0,e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function c(e,t){var n=t.bind(e);return n}function l(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=c(e,n)}}var f=e("./ReactComponent"),p=e("./ReactElement"),d=(e("./ReactPropTypeLocations"),e("./ReactPropTypeLocationNames"),e("./ReactNoopUpdateQueue")),h=e("./Object.assign"),g=e("fbjs/lib/emptyObject"),y=e("fbjs/lib/invariant"),m=e("fbjs/lib/keyMirror"),v=e("fbjs/lib/keyOf"),_=(e("fbjs/lib/warning"),v({mixins:null})),b=m({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],E={mixins:b.DEFINE_MANY,statics:b.DEFINE_MANY,propTypes:b.DEFINE_MANY,contextTypes:b.DEFINE_MANY,childContextTypes:b.DEFINE_MANY,getDefaultProps:b.DEFINE_MANY_MERGED,getInitialState:b.DEFINE_MANY_MERGED,getChildContext:b.DEFINE_MANY_MERGED,render:b.DEFINE_ONCE,componentWillMount:b.DEFINE_MANY,componentDidMount:b.DEFINE_MANY,componentWillReceiveProps:b.DEFINE_MANY,shouldComponentUpdate:b.DEFINE_ONCE,componentWillUpdate:b.DEFINE_MANY,componentDidUpdate:b.DEFINE_MANY,componentWillUnmount:b.DEFINE_MANY,updateComponent:b.OVERRIDE_BASE},C={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)o(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=h({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=h({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=h({},e.propTypes,t)},statics:function(e,t){i(e,t)},autobind:function(){}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(e,t){this.updater.enqueueSetProps(this,e),t&&this.updater.enqueueCallback(this,t)},replaceProps:function(e,t){this.updater.enqueueReplaceProps(this,e),t&&this.updater.enqueueCallback(this,t)}},w=function(){};h(w.prototype,f.prototype,S);var T={createClass:function(e){var t=function(e,t,n){this.__reactAutoBindMap&&l(this),this.props=e,this.context=t,this.refs=g,this.updater=n||d,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?y(!1):void 0,this.state=r};t.prototype=new w,t.prototype.constructor=t,x.forEach(o.bind(null,t)),o(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:y(!1);for(var n in E)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){x.push(e)}}};t.exports=T},{"./Object.assign":374,"./ReactComponent":384,"./ReactElement":406,"./ReactNoopUpdateQueue":423,"./ReactPropTypeLocationNames":426,"./ReactPropTypeLocations":427,"fbjs/lib/emptyObject":495,"fbjs/lib/invariant":502,"fbjs/lib/keyMirror":505,"fbjs/lib/keyOf":506,"fbjs/lib/warning":513}],384:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=i,this.updater=n||o}var o=e("./ReactNoopUpdateQueue"),i=(e("./canDefineProperty"),e("fbjs/lib/emptyObject")),a=e("fbjs/lib/invariant");e("fbjs/lib/warning");r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?a(!1):void 0,this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e)};t.exports=r},{"./ReactNoopUpdateQueue":423,"./canDefineProperty":461,"fbjs/lib/emptyObject":495,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],385:[function(e,t,n){"use strict";var r=e("./ReactDOMIDOperations"),o=e("./ReactMount"),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){o.purgeID(e)}};t.exports=i},{"./ReactDOMIDOperations":394,"./ReactMount":419}],386:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o?r(!1):void 0,i.unmountIDFromEnvironment=e.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};t.exports=i},{"fbjs/lib/invariant":502}],387:[function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(e){}var i=e("./ReactComponentEnvironment"),a=e("./ReactCurrentOwner"),s=e("./ReactElement"),u=e("./ReactInstanceMap"),c=e("./ReactPerf"),l=e("./ReactPropTypeLocations"),f=(e("./ReactPropTypeLocationNames"),e("./ReactReconciler")),p=e("./ReactUpdateQueue"),d=e("./Object.assign"),h=e("fbjs/lib/emptyObject"),g=e("fbjs/lib/invariant"),y=e("./shouldUpdateReactComponent");e("fbjs/lib/warning");o.prototype.render=function(){var e=u.get(this)._currentElement.type;return e(this.props,this.context,this.updater)};var m=1,v={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=m++,this._rootNodeID=e;var r,i,a=this._processProps(this._currentElement.props),c=this._processContext(n),l=this._currentElement.type,d="prototype"in l;d&&(r=new l(a,c,p)),d&&null!==r&&r!==!1&&!s.isValidElement(r)||(i=r,r=new o(l)),r.props=a,r.context=c,r.refs=h,r.updater=p,this._instance=r,u.set(r,this);var y=r.state;void 0===y&&(r.state=y=null),"object"!=typeof y||Array.isArray(y)?g(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===i&&(i=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(i);var v=f.mountComponent(this._renderedComponent,e,t,this._processChildContext(n));return r.componentDidMount&&t.getReactMountReady().enqueue(r.componentDidMount,r),v},unmountComponent:function(){var e=this._instance;e.componentWillUnmount&&e.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,u.remove(e)},_maskContext:function(e){var t=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return h;t={};for(var o in r)t[o]=e[o];return t},_processContext:function(e){var t=this._maskContext(e);return t},_processChildContext:function(e){var t=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof t.childContextTypes?g(!1):void 0;for(var o in r)o in t.childContextTypes?void 0:g(!1);return d({},e,r)}return e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var o=this.getName();for(var i in e)if(e.hasOwnProperty(i)){var a;try{"function"!=typeof e[i]?g(!1):void 0,a=e[i](t,i,o,n)}catch(e){a=e}if(a instanceof Error){r(this);n===l.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(e,t,n,r,o){var i,a=this._instance,s=this._context===o?a.context:this._processContext(o);t===n?i=n.props:(i=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(i,s));var u=this._processPendingState(i,s),c=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(i,u,s);c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,i,u,s,e,o)):(this._currentElement=n,this._context=o,a.props=i,a.state=u,a.context=s)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=d({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];d(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,s,u,c=this._instance,l=Boolean(c.componentDidUpdate);l&&(a=c.props,s=c.state,u=c.context),c.componentWillUpdate&&c.componentWillUpdate(t,n,r),this._currentElement=e,this._context=i,c.props=t,c.state=n,c.context=r,this._updateRenderedComponent(o,i),l&&o.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,a,s,u),c)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(y(r,o))f.receiveComponent(n,o,e,this._processChildContext(t));else{var i=this._rootNodeID,a=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o);var s=f.mountComponent(this._renderedComponent,i,e,this._processChildContext(t));this._replaceNodeWithMarkupByID(a,s)}},_replaceNodeWithMarkupByID:function(e,t){i.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(){var e;a.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{a.current=null}return null===e||e===!1||s.isValidElement(e)?void 0:g(!1),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n?g(!1):void 0;var r=t.getPublicInstance(),o=n.refs===h?n.refs={}:n.refs;o[e]=r},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return e instanceof o?null:e},_instantiateReactComponent:null};c.measureMethods(v,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var _={Mixin:v};t.exports=_},{"./Object.assign":374,"./ReactComponentEnvironment":386,"./ReactCurrentOwner":388,"./ReactElement":406,"./ReactInstanceMap":416,"./ReactPerf":425,"./ReactPropTypeLocationNames":426,"./ReactPropTypeLocations":427,"./ReactReconciler":430,"./ReactUpdateQueue":439,"./shouldUpdateReactComponent":483,"fbjs/lib/emptyObject":495,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],388:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],389:[function(e,t,n){"use strict";var r=e("./ReactCurrentOwner"),o=e("./ReactDOMTextComponent"),i=e("./ReactDefaultInjection"),a=e("./ReactInstanceHandles"),s=e("./ReactMount"),u=e("./ReactPerf"),c=e("./ReactReconciler"),l=e("./ReactUpdates"),f=e("./ReactVersion"),p=e("./findDOMNode"),d=e("./renderSubtreeIntoContainer");e("fbjs/lib/warning");i.inject();var h=u.measure("React","render",s.render),g={findDOMNode:p,render:h,unmountComponentAtNode:s.unmountComponentAtNode,version:f,unstable_batchedUpdates:l.batchedUpdates,unstable_renderSubtreeIntoContainer:d};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:s,Reconciler:c,TextComponent:o});t.exports=g},{"./ReactCurrentOwner":388,"./ReactDOMTextComponent":400,"./ReactDefaultInjection":403,"./ReactInstanceHandles":415,"./ReactMount":419,"./ReactPerf":425,"./ReactReconciler":430,"./ReactUpdates":440,"./ReactVersion":441,"./findDOMNode":465,"./renderSubtreeIntoContainer":480,"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/warning":513}],390:[function(e,t,n){"use strict";var r={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},o={getNativeProps:function(e,t,n){if(!t.disabled)return t;var o={};for(var i in t)t.hasOwnProperty(i)&&!r[i]&&(o[i]=t[i]);return o}};t.exports=o},{}],391:[function(e,t,n){"use strict";function r(){return this}function o(){var e=this._reactInternalComponent;return!!e}function i(){}function a(e,t){var n=this._reactInternalComponent;n&&(N.enqueueSetPropsInternal(n,e),t&&N.enqueueCallbackInternal(n,t))}function s(e,t){var n=this._reactInternalComponent;n&&(N.enqueueReplacePropsInternal(n,e),t&&N.enqueueCallbackInternal(n,t))}function u(e,t){t&&(null!=t.dangerouslySetInnerHTML&&(null!=t.children?D(!1):void 0,"object"==typeof t.dangerouslySetInnerHTML&&q in t.dangerouslySetInnerHTML?void 0:D(!1)),null!=t.style&&"object"!=typeof t.style?D(!1):void 0)}function c(e,t,n,r){var o=R.findReactContainerForID(e);if(o){var i=o.nodeType===W?o.ownerDocument:o;z(t,i)}r.getReactMountReady().enqueue(l,{id:e,registrationName:t,listener:n})}function l(){var e=this;E.putListener(e.id,e.registrationName,e.listener)}function f(){var e=this;e._rootNodeID?void 0:D(!1);var t=R.getNode(e._rootNodeID);switch(t?void 0:D(!1),e._tag){case"iframe":e._wrapperState.listeners=[E.trapBubbledEvent(x.topLevelTypes.topLoad,"load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in X)X.hasOwnProperty(n)&&e._wrapperState.listeners.push(E.trapBubbledEvent(x.topLevelTypes[n],X[n],t));break;case"img":e._wrapperState.listeners=[E.trapBubbledEvent(x.topLevelTypes.topError,"error",t),E.trapBubbledEvent(x.topLevelTypes.topLoad,"load",t)];break;case"form":e._wrapperState.listeners=[E.trapBubbledEvent(x.topLevelTypes.topReset,"reset",t),E.trapBubbledEvent(x.topLevelTypes.topSubmit,"submit",t)]}}function p(){w.mountReadyWrapper(this)}function d(){O.postUpdateWrapper(this)}function h(e){J.call($,e)||(Q.test(e)?void 0:D(!1),$[e]=!0)}function g(e,t){return e.indexOf("-")>=0||null!=t.is}function y(e){h(e),this._tag=e.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var m=e("./AutoFocusUtils"),v=e("./CSSPropertyOperations"),_=e("./DOMProperty"),b=e("./DOMPropertyOperations"),x=e("./EventConstants"),E=e("./ReactBrowserEventEmitter"),C=e("./ReactComponentBrowserEnvironment"),S=e("./ReactDOMButton"),w=e("./ReactDOMInput"),T=e("./ReactDOMOption"),O=e("./ReactDOMSelect"),P=e("./ReactDOMTextarea"),R=e("./ReactMount"),A=e("./ReactMultiChild"),M=e("./ReactPerf"),N=e("./ReactUpdateQueue"),I=e("./Object.assign"),L=e("./canDefineProperty"),k=e("./escapeTextContentForBrowser"),D=e("fbjs/lib/invariant"),j=(e("./isEventSupported"),e("fbjs/lib/keyOf")),F=e("./setInnerHTML"),V=e("./setTextContent"),U=(e("fbjs/lib/shallowEqual"),e("./validateDOMNesting"),e("fbjs/lib/warning"),E.deleteListener),z=E.listenTo,G=E.registrationNameModules,H={string:!0,number:!0},B=j({children:null}),Z=j({style:null}),q=j({__html:null}),W=1,X={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},Y={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},K={listing:!0,pre:!0,textarea:!0},Q=(I({menuitem:!0},Y),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),$={},J={}.hasOwnProperty;y.displayName="ReactDOMComponent",y.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(f,this);break;case"button":r=S.getNativeProps(this,r,n);break;case"input":w.mountWrapper(this,r,n),r=w.getNativeProps(this,r,n);break;case"option":T.mountWrapper(this,r,n),r=T.getNativeProps(this,r,n);break;case"select":O.mountWrapper(this,r,n),r=O.getNativeProps(this,r,n),n=O.processChildContext(this,r,n);break;case"textarea":P.mountWrapper(this,r,n),r=P.getNativeProps(this,r,n)}u(this,r);var o;if(t.useCreateElement){var i=n[R.ownerDocumentContextKey],a=i.createElement(this._currentElement.type);b.setAttributeForID(a,this._rootNodeID),R.getID(a),this._updateDOMProperties({},r,t,a),this._createInitialChildren(t,r,n,a),o=a}else{var s=this._createOpenTagMarkupAndPutListeners(t,r),c=this._createContentMarkup(t,r,n);o=!c&&Y[this._tag]?s+"/>":s+">"+c+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&t.getReactMountReady().enqueue(m.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(G.hasOwnProperty(r))o&&c(this._rootNodeID,r,o,e);else{r===Z&&(o&&(o=this._previousStyleCopy=I({},t.style)),o=v.createMarkupForStyles(o));var i=null;null!=this._tag&&g(this._tag,t)?r!==B&&(i=b.createMarkupForCustomAttribute(r,o)):i=b.createMarkupForProperty(r,o),i&&(n+=" "+i)}}if(e.renderToStaticMarkup)return n;var a=b.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;
25
- if(null!=o)null!=o.__html&&(r=o.__html);else{var i=H[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=k(i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return K[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&F(r,o.__html);else{var i=H[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)V(r,i);else if(null!=a)for(var s=this.mountChildren(a,e,n),u=0;u<s.length;u++)r.appendChild(s[u])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var o=t.props,i=this._currentElement.props;switch(this._tag){case"button":o=S.getNativeProps(this,o),i=S.getNativeProps(this,i);break;case"input":w.updateWrapper(this),o=w.getNativeProps(this,o),i=w.getNativeProps(this,i);break;case"option":o=T.getNativeProps(this,o),i=T.getNativeProps(this,i);break;case"select":o=O.getNativeProps(this,o),i=O.getNativeProps(this,i);break;case"textarea":P.updateWrapper(this),o=P.getNativeProps(this,o),i=P.getNativeProps(this,i)}u(this,i),this._updateDOMProperties(o,i,e,null),this._updateDOMChildren(o,i,e,r),!L&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=i),"select"===this._tag&&e.getReactMountReady().enqueue(d,this)},_updateDOMProperties:function(e,t,n,r){var o,i,a;for(o in e)if(!t.hasOwnProperty(o)&&e.hasOwnProperty(o))if(o===Z){var s=this._previousStyleCopy;for(i in s)s.hasOwnProperty(i)&&(a=a||{},a[i]="");this._previousStyleCopy=null}else G.hasOwnProperty(o)?e[o]&&U(this._rootNodeID,o):(_.properties[o]||_.isCustomAttribute(o))&&(r||(r=R.getNode(this._rootNodeID)),b.deleteValueForProperty(r,o));for(o in t){var u=t[o],l=o===Z?this._previousStyleCopy:e[o];if(t.hasOwnProperty(o)&&u!==l)if(o===Z)if(u?u=this._previousStyleCopy=I({},u):this._previousStyleCopy=null,l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(a=a||{},a[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(a=a||{},a[i]=u[i])}else a=u;else G.hasOwnProperty(o)?u?c(this._rootNodeID,o,u,n):l&&U(this._rootNodeID,o):g(this._tag,t)?(r||(r=R.getNode(this._rootNodeID)),o===B&&(u=null),b.setValueForAttribute(r,o,u)):(_.properties[o]||_.isCustomAttribute(o))&&(r||(r=R.getNode(this._rootNodeID)),null!=u?b.setValueForProperty(r,o,u):b.deleteValueForProperty(r,o))}a&&(r||(r=R.getNode(this._rootNodeID)),v.setValueForStyles(r,a))},_updateDOMChildren:function(e,t,n,r){var o=H[typeof e.children]?e.children:null,i=H[typeof t.children]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=null!=o?null:e.children,c=null!=i?null:t.children,l=null!=o||null!=a,f=null!=i||null!=s;null!=u&&null==c?this.updateChildren(null,n,r):l&&!f&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=s?a!==s&&this.updateMarkup(""+s):null!=c&&this.updateChildren(c,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var e=this._wrapperState.listeners;if(e)for(var t=0;t<e.length;t++)e[t].remove();break;case"input":w.unmountWrapper(this);break;case"html":case"head":case"body":D(!1)}if(this.unmountChildren(),E.deleteAllListeners(this._rootNodeID),C.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var n=this._nodeWithLegacyProperties;n._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var e=R.getNode(this._rootNodeID);e._reactInternalComponent=this,e.getDOMNode=r,e.isMounted=o,e.setState=i,e.replaceState=i,e.forceUpdate=i,e.setProps=a,e.replaceProps=s,e.props=this._currentElement.props,this._nodeWithLegacyProperties=e}return this._nodeWithLegacyProperties}},M.measureMethods(y,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),I(y.prototype,y.Mixin,A.Mixin),t.exports=y},{"./AutoFocusUtils":353,"./CSSPropertyOperations":356,"./DOMProperty":361,"./DOMPropertyOperations":362,"./EventConstants":366,"./Object.assign":374,"./ReactBrowserEventEmitter":378,"./ReactComponentBrowserEnvironment":385,"./ReactDOMButton":390,"./ReactDOMInput":395,"./ReactDOMOption":396,"./ReactDOMSelect":397,"./ReactDOMTextarea":401,"./ReactMount":419,"./ReactMultiChild":420,"./ReactPerf":425,"./ReactUpdateQueue":439,"./canDefineProperty":461,"./escapeTextContentForBrowser":464,"./isEventSupported":476,"./setInnerHTML":481,"./setTextContent":482,"./validateDOMNesting":485,"fbjs/lib/invariant":502,"fbjs/lib/keyOf":506,"fbjs/lib/shallowEqual":511,"fbjs/lib/warning":513}],392:[function(e,t,n){"use strict";function r(e){return o.createFactory(e)}var o=e("./ReactElement"),i=(e("./ReactElementValidator"),e("fbjs/lib/mapObject")),a=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=a},{"./ReactElement":406,"./ReactElementValidator":407,"fbjs/lib/mapObject":507}],393:[function(e,t,n){"use strict";var r={useCreateElement:!1};t.exports=r},{}],394:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),o=e("./DOMPropertyOperations"),i=e("./ReactMount"),a=e("./ReactPerf"),s=e("fbjs/lib/invariant"),u={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},c={updatePropertyByID:function(e,t,n){var r=i.getNode(e);u.hasOwnProperty(t)?s(!1):void 0,null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=i.getNode(e);r.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=i.getNode(e[n].parentID);r.processUpdates(e,t)}};a.measureMethods(c,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=c},{"./DOMChildrenOperations":360,"./DOMPropertyOperations":362,"./ReactMount":419,"./ReactPerf":425,"fbjs/lib/invariant":502}],395:[function(e,t,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);u.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var i=s.getNode(this._rootNodeID),c=i;c.parentNode;)c=c.parentNode;for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<p.length;d++){var h=p[d];if(h!==i&&h.form===i.form){var g=s.getID(h);g?void 0:l(!1);var y=f[g];y?void 0:l(!1),u.asap(r,y)}}}return n}var i=e("./ReactDOMIDOperations"),a=e("./LinkedValueUtils"),s=e("./ReactMount"),u=e("./ReactUpdates"),c=e("./Object.assign"),l=e("fbjs/lib/invariant"),f={},p={getNativeProps:function(e,t,n){var r=a.getValue(t),o=a.getChecked(t),i=c({},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:e._wrapperState.initialValue,checked:null!=o?o:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange});return i},mountWrapper:function(e,t){var n=t.defaultValue;e._wrapperState={initialChecked:t.defaultChecked||!1,initialValue:null!=n?n:null,onChange:o.bind(e)}},mountReadyWrapper:function(e){f[e._rootNodeID]=e},unmountWrapper:function(e){delete f[e._rootNodeID]},updateWrapper:function(e){var t=e._currentElement.props,n=t.checked;null!=n&&i.updatePropertyByID(e._rootNodeID,"checked",n||!1);var r=a.getValue(t);null!=r&&i.updatePropertyByID(e._rootNodeID,"value",""+r)}};t.exports=p},{"./LinkedValueUtils":373,"./Object.assign":374,"./ReactDOMIDOperations":394,"./ReactMount":419,"./ReactUpdates":440,"fbjs/lib/invariant":502}],396:[function(e,t,n){"use strict";var r=e("./ReactChildren"),o=e("./ReactDOMSelect"),i=e("./Object.assign"),a=(e("fbjs/lib/warning"),o.valueContextKey),s={mountWrapper:function(e,t,n){var r=n[a],o=null;if(null!=r)if(o=!1,Array.isArray(r)){for(var i=0;i<r.length;i++)if(""+r[i]==""+t.value){o=!0;break}}else o=""+r==""+t.value;e._wrapperState={selected:o}},getNativeProps:function(e,t,n){var o=i({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(o.selected=e._wrapperState.selected);var a="";return r.forEach(t.children,function(e){null!=e&&("string"!=typeof e&&"number"!=typeof e||(a+=e))}),a&&(o.children=a),o}};t.exports=s},{"./Object.assign":374,"./ReactChildren":382,"./ReactDOMSelect":397,"fbjs/lib/warning":513}],397:[function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=a.getValue(e);null!=t&&o(this,Boolean(e.multiple),t)}}function o(e,t,n){var r,o,i=s.getNode(e._rootNodeID).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return this._wrapperState.pendingUpdate=!0,u.asap(r,this),n}var a=e("./LinkedValueUtils"),s=e("./ReactMount"),u=e("./ReactUpdates"),c=e("./Object.assign"),l=(e("fbjs/lib/warning"),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),f={valueContextKey:l,getNativeProps:function(e,t,n){return c({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){var n=a.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,onChange:i.bind(e),wasMultiple:Boolean(t.multiple)}},processChildContext:function(e,t,n){var r=c({},n);return r[l]=e._wrapperState.initialValue,r},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=a.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,o(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?o(e,Boolean(t.multiple),t.defaultValue):o(e,Boolean(t.multiple),t.multiple?[]:""))}};t.exports=f},{"./LinkedValueUtils":373,"./Object.assign":374,"./ReactMount":419,"./ReactUpdates":440,"fbjs/lib/warning":513}],398:[function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),c=u?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var f=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),p=f?0:l.toString().length,d=p+c,h=document.createRange();h.setStart(n,o),h.setEnd(i,a);var g=h.collapsed;return{start:g?d:p,end:g?p:d}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i="undefined"==typeof t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=c(e,o),u=c(e,i);if(s&&u){var f=document.createRange();f.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(u.node,u.offset)):(f.setEnd(u.node,u.offset),n.addRange(f))}}}var u=e("fbjs/lib/ExecutionEnvironment"),c=e("./getNodeForCharacterOffset"),l=e("./getTextContentAccessor"),f=u.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:s};t.exports=p},{"./getNodeForCharacterOffset":473,"./getTextContentAccessor":474,"fbjs/lib/ExecutionEnvironment":488}],399:[function(e,t,n){"use strict";var r=e("./ReactDefaultInjection"),o=e("./ReactServerRendering"),i=e("./ReactVersion");r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};t.exports=a},{"./ReactDefaultInjection":403,"./ReactServerRendering":434,"./ReactVersion":441}],400:[function(e,t,n){"use strict";var r=e("./DOMChildrenOperations"),o=e("./DOMPropertyOperations"),i=e("./ReactComponentBrowserEnvironment"),a=e("./ReactMount"),s=e("./Object.assign"),u=e("./escapeTextContentForBrowser"),c=e("./setTextContent"),l=(e("./validateDOMNesting"),function(e){});s(l.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){if(this._rootNodeID=e,t.useCreateElement){var r=n[a.ownerDocumentContextKey],i=r.createElement("span");return o.setAttributeForID(i,e),a.getID(i),c(i,this._stringText),i}var s=u(this._stringText);return t.renderToStaticMarkup?s:"<span "+o.createMarkupForID(e)+">"+s+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=l},{"./DOMChildrenOperations":360,"./DOMPropertyOperations":362,"./Object.assign":374,"./ReactComponentBrowserEnvironment":385,"./ReactMount":419,"./escapeTextContentForBrowser":464,"./setTextContent":482,"./validateDOMNesting":485}],401:[function(e,t,n){"use strict";function r(){this._rootNodeID&&l.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=i.executeOnChange(t,e);return s.asap(r,this),n}var i=e("./LinkedValueUtils"),a=e("./ReactDOMIDOperations"),s=e("./ReactUpdates"),u=e("./Object.assign"),c=e("fbjs/lib/invariant"),l=(e("fbjs/lib/warning"),{getNativeProps:function(e,t,n){null!=t.dangerouslySetInnerHTML?c(!1):void 0;var r=u({},t,{defaultValue:void 0,value:void 0,children:e._wrapperState.initialValue,onChange:e._wrapperState.onChange});return r},mountWrapper:function(e,t){var n=t.defaultValue,r=t.children;null!=r&&(null!=n?c(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:c(!1),r=r[0]),n=""+r),null==n&&(n="");var a=i.getValue(t);e._wrapperState={initialValue:""+(null!=a?a:n),onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=i.getValue(t);null!=n&&a.updatePropertyByID(e._rootNodeID,"value",""+n)}});t.exports=l},{"./LinkedValueUtils":373,"./Object.assign":374,"./ReactDOMIDOperations":394,"./ReactUpdates":440,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],402:[function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=e("./ReactUpdates"),i=e("./Transaction"),a=e("./Object.assign"),s=e("fbjs/lib/emptyFunction"),u={initialize:s,close:function(){p.isBatchingUpdates=!1}},c={initialize:s,close:o.flushBatchedUpdates.bind(o)},l=[c,u];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return l}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?e(t,n,r,o,i):f.perform(e,null,t,n,r,o,i)}};t.exports=p},{"./Object.assign":374,"./ReactUpdates":440,"./Transaction":457,"fbjs/lib/emptyFunction":494}],403:[function(e,t,n){"use strict";function r(){if(!w){w=!0,m.EventEmitter.injectReactEventListener(y),m.EventPluginHub.injectEventPluginOrder(s),m.EventPluginHub.injectInstanceHandle(v),m.EventPluginHub.injectMount(_),m.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:u,ChangeEventPlugin:i,SelectEventPlugin:x,BeforeInputEventPlugin:o}),m.NativeComponent.injectGenericComponentClass(h),m.NativeComponent.injectTextComponentClass(g),m.Class.injectMixin(f),m.DOMProperty.injectDOMPropertyConfig(l),m.DOMProperty.injectDOMPropertyConfig(S),m.EmptyComponent.injectEmptyComponent("noscript"),m.Updates.injectReconcileTransaction(b),m.Updates.injectBatchingStrategy(d),m.RootIndex.injectCreateReactRootIndex(c.canUseDOM?a.createReactRootIndex:E.createReactRootIndex),m.Component.injectEnvironment(p)}}var o=e("./BeforeInputEventPlugin"),i=e("./ChangeEventPlugin"),a=e("./ClientReactRootIndex"),s=e("./DefaultEventPluginOrder"),u=e("./EnterLeaveEventPlugin"),c=e("fbjs/lib/ExecutionEnvironment"),l=e("./HTMLDOMPropertyConfig"),f=e("./ReactBrowserComponentMixin"),p=e("./ReactComponentBrowserEnvironment"),d=e("./ReactDefaultBatchingStrategy"),h=e("./ReactDOMComponent"),g=e("./ReactDOMTextComponent"),y=e("./ReactEventListener"),m=e("./ReactInjection"),v=e("./ReactInstanceHandles"),_=e("./ReactMount"),b=e("./ReactReconcileTransaction"),x=e("./SelectEventPlugin"),E=e("./ServerReactRootIndex"),C=e("./SimpleEventPlugin"),S=e("./SVGDOMPropertyConfig"),w=!1;t.exports={inject:r}},{"./BeforeInputEventPlugin":354,"./ChangeEventPlugin":358,"./ClientReactRootIndex":359,"./DefaultEventPluginOrder":364,"./EnterLeaveEventPlugin":365,"./HTMLDOMPropertyConfig":372,"./ReactBrowserComponentMixin":377,"./ReactComponentBrowserEnvironment":385,"./ReactDOMComponent":391,"./ReactDOMTextComponent":400,"./ReactDefaultBatchingStrategy":402,"./ReactDefaultPerf":404,"./ReactEventListener":412,"./ReactInjection":413,"./ReactInstanceHandles":415,"./ReactMount":419,"./ReactReconcileTransaction":429,"./SVGDOMPropertyConfig":442,"./SelectEventPlugin":443,"./ServerReactRootIndex":444,"./SimpleEventPlugin":445,"fbjs/lib/ExecutionEnvironment":488}],404:[function(e,t,n){"use strict";function r(e){return Math.floor(100*e)/100}function o(e,t,n){e[t]=(e[t]||0)+n}var i=e("./DOMProperty"),a=e("./ReactDefaultPerfAnalysis"),s=e("./ReactMount"),u=e("./ReactPerf"),c=e("fbjs/lib/performanceNow"),l={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){l._injected||u.injection.injectMeasure(l.measure),l._allMeasurements.length=0,u.enableMeasure=!0},stop:function(){u.enableMeasure=!1},getLastMeasurements:function(){return l._allMeasurements},printExclusive:function(e){e=e||l._allMeasurements;var t=a.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":r(e.inclusive),"Exclusive mount time (ms)":r(e.exclusive),"Exclusive render time (ms)":r(e.render),"Mount time per instance (ms)":r(e.exclusive/e.count),"Render time per instance (ms)":r(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||l._allMeasurements;var t=a.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":r(e.time),Instances:e.count}})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){var t=a.getInclusiveSummary(e,!0);return t.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||l._allMeasurements,console.table(l.getMeasurementsSummaryMap(e)),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||l._allMeasurements;var t=a.getDOMSummary(e);console.table(t.map(function(e){var t={};return t[i.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",a.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,r){var o=l._allMeasurements[l._allMeasurements.length-1].writes;o[e]=o[e]||[],o[e].push({type:t,time:n,args:r})},measure:function(e,t,n){return function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];var u,f,p;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)return l._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0,created:{}}),p=c(),f=n.apply(this,i),l._allMeasurements[l._allMeasurements.length-1].totalTime=c()-p,f;if("_mountImageIntoNode"===t||"ReactBrowserEventEmitter"===e||"ReactDOMIDOperations"===e||"CSSPropertyOperations"===e||"DOMChildrenOperations"===e||"DOMPropertyOperations"===e){if(p=c(),f=n.apply(this,i),u=c()-p,"_mountImageIntoNode"===t){var d=s.getID(i[1]);l._recordWrite(d,t,u,i[0])}else if("dangerouslyProcessChildrenUpdates"===t)i[0].forEach(function(e){var t={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=i[1][e.markupIndex]),l._recordWrite(e.parentID,e.type,u,t)});else{var h=i[0];"object"==typeof h&&(h=s.getID(i[0])),l._recordWrite(h,t,u,Array.prototype.slice.call(i,1))}return f}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)return n.apply(this,i);if(this._currentElement.type===s.TopLevelWrapper)return n.apply(this,i);var g="mountComponent"===t?i[0]:this._rootNodeID,y="_renderValidatedComponent"===t,m="mountComponent"===t,v=l._mountStack,_=l._allMeasurements[l._allMeasurements.length-1];if(y?o(_.counts,g,1):m&&(_.created[g]=!0,v.push(0)),p=c(),f=n.apply(this,i),u=c()-p,y)o(_.render,g,u);else if(m){var b=v.pop();v[v.length-1]+=u,o(_.exclusive,g,u-b),o(_.inclusive,g,u)}else o(_.inclusive,g,u);return _.displayNames[g]={current:this.getName(),owner:this._currentElement._owner?this._currentElement._owner.getName():"<root>"},f}}};t.exports=l},{"./DOMProperty":361,"./ReactDefaultPerfAnalysis":405,"./ReactMount":419,"./ReactPerf":425,"fbjs/lib/performanceNow":510}],405:[function(e,t,n){"use strict";function r(e){for(var t=0,n=0;n<e.length;n++){var r=e[n];t+=r.totalTime}return t}function o(e){var t=[];return e.forEach(function(e){Object.keys(e.writes).forEach(function(n){e.writes[n].forEach(function(e){t.push({id:n,type:l[e.type]||e.type,args:e.args})})})}),t}function i(e){for(var t,n={},r=0;r<e.length;r++){var o=e[r],i=u({},o.exclusive,o.inclusive);for(var a in i)t=o.displayNames[a].current,n[t]=n[t]||{componentName:t,inclusive:0,exclusive:0,render:0,count:0},o.render[a]&&(n[t].render+=o.render[a]),o.exclusive[a]&&(n[t].exclusive+=o.exclusive[a]),o.inclusive[a]&&(n[t].inclusive+=o.inclusive[a]),o.counts[a]&&(n[t].count+=o.counts[a])}var s=[];for(t in n)n[t].exclusive>=c&&s.push(n[t]);return s.sort(function(e,t){return t.exclusive-e.exclusive}),s}function a(e,t){for(var n,r={},o=0;o<e.length;o++){var i,a=e[o],l=u({},a.exclusive,a.inclusive);t&&(i=s(a));for(var f in l)if(!t||i[f]){var p=a.displayNames[f];n=p.owner+" > "+p.current,r[n]=r[n]||{componentName:n,time:0,count:0},a.inclusive[f]&&(r[n].time+=a.inclusive[f]),a.counts[f]&&(r[n].count+=a.counts[f])}}var d=[];for(n in r)r[n].time>=c&&d.push(r[n]);return d.sort(function(e,t){return t.time-e.time}),d}function s(e){var t={},n=Object.keys(e.writes),r=u({},e.exclusive,e.inclusive);for(var o in r){for(var i=!1,a=0;a<n.length;a++)if(0===n[a].indexOf(o)){i=!0;break}e.created[o]&&(i=!0),!i&&e.counts[o]>0&&(t[o]=!0)}return t}var u=e("./Object.assign"),c=1.2,l={_mountImageIntoNode:"set innerHTML",INSERT_MARKUP:"set innerHTML",MOVE_EXISTING:"move",REMOVE_NODE:"remove",SET_MARKUP:"set innerHTML",TEXT_CONTENT:"set textContent",setValueForProperty:"update attribute",setValueForAttribute:"update attribute",deleteValueForProperty:"remove attribute",setValueForStyles:"update styles",replaceNodeWithMarkup:"replace",updateTextContent:"set textContent"},f={getExclusiveSummary:i,getInclusiveSummary:a,getDOMSummary:o,getTotalTime:r};t.exports=f},{"./Object.assign":374}],406:[function(e,t,n){"use strict";var r=e("./ReactCurrentOwner"),o=e("./Object.assign"),i=(e("./canDefineProperty"),"function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103),a={key:!0,ref:!0,__self:!0,__source:!0},s=function(e,t,n,r,o,a,s){var u={$$typeof:i,type:e,key:t,ref:n,props:s,_owner:a};return u};s.createElement=function(e,t,n){var o,i={},u=null,c=null,l=null,f=null;if(null!=t){c=void 0===t.ref?null:t.ref,u=void 0===t.key?null:""+t.key,l=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source;for(o in t)t.hasOwnProperty(o)&&!a.hasOwnProperty(o)&&(i[o]=t[o])}var p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var d=Array(p),h=0;h<p;h++)d[h]=arguments[h+2];i.children=d}if(e&&e.defaultProps){var g=e.defaultProps;for(o in g)"undefined"==typeof i[o]&&(i[o]=g[o])}return s(e,u,c,l,f,r.current,i)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceKey=function(e,t){var n=s(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},s.cloneAndReplaceProps=function(e,t){var n=s(e.type,e.key,e.ref,e._self,e._source,e._owner,t);return n},s.cloneElement=function(e,t,n){var i,u=o({},e.props),c=e.key,l=e.ref,f=e._self,p=e._source,d=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,d=r.current),void 0!==t.key&&(c=""+t.key);for(i in t)t.hasOwnProperty(i)&&!a.hasOwnProperty(i)&&(u[i]=t[i])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var g=Array(h),y=0;y<h;y++)g[y]=arguments[y+2];u.children=g}return s(e.type,c,l,f,p,d,u)},s.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.exports=s},{"./Object.assign":374,"./ReactCurrentOwner":388,"./canDefineProperty":461}],407:[function(e,t,n){"use strict";function r(){if(f.current){var e=f.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;i("uniqueKey",e,t)}}function i(e,t,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=h[e]||(h[e]={});if(a[o])return null;a[o]=!0;var s={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return t&&t._owner&&t._owner!==f.current&&(s.childOwner=" It was passed a child from "+t._owner.getName()+"."),s}function a(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];c.isValidElement(r)&&o(r,t)}else if(c.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var i=p(e);if(i&&i!==e.entries)for(var a,s=i.call(e);!(a=s.next()).done;)c.isValidElement(a.value)&&o(a.value,t)}}function s(e,t,n,o){for(var i in t)if(t.hasOwnProperty(i)){var a;try{"function"!=typeof t[i]?d(!1):void 0,a=t[i](n,i,e,o)}catch(e){a=e}if(a instanceof Error&&!(a.message in g)){g[a.message]=!0;r()}}}function u(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&s(n,t.propTypes,e.props,l.prop),"function"==typeof t.getDefaultProps}}var c=e("./ReactElement"),l=e("./ReactPropTypeLocations"),f=(e("./ReactPropTypeLocationNames"),e("./ReactCurrentOwner")),p=(e("./canDefineProperty"),e("./getIteratorFn")),d=e("fbjs/lib/invariant"),h=(e("fbjs/lib/warning"),{}),g={},y={createElement:function(e,t,n){var r="string"==typeof e||"function"==typeof e,o=c.createElement.apply(this,arguments);if(null==o)return o;if(r)for(var i=2;i<arguments.length;i++)a(arguments[i],e);return u(o),o},createFactory:function(e){var t=y.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=c.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],r.type);return u(r),r}};t.exports=y},{"./ReactCurrentOwner":388,"./ReactElement":406,"./ReactPropTypeLocationNames":426,"./ReactPropTypeLocations":427,"./canDefineProperty":461,"./getIteratorFn":472,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],408:[function(e,t,n){"use strict";function r(){a.registerNullComponentID(this._rootNodeID)}var o,i=e("./ReactElement"),a=e("./ReactEmptyComponentRegistry"),s=e("./ReactReconciler"),u=e("./Object.assign"),c={injectEmptyComponent:function(e){o=i.createElement(e)}},l=function(e){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=e(o)};u(l.prototype,{construct:function(e){},mountComponent:function(e,t,n){return t.getReactMountReady().enqueue(r,this),this._rootNodeID=e,s.mountComponent(this._renderedComponent,e,t,n)},receiveComponent:function(){},unmountComponent:function(e,t,n){s.unmountComponent(this._renderedComponent),a.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),l.injection=c,t.exports=l},{"./Object.assign":374,"./ReactElement":406,"./ReactEmptyComponentRegistry":409,"./ReactReconciler":430}],409:[function(e,t,n){"use strict";function r(e){return!!a[e]}function o(e){a[e]=!0}function i(e){delete a[e]}var a={},s={isNullComponentID:r,registerNullComponentID:o,deregisterNullComponentID:i};t.exports=s},{}],410:[function(e,t,n){"use strict";function r(e,t,n,r){try{return t(n,r)}catch(e){return void(null===o&&(o=e))}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};t.exports=i},{}],411:[function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=e("./EventPluginHub"),i={handleTopLevel:function(e,t,n,i,a){var s=o.extractEvents(e,t,n,i,a);r(s)}};t.exports=i},{"./EventPluginHub":367}],412:[function(e,t,n){"use strict";function r(e){var t=p.getID(e),n=f.getReactRootIDFromNodeID(t),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){a(e)}function a(e){for(var t=p.getFirstReactDOM(g(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var o=0;o<e.ancestors.length;o++){t=e.ancestors[o];var i=p.getID(t)||"";m._handleTopLevel(e.topLevelType,t,i,e.nativeEvent,g(e.nativeEvent))}}function s(e){var t=y(window);e(t)}var u=e("fbjs/lib/EventListener"),c=e("fbjs/lib/ExecutionEnvironment"),l=e("./PooledClass"),f=e("./ReactInstanceHandles"),p=e("./ReactMount"),d=e("./ReactUpdates"),h=e("./Object.assign"),g=e("./getEventTarget"),y=e("fbjs/lib/getUnboundedScrollPosition");h(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(o,l.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(e){m._handleTopLevel=e},setEnabled:function(e){m._enabled=!!e},isEnabled:function(){return m._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?u.listen(r,t,m.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?u.capture(r,t,m.dispatchEvent.bind(null,e)):null;
26
- },monitorScrollValue:function(e){var t=s.bind(null,e);u.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(m._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=m},{"./Object.assign":374,"./PooledClass":375,"./ReactInstanceHandles":415,"./ReactMount":419,"./ReactUpdates":440,"./getEventTarget":471,"fbjs/lib/EventListener":487,"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/getUnboundedScrollPosition":499}],413:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=e("./EventPluginHub"),i=e("./ReactComponentEnvironment"),a=e("./ReactClass"),s=e("./ReactEmptyComponent"),u=e("./ReactBrowserEventEmitter"),c=e("./ReactNativeComponent"),l=e("./ReactPerf"),f=e("./ReactRootIndex"),p=e("./ReactUpdates"),d={Component:i.injection,Class:a.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventEmitter:u.injection,NativeComponent:c.injection,Perf:l.injection,RootIndex:f.injection,Updates:p.injection};t.exports=d},{"./DOMProperty":361,"./EventPluginHub":367,"./ReactBrowserEventEmitter":378,"./ReactClass":383,"./ReactComponentEnvironment":386,"./ReactEmptyComponent":408,"./ReactNativeComponent":422,"./ReactPerf":425,"./ReactRootIndex":432,"./ReactUpdates":440}],414:[function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=e("./ReactDOMSelection"),i=e("fbjs/lib/containsNode"),a=e("fbjs/lib/focusNode"),s=e("fbjs/lib/getActiveElement"),u={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};t.exports=u},{"./ReactDOMSelection":398,"fbjs/lib/containsNode":491,"fbjs/lib/focusNode":496,"fbjs/lib/getActiveElement":497}],415:[function(e,t,n){"use strict";function r(e){return d+e.toString(36)}function o(e,t){return e.charAt(t)===d||t===e.length}function i(e){return""===e||e.charAt(0)===d&&e.charAt(e.length-1)!==d}function a(e,t){return 0===t.indexOf(e)&&o(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(d)):""}function u(e,t){if(i(e)&&i(t)?void 0:p(!1),a(e,t)?void 0:p(!1),e===t)return e;var n,r=e.length+h;for(n=r;n<t.length&&!o(t,n);n++);return t.substr(0,n)}function c(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,a=0;a<=n;a++)if(o(e,a)&&o(t,a))r=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,r);return i(s)?void 0:p(!1),s}function l(e,t,n,r,o,i){e=e||"",t=t||"",e===t?p(!1):void 0;var c=a(t,e);c||a(e,t)?void 0:p(!1);for(var l=0,f=c?s:u,d=e;;d=f(d,t)){var h;if(o&&d===e||i&&d===t||(h=n(d,c,r)),h===!1||d===t)break;l++<g?void 0:p(!1)}}var f=e("./ReactRootIndex"),p=e("fbjs/lib/invariant"),d=".",h=d.length,g=1e4,y={createReactRootID:function(){return r(f.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===d&&e.length>1){var t=e.indexOf(d,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,o){var i=c(e,t);i!==e&&l(e,i,n,r,!1,!0),i!==t&&l(i,t,n,o,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(l("",e,t,n,!0,!1),l(e,"",t,n,!1,!0))},traverseTwoPhaseSkipTarget:function(e,t,n){e&&(l("",e,t,n,!0,!0),l(e,"",t,n,!0,!0))},traverseAncestors:function(e,t,n){l("",e,t,n,!0,!1)},getFirstCommonAncestorID:c,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:d};t.exports=y},{"./ReactRootIndex":432,"fbjs/lib/invariant":502}],416:[function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};t.exports=r},{}],417:[function(e,t,n){"use strict";var r=e("./ReactChildren"),o=e("./ReactComponent"),i=e("./ReactClass"),a=e("./ReactDOMFactories"),s=e("./ReactElement"),u=(e("./ReactElementValidator"),e("./ReactPropTypes")),c=e("./ReactVersion"),l=e("./Object.assign"),f=e("./onlyChild"),p=s.createElement,d=s.createFactory,h=s.cloneElement,g={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,createElement:p,cloneElement:h,isValidElement:s.isValidElement,PropTypes:u,createClass:i.createClass,createFactory:d,createMixin:function(e){return e},DOM:a,version:c,__spread:l};t.exports=g},{"./Object.assign":374,"./ReactChildren":382,"./ReactClass":383,"./ReactComponent":384,"./ReactDOMFactories":392,"./ReactElement":406,"./ReactElementValidator":407,"./ReactPropTypes":428,"./ReactVersion":441,"./onlyChild":478}],418:[function(e,t,n){"use strict";var r=e("./adler32"),o=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};t.exports=i},{"./adler32":460}],419:[function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===G?e.documentElement:e.firstChild:null}function i(e){var t=o(e);return t&&K.getID(t)}function a(e){var t=s(e);if(t)if(U.hasOwnProperty(t)){var n=U[t];n!==e&&(f(n,t)?D(!1):void 0,U[t]=e)}else U[t]=e;return t}function s(e){return e&&e.getAttribute&&e.getAttribute(V)||""}function u(e,t){var n=s(e);n!==t&&delete U[n],e.setAttribute(V,t),U[t]=e}function c(e){return U.hasOwnProperty(e)&&f(U[e],e)||(U[e]=K.findReactNodeByID(e)),U[e]}function l(e){var t=T.get(e)._rootNodeID;return S.isNullComponentID(t)?null:(U.hasOwnProperty(t)&&f(U[t],t)||(U[t]=K.findReactNodeByID(t)),U[t])}function f(e,t){if(e){s(e)!==t?D(!1):void 0;var n=K.findReactContainerForID(t);if(n&&L(n,e))return!0}return!1}function p(e){delete U[e]}function d(e){var t=U[e];return!(!t||!f(t,e))&&void(X=t)}function h(e){X=null,w.traverseAncestors(e,d);var t=X;return X=null,t}function g(e,t,n,r,o,i){E.useCreateElement&&(i=N({},i),n.nodeType===G?i[B]=n:i[B]=n.ownerDocument);var a=R.mountComponent(e,t,r,i);e._renderedComponent._topLevelWrapper=e,K._mountImageIntoNode(a,n,o,r)}function y(e,t,n,r,o){var i=M.ReactReconcileTransaction.getPooled(r);i.perform(g,null,e,t,n,i,r,o),M.ReactReconcileTransaction.release(i)}function m(e,t){for(R.unmountComponent(e),t.nodeType===G&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function v(e){var t=i(e);return!!t&&t!==w.getReactRootIDFromNodeID(t)}function _(e){for(;e&&e.parentNode!==e;e=e.parentNode)if(1===e.nodeType){var t=s(e);if(t){var n,r=w.getReactRootIDFromNodeID(t),o=e;do if(n=s(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===q[r])return e}}return null}var b=e("./DOMProperty"),x=e("./ReactBrowserEventEmitter"),E=(e("./ReactCurrentOwner"),e("./ReactDOMFeatureFlags")),C=e("./ReactElement"),S=e("./ReactEmptyComponentRegistry"),w=e("./ReactInstanceHandles"),T=e("./ReactInstanceMap"),O=e("./ReactMarkupChecksum"),P=e("./ReactPerf"),R=e("./ReactReconciler"),A=e("./ReactUpdateQueue"),M=e("./ReactUpdates"),N=e("./Object.assign"),I=e("fbjs/lib/emptyObject"),L=e("fbjs/lib/containsNode"),k=e("./instantiateReactComponent"),D=e("fbjs/lib/invariant"),j=e("./setInnerHTML"),F=e("./shouldUpdateReactComponent"),V=(e("./validateDOMNesting"),e("fbjs/lib/warning"),b.ID_ATTRIBUTE_NAME),U={},z=1,G=9,H=11,B="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),Z={},q={},W=[],X=null,Y=function(){};Y.prototype.isReactComponent={},Y.prototype.render=function(){return this.props};var K={TopLevelWrapper:Y,_instancesByReactRootID:Z,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return K.scrollMonitor(n,function(){A.enqueueElementInternal(e,t),r&&A.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){!t||t.nodeType!==z&&t.nodeType!==G&&t.nodeType!==H?D(!1):void 0,x.ensureScrollValueMonitoring();var n=K.registerContainer(t);return Z[n]=e,n},_renderNewRootComponent:function(e,t,n,r){var o=k(e,null),i=K._registerComponent(o,t);return M.batchedUpdates(y,o,i,t,n,r),o},renderSubtreeIntoContainer:function(e,t,n,r){return null==e||null==e._reactInternalInstance?D(!1):void 0,K._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){C.isValidElement(t)?void 0:D(!1);var a=new C(Y,null,null,null,null,null,t),u=Z[i(n)];if(u){var c=u._currentElement,l=c.props;if(F(l,t)){var f=u._renderedComponent.getPublicInstance(),p=r&&function(){r.call(f)};return K._updateRootComponent(u,a,n,p),f}K.unmountComponentAtNode(n)}var d=o(n),h=d&&!!s(d),g=v(n),y=h&&!u&&!g,m=K._renderNewRootComponent(a,n,y,null!=e?e._reactInternalInstance._processChildContext(e._reactInternalInstance._context):I)._renderedComponent.getPublicInstance();return r&&r.call(m),m},render:function(e,t,n){return K._renderSubtreeIntoContainer(null,e,t,n)},registerContainer:function(e){var t=i(e);return t&&(t=w.getReactRootIDFromNodeID(t)),t||(t=w.createReactRootID()),q[t]=e,t},unmountComponentAtNode:function(e){!e||e.nodeType!==z&&e.nodeType!==G&&e.nodeType!==H?D(!1):void 0;var t=i(e),n=Z[t];if(!n){var r=(v(e),s(e));r&&r===w.getReactRootIDFromNodeID(r);return!1}return M.batchedUpdates(m,n,e),delete Z[t],delete q[t],!0},findReactContainerForID:function(e){var t=w.getReactRootIDFromNodeID(e),n=q[t];return n},findReactNodeByID:function(e){var t=K.findReactContainerForID(e);return K.findComponentRoot(t,e)},getFirstReactDOM:function(e){return _(e)},findComponentRoot:function(e,t){var n=W,r=0,o=h(t)||e;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var i,a=n[r++];a;){var s=K.getID(a);s?t===s?i=a:w.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,D(!1)},_mountImageIntoNode:function(e,t,n,i){if(!t||t.nodeType!==z&&t.nodeType!==G&&t.nodeType!==H?D(!1):void 0,n){var a=o(t);if(O.canReuseMarkup(e,a))return;var s=a.getAttribute(O.CHECKSUM_ATTR_NAME);a.removeAttribute(O.CHECKSUM_ATTR_NAME);var u=a.outerHTML;a.setAttribute(O.CHECKSUM_ATTR_NAME,s);var c=e,l=r(c,u);" (client) "+c.substring(l-20,l+20)+"\n (server) "+u.substring(l-20,l+20);t.nodeType===G?D(!1):void 0}if(t.nodeType===G?D(!1):void 0,i.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);t.appendChild(e)}else j(t,e)},ownerDocumentContextKey:B,getReactRootID:i,getID:a,setID:u,getNode:c,getNodeFromInstance:l,isValid:f,purgeID:p};P.measureMethods(K,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=K},{"./DOMProperty":361,"./Object.assign":374,"./ReactBrowserEventEmitter":378,"./ReactCurrentOwner":388,"./ReactDOMFeatureFlags":393,"./ReactElement":406,"./ReactEmptyComponentRegistry":409,"./ReactInstanceHandles":415,"./ReactInstanceMap":416,"./ReactMarkupChecksum":418,"./ReactPerf":425,"./ReactReconciler":430,"./ReactUpdateQueue":439,"./ReactUpdates":440,"./instantiateReactComponent":475,"./setInnerHTML":481,"./shouldUpdateReactComponent":483,"./validateDOMNesting":485,"fbjs/lib/containsNode":491,"fbjs/lib/emptyObject":495,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],420:[function(e,t,n){"use strict";function r(e,t,n){y.push({parentID:e,parentNode:null,type:f.INSERT_MARKUP,markupIndex:m.push(t)-1,content:null,fromIndex:null,toIndex:n})}function o(e,t,n){y.push({parentID:e,parentNode:null,type:f.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:t,toIndex:n})}function i(e,t){y.push({parentID:e,parentNode:null,type:f.REMOVE_NODE,markupIndex:null,content:null,fromIndex:t,toIndex:null})}function a(e,t){y.push({parentID:e,parentNode:null,type:f.SET_MARKUP,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function s(e,t){y.push({parentID:e,parentNode:null,type:f.TEXT_CONTENT,markupIndex:null,content:t,fromIndex:null,toIndex:null})}function u(){y.length&&(l.processChildrenUpdates(y,m),c())}function c(){y.length=0,m.length=0}var l=e("./ReactComponentEnvironment"),f=e("./ReactMultiChildUpdateTypes"),p=(e("./ReactCurrentOwner"),e("./ReactReconciler")),d=e("./ReactChildReconciler"),h=e("./flattenChildren"),g=0,y=[],m=[],v={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){return d.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r){var o;return o=h(t),d.updateChildren(e,o,n,r)},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,c=p.mountComponent(s,u,t,n);s._mountIndex=i++,o.push(c)}return o},updateTextContent:function(e){g++;var t=!0;try{var n=this._renderedChildren;d.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(e),t=!1}finally{g--,g||(t?c():u())}},updateMarkup:function(e){g++;var t=!0;try{var n=this._renderedChildren;d.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(e),t=!1}finally{g--,g||(t?c():u())}},updateChildren:function(e,t,n){g++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{g--,g||(r?c():u())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,o=this._reconcilerUpdateChildren(r,e,t,n);if(this._renderedChildren=o,o||r){var i,a=0,s=0;for(i in o)if(o.hasOwnProperty(i)){var u=r&&r[i],c=o[i];u===c?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChild(u)),this._mountChildByNameAtIndex(c,i,s,t,n)),s++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChild(r[i])}},unmountChildren:function(){var e=this._renderedChildren;d.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&o(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){i(this._rootNodeID,e._mountIndex)},setTextContent:function(e){s(this._rootNodeID,e)},setMarkup:function(e){a(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,o){var i=this._rootNodeID+t,a=p.mountComponent(e,i,r,o);e._mountIndex=n,this.createChild(e,a)},_unmountChild:function(e){this.removeChild(e),e._mountIndex=null}}};t.exports=v},{"./ReactChildReconciler":381,"./ReactComponentEnvironment":386,"./ReactCurrentOwner":388,"./ReactMultiChildUpdateTypes":421,"./ReactReconciler":430,"./flattenChildren":466}],421:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=o},{"fbjs/lib/keyMirror":505}],422:[function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=f[t];return null==n&&(f[t]=n=c(t)),n}function o(e){return l?void 0:u(!1),new l(e.type,e.props)}function i(e){return new p(e)}function a(e){return e instanceof p}var s=e("./Object.assign"),u=e("fbjs/lib/invariant"),c=null,l=null,f={},p=null,d={injectGenericComponentClass:function(e){l=e},injectTextComponentClass:function(e){p=e},injectComponentClasses:function(e){s(f,e)}},h={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:d};t.exports=h},{"./Object.assign":374,"fbjs/lib/invariant":502}],423:[function(e,t,n){"use strict";function r(e,t){}var o=(e("fbjs/lib/warning"),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")},enqueueSetProps:function(e,t){r(e,"setProps")},enqueueReplaceProps:function(e,t){r(e,"replaceProps")}});t.exports=o},{"fbjs/lib/warning":513}],424:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),o={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){o.isValidOwner(n)?void 0:r(!1),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};t.exports=o},{"fbjs/lib/invariant":502}],425:[function(e,t,n){"use strict";function r(e,t,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){o.storedMeasure=e}}};t.exports=o},{}],426:[function(e,t,n){"use strict";var r={};t.exports=r},{}],427:[function(e,t,n){"use strict";var r=e("fbjs/lib/keyMirror"),o=r({prop:null,context:null,childContext:null});t.exports=o},{"fbjs/lib/keyMirror":505}],428:[function(e,t,n){"use strict";function r(e){function t(t,n,r,o,i,a){if(o=o||E,a=a||r,null==n[r]){var s=_[i];return t?new Error("Required "+s+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return e(n,r,o,i,a)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e){function t(t,n,r,o,i){var a=t[n],s=g(a);if(s!==e){var u=_[o],c=y(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return r(t)}function i(){return r(b.thatReturns(null))}function a(e){function t(t,n,r,o,i){var a=t[n];if(!Array.isArray(a)){var s=_[o],u=g(a);return new Error("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an array."))}for(var c=0;c<a.length;c++){var l=e(a,c,r,o,i+"["+c+"]");if(l instanceof Error)return l}return null}return r(t)}function s(){function e(e,t,n,r,o){if(!v.isValidElement(e[t])){var i=_[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=_[o],s=e.name||E,u=m(t[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected ")+("instance of `"+s+"`."))}return null}return r(t)}function c(e){function t(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(a===e[s])return null;var u=_[o],c=JSON.stringify(e);return new Error("Invalid "+u+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+c+"."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function l(e){function t(t,n,r,o,i){var a=t[n],s=g(a);if("object"!==s){var u=_[o];return new Error("Invalid "+u+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an object."))}for(var c in a)if(a.hasOwnProperty(c)){var l=e(a,c,r,o,i+"."+c);if(l instanceof Error)return l}return null}return r(t)}function f(e){function t(t,n,r,o,i){for(var a=0;a<e.length;a++){var s=e[a];if(null==s(t,n,r,o,i))return null}var u=_[o];return new Error("Invalid "+u+" `"+i+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function e(e,t,n,r,o){if(!h(e[t])){var i=_[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function d(e){function t(t,n,r,o,i){var a=t[n],s=g(a);if("object"!==s){var u=_[o];return new Error("Invalid "+u+" `"+i+"` of type `"+s+"` "+("supplied to `"+r+"`, expected `object`."))}for(var c in e){var l=e[c];if(l){var f=l(a,c,r,o,i+"."+c);if(f)return f}}return null}return r(t)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||v.isValidElement(e))return!0;var t=x(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!h(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!h(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function y(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function m(e){return e.constructor&&e.constructor.name?e.constructor.name:"<<anonymous>>"}var v=e("./ReactElement"),_=e("./ReactPropTypeLocationNames"),b=e("fbjs/lib/emptyFunction"),x=e("./getIteratorFn"),E="<<anonymous>>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:s(),instanceOf:u,node:p(),objectOf:l,oneOf:c,oneOfType:f,shape:d};t.exports=C},{"./ReactElement":406,"./ReactPropTypeLocationNames":426,"./getIteratorFn":472,"fbjs/lib/emptyFunction":494}],429:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=!e&&s.useCreateElement}var o=e("./CallbackQueue"),i=e("./PooledClass"),a=e("./ReactBrowserEventEmitter"),s=e("./ReactDOMFeatureFlags"),u=e("./ReactInputSelection"),c=e("./Transaction"),l=e("./Object.assign"),f={initialize:u.getSelectionInformation,close:u.restoreSelection},p={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},d={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},h=[f,p,d],g={getTransactionWrappers:function(){return h},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};l(r.prototype,c.Mixin,g),i.addPoolingTo(r),t.exports=r},{"./CallbackQueue":357,"./Object.assign":374,"./PooledClass":375,"./ReactBrowserEventEmitter":378,"./ReactDOMFeatureFlags":393,"./ReactInputSelection":414,"./Transaction":457}],430:[function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=e("./ReactRef"),i={mountComponent:function(e,t,n,o){var i=e.mountComponent(t,n,o);return e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),i},unmountComponent:function(e){o.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,i){var a=e._currentElement;if(t!==a||i!==e._context){var s=o.shouldUpdateRefs(a,t);s&&o.detachRefs(e,a),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};t.exports=i},{"./ReactRef":431}],431:[function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=e("./ReactOwner"),a={};a.attachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null===e||e===!1,r=null===t||t===!1;return n||r||t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){if(null!==t&&t!==!1){var n=t.ref;null!=n&&o(n,e,t._owner)}},t.exports=a},{"./ReactOwner":424}],432:[function(e,t,n){"use strict";var r={injectCreateReactRootIndex:function(e){o.createReactRootIndex=e}},o={createReactRootIndex:null,injection:r};t.exports=o},{}],433:[function(e,t,n){"use strict";var r={isBatchingUpdates:!1,batchedUpdates:function(e){}};t.exports=r},{}],434:[function(e,t,n){"use strict";function r(e){a.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(c);var n=s.createReactRootID();return t=l.getPooled(!1),t.perform(function(){var r=d(e,null),o=r.mountComponent(n,t,p);return u.addChecksumToMarkup(o)},null)}finally{l.release(t),f.injection.injectBatchingStrategy(i)}}function o(e){a.isValidElement(e)?void 0:h(!1);var t;try{f.injection.injectBatchingStrategy(c);var n=s.createReactRootID();return t=l.getPooled(!0),t.perform(function(){var r=d(e,null);return r.mountComponent(n,t,p)},null)}finally{l.release(t),f.injection.injectBatchingStrategy(i)}}var i=e("./ReactDefaultBatchingStrategy"),a=e("./ReactElement"),s=e("./ReactInstanceHandles"),u=e("./ReactMarkupChecksum"),c=e("./ReactServerBatchingStrategy"),l=e("./ReactServerRenderingTransaction"),f=e("./ReactUpdates"),p=e("fbjs/lib/emptyObject"),d=e("./instantiateReactComponent"),h=e("fbjs/lib/invariant");t.exports={renderToString:r,renderToStaticMarkup:o}},{"./ReactDefaultBatchingStrategy":402,"./ReactElement":406,"./ReactInstanceHandles":415,"./ReactMarkupChecksum":418,"./ReactServerBatchingStrategy":433,"./ReactServerRenderingTransaction":435,"./ReactUpdates":440,"./instantiateReactComponent":475,"fbjs/lib/emptyObject":495,"fbjs/lib/invariant":502}],435:[function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=i.getPooled(null),this.useCreateElement=!1}var o=e("./PooledClass"),i=e("./CallbackQueue"),a=e("./Transaction"),s=e("./Object.assign"),u=e("fbjs/lib/emptyFunction"),c={initialize:function(){this.reactMountReady.reset()},close:u},l=[c],f={getTransactionWrappers:function(){return l},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};s(r.prototype,a.Mixin,f),o.addPoolingTo(r),t.exports=r},{"./CallbackQueue":357,"./Object.assign":374,"./PooledClass":375,"./Transaction":457,"fbjs/lib/emptyFunction":494}],436:[function(e,t,n){"use strict";var r=e("./flattenChildren"),o={getChildMapping:function(e){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{"./flattenChildren":466}],437:[function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete s.animationend.animation,"TransitionEvent"in window||delete s.transitionend.transition;for(var n in s){var r=s[n];for(var o in r)if(o in t){u.push(r[o]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var a=e("fbjs/lib/ExecutionEnvironment"),s={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},u=[];a.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};t.exports=c},{"fbjs/lib/ExecutionEnvironment":488}],438:[function(e,t,n){"use strict";var r=e("./React"),o=e("./ReactTransitionChildMapping"),i=e("./Object.assign"),a=e("fbjs/lib/emptyFunction"),s=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:a.thatReturnsArgument}},getInitialState:function(){return{children:o.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=o.getChildMapping(e.children),n=this.state.children;this.setState({children:o.mergeChildMappings(n,t)});var r;for(r in t){var i=n&&n.hasOwnProperty(r);!t[r]||i||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var a=t&&t.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=o.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)?this.performEnter(e):this.setState(function(t){var n=i({},t.children);return delete n[e],{children:n}})},render:function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(r.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}return r.createElement(this.props.component,this.props,e)}});t.exports=s},{"./Object.assign":374,"./React":376,"./ReactTransitionChildMapping":436,"fbjs/lib/emptyFunction":494}],439:[function(e,t,n){"use strict";function r(e){s.enqueueUpdate(e)}function o(e,t){var n=a.get(e);return n?n:null}var i=(e("./ReactCurrentOwner"),e("./ReactElement")),a=e("./ReactInstanceMap"),s=e("./ReactUpdates"),u=e("./Object.assign"),c=e("fbjs/lib/invariant"),l=(e("fbjs/lib/warning"),{isMounted:function(e){var t=a.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t){"function"!=typeof t?c(!1):void 0;var n=o(e);return n?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){"function"!=typeof t?c(!1):void 0,e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=o(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=o(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=o(e,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(t),r(n)}},enqueueSetProps:function(e,t){var n=o(e,"setProps");n&&l.enqueueSetPropsInternal(n,t)},enqueueSetPropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:c(!1);var o=n._pendingElement||n._currentElement,a=o.props,s=u({},a.props,t);n._pendingElement=i.cloneAndReplaceProps(o,i.cloneAndReplaceProps(a,s)),r(n)},enqueueReplaceProps:function(e,t){var n=o(e,"replaceProps");n&&l.enqueueReplacePropsInternal(n,t)},enqueueReplacePropsInternal:function(e,t){var n=e._topLevelWrapper;n?void 0:c(!1);var o=n._pendingElement||n._currentElement,a=o.props;
27
- n._pendingElement=i.cloneAndReplaceProps(o,i.cloneAndReplaceProps(a,t)),r(n)},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});t.exports=l},{"./Object.assign":374,"./ReactCurrentOwner":388,"./ReactElement":406,"./ReactInstanceMap":416,"./ReactUpdates":440,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],440:[function(e,t,n){"use strict";function r(){T.ReactReconcileTransaction&&b?void 0:y(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=l.getPooled(),this.reconcileTransaction=T.ReactReconcileTransaction.getPooled(!1)}function i(e,t,n,o,i,a){r(),b.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==m.length?y(!1):void 0,m.sort(a);for(var n=0;n<t;n++){var r=m[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,d.performUpdateIfNecessary(r,e.reconcileTransaction),o)for(var i=0;i<o.length;i++)e.callbackQueue.enqueue(o[i],r.getPublicInstance())}}function u(e){return r(),b.isBatchingUpdates?void m.push(e):void b.batchedUpdates(u,e)}function c(e,t){b.isBatchingUpdates?void 0:y(!1),v.enqueue(e,t),_=!0}var l=e("./CallbackQueue"),f=e("./PooledClass"),p=e("./ReactPerf"),d=e("./ReactReconciler"),h=e("./Transaction"),g=e("./Object.assign"),y=e("fbjs/lib/invariant"),m=[],v=l.getPooled(),_=!1,b=null,x={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),S()):m.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[x,E];g(o.prototype,h.Mixin,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,l.release(this.callbackQueue),this.callbackQueue=null,T.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return h.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),f.addPoolingTo(o);var S=function(){for(;m.length||_;){if(m.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(_){_=!1;var t=v;v=l.getPooled(),t.notifyAll(),l.release(t)}}};S=p.measure("ReactUpdates","flushBatchedUpdates",S);var w={injectReconcileTransaction:function(e){e?void 0:y(!1),T.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:y(!1),"function"!=typeof e.batchedUpdates?y(!1):void 0,"boolean"!=typeof e.isBatchingUpdates?y(!1):void 0,b=e}},T={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:S,injection:w,asap:c};t.exports=T},{"./CallbackQueue":357,"./Object.assign":374,"./PooledClass":375,"./ReactPerf":425,"./ReactReconciler":430,"./Transaction":457,"fbjs/lib/invariant":502}],441:[function(e,t,n){"use strict";t.exports="0.14.8"},{}],442:[function(e,t,n){"use strict";var r=e("./DOMProperty"),o=r.injection.MUST_USE_ATTRIBUTE,i={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:i.xlink,xlinkArcrole:i.xlink,xlinkHref:i.xlink,xlinkRole:i.xlink,xlinkShow:i.xlink,xlinkTitle:i.xlink,xlinkType:i.xlink,xmlBase:i.xml,xmlLang:i.xml,xmlSpace:i.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};t.exports=a},{"./DOMProperty":361}],443:[function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&u.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(b||null==m||m!==l())return null;var n=r(m);if(!_||!d(_,n)){_=n;var o=c.getPooled(y.select,v,e,t);return o.type="select",o.target=m,a.accumulateTwoPhaseDispatches(o),o}return null}var i=e("./EventConstants"),a=e("./EventPropagators"),s=e("fbjs/lib/ExecutionEnvironment"),u=e("./ReactInputSelection"),c=e("./SyntheticEvent"),l=e("fbjs/lib/getActiveElement"),f=e("./isTextInputElement"),p=e("fbjs/lib/keyOf"),d=e("fbjs/lib/shallowEqual"),h=i.topLevelTypes,g=s.canUseDOM&&"documentMode"in document&&document.documentMode<=11,y={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[h.topBlur,h.topContextMenu,h.topFocus,h.topKeyDown,h.topMouseDown,h.topMouseUp,h.topSelectionChange]}},m=null,v=null,_=null,b=!1,x=!1,E=p({onSelect:null}),C={eventTypes:y,extractEvents:function(e,t,n,r,i){if(!x)return null;switch(e){case h.topFocus:(f(t)||"true"===t.contentEditable)&&(m=t,v=n,_=null);break;case h.topBlur:m=null,v=null,_=null;break;case h.topMouseDown:b=!0;break;case h.topContextMenu:case h.topMouseUp:return b=!1,o(r,i);case h.topSelectionChange:if(g)break;case h.topKeyDown:case h.topKeyUp:return o(r,i)}return null},didPutListener:function(e,t,n){t===E&&(x=!0)}};t.exports=C},{"./EventConstants":366,"./EventPropagators":370,"./ReactInputSelection":414,"./SyntheticEvent":449,"./isTextInputElement":477,"fbjs/lib/ExecutionEnvironment":488,"fbjs/lib/getActiveElement":497,"fbjs/lib/keyOf":506,"fbjs/lib/shallowEqual":511}],444:[function(e,t,n){"use strict";var r=Math.pow(2,53),o={createReactRootIndex:function(){return Math.ceil(Math.random()*r)}};t.exports=o},{}],445:[function(e,t,n){"use strict";var r=e("./EventConstants"),o=e("fbjs/lib/EventListener"),i=e("./EventPropagators"),a=e("./ReactMount"),s=e("./SyntheticClipboardEvent"),u=e("./SyntheticEvent"),c=e("./SyntheticFocusEvent"),l=e("./SyntheticKeyboardEvent"),f=e("./SyntheticMouseEvent"),p=e("./SyntheticDragEvent"),d=e("./SyntheticTouchEvent"),h=e("./SyntheticUIEvent"),g=e("./SyntheticWheelEvent"),y=e("fbjs/lib/emptyFunction"),m=e("./getEventCharCode"),v=e("fbjs/lib/invariant"),_=e("fbjs/lib/keyOf"),b=r.topLevelTypes,x={abort:{phasedRegistrationNames:{bubbled:_({onAbort:!0}),captured:_({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:_({onBlur:!0}),captured:_({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:_({onCanPlay:!0}),captured:_({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:_({onCanPlayThrough:!0}),captured:_({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:_({onClick:!0}),captured:_({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:_({onContextMenu:!0}),captured:_({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:_({onCopy:!0}),captured:_({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:_({onCut:!0}),captured:_({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:_({onDoubleClick:!0}),captured:_({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:_({onDrag:!0}),captured:_({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:_({onDragEnd:!0}),captured:_({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:_({onDragEnter:!0}),captured:_({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:_({onDragExit:!0}),captured:_({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:_({onDragLeave:!0}),captured:_({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:_({onDragOver:!0}),captured:_({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:_({onDragStart:!0}),captured:_({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:_({onDrop:!0}),captured:_({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:_({onDurationChange:!0}),captured:_({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:_({onEmptied:!0}),captured:_({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:_({onEncrypted:!0}),captured:_({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:_({onEnded:!0}),captured:_({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:_({onError:!0}),captured:_({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:_({onFocus:!0}),captured:_({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:_({onInput:!0}),captured:_({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:_({onKeyDown:!0}),captured:_({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:_({onKeyPress:!0}),captured:_({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:_({onKeyUp:!0}),captured:_({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:_({onLoad:!0}),captured:_({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:_({onLoadedData:!0}),captured:_({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:_({onLoadedMetadata:!0}),captured:_({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:_({onLoadStart:!0}),captured:_({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:_({onMouseDown:!0}),captured:_({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:_({onMouseMove:!0}),captured:_({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:_({onMouseOut:!0}),captured:_({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:_({onMouseOver:!0}),captured:_({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:_({onMouseUp:!0}),captured:_({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:_({onPaste:!0}),captured:_({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:_({onPause:!0}),captured:_({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:_({onPlay:!0}),captured:_({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:_({onPlaying:!0}),captured:_({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:_({onProgress:!0}),captured:_({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:_({onRateChange:!0}),captured:_({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:_({onReset:!0}),captured:_({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:_({onScroll:!0}),captured:_({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:_({onSeeked:!0}),captured:_({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:_({onSeeking:!0}),captured:_({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:_({onStalled:!0}),captured:_({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:_({onSubmit:!0}),captured:_({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:_({onSuspend:!0}),captured:_({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:_({onTimeUpdate:!0}),captured:_({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:_({onTouchCancel:!0}),captured:_({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:_({onTouchEnd:!0}),captured:_({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:_({onTouchMove:!0}),captured:_({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:_({onTouchStart:!0}),captured:_({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:_({onVolumeChange:!0}),captured:_({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:_({onWaiting:!0}),captured:_({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:_({onWheel:!0}),captured:_({onWheelCapture:!0})}}},E={topAbort:x.abort,topBlur:x.blur,topCanPlay:x.canPlay,topCanPlayThrough:x.canPlayThrough,topClick:x.click,topContextMenu:x.contextMenu,topCopy:x.copy,topCut:x.cut,topDoubleClick:x.doubleClick,topDrag:x.drag,topDragEnd:x.dragEnd,topDragEnter:x.dragEnter,topDragExit:x.dragExit,topDragLeave:x.dragLeave,topDragOver:x.dragOver,topDragStart:x.dragStart,topDrop:x.drop,topDurationChange:x.durationChange,topEmptied:x.emptied,topEncrypted:x.encrypted,topEnded:x.ended,topError:x.error,topFocus:x.focus,topInput:x.input,topKeyDown:x.keyDown,topKeyPress:x.keyPress,topKeyUp:x.keyUp,topLoad:x.load,topLoadedData:x.loadedData,topLoadedMetadata:x.loadedMetadata,topLoadStart:x.loadStart,topMouseDown:x.mouseDown,topMouseMove:x.mouseMove,topMouseOut:x.mouseOut,topMouseOver:x.mouseOver,topMouseUp:x.mouseUp,topPaste:x.paste,topPause:x.pause,topPlay:x.play,topPlaying:x.playing,topProgress:x.progress,topRateChange:x.rateChange,topReset:x.reset,topScroll:x.scroll,topSeeked:x.seeked,topSeeking:x.seeking,topStalled:x.stalled,topSubmit:x.submit,topSuspend:x.suspend,topTimeUpdate:x.timeUpdate,topTouchCancel:x.touchCancel,topTouchEnd:x.touchEnd,topTouchMove:x.touchMove,topTouchStart:x.touchStart,topVolumeChange:x.volumeChange,topWaiting:x.waiting,topWheel:x.wheel};for(var C in E)E[C].dependencies=[C];var S=_({onClick:null}),w={},T={eventTypes:x,extractEvents:function(e,t,n,r,o){var a=E[e];if(!a)return null;var y;switch(e){case b.topAbort:case b.topCanPlay:case b.topCanPlayThrough:case b.topDurationChange:case b.topEmptied:case b.topEncrypted:case b.topEnded:case b.topError:case b.topInput:case b.topLoad:case b.topLoadedData:case b.topLoadedMetadata:case b.topLoadStart:case b.topPause:case b.topPlay:case b.topPlaying:case b.topProgress:case b.topRateChange:case b.topReset:case b.topSeeked:case b.topSeeking:case b.topStalled:case b.topSubmit:case b.topSuspend:case b.topTimeUpdate:case b.topVolumeChange:case b.topWaiting:y=u;break;case b.topKeyPress:if(0===m(r))return null;case b.topKeyDown:case b.topKeyUp:y=l;break;case b.topBlur:case b.topFocus:y=c;break;case b.topClick:if(2===r.button)return null;case b.topContextMenu:case b.topDoubleClick:case b.topMouseDown:case b.topMouseMove:case b.topMouseOut:case b.topMouseOver:case b.topMouseUp:y=f;break;case b.topDrag:case b.topDragEnd:case b.topDragEnter:case b.topDragExit:case b.topDragLeave:case b.topDragOver:case b.topDragStart:case b.topDrop:y=p;break;case b.topTouchCancel:case b.topTouchEnd:case b.topTouchMove:case b.topTouchStart:y=d;break;case b.topScroll:y=h;break;case b.topWheel:y=g;break;case b.topCopy:case b.topCut:case b.topPaste:y=s}y?void 0:v(!1);var _=y.getPooled(a,n,r,o);return i.accumulateTwoPhaseDispatches(_),_},didPutListener:function(e,t,n){if(t===S){var r=a.getNode(e);w[e]||(w[e]=o.listen(r,"click",y))}},willDeleteListener:function(e,t){t===S&&(w[e].remove(),delete w[e])}};t.exports=T},{"./EventConstants":366,"./EventPropagators":370,"./ReactMount":419,"./SyntheticClipboardEvent":446,"./SyntheticDragEvent":448,"./SyntheticEvent":449,"./SyntheticFocusEvent":450,"./SyntheticKeyboardEvent":452,"./SyntheticMouseEvent":453,"./SyntheticTouchEvent":454,"./SyntheticUIEvent":455,"./SyntheticWheelEvent":456,"./getEventCharCode":468,"fbjs/lib/EventListener":487,"fbjs/lib/emptyFunction":494,"fbjs/lib/invariant":502,"fbjs/lib/keyOf":506}],446:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":449}],447:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i={data:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":449}],448:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticMouseEvent"),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticMouseEvent":453}],449:[function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;u?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=e("./PooledClass"),i=e("./Object.assign"),a=e("fbjs/lib/emptyFunction"),s=(e("fbjs/lib/warning"),{type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=s,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);i(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,o.addPoolingTo(e,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),t.exports=r},{"./Object.assign":374,"./PooledClass":375,"fbjs/lib/emptyFunction":494,"fbjs/lib/warning":513}],450:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticUIEvent":455}],451:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i={data:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticEvent":449}],452:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i=e("./getEventCharCode"),a=e("./getEventKey"),s=e("./getEventModifierState"),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,u),t.exports=r},{"./SyntheticUIEvent":455,"./getEventCharCode":468,"./getEventKey":469,"./getEventModifierState":470}],453:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i=e("./ViewportMetrics"),a=e("./getEventModifierState"),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),t.exports=r},{"./SyntheticUIEvent":455,"./ViewportMetrics":458,"./getEventModifierState":470}],454:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticUIEvent"),i=e("./getEventModifierState"),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},{"./SyntheticUIEvent":455,"./getEventModifierState":470}],455:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticEvent"),i=e("./getEventTarget"),a={view:function(e){if(e.view)return e.view;var t=i(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),t.exports=r},{"./SyntheticEvent":449,"./getEventTarget":471}],456:[function(e,t,n){"use strict";function r(e,t,n,r){o.call(this,e,t,n,r)}var o=e("./SyntheticMouseEvent"),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},{"./SyntheticMouseEvent":453}],457:[function(e,t,n){"use strict";var r=e("fbjs/lib/invariant"),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,u){this.isInTransaction()?r(!1):void 0;var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,o,i,a,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()?void 0:r(!1);for(var t=this.transactionWrappers,n=e;n<t.length;n++){var o,a=t[n],s=this.wrapperInitData[n];try{o=!0,s!==i.OBSERVED_ERROR&&a.close&&a.close.call(this,s),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}},i={Mixin:o,OBSERVED_ERROR:{}};t.exports=i},{"fbjs/lib/invariant":502}],458:[function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};t.exports=r},{}],459:[function(e,t,n){"use strict";function r(e,t){if(null==t?o(!1):void 0,null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var o=e("fbjs/lib/invariant");t.exports=r},{"fbjs/lib/invariant":502}],460:[function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,i=e.length,a=i&-4;r<a;){for(;r<Math.min(r+4096,a);r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<i;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}var o=65521;t.exports=r},{}],461:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],462:[function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||i.hasOwnProperty(e)&&i[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var o=e("./CSSProperty"),i=o.isUnitlessNumber;t.exports=r},{"./CSSProperty":355}],463:[function(e,t,n){"use strict";function r(e,t,n,r,o){return o}e("./Object.assign"),e("fbjs/lib/warning");t.exports=r},{"./Object.assign":374,"fbjs/lib/warning":513}],464:[function(e,t,n){"use strict";function r(e){return i[e]}function o(e){return(""+e).replace(a,r)}var i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;t.exports=o},{}],465:[function(e,t,n){"use strict";function r(e){return null==e?null:1===e.nodeType?e:o.has(e)?i.getNodeFromInstance(e):(null!=e.render&&"function"==typeof e.render?a(!1):void 0,void a(!1))}var o=(e("./ReactCurrentOwner"),e("./ReactInstanceMap")),i=e("./ReactMount"),a=e("fbjs/lib/invariant");e("fbjs/lib/warning");t.exports=r},{"./ReactCurrentOwner":388,"./ReactInstanceMap":416,"./ReactMount":419,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],466:[function(e,t,n){"use strict";function r(e,t,n){var r=e,o=void 0===r[n];o&&null!=t&&(r[n]=t)}function o(e){if(null==e)return e;var t={};return i(e,r,t),t}var i=e("./traverseAllChildren");e("fbjs/lib/warning");t.exports=o},{"./traverseAllChildren":484,"fbjs/lib/warning":513}],467:[function(e,t,n){"use strict";var r=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};t.exports=r},{}],468:[function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}t.exports=r},{}],469:[function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=e("./getEventCharCode"),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},{"./getEventCharCode":468}],470:[function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},{}],471:[function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}t.exports=r},{}],472:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],473:[function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}t.exports=i},{}],474:[function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=e("fbjs/lib/ExecutionEnvironment"),i=null;t.exports=r},{"fbjs/lib/ExecutionEnvironment":488}],475:[function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function o(e){var t;if(null===e||e===!1)t=new a(o);else if("object"==typeof e){var n=e;!n||"function"!=typeof n.type&&"string"!=typeof n.type?c(!1):void 0,t="string"==typeof n.type?s.createInternalComponent(n):r(n.type)?new n.type(n):new l}else"string"==typeof e||"number"==typeof e?t=s.createInstanceForText(e):c(!1);return t.construct(e),t._mountIndex=0,t._mountImage=null,t}var i=e("./ReactCompositeComponent"),a=e("./ReactEmptyComponent"),s=e("./ReactNativeComponent"),u=e("./Object.assign"),c=e("fbjs/lib/invariant"),l=(e("fbjs/lib/warning"),function(){});u(l.prototype,i.Mixin,{_instantiateReactComponent:o}),t.exports=o},{"./Object.assign":374,"./ReactCompositeComponent":387,"./ReactEmptyComponent":408,"./ReactNativeComponent":422,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],476:[function(e,t,n){"use strict";function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=e("fbjs/lib/ExecutionEnvironment");i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},{"fbjs/lib/ExecutionEnvironment":488}],477:[function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&o[e.type]||"textarea"===t)}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=r},{}],478:[function(e,t,n){"use strict";function r(e){return o.isValidElement(e)?void 0:i(!1),e}var o=e("./ReactElement"),i=e("fbjs/lib/invariant");t.exports=r},{"./ReactElement":406,"fbjs/lib/invariant":502}],479:[function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=e("./escapeTextContentForBrowser");t.exports=r},{"./escapeTextContentForBrowser":464}],480:[function(e,t,n){"use strict";var r=e("./ReactMount");t.exports=r.renderSubtreeIntoContainer},{"./ReactMount":419}],481:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&i.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}t.exports=a},{"fbjs/lib/ExecutionEnvironment":488}],482:[function(e,t,n){"use strict";var r=e("fbjs/lib/ExecutionEnvironment"),o=e("./escapeTextContentForBrowser"),i=e("./setInnerHTML"),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){i(e,o(t))})),t.exports=a},{"./escapeTextContentForBrowser":464,"./setInnerHTML":481,"fbjs/lib/ExecutionEnvironment":488}],483:[function(e,t,n){"use strict";function r(e,t){var n=null===e||e===!1,r=null===t||t===!1;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}t.exports=r},{}],484:[function(e,t,n){"use strict";function r(e){return g[e]}function o(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function i(e){return(""+e).replace(y,r)}function a(e){return"$"+i(e)}function s(e,t,n,r){var i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||c.isValidElement(e))return n(r,e,""===t?d+o(e,0):t),1;var u,l,g=0,y=""===t?d:t+h;if(Array.isArray(e))for(var m=0;m<e.length;m++)u=e[m],l=y+o(u,m),g+=s(u,l,n,r);else{var v=f(e);if(v){var _,b=v.call(e);if(v!==e.entries)for(var x=0;!(_=b.next()).done;)u=_.value,l=y+o(u,x++),g+=s(u,l,n,r);else for(;!(_=b.next()).done;){var E=_.value;E&&(u=E[1],l=y+a(E[0])+h+o(u,0),g+=s(u,l,n,r))}}else if("object"===i){String(e);p(!1)}}return g}function u(e,t,n){return null==e?0:s(e,"",t,n)}var c=(e("./ReactCurrentOwner"),e("./ReactElement")),l=e("./ReactInstanceHandles"),f=e("./getIteratorFn"),p=e("fbjs/lib/invariant"),d=(e("fbjs/lib/warning"),
28
- l.SEPARATOR),h=":",g={"=":"=0",".":"=1",":":"=2"},y=/[=.:]/g;t.exports=u},{"./ReactCurrentOwner":388,"./ReactElement":406,"./ReactInstanceHandles":415,"./getIteratorFn":472,"fbjs/lib/invariant":502,"fbjs/lib/warning":513}],485:[function(e,t,n){"use strict";var r=(e("./Object.assign"),e("fbjs/lib/emptyFunction")),o=(e("fbjs/lib/warning"),r);t.exports=o},{"./Object.assign":374,"fbjs/lib/emptyFunction":494,"fbjs/lib/warning":513}],486:[function(e,t,n){"use strict";var r=e("./invariant"),o={addClass:function(e,t){return/\s/.test(t)?r(!1):void 0,t&&(e.classList?e.classList.add(t):o.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return/\s/.test(t)?r(!1):void 0,t&&(e.classList?e.classList.remove(t):o.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?o.addClass:o.removeClass)(e,t)},hasClass:function(e,t){return/\s/.test(t)?r(!1):void 0,e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}};t.exports=o},{"./invariant":502}],487:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},{"./emptyFunction":494}],488:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],489:[function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;t.exports=r},{}],490:[function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=e("./camelize"),i=/^-ms-/;t.exports=r},{"./camelize":489}],491:[function(e,t,n){"use strict";function r(e,t){var n=!0;e:for(;n;){var r=e,i=t;if(n=!1,r&&i){if(r===i)return!0;if(o(r))return!1;if(o(i)){e=r,t=i.parentNode,n=!0;continue e}return r.contains?r.contains(i):!!r.compareDocumentPosition&&!!(16&r.compareDocumentPosition(i))}return!1}}var o=e("./isTextNode");t.exports=r},{"./isTextNode":504}],492:[function(e,t,n){"use strict";function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function o(e){return r(e)?Array.isArray(e)?e.slice():i(e):[e]}var i=e("./toArray");t.exports=o},{"./toArray":512}],493:[function(e,t,n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=c;c?void 0:u(!1);var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var f=n.getElementsByTagName("script");f.length&&(t?void 0:u(!1),a(f).forEach(t));for(var p=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var i=e("./ExecutionEnvironment"),a=e("./createArrayFromMixed"),s=e("./getMarkupWrap"),u=e("./invariant"),c=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=o},{"./ExecutionEnvironment":488,"./createArrayFromMixed":492,"./getMarkupWrap":498,"./invariant":502}],494:[function(e,t,n){"use strict";function r(e){return function(){return e}}function o(){}o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],495:[function(e,t,n){"use strict";var r={};t.exports=r},{}],496:[function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}t.exports=r},{}],497:[function(e,t,n){"use strict";function r(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(e){return document.body}}t.exports=r},{}],498:[function(e,t,n){"use strict";function r(e){return a?void 0:i(!1),p.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?p[e]:null}var o=e("./ExecutionEnvironment"),i=e("./invariant"),a=o.canUseDOM?document.createElement("div"):null,s={},u=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:l,th:l},d=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];d.forEach(function(e){p[e]=f,s[e]=!0}),t.exports=r},{"./ExecutionEnvironment":488,"./invariant":502}],499:[function(e,t,n){"use strict";function r(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}t.exports=r},{}],500:[function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=r},{}],501:[function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=e("./hyphenate"),i=/^ms-/;t.exports=r},{"./hyphenate":500}],502:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error(t.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=r},{}],503:[function(e,t,n){"use strict";function r(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}t.exports=r},{}],504:[function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=e("./isNode");t.exports=r},{"./isNode":503}],505:[function(e,t,n){"use strict";var r=e("./invariant"),o=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};t.exports=o},{"./invariant":502}],506:[function(e,t,n){"use strict";var r=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};t.exports=r},{}],507:[function(e,t,n){"use strict";function r(e,t,n){if(!e)return null;var r={};for(var i in e)o.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],508:[function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}t.exports=r},{}],509:[function(e,t,n){"use strict";var r,o=e("./ExecutionEnvironment");o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),t.exports=r||{}},{"./ExecutionEnvironment":488}],510:[function(e,t,n){"use strict";var r,o=e("./performance");r=o.now?function(){return o.now()}:function(){return Date.now()},t.exports=r},{"./performance":509}],511:[function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=o.bind(t),a=0;a<n.length;a++)if(!i(n[a])||e[n[a]]!==t[n[a]])return!1;return!0}var o=Object.prototype.hasOwnProperty;t.exports=r},{}],512:[function(e,t,n){"use strict";function r(e){var t=e.length;if(Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e?o(!1):void 0,"number"!=typeof t?o(!1):void 0,0===t||t-1 in e?void 0:o(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}var o=e("./invariant");t.exports=r},{"./invariant":502}],513:[function(e,t,n){"use strict";var r=e("./emptyFunction"),o=r;t.exports=o},{"./emptyFunction":494}],514:[function(e,t,n){"use strict";t.exports=e("./lib/React")},{"./lib/React":376}],515:[function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function i(e,t,n,i){switch("undefined"==typeof e?"undefined":o(e)){case"object":return"function"==typeof e[i]?e[i].apply(e,r(n)):e[i];case"function":return e(t);default:return e}}function a(){function e(){T.forEach(function(e,t){var n=e.started,o=e.startedTime,s=e.action,u=e.prevState,l=e.error,p=e.took,d=e.nextState,g=T[t+1];g&&(d=g.prevState,p=g.started-n);var m=x(s),v="function"==typeof f?f(function(){return d},s):f,_=c(o),b=w.title?"color: "+w.title(m)+";":null,E="action "+(y?_:"")+" "+m.type+" "+(h?"(in "+p.toFixed(2)+" ms)":"");try{v?w.title?a.groupCollapsed("%c "+E,b):a.groupCollapsed(E):w.title?a.group("%c "+E,b):a.group(E)}catch(e){a.log(E)}var C=i(r,m,[u],"prevState"),S=i(r,m,[m],"action"),O=i(r,m,[l,u],"error"),P=i(r,m,[d],"nextState");C&&(w.prevState?a[C]("%c prev state","color: "+w.prevState(u)+"; font-weight: bold",u):a[C]("prev state",u)),S&&(w.action?a[S]("%c action","color: "+w.action(m)+"; font-weight: bold",m):a[S]("action",m)),l&&O&&(w.error?a[O]("%c error","color: "+w.error(l,u)+"; font-weight: bold",l):a[O]("error",l)),P&&(w.nextState?a[P]("%c next state","color: "+w.nextState(d)+"; font-weight: bold",d):a[P]("next state",d));try{a.groupEnd()}catch(e){a.log("—— log end ——")}}),T.length=0}var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=t.level,r=void 0===n?"log":n,o=t.logger,a=void 0===o?console:o,s=t.logErrors,u=void 0===s||s,f=t.collapsed,p=t.predicate,d=t.duration,h=void 0!==d&&d,g=t.timestamp,y=void 0===g||g,m=t.transformer,v=t.stateTransformer,_=void 0===v?function(e){return e}:v,b=t.actionTransformer,x=void 0===b?function(e){return e}:b,E=t.errorTransformer,C=void 0===E?function(e){return e}:E,S=t.colors,w=void 0===S?{title:function(){return"#000000"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}}:S;if("undefined"==typeof a)return function(){return function(e){return function(t){return e(t)}}};m&&console.error("Option 'transformer' is deprecated, use stateTransformer instead");var T=[];return function(t){var n=t.getState;return function(t){return function(r){if("function"==typeof p&&!p(n,r))return t(r);var o={};T.push(o),o.started=l.now(),o.startedTime=new Date,o.prevState=_(n()),o.action=r;var i=void 0;if(u)try{i=t(r)}catch(e){o.error=C(e)}else i=t(r);if(o.took=l.now()-o.started,o.nextState=_(n()),e(),o.error)throw o.error;return i}}}}var s=function(e,t){return new Array(t+1).join(e)},u=function(e,t){return s("0",t-e.toString().length)+e},c=function(e){return"@ "+u(e.getHours(),2)+":"+u(e.getMinutes(),2)+":"+u(e.getSeconds(),2)+"."+u(e.getMilliseconds(),3)},l="undefined"!=typeof performance&&"function"==typeof performance.now?performance:Date;t.exports=a},{}],516:[function(e,t,n){"use strict";function r(e){return function(t){return{type:u,payload:{method:e,arg:t}}}}function o(e){return{type:c,payload:e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?f:arguments[0],t=arguments[1],n=t.type,r=t.payload;return n!==c?e:s({},e,{location:r})}function a(e){function t(t){return n=e.listen(function(e){r=e.key,s||t.dispatch(o(e))}),a=!0,function(t){return function(n){if(n.type!==u||!a)return t(n);var r=n.payload,o=r.method,i=r.arg;e[o](i)}}}var n=void 0,r=void 0,i=void 0,a=!1,s=!1;return t.listenForReplays=function(t){var n=arguments.length<=1||void 0===arguments[1]?l:arguments[1],o=function(){return n(t.getState())},a=o(),u=a.location;i=t.subscribe(function(){var t=o(),n=t.location;return n?void(n.key!==r&&(s=!0,e.transitionTo(n),s=!1)):void e.transitionTo(u)})},t.unsubscribe=function(){n(),i&&i(),a=!1},t}var s=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};Object.defineProperty(n,"__esModule",{value:!0}),n.routeReducer=i,n.syncHistory=a;var u=n.TRANSITION="@@router/TRANSITION",c=n.UPDATE_LOCATION="@@router/UPDATE_LOCATION",l=function(e){return e.routing},f=(n.routeActions={push:r("push"),replace:r("replace"),go:r("go"),goBack:r("goBack"),goForward:r("goForward")},{location:void 0})},{}],517:[function(e,t,n){"use strict";function r(e){var t=e.dispatch,n=e.getState;return function(e){return function(r){return"function"==typeof r?r(t,n):e(r)}}}t.exports=r},{}],518:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var a=e(n,r,o),u=a.dispatch,c=[],l={getState:a.getState,dispatch:function(e){return u(e)}};return c=t.map(function(e){return e(l)}),u=s.default.apply(void 0,c)(a.dispatch),i({},a,{dispatch:u})}}}n.__esModule=!0;var 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};n.default=o;var a=e("./compose"),s=r(a)},{"./compose":521}],519:[function(e,t,n){"use strict";function r(e,t){return function(){return t(e.apply(void 0,arguments))}}function o(e,t){if("function"==typeof e)return r(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var a=n[i],s=e[a];"function"==typeof s&&(o[a]=r(s,t))}return o}n.__esModule=!0,n.default=o},{}],520:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=t&&t.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:s.ActionTypes.INIT});if("undefined"==typeof r)throw new Error('Reducer "'+t+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var o="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:o}))throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+s.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];"function"==typeof e[a]&&(n[a]=e[a])}var s,u=Object.keys(n);try{i(n)}catch(e){s=e}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=arguments[1];if(s)throw s;for(var r=!1,i={},a=0;a<u.length;a++){var c=u[a],l=n[c],f=e[c],p=l(f,t);if("undefined"==typeof p){var d=o(c,t);throw new Error(d)}i[c]=p,r=r||p!==f}return r?i:e}}n.__esModule=!0,n.default=a;var s=e("./createStore"),u=e("lodash/isPlainObject"),c=(r(u),e("./utils/warning"));r(c)},{"./createStore":522,"./utils/warning":524,"lodash/isPlainObject":529}],521:[function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];var r=t[t.length-1],o=t.slice(0,-1);return function(){return o.reduceRight(function(e,t){return t(e)},r.apply(void 0,arguments))}}n.__esModule=!0,n.default=r},{}],522:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n){function r(){m===y&&(m=y.slice())}function i(){return g}function s(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),m.push(e),function(){if(t){t=!1,r();var n=m.indexOf(e);m.splice(n,1)}}}function l(e){if(!(0,a.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,g=h(g,e)}finally{v=!1}for(var t=y=m,n=0;n<t.length;n++)t[n]();return e}function f(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,l({type:c.INIT})}function p(){var e,t=s;return e={subscribe:function(e){function n(){e.next&&e.next(i())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");n();var r=t(n);return{unsubscribe:r}}},e[u.default]=function(){return this},e}var d;if("function"==typeof t&&"undefined"==typeof n&&(n=t,t=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,g=t,y=[],m=y,v=!1;return l({type:c.INIT}),d={dispatch:l,subscribe:s,getState:i,replaceReducer:f},d[u.default]=p,d}n.__esModule=!0,n.ActionTypes=void 0,n.default=o;var i=e("lodash/isPlainObject"),a=r(i),s=e("symbol-observable"),u=r(s),c=n.ActionTypes={INIT:"@@redux/INIT"}},{"lodash/isPlainObject":529,"symbol-observable":530}],523:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.compose=n.applyMiddleware=n.bindActionCreators=n.combineReducers=n.createStore=void 0;var o=e("./createStore"),i=r(o),a=e("./combineReducers"),s=r(a),u=e("./bindActionCreators"),c=r(u),l=e("./applyMiddleware"),f=r(l),p=e("./compose"),d=r(p),h=e("./utils/warning");r(h);n.createStore=i.default,n.combineReducers=s.default,n.bindActionCreators=c.default,n.applyMiddleware=f.default,n.compose=d.default},{"./applyMiddleware":518,"./bindActionCreators":519,"./combineReducers":520,"./compose":521,"./createStore":522,"./utils/warning":524}],524:[function(e,t,n){"use strict";function r(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}n.__esModule=!0,n.default=r},{}],525:[function(e,t,n){arguments[4][322][0].apply(n,arguments)},{"./_overArg":527,dup:322}],526:[function(e,t,n){arguments[4][233][0].apply(n,arguments)},{dup:233}],527:[function(e,t,n){arguments[4][35][0].apply(n,arguments)},{dup:35}],528:[function(e,t,n){arguments[4][44][0].apply(n,arguments)},{dup:44}],529:[function(e,t,n){arguments[4][326][0].apply(n,arguments)},{"./_getPrototype":525,"./_isHostObject":526,"./isObjectLike":528,dup:326}],530:[function(e,t,n){t.exports=e("./lib/index")},{"./lib/index":531}],531:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=e("./ponyfill"),i=r(o),a=void 0;"undefined"!=typeof t?a=t:"undefined"!=typeof window&&(a=window);var s=(0,i.default)(a);n.default=s}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./ponyfill":532}],532:[function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},{}],533:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return{type:u.ZONES_SET_ACTIVE_ZONE,zone:e}}function i(e){return function(t){t(o(e)),"undefined"!=typeof e.id&&("active"===e.status&&(t((0,c.asyncDNSRecordFetchList)(e.id)),t((0,f.asyncZoneRailgunFetchAll)(e.id)),t((0,d.asyncPluginFetchSettings)(e.id))),t((0,p.asyncZoneFetchSettings)(e.id)),t((0,l.asyncZoneFetchAnalytics)(e.id)))}}function a(e){return function(t,n){""===n().activeZone.name&&t(i(e))}}n.__esModule=!0,n.zoneSetActiveZone=o,n.asyncZoneSetActiveZone=i,n.zoneSetActiveZoneIfEmpty=a;var s=e("../constants/ActionTypes"),u=r(s),c=e("./zoneDnsRecords"),l=e("./zoneAnalytics"),f=e("./zoneRailgun"),p=e("./zoneSettings"),d=e("./pluginSettings")},{"../constants/ActionTypes":554,"./pluginSettings":538,"./zoneAnalytics":540,"./zoneDnsRecords":541,"./zoneRailgun":544,"./zoneSettings":545}],534:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:a.APPLICATION_INIT}}n.__esModule=!0,n.applicationInit=o;var i=e("../constants/ActionTypes"),a=r(i)},{"../constants/ActionTypes":554}],535:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){return{type:d.CONFIG_FETCH}}function a(e){return{type:d.CONFIG_FETCH_SUCCESS,config:e}}function s(){return{type:d.CONFIG_FETCH_ERROR}}function u(){return function(e){e(i());var t={};t.headers={Accept:"application/javascript"},f.default.get("./config.js",t,function(t,n){if(n){var r=JSON.parse(n.text);e(a(r)),"undefined"!=typeof absoluteUrlBase&&e(c(v.ABSOLUTE_URL_BASE_KEY,absoluteUrlBase)),e((0,h.asyncIntlFetchTranslations)(r.locale)),(0,y.isLoggedIn)()&&e((0,m.asyncUserLoginSuccess)((0,y.getEmail)()))}else e(s()),e((0,g.notificationAddError)(t))})}}function c(e,t){return{type:d.CONFIG_UPDATE_BY_KEY,key:e,value:t}}n.__esModule=!0,n.configFetch=i,n.configFetchSuccess=a,n.configFetchError=s,n.asyncConfigFetch=u,n.configUpdateByKey=c;var l=e("cf-util-http"),f=o(l),p=e("../constants/ActionTypes"),d=r(p),h=e("./intl"),g=e("./notifications"),y=e("../utils/Auth/Auth"),m=e("../actions/user"),v=e("../reducers/config")},{"../actions/user":539,"../constants/ActionTypes":554,"../reducers/config":600,"../utils/Auth/Auth":619,"./intl":536,"./notifications":537,"cf-util-http":153}],536:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){return{type:p.INTL_FETCH_TRANSLATIONS}}function a(e,t){return{type:p.INTL_FETCH_TRANSLATIONS_SUCCESS,locale:e,translations:t}}function s(e){return{type:p.INTL_FETCH_TRANSLATIONS_ERROR,error:e}}function u(e){return function(t){t(i());var n={};n.headers={Accept:"application/javascript"},l.default.get("./lang/"+e+".js",n,function(n,r){if(r){var o=JSON.parse(r.text);t(a(e,o)),t((0,d.applicationInit)())}else t((0,h.notificationAddError)(n))})}}n.__esModule=!0,n.intlFetchTranslations=i,n.intlFetchTranslationsSuccess=a,n.intlFetchTranslationsError=s,n.asyncIntlFetchTranslations=u;var c=e("cf-util-http"),l=o(c),f=e("../constants/ActionTypes"),p=r(f),d=e("./app"),h=e("./notifications")},{"../constants/ActionTypes":554,"./app":534,"./notifications":537,"cf-util-http":153}],537:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3],o=arguments.length<=4||void 0===arguments[4]?5e3:arguments[4];return{type:h.NOTIFICATION_ADD,level:e,message:t,localized:n,persistant:r,delay:o}}function a(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("success",e,t,n,r)}function s(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("info",e,t,n,r)}function u(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("warning",e,t,n,r)}function c(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?5e3:arguments[3];return i("error",e,t,n,r)}function l(e){return{type:h.NOTIFICATION_REMOVE,key:e}}function f(e,t){return function(n){n(e),"string"==typeof errorMesages?n(c(errorMessages)):t.body.errors.forEach(function(e){n(c(e.message))})}}function p(e){return function(t,n){var r=n().notifications,o=(0,g.getZoneSettingsValueForZoneId)(e,"development_mode",n()),i=null;m.default.forEach(r,function(e){"warning"===e.level&&"warning.developmentmode"===e.message&&(i=e.key)}),"on"===o&&null===i&&t(u("warning.developmentmode",!0,!0)),"off"===o&&null!==i&&t(l(i))}}n.__esModule=!0,n.notificationAdd=i,n.notificationAddSuccess=a,n.notificationAddInfo=s,n.notificationAddWarning=u,n.notificationAddError=c,n.notificationRemove=l,n.notificationAddClientAPIError=f,n.notificationHandleDevelopmentMode=p;var d=e("../constants/ActionTypes"),h=o(d),g=e("../selectors/zoneSettings"),y=e("lodash"),m=r(y)},{"../constants/ActionTypes":554,"../selectors/zoneSettings":616,lodash:191}],538:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:g.PLUGIN_SETTINGS_FETCH}}function i(e,t){return{type:g.PLUGIN_SETTINGS_FETCH_SUCCESS,zoneId:e,setting:t}}function a(){return{type:g.PLUGIN_SETTINGS_FETCH_ERROR}}function s(e,t){return{type:g.PLUGIN_SETTING_UPDATE,zoneId:e,setting:t}}function u(e,t){return{type:g.PLUGIN_SETTING_UPDATE_SUCCESS,zoneId:e,setting:t}}function c(e,t){return{type:g.PLUGIN_SETTING_UPDATE_ERROR,zoneId:e,setting:t}}function l(e){return function(t){t(o()),(0,p.pluginSettingListGet)({zoneId:e},function(n,r){t((0,p.pluginResponseOk)(r)?i(e,r.body.result):(0,d.notificationAddClientAPIError)(a(),r))})}}function f(e,t,n){return function(r,o){var i=o().pluginSettings.entities[t][e];r(s(t,{id:e,value:n})),(0,p.pluginSettingPatch)(t,e,n,function(n,o){(0,p.pluginResponseOk)(o)?(r(u(t,o.body.result)),"default_settings"==e&&r((0,d.notificationAddSuccess)("container.applydefaultsettingscard.success",!0))):r((0,d.notificationAddClientAPIError)(c(t,i),o))})}}n.__esModule=!0,n.pluginFetchSettings=o,n.pluginFetchSettingsSuccess=i,n.pluginFetchSettingsError=a,n.pluginUpdateSetting=s,n.pluginUpdateSettingSuccess=u,n.pluginUpdateSettingError=c,n.asyncPluginFetchSettings=l,n.asyncPluginUpdateSetting=f;var p=e("../utils/PluginAPI/PluginAPI"),d=e("./notifications"),h=e("../constants/ActionTypes"),g=r(h)},{"../constants/ActionTypes":554,"../utils/PluginAPI/PluginAPI":623,"./notifications":537}],539:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:b.USER_LOGIN}}function i(e){return{type:b.USER_LOGIN_SUCCESS,email:e}}function a(e){return function(t){t(i(e)),t((0,C.asyncFetchZones)()),t(g.routeActions.push(E.HOME_PAGE))}}function s(e){return{type:b.USER_LOGIN_ERROR,error:e}}function u(e,t){return function(n){n(o()),(0,y.userAuth)({cloudflare_email:e,cloudflare_pass:t},function(e,t){(0,y.hostAPIResponseOk)(t)?n(a(t.body.response.cloudflare_email)):(n(s()),n((0,v.notificationAddError)(t)))})}}function c(e,t){return function(n){n(o()),(0,m.pluginAccountPost)(e,t,function(t,r){(0,m.pluginResponseOk)(r)?n(a(e)):(n(s()),n((0,v.notificationAddClientAPIError)(s(),r)))})}}function l(){return{type:b.USER_LOGOUT}}function f(){return{type:b.USER_SIGNUP}}function p(){return{type:b.USER_SIGNUP_SUCCESS}}function d(){return{type:b.USER_SIGNUP_ERROR}}function h(e,t){return function(n){n(f()),(0,y.userCreate)({cloudflare_email:e,cloudflare_pass:t},function(r,o){(0,y.hostAPIResponseOk)(o)?(n(p()),n(u(e,t))):(n(d()),n((0,v.notificationAddError)(o)))})}}n.__esModule=!0,n.userLogin=o,n.userLoginSuccess=i,n.asyncUserLoginSuccess=a,n.userLoginError=s,n.asyncLogin=u,n.asyncAPILogin=c,n.userLogout=l,n.userSignup=f,n.userSignupSuccess=p,n.userSignupError=d,n.asyncUserSignup=h;var g=e("redux-simple-router"),y=e("../utils/CFHostAPI/CFHostAPI"),m=e("../utils/PluginAPI/PluginAPI"),v=e("./notifications"),_=e("../constants/ActionTypes"),b=r(_),x=e("../constants/UrlPaths"),E=r(x),C=e("./zones")},{"../constants/ActionTypes":554,"../constants/UrlPaths":557,"../utils/CFHostAPI/CFHostAPI":621,"../utils/PluginAPI/PluginAPI":623,"./notifications":537,"./zones":546,"redux-simple-router":516}],540:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:f.ZONE_FETCH_ANALYTICS}}function i(e,t){return{type:f.ZONE_FETCH_ANALYTICS_SUCCESS,zoneId:e,zoneAnalytics:t}}function a(){return{type:f.ZONE_FETCH_ANALYTICS_ERROR}}function s(e){return function(t){t(o()),(0,u.zoneAnalyticsDashboardGet)({zoneId:e,since:-43200},function(n,r){t((0,u.v4ResponseOk)(r)?i(e,r.body.result):(0,c.notificationAddClientAPIError)(a(),r))})}}n.__esModule=!0,n.zoneFetchAnalytics=o,n.zoneFetchAnalyticsSuccess=i,n.zoneFetchAnalyticsError=a,n.asyncZoneFetchAnalytics=s;var u=e("../utils/CFClientV4API/CFClientV4API"),c=e("./notifications"),l=e("../constants/ActionTypes"),f=r(l)},{"../constants/ActionTypes":554,"../utils/CFClientV4API/CFClientV4API":620,"./notifications":537}],541:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return{type:v.DNS_RECORD_CLEAR_ALL,zoneId:e}}function i(e){return{type:v.DNS_RECORD_CREATE,name:e}}function a(e,t){return{type:v.DNS_RECORD_CREATE_SUCCESS,zoneId:e,dnsRecord:t}}function s(){return{type:v.DNS_RECORD_CREATE_ERROR}}function u(e,t,n,r){return function(o){o(i(n)),(0,_.zoneDNSRecordPostNew)({zoneId:e,type:t,name:n,content:r},function(t,n){(0,_.v4ResponseOk)(n)?(o(a(e,n.body.result)),o(y(e,n.body.result,!0))):o((0,b.notificationAddClientAPIError)(s(),n))})}}function c(){return{type:v.DNS_RECORD_FETCH_LIST}}function l(e,t){return{type:v.DNS_RECORD_FETCH_LIST_SUCCESS,zoneId:e,dnsRecords:t}}function f(){return{type:v.DNS_RECORD_FETCH_LIST_SUCCESS}}function p(e){return function(t){t(c()),(0,_.zoneDNSRecordGetAll)(e,function(n,r){t((0,_.v4ResponseOk)(r)?l(e,r.body.result):(0,b.notificationAddClientAPIError)(f(),r))})}}function d(e){return{type:v.DNS_RECORD_UPDATE,name:e}}function h(e,t){return{type:v.DNS_RECORD_UPDATE_SUCCESS,zoneId:e,dnsRecord:t}}function g(){return{type:v.DNS_RECORD_UPDATE_ERROR}}function y(e,t,n){return function(r){r(d(t.name)),(0,_.zoneDNSRecordPatch)({zoneId:e,dnsRecordId:t.id,proxied:n},function(t,n){r((0,_.v4ResponseOk)(n)?h(e,n.body.result):(0,b.notificationAddClientAPIError)(g,n))})}}n.__esModule=!0,n.dnsRecordClearAll=o,n.dnsRecordCreate=i,n.dnsRecordCreateSuccess=a,
29
- n.dnsRecordCreateError=s,n.asyncDNSRecordCreate=u,n.dnsRecordFetchList=c,n.dnsRecordFetchListSuccess=l,n.dnsRecordFetchListError=f,n.asyncDNSRecordFetchList=p,n.dnsRecordUpdate=d,n.dnsRecordUpdateSuccess=h,n.dnsRecordUpdateError=g,n.asyncDNSRecordUpdate=y;var m=e("../constants/ActionTypes"),v=r(m),_=e("../utils/CFClientV4API/CFClientV4API"),b=e("./notifications")},{"../constants/ActionTypes":554,"../utils/CFClientV4API/CFClientV4API":620,"./notifications":537}],542:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:x.ZONE_ACTIVATION_CHECK}}function i(){return{type:x.ZONE_ACTIVATION_CHECK_SUCCESS}}function a(){return{type:x.ZONE_ACTIVATION_CHECK_ERROR}}function s(e){return function(t){t(o()),(0,m.zoneActivationCheckPutNew)(e,function(e,n){(0,m.v4ResponseOk)(n)?(t(i()),t((0,_.notificationAddSuccess)("container.activationCheckCard.success",!0))):t(notificationAddClientAPIError(a(),n))})}}function u(){return{type:x.ZONES_PROVISION_CNAME}}function c(){return{type:x.ZONES_PROVISION_CNAME_SUCCESS}}function l(){return{type:x.ZONES_PROVISION_CNAME_ERROR}}function f(e){return function(t){t(u()),(0,v.partialZoneSet)({zone_name:e},function(n,r){(0,v.hostAPIResponseOk)(r)?(t(c()),t(y(e))):(t(l()),t((0,_.notificationAddError)(r)))})}}function p(){return{type:x.ZONES_PROVISION_FULL}}function d(){return{type:x.ZONES_PROVISION_FULL_SUCCESS}}function h(){return{type:x.ZONES_PROVISION_FULL_ERROR}}function g(e){return function(t){t(p()),(0,v.fullZoneSet)({zone_name:e},function(n,r){(0,v.hostAPIResponseOk)(r)?(t(d()),t(y(e))):(t(h()),t((0,_.notificationAddError)(r)))})}}function y(e){return function(t){t((0,S.zoneFetch)()),(0,m.zoneGetAll)(function(n,r){if((0,m.v4ResponseOk)(r)){t((0,S.zoneFetchSuccess)(r.body.result));var o=(0,C.normalizeZoneGetAll)(r.body.result);t((0,E.asyncZoneSetActiveZone)(o.entities.zones[e]))}else t((0,_.notificationAddError)(r))})}}n.__esModule=!0,n.zoneActivationCheck=o,n.zoneActivationCheckSuccess=i,n.zoneActivationCheckError=a,n.asyncZoneActivationCheck=s,n.zonesProvisionCname=u,n.zoneProvisionCnameSuccess=c,n.zoneProvisionCnameError=l,n.asyncZoneProvisionCname=f,n.zoneProvisionFull=p,n.zoneProvisionFullSuccess=d,n.zoneProvisionFullError=h,n.asyncZoneProvisionFull=g;var m=e("../utils/CFClientV4API/CFClientV4API"),v=e("../utils/CFHostAPI/CFHostAPI"),_=e("./notifications"),b=e("../constants/ActionTypes"),x=r(b),E=e("./activeZone"),C=e("../constants/Schemas"),S=e("./zones")},{"../constants/ActionTypes":554,"../constants/Schemas":556,"../utils/CFClientV4API/CFClientV4API":620,"../utils/CFHostAPI/CFHostAPI":621,"./activeZone":533,"./notifications":537,"./zones":546}],543:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:p.ZONE_PURGE_CACHE}}function i(){return{type:p.ZONE_PURGE_CACHE_SUCCESS}}function a(){return{type:p.ZONE_PURGE_CACHE_ERROR}}function s(e,t){return function(n){n(o());var r=t.replace(/^\s+|\s+$/g,"").split(/\s+/);(0,c.zonePurgeCache)({zoneId:e,files:r},function(e,t){(0,c.v4ResponseOk)(t)?(n(i()),n((0,l.notificationAddSuccess)("container.purgeCacheCard.success",!0))):n((0,l.notificationAddClientAPIError)(a(),t))})}}function u(e){return function(t){t(o()),(0,c.zonePurgeCache)({zoneId:e,purge_everything:!0},function(e,n){(0,c.v4ResponseOk)(n)?(t(i()),t((0,l.notificationAddSuccess)("container.purgeCacheByURLCard.success",!0))):t((0,l.notificationAddClientAPIError)(a(),n))})}}n.__esModule=!0,n.zonePurgeCache=o,n.zonePurgeCacheSuccess=i,n.zonePurgeCacheError=a,n.asyncZonePurgeCacheIndividualFiles=s,n.asyncZonePurgeCacheEverything=u;var c=e("../utils/CFClientV4API/CFClientV4API"),l=e("./notifications"),f=e("../constants/ActionTypes"),p=r(f)},{"../constants/ActionTypes":554,"../utils/CFClientV4API/CFClientV4API":620,"./notifications":537}],544:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:y.ZONE_RAILGUNS_FETCH_ALL}}function i(e,t){return{type:y.ZONE_RAILGUNS_FETCH_ALL_SUCCESS,zoneId:e,zoneRailguns:t}}function a(){return{type:y.ZONE_RAILGUNS_FETCH_ALL_ERROR}}function s(e){return function(t){t(o()),(0,d.zoneRailgunGetAll)(e,function(n,r){t((0,d.v4ResponseOk)(r)?i(e,r.body.result):(0,h.notificationAddClientAPIError)(a(),r))})}}function u(e,t){return{type:y.ZONE_RAILGUNS_CONNECTION_UPDATE,zoneId:e,zoneRailgun:t}}function c(e,t){return{type:y.ZONE_RAILGUNS_CONNECTION_UPDATE_SUCCESSS,zoneId:e,zoneRailgun:t}}function l(e,t){return{type:y.ZONE_RAILGUNS_CONNECTION_UPDATE_ERROR,zoneId:e,zoneRailgun:t}}function f(e,t,n){return function(r){var o=p({},t);r(u(e,p({},t,{connected:n}))),(0,d.zoneRailgunPatch)(e,t.id,n,function(t,n){r((0,d.v4ResponseOk)(n)?c(e,n.body.result):(0,h.notificationAddClientAPIError)(l(e,o),n))})}}n.__esModule=!0;var p=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.zoneRailgunFetchAll=o,n.zoneRailgunFetchAllSuccess=i,n.zoneRailgunFetchAllError=a,n.asyncZoneRailgunFetchAll=s,n.zoneRailgunConnectionUpdate=u,n.zoneRailgunConnectionUpdateSuccess=c,n.zoneRailgunConnectionUpdateError=l,n.asyncZoneRailgunConnectionUpdate=f;var d=e("../utils/CFClientV4API/CFClientV4API"),h=e("./notifications"),g=e("../constants/ActionTypes"),y=r(g)},{"../constants/ActionTypes":554,"../utils/CFClientV4API/CFClientV4API":620,"./notifications":537}],545:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:g.ZONE_FETCH_SETTINGS}}function i(e,t){return{type:g.ZONE_FETCH_SETTINGS_SUCCESS,zoneId:e,zoneSettings:t}}function a(){return{type:g.ZONE_FETCH_SETTINGS_ERROR}}function s(e){return function(t){t(o()),(0,p.zoneGetSettings)(e,function(n,r){(0,p.v4ResponseOk)(r)?(t(i(e,r.body.result)),t((0,d.notificationHandleDevelopmentMode)(e))):t((0,d.notificationAddClientAPIError)(a(),r))})}}function u(e,t){return{type:g.ZONE_UPDATE_SETTING,zoneId:e,setting:t}}function c(e,t){return{type:g.ZONE_UPDATE_SETTING_SUCCESS,zoneId:e,setting:t}}function l(e,t){return{type:g.ZONE_UPDATE_SETTING_ERROR,zoneId:e,setting:t}}function f(e,t,n){return function(r,o){var i=o().zoneSettings.entities[t][e];r(u(t,{id:e,value:n})),(0,p.zonePatchSetting)(e,t,n,function(e,n){(0,p.v4ResponseOk)(n)?(r(c(t,n.body.result)),r((0,d.notificationHandleDevelopmentMode)(t))):r((0,d.notificationAddClientAPIError)(l(t,i),n))})}}n.__esModule=!0,n.zoneFetchSettings=o,n.zoneFetchSettingsSuccess=i,n.zoneFetchSettingsError=a,n.asyncZoneFetchSettings=s,n.zoneUpdateSetting=u,n.zoneUpdateSettingSuccess=c,n.zoneUpdateSettingError=l,n.asyncZoneUpdateSetting=f;var p=e("../utils/CFClientV4API/CFClientV4API"),d=e("./notifications"),h=e("../constants/ActionTypes"),g=r(h)},{"../constants/ActionTypes":554,"../utils/CFClientV4API/CFClientV4API":620,"./notifications":537}],546:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){return{type:g.ZONES_DELETE_ZONE}}function i(){return{type:g.ZONES_DELETE_ZONE_SUCCESS}}function a(e){return{type:g.ZONES_DELETE_ZONE_ERROR,error:e}}function s(e){return function(t){t(o(e)),(0,p.zoneDeleteZone)(e,function(n,r){(0,p.v4ResponseOk)(r)?(t(i()),t((0,m.dnsRecordClearAll)(e)),t(f())):(t(a()),t((0,d.notificationAddError)(r)))})}}function u(){return{type:g.ZONES_FETCH}}function c(e){return{type:g.ZONES_FETCH_SUCCESS,zoneList:e}}function l(e){return{type:g.ZONES_FETCH_ERROR,error:e}}function f(){return function(e){e(u()),(0,p.zoneGetAll)(function(t,n){(0,p.v4ResponseOk)(n)?(e(c(n.body.result)),n.body.result[0]&&e((0,y.zoneSetActiveZoneIfEmpty)(n.body.result[0]))):(e(l()),e((0,d.notificationAddError)(n)))})}}n.__esModule=!0,n.zoneDelete=o,n.zoneDeleteSuccess=i,n.zoneDeleteError=a,n.asyncZoneDelete=s,n.zoneFetch=u,n.zoneFetchSuccess=c,n.zoneFetchError=l,n.asyncFetchZones=f;var p=e("../utils/CFClientV4API/CFClientV4API"),d=e("./notifications"),h=e("../constants/ActionTypes"),g=r(h),y=e("./activeZone"),m=e("./zoneDnsRecords")},{"../constants/ActionTypes":554,"../utils/CFClientV4API/CFClientV4API":620,"./activeZone":533,"./notifications":537,"./zoneDnsRecords":541}],547:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(){return{}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-text"),h=r(d),g=e("react-c3-wrapper"),y=r(g),m=e("../../utils/utils"),v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e,t,n,r,o=this.props,i=o.title,a=o.description,s=o.data,u=o.dataType,l=this.props.intl.formatMessage,f=100;"Bandwidth"===u?(0!==s.all&&(f=s.cached/s.all*100),e=s.cached,t=s.all-s.cached,n=(0,m.humanFileSize)(s.cached)+" "+l({id:"container.analyticCard.bandwidth.firstText"}),r=(0,m.humanFileSize)(s.all)+" "+l({id:"container.analyticCard.bandwidth.secondText"})):"SSL"===u&&(0!==s.unencrypted&&(f=s.encrypted/(s.encrypted+s.unencrypted)*100),e=s.encrypted,t=s.unencrypted,n=s.encrypted+" "+l({id:"container.analyticCard.ssl.firstText"}),r=s.unencrypted+" "+l({id:"container.analyticCard.ssl.secondText"}));var d=f.toFixed(1)+"%";return c.default.createElement("div",{style:{backgroundColor:"#FFFFFF"}},c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:i},c.default.createElement(h.default,{size:"small",type:"muted"},a),c.default.createElement("hr",{style:{margin:"1rem 0"},align:"left",width:"100%"}),c.default.createElement("div",{style:{textAlign:"center"}},c.default.createElement(y.default,{config:{data:{type:"donut",columns:[["firstData",e],["secondData",t]],colors:{secondData:"#dddddd"}},size:{height:150,width:150},donut:{title:d,label:{show:!1}},tooltip:{show:!1},legend:{show:!1}}}),c.default.createElement(h.default,null,c.default.createElement("b",null,n)),c.default.createElement(h.default,null,r))))))},t}(u.Component);v.propTypes={title:u.PropTypes.string.isRequired,description:u.PropTypes.string.isRequired,data:c.default.PropTypes.object.isRequired,dataType:c.default.PropTypes.string.isRequired},n.default=(0,f.injectIntl)((0,l.connect)(s)(v))},{"../../utils/utils":624,"cf-component-card":16,"cf-component-text":146,react:514,"react-c3-wrapper":276,"react-intl":293,"react-redux":315}],548:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("react-intl"),l=e("cf-component-link"),f=r(l),p=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e={fontSize:"1rem",textAlign:"center",width:"4.2rem",whiteSpace:"normal",display:"inline-block",verticalAlign:"top"},t={backgroundColor:"#2f7bbf",borderColor:"transparent",backgroundPosition:"center",backgroundRepeat:"no-repeat",border:"4px solid transparent",color:"#FFF",display:"block",fontSize:"2.02666rem",height:"3.2rem",lineHeight:"2.8rem",margin:"0 auto 0.8rem auto",overflow:"hidden",width:"3.2rem"},n={transition:"all 0.2s ease-in-out",boxSizing:"border-box",color:"#FFF",fontSize:"2.02666rem",lineHeight:"2.8rem"},r={color:"#333",textAlign:"center",whiteSpace:"normal"};return u.default.createElement("li",{style:e},u.default.createElement(f.default,{onClick:this.props.onClick},u.default.createElement("span",{style:t},u.default.createElement("svg",{style:n,version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",viewBox:"0 0 40 40"},this.props.children)),u.default.createElement("span",{style:r},u.default.createElement(c.FormattedMessage,{id:this.props.title}))))},t}(s.Component);n.default=p,p.propTypes={onClick:s.PropTypes.func.isRequired,title:s.PropTypes.string.isRequired}},{"cf-component-link":82,react:514,"react-intl":293}],549:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){this.props.onChange(e.target.checked)},t.prototype.render=function(){var e="proxy";return u.default.createElement("label",{htmlFor:this.props.name,className:e},u.default.createElement("input",{type:"checkbox",id:this.props.name,name:this.props.name,checked:this.props.value,onChange:this.handleChange.bind(this),onFocus:this.props.onFocus,onBlur:this.props.onBlur}),u.default.createElement("span",{className:"cloud"},this.props.label))},t}(s.Component);n.default=c,c.propTypes={label:s.PropTypes.oneOfType([s.PropTypes.string,s.PropTypes.oneOf([!1])]).isRequired,name:s.PropTypes.string,value:s.PropTypes.bool,onChange:s.PropTypes.func,onFocus:s.PropTypes.func,onBlur:s.PropTypes.func}},{react:514}],550:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{integrationName:(0,y.getConfigValue)(e.config,"integrationName"),activeZone:e.activeZone}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-button"),h=e("../../constants/UrlPaths.js"),g=e("../../constants/Plans.js"),y=e("../../selectors/config.js"),m=e("../../selectors/generateUTMLink.js"),v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.openUpgradePlanLink=function(e){window.open(e,"wordpress","toolbar=0,status=0,width=720,height=700")},t.prototype.render=function(){var e=this.props,t=e.integrationName,n=e.activeZone,r=this.props.hasOwnProperty("currentPlan")?this.props.currentPlan:g.FREE_PLAN,o=this.props.hasOwnProperty("minimumPlan")?this.props.minimumPlan:g.FREE_PLAN,i=(0,g.planNeedsUpgrade)(r,o),a=(0,g.getLocalizedPlanId)(o),s=(0,m.generateUTMLink)(h.CLOUDFLARE_DASHBOARD_PAGE+n.name,t,t,this.props.indentifier);return c.default.createElement(p.CardControl,null,i?c.default.createElement(d.Button,{type:"primary",onClick:this.openUpgradePlanLink.bind(this,s)},c.default.createElement(f.FormattedMessage,{id:"component.customcardcontrol.upgrade"})," ",c.default.createElement(f.FormattedMessage,{id:a})):this.props.children)},t}(u.Component);v.propTypes={name:u.PropTypes.string,indentifier:u.PropTypes.string.isRequired},n.default=(0,f.injectIntl)((0,l.connect)(s)(v))},{"../../constants/Plans.js":555,"../../constants/UrlPaths.js":557,"../../selectors/config.js":613,"../../selectors/generateUTMLink.js":614,"cf-component-button":5,"cf-component-card":16,react:514,"react-intl":293,"react-redux":315}],551:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){return u.default.createElement("div",null,this.props.isEnabled&&this.props.children,!this.props.isEnabled&&this.props.error&&this.props.error)},t}(s.Component);n.default=c,c.propTypes={isEnabled:u.default.PropTypes.bool.isRequired,error:u.default.PropTypes.string}},{react:514}],552:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}n.__esModule=!0;var s=e("react"),u=r(s),c=e("react-intl"),l=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e={padding:"30px 15px 30px 15px"},t={display:"block",width:"40px",height:"auto",maxWidth:"100px",margin:"0 auto"},n={padding:"20px 0 0 0",textAlign:"center",fontSize:"16px",color:"#2f7bbf",width:"100%",display:"block"},r={padding:"10px 0 0 0",fontSize:"12px",textAlign:"center"};return u.default.createElement("div",{style:e},u.default.createElement("img",{src:this.props.imgSrc,style:t}),u.default.createElement("span",{style:n,href:"#"},u.default.createElement(c.FormattedMessage,{id:this.props.titleKey})),u.default.createElement("p",{style:r},u.default.createElement(c.FormattedMessage,{id:this.props.descriptionKey})))},t}(s.Component);n.default=l,l.propTypes={imgSrc:s.PropTypes.string.isRequired,titleKey:s.PropTypes.string.isRequired,descriptionKey:s.PropTypes.string.isRequired}},{react:514,"react-intl":293}],553:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return u.default.map(e,function(e,t){return a.default.createElement(c.cardMapper[e],{key:t})})}n.__esModule=!0,n.renderCards=o;var i=e("react"),a=r(i),s=e("lodash"),u=r(s),c=e("../../utils/ImportCards")},{"../../utils/ImportCards":622,lodash:191,react:514}],554:[function(e,t,n){"use strict";n.__esModule=!0;n.APPLICATION_INIT="APPLICATION_INIT",n.CONFIG_FETCH="CONFIG_FETCH",n.CONFIG_FETCH_SUCCESS="CONFIG_FETCH_SUCCESS",n.CONFIG_FETCH_ERROR="CONFIG_FETCH_ERROR",n.CONFIG_UPDATE_BY_KEY="CONFIG_UPDATE_BY_KEY",n.DNS_RECORD_CLEAR_ALL="DNS_RECORD_CLEAR_ALL",n.DNS_RECORD_CREATE="DNS_RECORD_CREATE",n.DNS_RECORD_CREATE_SUCCESS="DNS_RECORD_CREATE_SUCCESS",n.DNS_RECORD_CREATE_ERROR="DNS_RECORD_CREATE_ERROR",n.DNS_RECORD_FETCH_LIST="DNS_RECORD_FETCH_LIST",n.DNS_RECORD_FETCH_LIST_SUCCESS="DNS_RECORD_FETCH_LIST_SUCCESS",n.DNS_RECORD_FETCH_LIST_ERROR="DNS_RECORD_FETCH_LIST_ERROR",n.DNS_RECORD_UPDATE="DNS_RECORD_UPDATE",n.DNS_RECORD_UPDATE_SUCCESS="DNS_RECORD_UPDATE_SUCCESS",n.DNS_RECORD_UPDATE_ERROR="DNS_RECORD_UPDATE_ERROR",n.INTL_FETCH_TRANSLATIONS="INTL_FETCH_TRANSLATIONS",n.INTL_FETCH_TRANSLATIONS_SUCCESS="INTL_FETCH_TRANSLATIONS_SUCCESS",n.INTL_FETCH_TRANSLATIONS_ERROR="INTL_FETCH_TRANSLATIONS_ERROR",n.NOTIFICATION_ADD="NOTIFICATION_ADD",n.NOTIFICATION_REMOVE="NOTIFICATION_REMOVE",n.PLUGIN_SETTINGS_FETCH="PLUGIN_SETTINGS_FETCH",n.PLUGIN_SETTINGS_FETCH_SUCCESS="PLUGIN_SETTINGS_FETCH_SUCCESS",n.PLUGIN_SETTINGS_FETCH_ERROR="PLUGIN_SETTINGS_FETCH_ERROR",n.PLUGIN_SETTING_UPDATE="PLUGIN_SETTING_UPDATE",n.PLUGIN_SETTING_UPDATE_SUCCESS="PLUGIN_SETTING_UPDATE_SUCCESS",n.PLUGIN_SETTING_UPDATE_ERROR="PLUGIN_SETTING_UPDATE_ERROR",n.USER_LOGIN="USER_LOGIN",n.USER_LOGIN_SUCCESS="USER_LOGIN_SUCCESS",n.USER_LOGIN_ERROR="USER_LOGIN_ERROR",n.USER_LOGOUT="USER_LOGOUT",n.USER_SIGNUP="USER_SIGNUP",n.USER_SIGNUP_SUCCESS="USER_SIGNUP_SUCCESS",n.USER_SIGNUP_ERROR="USER_SIGNUP_ERROR",n.ZONE_ACTIVATION_CHECK="ZONE_ACTIVATION_CHECK",n.ZONE_ACTIVATION_CHECK_SUCCESS="ZONE_ACTIVATION_CHECK_SUCCESS",n.ZONE_ACTIVATION_CHECK_ERROR="ZONE_ACTIVATION_CHECK_ERROR",n.ZONE_FETCH_ANALYTICS="ZONE_FETCH_ANALYTICS",n.ZONE_FETCH_ANALYTICS_SUCCESS="ZONE_FETCH_ANALYTICS_SUCCESS",n.ZONE_FETCH_ANALYTICS_ERROR="ZONE_FETCH_ANALYTICS_ERROR",n.ZONE_FETCH_SETTINGS="ZONE_FETCH_SETTINGS",n.ZONE_FETCH_SETTINGS_SUCCESS="ZONE_FETCH_SETTINGS_SUCCESS",n.ZONE_FETCH_SETTINGS_ERROR="ZONE_FETCH_SETTINGS_ERROR",n.ZONE_PURGE_CACHE="ZONE_PURGE_CACHE",n.ZONE_PURGE_CACHE_SUCCESS="ZONE_PURGE_CACHE_SUCCESS",n.ZONE_PURGE_CACHE_ERROR="ZONE_PURGE_CACHE_ERROR",n.ZONE_UPDATE_SETTING="ZONE_UPDATE_SETTING",n.ZONE_UPDATE_SETTING_SUCCESS="ZONE_UPDATE_SETTING_SUCCESS",n.ZONE_UPDATE_SETTING_ERROR="ZONE_UPDATE_SETTING_ERROR",n.ZONE_FETCH_SCAN="ZONE_FETCH_SCAN",n.ZONE_FETCH_SCAN_SUCCESS="ZONE_FETCH_SCAN_SUCCESS",n.ZONE_FETCH_SCAN_ERROR="ZONE_FETCH_SCAN_ERROR",n.ZONE_UPDATE_SCAN="ZONE_UPDATE_SCAN",n.ZONE_UPDATE_SCAN_SUCCESS="ZONE_UPDATE_SCAN_SUCCESS",n.ZONE_UPDATE_SCAN_ERROR="ZONE_UPDATE_SCAN_ERROR",n.ZONES_DELETE_ZONE="ZONES_DELETE_ZONE",n.ZONES_DELETE_ZONE_SUCCESS="ZONES_DELETE_ZONE_SUCCESS",n.ZONES_DELETE_ZONE_ERROR="ZONES_DELETE_ZONE_ERROR",n.ZONES_FETCH="ZONES_FETCH",n.ZONES_FETCH_SUCCESS="ZONES_FETCH_SUCCESS",n.ZONES_FETCH_ERROR="ZONES_FETCH_ERROR",n.ZONES_SET_ACTIVE_ZONE="ZONE_SET_ACTIVE_ZONE",n.ZONES_PROVISION_CNAME="ZONES_PROVISION_CNAME",n.ZONES_PROVISION_CNAME_SUCCESS="ZONES_PROVISION_CNAME_SUCCESS",n.ZONES_PROVISION_CNAME_ERROR="ZONES_PROVISION_CNAME_ERROR",n.ZONES_PROVISION_FULL="ZONES_PROVISION_FULL_ZONE",n.ZONES_PROVISION_FULL_SUCCESS="ZONES_PROVISION_FULL_ZONE_SUCCESS",n.ZONES_PROVISION_FULL_ERROR="ZONES_PROVISION_FULL_ZONE_ERROR",n.ZONE_RAILGUNS_FETCH_ALL="ZONES_RAILGUNS_FETCH_ALL",n.ZONE_RAILGUNS_FETCH_ALL_SUCCESS="ZONES_RAILGUNS_FETCH_ALL_SUCCESS",n.ZONE_RAILGUNS_FETCH_ALL_ERROR="ZONES_RAILGUNS_FETCH_ALL_ERROR",n.ZONE_RAILGUNS_CONNECTION_UPDATE="ZONES_RAILGUNS_CONNECTION_UPDATE",n.ZONE_RAILGUNS_CONNECTION_UPDATE_SUCCESSS="ZONES_RAILGUNS_CONNECTION_UPDATE__SUCCESS",n.ZONE_RAILGUNS_CONNECTION_UPDATE_ERROR="ZONES_RAILGUNS_CONNECTION_UPDATE_ERROR"},{}],555:[function(e,t,n){"use strict";function r(e,t){var n={};return n[u]=0,n[c]=1,n[l]=2,n[f]=3,n[e]<n[t]}function o(e){var t=e;switch(e){case c:t=i;break;case l:t=a;break;case f:t=s}return t}n.__esModule=!0,n.planNeedsUpgrade=r,n.getLocalizedPlanId=o;var i="constants.plans.pro",a="constants.plans.biz",s="constants.plans.ent",u=n.FREE_PLAN="free",c=n.PRO_PLAN="pro",l=n.BIZ_PLAN="business",f=n.ENT_PLAN="enterprise"},{}],556:[function(e,t,n){"use strict";function r(e,t){var n=new a.Schema(e,{idAttribute:"id"});return(0,a.normalize)(t,(0,a.arrayOf)(n))}function o(e){return(0,a.normalize)(e,(0,a.arrayOf)(s))}function i(e){return(0,a.normalize)(e,(0,a.arrayOf)(u))}n.__esModule=!0,n.normalizeZoneByIdGetAll=r,n.normalizeZoneGetAll=o,n.normalizeZoneRailgunGetAll=i;var a=e("normalizr"),s=new a.Schema("zones",{idAttribute:"name"}),u=new a.Schema("railguns",{idAttribute:"id"})},{normalizr:195}],557:[function(e,t,n){"use strict";n.__esModule=!0;n.ANALYTICS_PAGE="/analytics",n.CLOUDFLARE_API_KB_ARTICLE_PAGE="https://support.cloudflare.com/hc/en-us/articles/200167836-Where-do-I-find-my-CloudFlare-API-key-",n.CLOUDFLARE_FORGOT_PASSWORD_PAGE="https://cloudflare.com/a/forgot-password",n.CLOUDFLARE_SIGNUP_PAGE="https://www.cloudflare.com/a/sign-up",n.CLOUDFLARE_UPGRADE_PAGE="http://cloudflare.com/plans",n.CLOUDFLARE_DASHBOARD_PAGE="http://cloudflare.com/a/overview/",n.DOMAINS_OVERVIEW_PAGE="/zones",n.HOME_PAGE="/home",n.MORE_SETTINGS_PAGE="/more-settings",n.LOGIN_PAGE="/login",n.PERFORMANCE_PAGE="/performance",n.SECURITY_PAGE="/security",n.SIGN_UP_PAGE="/sign-up",n.SUPPORT_PAGE="https://support.cloudflare.com/hc/en-us/",n.TERMS_AND_CONDITIONS_PAGE="https://www.cloudflare.com/terms",n.PRIVACY_POLICY_PAGE="https://www.cloudflare.com/security-policy",n.CLOUDFLARE_ACCOUNT_PAGE="https://www.cloudflare.com/a/account/my-account"},{}],558:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZone:e.activeZone,zone:e.zones.entities.zones[e.activeZone.name]}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("../../actions/zoneProvision"),d=e("cf-component-card"),h=e("cf-component-button"),g=e("cf-component-list"),y=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleButtonClick=function(){var e=this.props,t=e.activeZone,n=e.dispatch;n((0,p.asyncZoneActivationCheck)(t.id))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.zone;return c.default.createElement("div",null,c.default.createElement(d.Card,null,c.default.createElement(d.CardSection,null,c.default.createElement(d.CardContent,{title:e({id:"container.activationCheckCard.title"})},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.activationCheckCard.status",values:{status:t.status}})),c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.activationCheckCard.nameServers"})),c.default.createElement(g.List,null,t.name_servers.map(function(e){return c.default.createElement(g.ListItem,{key:e},e)})),c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.activationCheckCard.description"}))),c.default.createElement(d.CardControl,null,c.default.createElement(h.Button,{type:"success",onClick:this.handleButtonClick.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.activationCheckCard.button"}))))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(y))},{"../../actions/zoneProvision":542,"cf-component-button":5,"cf-component-card":16,"cf-component-list":86,react:514,"react-intl":293,"react-redux":315}],559:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneName:e.activeZone.name,zoneList:e.zones.entities.zones,config:e.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-select"),g=r(h),y=e("../../actions/notifications"),m=e("../../selectors/config"),v=e("../../actions/activeZone"),_=e("../../utils/utils"),b=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={subdomainChecked:!1},r}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.dispatch,r=t.zoneList;d.default.values(r).forEach(function(t){t.name===e&&n((0,v.asyncZoneSetActiveZone)(t))})},t.prototype.componentWillReceiveProps=function(){var e=this.props,t=e.activeZoneName,n=e.config,r=e.dispatch,o=(0,m.getConfigValue)(n,"isSubdomainCheckEnabled");o&&!this.state.subdomainChecked&&(0,_.isSubdomain)(t)&&(this.setState({subdomainChecked:!0}),r((0,y.notificationAddWarning)("warning.usingSubdomain",!0,!0)))},t.prototype.render=function(){var e=this.props,t=e.activeZoneName,n=e.zoneList,r=d.default.values(n).map(function(e){return{value:e.name,label:e.name}}),o=r.length<2;return c.default.createElement("div",{className:"active-zone-selector__"+(o?"singlezone":"multiplezone")},o?t:c.default.createElement(g.default,{value:t,options:r,onChange:this.handleChange.bind(this)}))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(b))},{"../../actions/activeZone":533,"../../actions/notifications":537,"../../selectors/config":613,"../../utils/utils":624,"cf-component-select":117,lodash:191,react:514,"react-intl":293,"react-redux":315}],560:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZone:e.activeZone,zones:e.zones.entities.zones}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("../../components/CustomCardControl/CustomCardControl"),h=r(d),g=e("../../constants/Plans.js"),y="advanceddos",m=g.BIZ_PLAN,v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.zones,r=n[t.name],o=this.props.intl.formatMessage;return(0,g.planNeedsUpgrade)(r.plan.legacy_id,m)?c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{
30
- title:o({id:"container.advanceddos.title"})},c.default.createElement(f.FormattedMessage,{id:"container.advanceddos.description"})),c.default.createElement(h.default,{minimumPlan:m,currentPlan:r.plan.legacy_id,indentifier:y},c.default.createElement(f.FormattedMessage,{id:"container.advanceddos.value"})))):null},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(v))},{"../../components/CustomCardControl/CustomCardControl":550,"../../constants/Plans.js":555,"cf-component-card":16,react:514,"react-intl":293,"react-redux":315}],561:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,alwaysOnlineValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-toggle"),d=r(p),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="always_online",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.alwaysOnlineCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.alwaysOnlineCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.alwaysOnlineValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],562:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,allZoneAnalytics:e.zoneAnalytics.entities}}n.__esModule=!0;var u=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},c=e("react"),l=r(c),f=e("react-redux"),p=e("react-intl"),d=e("cf-component-tabs"),h=e("cf-component-layout"),g=e("cf-component-heading"),y=e("cf-component-loading"),m=r(y),v=e("cf-component-text"),_=r(v),b=e("d3-format"),x=e("react-c3-wrapper"),E=r(x),C=e("lodash"),S=r(C),w=e("../../utils/utils"),T=e("../../components/AnalyticCard/AnalyticCard"),O=r(T),P="requests",R="bandwidth",A="uniques",M="threats",N=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n)),a=function(e){var t=(0,b.format)(".0f"),n=(0,w.humanFileSize)(e).split(" "),r=n[1],o=n[0];return t(o)+r};return r.state={activeTab:P,bytesToString:a},r}return a(t,e),t.prototype.handleTabChange=function(e){this.setState({activeTab:e})},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props,n=t.activeZoneId,r=t.allZoneAnalytics,o=u({},r[n]),i=S.default.isEmpty(o),a=e({id:"containers.analyticsPage.cached"}),s=e({id:"containers.analyticsPage.uncached"}),c=e({id:"containers.analyticsPage.threats"}),f=e({id:"containers.analyticsPage.uniques"});if(!i){var y="N/A",v=0;S.default.forEach(o.totals.threats.country,function(e,t){v<e&&(v=e,y=t)});var b="N/A",x=0;S.default.forEach(o.totals.threats.country,function(e,t){x<e&&(x=e,b=t)})}var C="%m/%d";return l.default.createElement("div",null,i&&l.default.createElement(_.default,{align:"center"},l.default.createElement(m.default,null)),!i&&l.default.createElement("div",null,l.default.createElement(g.Heading,{size:1},l.default.createElement(p.FormattedMessage,{id:"container.analyticsPage.title"})),l.default.createElement(d.Tabs,{activeTab:this.state.activeTab,tabs:[{id:P,label:e({id:"container.analyticsPage.tabs.requests"})},{id:R,label:e({id:"container.analyticsPage.tabs.bandwidth"})},{id:A,label:e({id:"container.analyticsPage.tabs.uniques"})},{id:M,label:e({id:"container.analyticsPage.tabs.threats"})}],onChange:this.handleTabChange.bind(this)},l.default.createElement(d.TabsPanel,{id:P},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.requests.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.requests.total"})),o.totals.requests.all),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.requests.cached"})),o.totals.requests.cached),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.requests.uncached"})),o.totals.requests.uncached)),l.default.createElement(h.LayoutRow,null,l.default.createElement(E.default,{config:{data:{x:"x",xFormat:C,columns:[["x"].concat(o.timeSeries),[a].concat(o.requests[0]),[s].concat(o.requests[1])]},axis:{x:{type:"timeseries",tick:{format:C}},y:{label:e({id:"container.analyticsPage.tabs.requests"})}}}})))),l.default.createElement(d.TabsPanel,{id:R},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.bandwidth.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.bandwidth.total"})),(0,w.humanFileSize)(o.totals.bandwidth.all)),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.bandwidth.cached"})),(0,w.humanFileSize)(o.totals.bandwidth.cached)),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.bandwidth.uncached"})),(0,w.humanFileSize)(o.totals.bandwidth.uncached))),l.default.createElement(h.LayoutRow,null,l.default.createElement(E.default,{config:{data:{x:"x",xFormat:C,columns:[["x"].concat(o.timeSeries),[a].concat(o.bandwidth[0]),[s].concat(o.bandwidth[1])]},axis:{x:{type:"timeseries",tick:{format:C}},y:{label:e({id:"container.analyticsPage.tabs.bandwidth"}),tick:{format:this.state.bytesToString}}}}})))),l.default.createElement(d.TabsPanel,{id:A},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.uniques.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.uniques.total"})),o.totals.uniques.all),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.uniques.maximum"})),S.default.max(o.uniques[0])),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.uniques.minimum"})),S.default.min(o.uniques[0]))),l.default.createElement(h.LayoutRow,null,l.default.createElement(E.default,{config:{data:{x:"x",xFormat:C,columns:[["x"].concat(o.timeSeries),[f].concat(o.uniques[0])]},axis:{x:{type:"timeseries",tick:{format:C}},y:{label:e({id:"container.analyticsPage.tabs.uniques"})}}}})))),l.default.createElement(d.TabsPanel,{id:M},l.default.createElement(h.LayoutContainer,null,l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1},l.default.createElement("h3",null,e({id:"container.analyticsPage.tabs.threats.title"})))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.threats.total"})),o.totals.threats.total?o.totals.threats.total:0),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.threats.country"})),y),l.default.createElement(h.LayoutColumn,{width:1/3},l.default.createElement("h5",null,e({id:"container.analyticsPage.tabs.threats.type"})),b)),l.default.createElement(h.LayoutRow,null,l.default.createElement(E.default,{config:{data:{x:"x",xFormat:C,columns:[["x"].concat(o.timeSeries),[c].concat(o.threats[0])]},axis:{x:{type:"timeseries",tick:{format:C}},y:{label:e({id:"container.analyticsPage.tabs.threats"})}}}}))))),l.default.createElement(h.LayoutRow,null,l.default.createElement(h.LayoutColumn,{width:74/150},l.default.createElement(O.default,{title:e({id:"container.analyticCard.ssl.title"}),description:e({id:"container.analyticCard.duration"}),data:o.totals.requests.ssl,dataType:e({id:"container.analyticCard.ssl.datatype"})})),l.default.createElement(h.LayoutColumn,{width:2/150}," "),l.default.createElement(h.LayoutColumn,{width:74/150},l.default.createElement(O.default,{title:e({id:"container.analyticCard.bandwidth.title"}),description:e({id:"container.analyticCard.duration"}),data:o.totals.bandwidth,dataType:e({id:"container.analyticCard.bandwidth.datatype"})})))))},t}(c.Component);n.default=(0,p.injectIntl)((0,f.connect)(s)(N))},{"../../components/AnalyticCard/AnalyticCard":547,"../../utils/utils":624,"cf-component-heading":74,"cf-component-layout":80,"cf-component-loading":88,"cf-component-tabs":134,"cf-component-text":146,"d3-format":165,lodash:191,react:514,"react-c3-wrapper":276,"react-intl":293,"react-redux":315}],563:[function(e,t,n){(function(t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{state:e}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("react-gateway"),d=e("cf-component-layout"),h=e("cf-component-flex"),g=e("../../containers/ActiveZoneSelector/ActiveZoneSelector"),y=r(g),m=e("../../containers/AppNavigation/AppNavigation"),v=r(m),_=e("../../utils/Auth/Auth"),b=e("../../actions/config"),x=e("../../containers/GlobalNotifications/GlobalNotifications"),E=r(x),C=e("../../containers/UnderAttackButton/UnderAttackButton"),S=r(C),w=e("../../selectors/config");t.Intl||e("intl");var T=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.state.config;return c.default.createElement("div",null,c.default.createElement(d.LayoutContainer,null,c.default.createElement("div",{style:{border:"0.5px solid #ddd",marginTop:"8px",borderTop:"none"}},c.default.createElement(d.LayoutRow,null,c.default.createElement("header",{id:"header",className:"header app-header"},c.default.createElement("div",{className:"gradient-bar-header"},c.default.createElement("div",{className:"header-main",style:{borderBottom:"1px solid #ddd",backgroundColor:"#f9f9f9"}},c.default.createElement(d.LayoutColumn,{width:3/8},c.default.createElement(d.LayoutColumn,{width:3/8},c.default.createElement("img",{style:{margin:"4.95px auto 0",width:"170px",height:"30px"},src:(0,w.getAbsoluteUrl)(e,"assets/logo.svg")})),c.default.createElement(d.LayoutColumn,{width:5/8},(0,_.isLoggedIn)()?c.default.createElement(y.default,null):c.default.createElement("noscript",null))),c.default.createElement(d.LayoutColumn,{width:5/8},(0,_.isLoggedIn)()&&this.props.state.zoneSettings.entities[this.props.state.activeZone.id]?c.default.createElement(S.default,null):c.default.createElement("noscript",null)))))),(0,_.isLoggedIn)()?c.default.createElement("div",{style:{marginTop:"-8px"}},c.default.createElement(d.LayoutRow,null,c.default.createElement("div",{className:"app-navigation-tabs-wrapper"},c.default.createElement(h.Flex,{spacing:!1},c.default.createElement(d.LayoutColumn,{width:1/3}," "),c.default.createElement(d.LayoutColumn,{width:1/3},c.default.createElement(v.default,null)),c.default.createElement(d.LayoutColumn,{width:1/3}," "))))):null,(0,_.isLoggedIn)()?c.default.createElement(d.LayoutRow,null,c.default.createElement(h.Flex,{spacing:!1},c.default.createElement(d.LayoutColumn,{width:.15}," "),c.default.createElement(d.LayoutColumn,{width:.7},this.props.children),c.default.createElement(d.LayoutColumn,{width:.15}," "))):c.default.createElement(d.LayoutRow,null,this.props.children))),c.default.createElement(d.LayoutRow,null,c.default.createElement(d.LayoutColumn,{width:1},c.default.createElement("p",{style:{textAlign:"center"}},c.default.createElement(f.FormattedMessage,{id:"container.App.version",values:{version:this.props.state.config.config.version}})))),c.default.createElement(p.GatewayDest,{name:"modal"}),c.default.createElement(E.default,null))},t}(u.Component),O=(0,f.injectIntl)((0,l.connect)(s)(T)),P=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentWillMount=function(){var e=this.props.dispatch;e((0,b.asyncConfigFetch)())},t.prototype.render=function(){return this.props.state.app.isInitialized?c.default.createElement(f.IntlProvider,{locale:this.props.state.intl.locale,messages:this.props.state.intl.translations},c.default.createElement(p.GatewayProvider,null,c.default.createElement(O,null,this.props.children))):c.default.createElement("noscript",null)},t}(c.default.Component);n.default=(0,l.connect)(s)(P)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../actions/config":535,"../../containers/ActiveZoneSelector/ActiveZoneSelector":559,"../../containers/AppNavigation/AppNavigation":564,"../../containers/GlobalNotifications/GlobalNotifications":575,"../../containers/UnderAttackButton/UnderAttackButton":594,"../../selectors/config":613,"../../utils/Auth/Auth":619,"cf-component-flex":64,"cf-component-layout":80,intl:189,react:514,"react-gateway":284,"react-intl":293,"react-redux":315}],564:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}function u(e){return{config:e.config}}n.__esModule=!0;var c=e("react"),l=o(c),f=e("react-redux"),p=e("react-intl"),d=e("redux-simple-router"),h=e("../../components/AppNavigationLiNode/AppNavigationLiNode"),g=o(h),y=e("../../constants/UrlPaths"),m=r(y),v=e("../../utils/Auth/Auth"),_=e("../../selectors/config"),b=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.handleClick=function(e){var t=this.props.dispatch;t(d.routeActions.push(e))},t.prototype.render=function(){var e=this,t={listStyle:"none",margin:"0",tableLayout:"fixed",width:"100%",textAlign:"center"},n={fill:"#FFF",transition:"all 0.2s ease"},r=this.props.config;return(0,v.isLoggedIn)()&&l.default.createElement("ul",{style:t},l.default.createElement(g.default,{onClick:function(){return e.handleClick(m.HOME_PAGE)},title:"container.appNavigation.home"},l.default.createElement("path",{style:n,stroke:"white",d:"M36 21.451l-16-12.42-16 12.42v-5.064l16-12.42 16 12.42zM32 21v12h-8v-8h-8v8h-8v-12l12-9z"})),(0,_.isDNSPageEnabled)(r)?l.default.createElement(g.default,{onClick:function(){return e.handleClick(m.DOMAINS_OVERVIEW_PAGE)},title:"container.appNavigation.domainsOverview"},l.default.createElement("path",{style:n,d:"M24,12h-8v-2h8V12z M30,12v18H10V12h4v2h12v-2H30z M16,23h-3v3h3V23z M16,18h-3v3h3V18z M27,23h-9v3h9V23z M27,18h-9v3h9V18z"})):null,l.default.createElement(g.default,{onClick:function(){return e.handleClick(m.MORE_SETTINGS_PAGE)},title:"container.appNavigation.moresettings"},l.default.createElement("path",{style:n,d:"M30,13l-6,6l-3-3l6-6h-7l-4,4v5l-6,6.1l4.9,4.9l6.1-6h5l4-4V13z"})),l.default.createElement(g.default,{onClick:function(){return e.handleClick(m.ANALYTICS_PAGE)},title:"container.appNavigation.analytics"},l.default.createElement("path",{style:n,d:"M21,12.7V21h-8.3c0,5,3.9,8.9,8.7,8.9c4.8,0,8.5-3.8,8.5-8.6C29.9,16.5,26,12.7,21,12.7z"}),l.default.createElement("path",{style:n,d:"M19,19v-8.9c-5,0.5-8.4,4.5-8.9,8.9H19z"})))},t}(c.Component);b.propTypes={dispatch:c.PropTypes.func.isRequired},n.default=(0,p.injectIntl)((0,f.connect)(u)(b))},{"../../components/AppNavigationLiNode/AppNavigationLiNode":548,"../../constants/UrlPaths":557,"../../selectors/config":613,"../../utils/Auth/Auth":619,react:514,"react-intl":293,"react-redux":315,"redux-simple-router":516}],565:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,modifiedDate:(0,h.getPluginSettingsModifiedDateForZoneId)(e.activeZone.id,_,e),isFetching:(0,h.getPluginSettingsIsFetching)(e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-button"),h=e("../../selectors/pluginSettings"),g=e("../../actions/pluginSettings"),y=e("cf-component-loading"),m=r(y),v=e("../../utils/utils"),_="default_settings",b=!0,x=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.onButtonClick=function(){var e=this.props,t=e.activeZoneId,n=e.dispatch;n((0,g.asyncPluginUpdateSetting)(_,t,b))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.applydefaultsettingscard.title"}),footerMessage:(0,v.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.applydefaultsettingscard.description"}))),c.default.createElement(p.CardControl,null,this.props.isFetching===_?c.default.createElement(m.default,null):c.default.createElement(d.Button,{type:"primary",onClick:this.onButtonClick.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.applydefaultsettingscard.button"}))))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(x))},{"../../actions/pluginSettings":538,"../../selectors/pluginSettings":615,"../../utils/utils":624,"cf-component-button":5,"cf-component-card":16,"cf-component-loading":88,react:514,"react-intl":293,"react-redux":315}],566:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,rewriteValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-toggle"),d=r(p),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="automatic_https_rewrites",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.automatichttprewrites.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.automatichttprewrites.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.rewriteValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],567:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,browserCacheTTLValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e),isFetching:e.zoneSettings.isFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-select"),h=r(d),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="browser_cache_ttl",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props.dispatch;t((0,g.asyncZoneUpdateSetting)(v,this.props.activeZoneId,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.browserCacheTTLCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.browserCacheTTLCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(h.default,{label:"",value:this.props.browserCacheTTLValue,options:[{value:7200,label:e({id:"container.browserIntegrityCheckCard.twoHours"})},{value:10800,label:e({id:"container.browserIntegrityCheckCard.threeHours"})},{value:14400,label:e({id:"container.browserIntegrityCheckCard.fourHours"})},{value:18e3,label:e({id:"container.browserIntegrityCheckCard.fiveHours"})},{value:28800,label:e({id:"container.browserIntegrityCheckCard.eightHours"})},{value:43200,label:e({id:"container.browserIntegrityCheckCard.twelveHours"})},{value:57600,label:e({id:"container.browserIntegrityCheckCard.sixteenHours"})},{value:72e3,label:e({id:"container.browserIntegrityCheckCard.twentyHours"})},{value:86400,label:e({id:"container.browserIntegrityCheckCard.oneDay"})},{value:172800,label:e({id:"container.browserIntegrityCheckCard.twoDays"})},{value:259200,label:e({id:"container.browserIntegrityCheckCard.threeDays"})},{value:345600,label:e({id:"container.browserIntegrityCheckCard.fourDays"})},{value:432e3,label:e({id:"container.browserIntegrityCheckCard.fiveDays"})},{value:691200,label:e({id:"container.browserIntegrityCheckCard.eightDays"})},{value:1382400,label:e({id:"container.browserIntegrityCheckCard.sixteenDays"})},{value:2073600,label:e({id:"container.browserIntegrityCheckCard.twentyFourDays"})},{value:2592e3,label:e({id:"container.browserIntegrityCheckCard.oneMonth"})},{value:5184e3,label:e({id:"container.browserIntegrityCheckCard.twoMonths"})},{value:15552e3,label:e({id:"container.browserIntegrityCheckCard.sixMonths"})},{value:31536e3,label:e({id:"container.browserIntegrityCheckCard.oneYear"})}],onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-select":117,react:514,"react-intl":293,"react-redux":315}],568:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,browserIntegrityCheckValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-toggle"),d=r(p),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="browser_check",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.browserIntegrityCheckCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.browserIntegrityCheckCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.browserIntegrityCheckValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],569:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,cacheLevelValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,m,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,m,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-radio"),h=e("../../actions/zoneSettings"),g=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),m="cache_level",v=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleRadioChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;r((0,h.asyncZoneUpdateSetting)(m,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.cacheLevelCard.title"}),footerMessage:(0,g.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.cacheLevelCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(d.RadioGroup,{value:this.props.cacheLevelValue,onChange:this.handleRadioChange.bind(this),options:[{label:e({id:"container.cacheLevelCard.simplified"}),name:"cache_level_simplified",value:"simplified"
31
- },{label:e({id:"container.cacheLevelCard.basic"}),name:"cache_level_basic",value:"basic"},{label:e({id:"container.cacheLevelCard.aggressive"}),name:"cache_level_aggressive",value:"aggressive"}]})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(v))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-radio":115,react:514,"react-intl":293,"react-redux":315}],570:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,challengePassageValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-select"),d=r(p),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="challenge_ttl",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.challengePassageCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.challengePassageCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:this.props.challengePassageValue,options:[{value:300,label:e({id:"container.challengePassageCard.select.fiveMinutes"})},{value:900,label:e({id:"container.challengePassageCard.select.fifteenMinutes"})},{value:1800,label:e({id:"container.challengePassageCard.select.thirtyMinutes"})},{value:2700,label:e({id:"container.challengePassageCard.select.fortyFiveMinutes"})},{value:3600,label:e({id:"container.challengePassageCard.select.oneHour"})},{value:7200,label:e({id:"container.challengePassageCard.select.twoHours"})},{value:10800,label:e({id:"container.challengePassageCard.select.threeHours"})},{value:14440,label:e({id:"container.challengePassageCard.select.fourHours"})},{value:28800,label:e({id:"container.challengePassageCard.select.eightHours"})},{value:57600,label:e({id:"container.challengePassageCard.select.sixteenHours"})},{value:86400,label:e({id:"container.challengePassageCard.select.oneDay"})},{value:604800,label:e({id:"container.challengePassageCard.select.oneWeek"})},{value:2592e3,label:e({id:"container.challengePassageCard.select.oneMonth"})},{value:31536e3,label:e({id:"container.challengePassageCard.select.oneYear"})}],onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-select":117,react:514,"react-intl":293,"react-redux":315}],571:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{config:e.config.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-button"),d=e("cf-component-form"),h=e("cf-component-input"),g=r(h),y=e("cf-component-layout"),m=e("../../containers/MarketingFeatureCollection/MarketingFeatureCollection"),v=r(m),_=e("../../actions/user"),b=e("../../constants/UrlPaths.js"),x=e("../../selectors/generateUTMLink.js"),E="signup_now",C="copy_api_key",S=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={email:"",apiKey:""},r}return a(t,e),t.prototype.openLinkInWindow=function(e){window.open(e,"wordpress","toolbar=0,status=0,width=720,height=700")},t.prototype.handleEmailChange=function(e){this.setState({email:e})},t.prototype.handleApiKeyChange=function(e){this.setState({apiKey:e})},t.prototype.handleLoginSubmit=function(e){e.preventDefault();var t=this.props.dispatch;t((0,_.asyncAPILogin)(this.state.email,this.state.apiKey))},t.prototype.render=function(){var e=this,t=this.props.intl.formatMessage,n=this.props.config,r=(0,x.generateUTMLink)(b.CLOUDFLARE_SIGNUP_PAGE,n.integrationName,n.integrationName,E),o=(0,x.generateUTMLink)(b.CLOUDFLARE_ACCOUNT_PAGE,n.integrationName,n.integrationName,C),i={overflow:"hidden"};return c.default.createElement("div",null,c.default.createElement("div",{id:"cf-login-page",style:{margin:"2rem auto"}},c.default.createElement(d.Form,{layout:"vertical",onSubmit:function(t){return e.handleLoginSubmit(t)}},c.default.createElement(y.LayoutContainer,null,c.default.createElement("div",{style:i},c.default.createElement(y.LayoutRow,null,c.default.createElement(y.LayoutColumn,{width:1},c.default.createElement(d.FormHeader,{title:t({id:"component.clientLogin.form.title"}),style:{textAlign:"center"}})))),c.default.createElement(d.FormFieldset,{legend:""},c.default.createElement("div",{style:i},c.default.createElement(y.LayoutRow,{style:{overflow:"hidden"}},c.default.createElement(y.LayoutColumn,{width:1},c.default.createElement(d.FormLabel,{hidden:!0},c.default.createElement(f.FormattedMessage,{id:"component.clientLogin.form.email"})),c.default.createElement(g.default,{name:"email",type:"text",value:this.state.email,onChange:this.handleEmailChange.bind(this),placeholder:t({id:"component.clientLogin.form.email"})})))),c.default.createElement("div",{style:{overflow:"hidden",paddingBottom:"1px"}},c.default.createElement(y.LayoutRow,null,c.default.createElement(y.LayoutColumn,{width:1},c.default.createElement(d.FormLabel,{hidden:!0},c.default.createElement(f.FormattedMessage,{id:"component.clientLogin.form.apiKey"})),c.default.createElement(g.default,{name:"apiKey",type:"text",value:this.state.apiKey,onChange:this.handleApiKeyChange.bind(this),placeholder:t({id:"component.clientLogin.form.apiKey"})})))),c.default.createElement("div",{style:i},c.default.createElement(y.LayoutRow,null,c.default.createElement(y.LayoutColumn,{width:1},c.default.createElement(p.Button,{submit:!0,type:"success",onClick:function(t){return e.handleLoginSubmit(t)}},c.default.createElement(f.FormattedMessage,{id:"component.clientLogin.form.button"})))))),c.default.createElement("div",{style:i},c.default.createElement(y.LayoutRow,null,c.default.createElement(y.LayoutColumn,{width:1},c.default.createElement("p",{style:{textAlign:"center",marginBottom:"-1rem"}},c.default.createElement(f.FormattedMessage,{id:"component.clientLogin.cloudflare.description"})," ",c.default.createElement("a",{onClick:this.openLinkInWindow.bind(this,r)},"cloudflare.com"),"."),c.default.createElement("p",{style:{textAlign:"center",marginBottom:"2.5rem"}},c.default.createElement(f.FormattedMessage,{id:"component.clientLogin.form.apiKeyHelp"})," ",c.default.createElement("a",{onClick:this.openLinkInWindow.bind(this,o)},"here"),"."))))))),c.default.createElement(v.default,null))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(S))},{"../../actions/user":539,"../../constants/UrlPaths.js":557,"../../containers/MarketingFeatureCollection/MarketingFeatureCollection":582,"../../selectors/generateUTMLink.js":614,"cf-component-button":5,"cf-component-form":71,"cf-component-input":76,"cf-component-layout":80,react:514,"react-intl":293,"react-redux":315}],572:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZone:e.activeZone,config:e.config.config,zones:e.zones.entities.zones,dnsRecords:e.zoneDnsRecords.entities,zoneDeleteIsFetching:e.zones.zoneDeleteIsFetching,zoneProvisionCnameIsFetching:e.zones.zoneProvisionCnameIsFetching,zoneProvisionFullIsFetching:e.zones.zoneProvisionFullIsFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-table"),g=e("cf-component-heading"),y=e("cf-component-button"),m=e("../../containers/ActivationCheckCard/ActivationCheckCard"),v=r(m),_=e("../../containers/DNSRecordEditor/DNSRecordEditor"),b=r(_),x=e("../../containers/ZoneProvisionContainer/ZoneProvisionContainer"),E=r(x),C=e("../../constants/UrlPaths.js"),S=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.config,r=e.dnsRecords,o=e.zones,i=d.default.isEmpty(t.name),a=d.default.isEmpty(r[t.id]),s=!1;o&&t.name&&(s="pending"===o[t.name].status);var u=void 0;i||(u=o[t.name]);var l=C.CLOUDFLARE_UPGRADE_PAGE+"?utm_source=pi-"+n.integrationName+"&utm_medium=plugin&utm_campaign="+n.integrationName,p=c.default.createElement(y.Button,{type:"success",onClick:function(){return window.open(l),!1}},c.default.createElement(f.FormattedMessage,{id:"container.dnsManagementPage.thead.changePlan"}));return c.default.createElement("div",null,c.default.createElement(g.Heading,{size:1},c.default.createElement(f.FormattedMessage,{id:"container.dnsManagementPage.title"})),!i&&c.default.createElement("div",null,c.default.createElement(h.Table,null,c.default.createElement(h.TableHead,null,c.default.createElement(h.TableRow,null,c.default.createElement(h.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsManagementPage.thead.domain"})),c.default.createElement(h.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsManagementPage.thead.cloudflarePlan"})),c.default.createElement(h.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsManagementPage.thead.zoneType"})),c.default.createElement(h.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsManagementPage.thead.status"})))),c.default.createElement(h.TableBody,null,c.default.createElement(h.TableRow,null,c.default.createElement(h.TableCell,null,u.name),c.default.createElement(h.TableCell,null,u.plan.name,"     ",""!=u.plan.name?p:null),c.default.createElement(h.TableCell,null,u.type),c.default.createElement(h.TableCell,null,u.status)))),s?c.default.createElement(v.default,null):null,a?null:c.default.createElement(b.default,null),c.default.createElement(E.default,null)))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(S))},{"../../constants/UrlPaths.js":557,"../../containers/ActivationCheckCard/ActivationCheckCard":558,"../../containers/DNSRecordEditor/DNSRecordEditor":573,"../../containers/ZoneProvisionContainer/ZoneProvisionContainer":596,"cf-component-button":5,"cf-component-heading":74,"cf-component-table":131,lodash:191,react:514,"react-intl":293,"react-redux":315}],573:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,dnsRecords:e.zoneDnsRecords.entities[e.activeZone.id],updateIsFetching:e.zoneDnsRecords.updateIsFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-table"),d=e("../../components/CloudToggle/CloudToggle"),h=r(d),g=e("lodash"),y=r(g),m=e("cf-component-loading"),v=r(m),_=e("../../actions/zoneDnsRecords"),b=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleToggle=function(e,t){var n=this.props.dispatch;n(t.id?(0,_.asyncDNSRecordUpdate)(t.zone_id,t,e):(0,_.asyncDNSRecordCreate)(t.zone_id,t.type,t.name,t.content))},t.prototype.render=function(){var e=this;return c.default.createElement("div",null,c.default.createElement(p.Table,null,c.default.createElement(p.TableHead,null,c.default.createElement(p.TableRow,null,c.default.createElement(p.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsRecordEditor.thead.type"})),c.default.createElement(p.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsRecordEditor.thead.name"})),c.default.createElement(p.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsRecordEditor.thead.value"})),c.default.createElement(p.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsRecordEditor.thead.ttl"})),c.default.createElement(p.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.dnsRecordEditor.thead.status"})))),c.default.createElement(p.TableBody,null,y.default.sortBy(y.default.values(this.props.dnsRecords),function(e){return e.name}).map(function(t){return c.default.createElement(p.TableRow,{key:t.name},c.default.createElement(p.TableCell,null,t.type),c.default.createElement(p.TableCell,null,t.name),c.default.createElement(p.TableCell,null,t.content),c.default.createElement(p.TableCell,null,t.ttl),c.default.createElement(p.TableCell,null,e.props.updateIsFetching===t.name?c.default.createElement(v.default,null):c.default.createElement(h.default,{label:"Cloudflare Provisioned",name:t.name+"_provisioned",value:t.proxied,onChange:function(n){return e.handleToggle(n,t)}})))}))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(b))},{"../../actions/zoneDnsRecords":541,"../../components/CloudToggle/CloudToggle":549,"cf-component-loading":88,"cf-component-table":131,lodash:191,react:514,"react-intl":293,"react-redux":315}],574:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,developmentModeValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-toggle"),h=r(d),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="development_mode",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.developmentModeCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.developmentModeCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(h.default,{label:"",value:"on"===this.props.developmentModeValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],575:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}function u(e){return{notifications:e.notifications}}n.__esModule=!0;var c=e("react"),l=o(c),f=e("react-redux"),p=e("react-intl"),d=e("cf-component-notifications"),h=e("../../actions/notifications"),g=r(h),y=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.handleClose=function(e){var t=this.props.dispatch;t(g.notificationRemove(e))},t.prototype.render=function(){var e=this,t=this.props.notifications,n=this.props.intl.formatMessage,r=t.map(function(t){return l.default.createElement(d.Notification,{key:t.key,type:t.level,message:t.localized?n({id:t.message}):t.message,delay:t.delay,persist:t.persistant,onClose:e.handleClose.bind(e,t.key)})});return l.default.createElement(d.NotificationGlobalContainer,null,l.default.createElement(d.NotificationList,null,r))},t}(c.Component);n.default=(0,p.injectIntl)((0,f.connect)(u)(y))},{"../../actions/notifications":537,"cf-component-notifications":110,react:514,"react-intl":293,"react-redux":315}],576:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,config:e.config.config,zoneSettings:e.zoneSettings.entities}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-heading"),g=e("cf-component-loading"),y=r(g),m=e("cf-component-text"),v=r(m),_=e("../../selectors/pluginSettings"),b=e("../../components/RenderCardsDynamically/RenderCardsDynamically"),x=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZoneId,n=e.config,r=e.zoneSettings,o=d.default.isEmpty(r[t])&&d.default.isEmpty((0,_.getPluginSettingsForZoneId)(t,this.state));return c.default.createElement("div",null,o&&c.default.createElement(v.default,{align:"center"},c.default.createElement(y.default,null)),!o&&c.default.createElement("div",null,c.default.createElement(h.Heading,{size:1},c.default.createElement(f.FormattedMessage,{id:"container.appNavigation.home"})),(0,b.renderCards)(n.homePageCards)))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(x))},{"../../components/RenderCardsDynamically/RenderCardsDynamically":553,"../../selectors/pluginSettings":615,"cf-component-heading":74,"cf-component-loading":88,"cf-component-text":146,lodash:191,react:514,"react-intl":293,"react-redux":315}],577:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}n.__esModule=!0;var u=e("react"),c=o(u),l=e("react-redux"),f=e("react-intl"),p=e("react-router"),d=e("../../containers/MarketingFeatureCollection/MarketingFeatureCollection"),h=o(d),g=e("../../actions/user"),y=r(g),m=e("../../constants/UrlPaths.js"),v=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.handleLoginSubmit=function(e){e.preventDefault();var t=this.props.dispatch,n=this.refs.email.value,r=this.refs.password.value;t(y.asyncLogin(n,r))},t.prototype.handleLogout=function(){var e=this.props.dispatch;e(y.logout())},t.prototype.render=function(){var e=this.props.intl.formatMessage;return c.default.createElement("div",null,c.default.createElement("section",{className:"center login-form"},c.default.createElement("div",{className:"login-container"},c.default.createElement("form",{className:"form",onSubmit:this.handleLoginSubmit.bind(this)},c.default.createElement("legend",null,c.default.createElement("h3",{className:"form-title"},c.default.createElement(f.FormattedMessage,{id:"component.login.form.title"}))),c.default.createElement("fieldset",null,c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"control-label"},c.default.createElement("label",{className:"assistive-text"},c.default.createElement(f.FormattedMessage,{id:"component.login.form.email"}))),c.default.createElement("div",{className:"controls"},c.default.createElement("input",{ref:"email",type:"text",placeholder:e({id:"component.login.form.email"}),className:"width-full"}))),c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"control-label"},c.default.createElement("label",{className:"assistive-text"},c.default.createElement(f.FormattedMessage,{id:"component.login.form.password"}))),c.default.createElement("div",{className:"controls"},c.default.createElement("input",{ref:"password",type:"password",placeholder:e({id:"component.login.form.password"}),className:"width-full"}))),c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"controls"},c.default.createElement("button",{type:"submit",className:"btn btn-success btn-large width-full"},c.default.createElement(f.FormattedMessage,{id:"component.login.form.button"})))),c.default.createElement("div",{className:"control-group"},c.default.createElement("div",{className:"row"},c.default.createElement(p.Link,{className:"pull-left",to:m.SIGN_UP_PAGE},c.default.createElement(f.FormattedMessage,{id:"component.login.form.signUp"})),c.default.createElement("a",{className:"pull-right",href:m.CLOUDFLARE_FORGOT_PASSWORD_PAGE,target:"_blank"},c.default.createElement(f.FormattedMessage,{id:"component.login.form.forgotPassword"})))))))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-16"},c.default.createElement("p",{style:{textAlign:"center",marginBottom:"2.5rem"}},c.default.createElement(f.FormattedMessage,{id:"component.login.cloudflare.description"})))),c.default.createElement(h.default,null))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)()(v))},{"../../actions/user":539,"../../constants/UrlPaths.js":557,"../../containers/MarketingFeatureCollection/MarketingFeatureCollection":582,react:514,"react-intl":293,"react-redux":315,"react-router":346}],578:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,ipv6Value:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-toggle"),d=r(p),h=e("cf-component-card"),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="ipv6",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncZoneUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:e({id:"container.ipv6Card.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.ipv6Card.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(d.default,{label:"",value:"on"===this.props.ipv6Value,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],579:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,mirageValue:(0,v.getZoneSettingsValueForZoneId)(e.activeZone.id,x,e),polishValue:(0,v.getZoneSettingsValueForZoneId)(e.activeZone.id,E,e),modifiedDate:(0,v.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,C,e),activeZone:e.activeZone,zones:e.zones.entities.zones}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("../../components/CustomCardControl/CustomCardControl"),h=r(d),g=e("../../actions/zoneSettings"),y=e("../../constants/Plans.js"),m=e("../../utils/utils"),v=e("../../selectors/zoneSettings"),_=e("cf-component-toggle"),b=r(_),x="mirage",E="polish",C="image_optimization",S=y.PRO_PLAN,w=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e===!0?(r((0,g.asyncZoneUpdateSetting)(x,n,"on")),r((0,g.asyncZoneUpdateSetting)(E,n,"lossless"))):(r((0,g.asyncZoneUpdateSetting)(x,n,"off")),r((0,g.asyncZoneUpdateSetting)(E,n,"off")))},t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.zones,r=e.modifiedDate,o=n[t.name],i="on"===this.props.mirageValue&&("lossless"===this.props.polishValue||"lossy"===this.props.polishValue),a=this.props.intl.formatMessage;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:a({id:"container.imageOptimization.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,r)},c.default.createElement(f.FormattedMessage,{id:"container.imageOptimization.description"})),c.default.createElement(h.default,{minimumPlan:S,currentPlan:o.plan.legacy_id,indentifier:C},c.default.createElement(b.default,{label:"",value:i,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(w))},{"../../actions/zoneSettings":545,"../../components/CustomCardControl/CustomCardControl":550,"../../constants/Plans.js":555,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],580:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,ipRewriteValue:(0,y.getPluginSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,y.getPluginSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-toggle"),h=r(d),g=e("../../actions/pluginSettings"),y=e("../../selectors/pluginSettings"),m=e("../../utils/utils"),v="ip_rewrite",_=function(e){
32
- function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncPluginUpdateSetting)(v,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.ipRewrite.title"}),footerMessage:(0,m.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.ipRewrite.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(h.default,{label:"",value:"on"===this.props.ipRewriteValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/pluginSettings":538,"../../selectors/pluginSettings":615,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],581:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{config:e.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("redux-simple-router"),p=e("../../utils/Auth/Auth"),d=e("../../constants/UrlPaths.js"),h=e("../../selectors/config"),g=e("../../containers/ClientLoginPage/ClientLoginPage"),y=r(g),m=e("../../containers/HostLoginPage/HostLoginPage"),v=r(m),_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.componentWillMount=function(){var e=this.props.dispatch;(0,p.isLoggedIn)()&&e(f.routeActions.push(d.HOME_PAGE))},t.prototype.render=function(){var e=this.props.config,t=(0,h.getConfigValue)(e,"useHostAPILogin");return c.default.createElement("div",null,t?c.default.createElement(v.default,null):c.default.createElement(y.default,null))},t}(u.Component);n.default=(0,l.connect)(s)(_)},{"../../constants/UrlPaths.js":557,"../../containers/ClientLoginPage/ClientLoginPage":571,"../../containers/HostLoginPage/HostLoginPage":577,"../../selectors/config":613,"../../utils/Auth/Auth":619,react:514,"react-redux":315,"redux-simple-router":516}],582:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{config:e.config}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("cf-component-layout"),p=e("cf-component-flex"),d=e("../../components/MarketingFeature/MarketingFeature"),h=r(d),g=e("../../selectors/config"),y=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props.config;return c.default.createElement(f.LayoutRow,null,c.default.createElement("div",{style:{backgroundColor:"white"}},c.default.createElement(p.Flex,{spacing:!1},c.default.createElement(f.LayoutColumn,{width:1/18}," "),c.default.createElement(f.LayoutColumn,{width:4/18},c.default.createElement(h.default,{imgSrc:(0,g.getAbsoluteUrl)(e,"assets/icon-pin.svg"),titleKey:"component.marketingFeature.cdn.title",descriptionKey:"component.marketingFeature.cdn.description"})),c.default.createElement(f.LayoutColumn,{width:4/18},c.default.createElement(h.default,{imgSrc:(0,g.getAbsoluteUrl)(e,"assets/icon-bolt.svg"),titleKey:"component.marketingFeature.optimization.title",descriptionKey:"component.marketingFeature.optimization.description"})),c.default.createElement(f.LayoutColumn,{width:4/18},c.default.createElement(h.default,{imgSrc:(0,g.getAbsoluteUrl)(e,"assets/icon-shield.svg"),titleKey:"component.marketingFeature.security.title",descriptionKey:"component.marketingFeature.security.description"})),c.default.createElement(f.LayoutColumn,{width:4/18},c.default.createElement(h.default,{imgSrc:(0,g.getAbsoluteUrl)(e,"assets/icon-lock.svg"),titleKey:"component.marketingFeature.ddos.title",descriptionKey:"component.marketingFeature.ddos.description"})),c.default.createElement(f.LayoutColumn,{width:1/18}," "))))},t}(u.Component);n.default=(0,l.connect)(s)(y)},{"../../components/MarketingFeature/MarketingFeature":552,"../../selectors/config":613,"cf-component-flex":64,"cf-component-layout":80,react:514,"react-redux":315}],583:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,minifyValues:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,m,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,m,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-checkbox"),h=e("../../actions/zoneSettings"),g=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),m="minify",v=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={checkboxValues:[]},r}return a(t,e),t.prototype.componentWillMount=function(){var e=[];for(var t in this.props.minifyValues)"on"===this.props.minifyValues[t]&&e.push(t);this.setState({checkboxValues:e})},t.prototype.handleCheckboxChange=function(e){var t={js:"off",css:"off",html:"off"};e.forEach(function(e){t[e]="on"});var n=this.props,r=n.activeZoneId,o=n.dispatch;this.setState({checkboxValues:e}),o((0,h.asyncZoneUpdateSetting)(m,r,t))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.minifyCard.title"}),footerMessage:(0,g.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.minifyCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(d.CheckboxGroup,{values:this.state.checkboxValues,onChange:this.handleCheckboxChange.bind(this),options:[{label:e({id:"container.minifyCard.javascript"}),name:"minify_js",value:"js"},{label:e({id:"container.minifyCard.css"}),name:"minify_css",value:"css"},{label:e({id:"container.minifyCard.html"}),name:"minify_html",value:"html"}]})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(v))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-checkbox":23,react:514,"react-intl":293,"react-redux":315}],584:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,config:e.config.config,zoneSettings:e.zoneSettings.entities}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-heading"),g=e("cf-component-loading"),y=r(g),m=e("cf-component-text"),v=r(m),_=e("../../selectors/pluginSettings"),b=e("../../components/RenderCardsDynamically/RenderCardsDynamically"),x=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.renderContent=function(){var e=this.props.config,t=0;return d.default.map(e.moreSettingsCards,function(e,n){var r=n;return c.default.createElement("div",{key:t++},c.default.createElement(h.Heading,{size:1},c.default.createElement(f.FormattedMessage,{id:r})),(0,b.renderCards)(e))})},t.prototype.render=function(){var e=this.props,t=e.activeZoneId,n=e.zoneSettings,r=d.default.isEmpty(n[t])&&d.default.isEmpty((0,_.getPluginSettingsForZoneId)(t,this.state));return c.default.createElement("div",null,r&&c.default.createElement(v.default,{align:"center"},c.default.createElement(y.default,null)),!r&&c.default.createElement("div",null,this.renderContent()))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(x))},{"../../components/RenderCardsDynamically/RenderCardsDynamically":553,"../../selectors/pluginSettings":615,"cf-component-heading":74,"cf-component-loading":88,"cf-component-text":146,lodash:191,react:514,"react-intl":293,"react-redux":315}],585:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,config:e.config.config,zoneSettings:e.zoneSettings.entities}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-heading"),g=e("../../selectors/pluginSettings"),y=e("../../containers/AlwaysOnlineCard/AlwaysOnlineCard"),m=r(y),v=e("../../containers/CacheLevelCard/CacheLevelCard"),_=r(v),b=e("../../containers/BrowserCacheTTLCard/BrowserCacheTTLCard"),x=r(b),E=e("../../containers/DevelopmentModeCard/DevelopmentModeCard"),C=r(E),S=e("../../components/FeatureManager/FeatureManager"),w=r(S),T=e("../../containers/IPV6Card/IPV6Card"),O=r(T),P=e("../../containers/IpRewriteCard/IpRewriteCard"),R=r(P),A=e("../../containers/MinifyCard/MinifyCard"),M=r(A),N=e("../../containers/PurgeCacheCard/PurgeCacheCard"),I=r(N),L=e("../../containers/RailgunCard/RailgunCard"),k=r(L),D=e("../../containers/ImageOptimizationCard/ImageOptimizationCard"),j=r(D),F=e("../../containers/WAFCard/WAFCard"),V=r(F),U=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZoneId,n=e.config,r=e.zoneSettings,o=d.default.isEmpty(r[t])&&d.default.isEmpty((0,g.getPluginSettingsForZoneId)(t,this.state));return c.default.createElement("div",null,o&&c.default.createElement(f.FormattedMessage,{id:"errors.noActiveZoneSelected"}),!o&&c.default.createElement("div",null,c.default.createElement(h.Heading,{size:1},c.default.createElement(f.FormattedMessage,{id:"container.performancePage.title"})),c.default.createElement(w.default,{isEnabled:n.featureManagerIsAlwaysOnlineEnabled},c.default.createElement(m.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsIpv6Enabled},c.default.createElement(O.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsIpRewriteEnabled},c.default.createElement(R.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsCacheLevelEnabled},c.default.createElement(_.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsMinifyEnabled},c.default.createElement(M.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsRailgunEnabled},c.default.createElement(k.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsDevelopmentModeEnabled},c.default.createElement(C.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsBrowserCacheTTLEnabled},c.default.createElement(x.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsPurgeCacheEnabled},c.default.createElement(I.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsImageOptimizationEnabled},c.default.createElement(j.default,null)),c.default.createElement(w.default,{isEnabled:n.featureManagerIsWAFEnabled},c.default.createElement(V.default,null))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(U))},{"../../components/FeatureManager/FeatureManager":551,"../../containers/AlwaysOnlineCard/AlwaysOnlineCard":561,"../../containers/BrowserCacheTTLCard/BrowserCacheTTLCard":567,"../../containers/CacheLevelCard/CacheLevelCard":569,"../../containers/DevelopmentModeCard/DevelopmentModeCard":574,"../../containers/IPV6Card/IPV6Card":578,"../../containers/ImageOptimizationCard/ImageOptimizationCard":579,"../../containers/IpRewriteCard/IpRewriteCard":580,"../../containers/MinifyCard/MinifyCard":583,"../../containers/PurgeCacheCard/PurgeCacheCard":588,"../../containers/RailgunCard/RailgunCard":589,"../../containers/WAFCard/WAFCard":595,"../../selectors/pluginSettings":615,"cf-component-heading":74,lodash:191,react:514,"react-intl":293,"react-redux":315}],586:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,cacheCardValue:(0,v.getPluginSettingsValueForZoneId)(e.activeZone.id,b,e),modifiedDate:(0,v.getPluginSettingsModifiedDateForZoneId)(e.activeZone.id,b,e),integrationName:e.config.config.integrationName}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-modal"),h=e("cf-component-toggle"),g=r(h),y=e("cf-component-button"),m=e("../../actions/pluginSettings"),v=e("../../selectors/pluginSettings"),_=e("../../utils/utils"),b="plugin_specific_cache",x=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={isModalOpen:!1},r}return a(t,e),t.prototype.handleModalOpen=function(){this.setState({isModalOpen:!0})},t.prototype.handleModalClose=function(){this.setState({isModalOpen:!1})},t.prototype.handleChange=function(e){if(e===!0&&this.state.isModalOpen===!1)this.handleModalOpen();else{this.handleModalClose();var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,m.asyncPluginUpdateSetting)(b,n,e))}},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.pluginSpecificCacheCard.title"}),footerMessage:(0,_.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.pluginSpecificCacheCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(g.default,{label:"",value:"on"===this.props.cacheCardValue,onChange:this.handleChange.bind(this)}),c.default.createElement(d.Modal,{isOpen:this.state.isModalOpen,onRequestClose:this.handleModalClose.bind(this)},c.default.createElement(d.ModalHeader,null,c.default.createElement(d.ModalTitle,null,c.default.createElement(f.FormattedMessage,{id:"container.pluginSpecificCacheCard.modal.title"})),c.default.createElement(d.ModalClose,{onClick:this.handleModalClose.bind(this)})),c.default.createElement(d.ModalBody,null,c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.pluginSpecificCacheCard.modal.description"}))),c.default.createElement(d.ModalFooter,null,c.default.createElement(d.ModalActions,null,c.default.createElement(y.Button,{type:"primary",onClick:this.handleChange.bind(this,!0)},c.default.createElement(f.FormattedMessage,{id:"container.pluginSpecificCacheCard.modal.button"})),c.default.createElement(y.Button,{onClick:this.handleModalClose.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.pluginSpecificCacheCard.modal.buttonCancel"})))))))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(x))},{"../../actions/pluginSettings":538,"../../selectors/pluginSettings":615,"../../utils/utils":624,"cf-component-button":5,"cf-component-card":16,"cf-component-modal":99,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],587:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,cacheTagCardValue:(0,b.getPluginSettingsValueForZoneId)(e.activeZone.id,E,e),modifiedDate:(0,b.getPluginSettingsModifiedDateForZoneId)(e.activeZone.id,E,e),integrationName:e.config.config.integrationName,activeZonePlan:(0,_.getZonePlanLegacyId)(e.activeZone.name,e.zones)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-toggle"),h=r(d),g=e("../../actions/pluginSettings"),y=e("../../components/CustomCardControl/CustomCardControl"),m=r(y),v=e("../../constants/Plans.js"),_=e("../../selectors/zones"),b=e("../../selectors/pluginSettings"),x=e("../../utils/utils"),E="plugin_specific_cache_tag",C=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,g.asyncPluginUpdateSetting)(E,n,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.pluginSpecificCacheTagCard.title"}),footerMessage:(0,x.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.pluginSpecificCacheTagCard.description",values:{integrationName:this.props.integrationName}}))),c.default.createElement(m.default,{minimumPlan:v.ENT_PLAN,currentPlan:this.props.activeZonePlan,indentifier:E},c.default.createElement(h.default,{label:"",value:"on"===this.props.cacheTagCardValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(C))},{"../../actions/pluginSettings":538,"../../components/CustomCardControl/CustomCardControl":550,"../../constants/Plans.js":555,"../../selectors/pluginSettings":615,"../../selectors/zones":617,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],588:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-button"),d=e("cf-component-dropdown"),h=e("cf-component-card"),g=e("cf-component-modal"),y=e("cf-component-textarea"),m=r(y),v=e("../../actions/zonePurgeCache"),_=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={isModalOpen:!1,isIndividual:!1,dropdownOpen:!1,textareaValue:""},r}return a(t,e),t.prototype.handleTextareaChange=function(e){this.setState({textareaValue:e})},t.prototype.handlePurgeCache=function(){this.handleModalClose();var e=this.props,t=e.activeZoneId,n=e.dispatch,r=this.state.isIndividual?(0,v.asyncZonePurgeCacheIndividualFiles)(t,this.state.textareaValue):(0,v.asyncZonePurgeCacheEverything)(t);n(r)},t.prototype.handleModalOpen=function(e){this.setState({isModalOpen:!0,isIndividual:e})},t.prototype.handleModalClose=function(){this.setState({isModalOpen:!1})},t.prototype.renderTextarea=function(){if(this.state.isIndividual)return c.default.createElement(m.default,{name:"files",value:this.state.textareaValue,onChange:this.handleTextareaChange.bind(this)})},t.prototype.render=function(){var e=this,t=this.props.intl.formatMessage;return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:t({id:"container.purgeCacheCard.title"})},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.purgeCacheCard.description"}))),c.default.createElement(h.CardControl,null,c.default.createElement(p.ButtonGroup,null,c.default.createElement(p.Button,{type:"primary",onClick:function(){return e.setState({dropdownOpen:!0})}},c.default.createElement(f.FormattedMessage,{id:"container.purgeCacheCard.dropdown"})),this.state.dropdownOpen&&c.default.createElement(d.Dropdown,{onClose:function(){return e.setState({dropdownOpen:!1})}},c.default.createElement(d.DropdownLink,{onClick:this.handleModalOpen.bind(this,!1)},c.default.createElement(f.FormattedMessage,{id:"container.purgeCacheCard.button"})),c.default.createElement(d.DropdownLink,{onClick:this.handleModalOpen.bind(this,!0)},c.default.createElement(f.FormattedMessage,{id:"container.purgeCacheByURLCard.button"})))),c.default.createElement(g.Modal,{isOpen:this.state.isModalOpen,onRequestClose:this.handleModalClose.bind(this)},c.default.createElement(g.ModalHeader,null,c.default.createElement(g.ModalTitle,null,c.default.createElement(f.FormattedMessage,{id:"container."+(this.state.isIndividual?"purgeCacheByURLCard":"purgeCacheCard")+".modal.title"})),c.default.createElement(g.ModalClose,{onClick:this.handleModalClose.bind(this)})),c.default.createElement(g.ModalBody,null,c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container."+(this.state.isIndividual?"purgeCacheByURLCard":"purgeCacheCard")+".modal.description"})),this.renderTextarea()),c.default.createElement(g.ModalFooter,null,c.default.createElement(g.ModalActions,null,c.default.createElement(p.Button,{type:"primary",onClick:this.handlePurgeCache.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container."+(this.state.isIndividual?"purgeCacheByURLCard":"purgeCacheCard")+".button"})),c.default.createElement(p.Button,{onClick:this.handleModalClose.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container."+(this.state.isIndividual?"purgeCacheByURLCard":"purgeCacheCard")+".modal.buttonCancel"})))))))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zonePurgeCache":543,"cf-component-button":5,"cf-component-card":16,"cf-component-dropdown":56,"cf-component-modal":99,"cf-component-textarea":148,react:514,"react-intl":293,"react-redux":315}],589:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZone:e.activeZone,railguns:e.zoneRailguns.entities[e.activeZone.id]}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-card"),g=e("cf-component-table"),y=e("cf-component-toggle"),m=r(y),v=e("../../actions/zoneRailgun"),_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleToggle=function(e,t){var n=this.props,r=n.activeZone,o=n.dispatch;o((0,v.asyncZoneRailgunConnectionUpdate)(r.id,t,e))},t.prototype.render=function(){var e=this,t=this.props.intl.formatMessage,n=this.props,r=n.railguns,o=n.activeZone,i=d.default.isEmpty(r);return c.default.createElement("div",null,c.default.createElement(h.Card,null,c.default.createElement(h.CardSection,null,c.default.createElement(h.CardContent,{title:t({id:"container.railgunCard.title"})},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.description"}))),c.default.createElement(h.CardControl,null)),c.default.createElement(h.CardSection,null,i&&c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.noRailgunsAvailable",values:{zoneName:o.name}})),!i&&c.default.createElement(g.Table,null,c.default.createElement(g.TableHead,null,c.default.createElement(g.TableRow,null,c.default.createElement(g.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.table.name"})),c.default.createElement(g.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.table.railgunState"})),c.default.createElement(g.TableHeadCell,null,c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.table.connectedToWebsite"})))),c.default.createElement(g.TableBody,null,d.default.values(r).map(function(t){return c.default.createElement(g.TableRow,{key:t.id},c.default.createElement(g.TableCell,null,t.name),c.default.createElement(g.TableCell,null,t.enabled?c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.table.active"}):c.default.createElement(f.FormattedMessage,{id:"container.railgunCard.table.inactive"})),c.default.createElement(g.TableCell,null,c.default.createElement(m.default,{label:"",name:t.name+"_connected",value:t.connected,onChange:function(n){return e.handleToggle(n,t)}})))}))))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneRailgun":544,"cf-component-card":16,"cf-component-table":131,"cf-component-toggle":151,lodash:191,react:514,"react-intl":293,"react-redux":315}],590:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,sslValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-select"),h=r(d),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="ssl",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props.dispatch;t((0,g.asyncZoneUpdateSetting)("ssl",this.props.activeZoneId,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.sslCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.sslCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(h.default,{label:"",value:this.props.sslValue,options:[{value:"off",label:e({id:"container.sslCard.select.off"})},{value:"flexible",label:e({id:"container.sslCard.select.flexible"})},{value:"full",label:e({id:"container.sslCard.select.full"})},{value:"full_strict",label:e({id:"container.sslCard.select.full_strict"})}],onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-select":117,react:514,"react-intl":293,"react-redux":315}],591:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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);
33
- }function s(e){return{activeZoneId:e.activeZone.id,securityLevelValue:(0,m.getZoneSettingsValueForZoneId)(e.activeZone.id,v,e),modifiedDate:(0,m.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,v,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-select"),h=r(d),g=e("../../actions/zoneSettings"),y=e("../../utils/utils"),m=e("../../selectors/zoneSettings"),v="security_level",_=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props.dispatch;t((0,g.asyncZoneUpdateSetting)(v,this.props.activeZoneId,e))},t.prototype.render=function(){var e=this.props.intl.formatMessage,t=this.props.modifiedDate;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:e({id:"container.securityLevelCard.title"}),footerMessage:(0,y.getLastModifiedDate)(this.props.intl,t)},c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.securityLevelCard.description"}))),c.default.createElement(p.CardControl,null,c.default.createElement(h.default,{label:"",value:this.props.securityLevelValue,options:[{value:"essentially_off",label:e({id:"container.securityLevelCard.select.essentiallyOff"})},{value:"low",label:e({id:"container.securityLevelCard.select.low"})},{value:"medium",label:e({id:"container.securityLevelCard.select.medium"})},{value:"high",label:e({id:"container.securityLevelCard.select.high"})},{value:"under_attack",label:e({id:"container.securityLevelCard.select.underAttack"})}],onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(_))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-select":117,react:514,"react-intl":293,"react-redux":315}],592:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,config:e.config.config,zoneSettings:e.zoneSettings}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("lodash"),d=r(p),h=e("cf-component-heading"),g=e("../../containers/BrowserIntegrityCheckCard/BrowserIntegrityCheckCard"),y=r(g),m=e("../../containers/ChallengePassageCard/ChallengePassageCard"),v=r(m),_=e("../../components/FeatureManager/FeatureManager"),b=r(_),x=e("../../containers/SecurityLevelCard/SecurityLevelCard"),E=r(x),C=e("../../containers/SSLCard/SSLCard"),S=r(C),w=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.render=function(){var e=this.props,t=e.activeZoneId,n=e.zoneSettings,r=d.default.isEmpty(n.entities[t]);return c.default.createElement("div",null,r&&c.default.createElement(f.FormattedMessage,{id:"errors.noActiveZoneSelected"}),!r&&c.default.createElement("div",null,c.default.createElement(h.Heading,{size:1},c.default.createElement(f.FormattedMessage,{id:"container.securityPage.title"})),c.default.createElement(b.default,{isEnabled:this.props.config.featureManagerIsSSLEnabled},c.default.createElement(S.default,null)),c.default.createElement(b.default,{isEnabled:this.props.config.featureManagerIsSecurityLevelEnabled},c.default.createElement(E.default,null)),c.default.createElement(b.default,{isEnabled:this.props.config.featureManagerIsChallengePassageEnabled},c.default.createElement(v.default,null)),c.default.createElement(b.default,{isEnabled:this.props.config.featureManagerIsBrowserIntegrityCheckEnabled},c.default.createElement(y.default,null))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(w))},{"../../components/FeatureManager/FeatureManager":551,"../../containers/BrowserIntegrityCheckCard/BrowserIntegrityCheckCard":568,"../../containers/ChallengePassageCard/ChallengePassageCard":570,"../../containers/SSLCard/SSLCard":590,"../../containers/SecurityLevelCard/SecurityLevelCard":591,"cf-component-heading":74,lodash:191,react:514,"react-intl":293,"react-redux":315}],593:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}function u(e){return{state:e}}n.__esModule=!0;var c=e("react"),l=o(c),f=e("react-redux"),p=e("react-intl"),d=e("lodash"),h=o(d),g=e("../../actions/user"),y=r(g),m=e("../../actions/notifications"),v=e("../../constants/UrlPaths"),_=function(e){function t(){return i(this,t),a(this,e.apply(this,arguments))}return s(t,e),t.prototype.render=function(){var e=this,t=this.props.intl.formatMessage;return l.default.createElement("section",{className:"center login-form"},l.default.createElement("div",{className:"login-container"},l.default.createElement("form",{className:"form",onSubmit:function(t){return e.handleSignUpSubmit(t)}},l.default.createElement("legend",null,l.default.createElement("h3",{className:"form-title"},l.default.createElement(p.FormattedMessage,{id:"container.signup.form.title"}))),l.default.createElement("fieldset",null,l.default.createElement("div",{className:"control-group"},l.default.createElement("div",{className:"control-label"},l.default.createElement("label",{className:"assistive-text"},l.default.createElement(p.FormattedMessage,{id:"container.signup.form.email"}))),l.default.createElement("div",{className:"controls"},l.default.createElement("input",{ref:"email",type:"text",placeholder:t({id:"container.signup.form.email"}),className:"width-full"}))),l.default.createElement("div",{className:"control-group"},l.default.createElement("div",{className:"control-label"},l.default.createElement("label",{className:"assistive-text"},l.default.createElement(p.FormattedMessage,{id:"component.login.form.password"}))),l.default.createElement("div",{className:"controls"},l.default.createElement("input",{ref:"password",type:"password",placeholder:t({id:"container.signup.form.password"}),className:"width-full"}))),l.default.createElement("div",{className:"control-group"},l.default.createElement("div",{className:"control-label"},l.default.createElement("label",{className:"assistive-text"},l.default.createElement(p.FormattedMessage,{id:"component.login.form.password"}))),l.default.createElement("div",{className:"controls"},l.default.createElement("input",{ref:"password2",type:"password",placeholder:t({id:"container.signup.form.passwordAgain"}),className:"width-full"}))),l.default.createElement("div",{className:"control-group"},l.default.createElement("div",{className:"controls"},l.default.createElement("label",{className:"checkbox"},l.default.createElement("input",{ref:"termsOfService",required:"required",type:"checkbox"}),l.default.createElement("div",{className:"controls"},l.default.createElement("p",null,l.default.createElement(p.FormattedMessage,{id:"container.signup.form.termsAndConditions.iAgreeTo"})," ",l.default.createElement("a",{href:v.TERMS_AND_CONDITIONS_PAGE,target:"_blank"},l.default.createElement(p.FormattedMessage,{id:"container.signup.form.termsAndConditions.cloudFlaresTermsAndConditions"}))," ",l.default.createElement(p.FormattedMessage,{id:"container.signup.form.termsAndConditions.and"})," ",l.default.createElement("a",{href:v.PRIVACY_POLICY_PAGE,target:"_blank"},l.default.createElement(p.FormattedMessage,{id:"container.signup.form.termsAndConditions.privacyPolicy"})),l.default.createElement(p.FormattedMessage,{id:"container.signup.form.termsAndConditions.period"})))))),l.default.createElement("div",{className:"control-group"},l.default.createElement("div",{className:"controls"},l.default.createElement("button",{type:"submit",className:"btn btn-success btn-large width-full"},l.default.createElement(p.FormattedMessage,{id:"container.signup.form.button"}))))))))},t.prototype.handleSignUpSubmit=function(e){e.preventDefault();var t=this.props.dispatch,n=this.props.intl.formatMessage,r=this.refs.email.value,o=this.refs.password.value,i=this.refs.password2.value,a=this.refs.termsOfService.value;return a?h.default.isEmpty(r)?void t((0,m.notificationAddError)(n({id:"container.signup.error.emailBlank"}))):h.default.isEmpty(o)||h.default.isEmpty(i)?void t((0,m.notificationAddError)(n({id:"container.signup.error.passwordBlank"}))):(o!==i&&t((0,m.notificationAddError)(n({id:"container.signup.error.passwordsDontMatch"}))),void t(y.asyncUserSignup(r,o))):void t((0,m.notificationAddError)(n({id:"container.signup.error.termsOfService"})))},t}(c.Component);n.default=(0,p.injectIntl)((0,f.connect)(u)(_))},{"../../actions/notifications":537,"../../actions/user":539,"../../constants/UrlPaths":557,lodash:191,react:514,"react-intl":293,"react-redux":315}],594:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,securityLevelValue:(0,h.getZoneSettingsValueForZoneId)(e.activeZone.id,g,e)}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-button"),d=e("../../actions/zoneSettings"),h=e("../../selectors/zoneSettings"),g="security_level",y=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={value:r.props.securityLevelValue},r}return a(t,e),t.prototype.handleChange=function(e){var t=this.props.dispatch;this.setState({value:e}),t((0,d.asyncZoneUpdateSetting)(g,this.props.activeZoneId,e))},t.prototype.render=function(){var e=this.state.value,t="under_attack"===e?"container.underAttackButton.turnOn":"container.underAttackButton.turnOff",n="under_attack"===e?"essentially_off":"under_attack",r="under_attack"===e?"warning":"primary";return c.default.createElement("div",{className:"under-attack-button"},c.default.createElement("span",{style:{marginRight:"0.5rem"}},c.default.createElement(f.FormattedMessage,{id:"container.underAttackButton.description"})),c.default.createElement(p.Button,{type:r,onClick:this.handleChange.bind(this,n)},c.default.createElement("div",{style:{fontSize:"75%"}},c.default.createElement(f.FormattedMessage,{id:t}))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(y))},{"../../actions/zoneSettings":545,"../../selectors/zoneSettings":616,"cf-component-button":5,react:514,"react-intl":293,"react-redux":315}],595:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneId:e.activeZone.id,WAFValue:(0,y.getZoneSettingsValueForZoneId)(e.activeZone.id,x,e),modifiedDate:(0,y.getZoneSettingsModifiedDateForZoneId)(e.activeZone.id,x,e),activeZone:e.activeZone,zones:e.zones.entities.zones}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-card"),d=e("cf-component-toggle"),h=r(d),g=e("../../utils/utils"),y=e("../../selectors/zoneSettings"),m=e("../../components/CustomCardControl/CustomCardControl"),v=r(m),_=e("../../actions/zoneSettings"),b=e("../../constants/Plans.js"),x="waf",E=b.PRO_PLAN,C=function(e){function t(){return o(this,t),i(this,e.apply(this,arguments))}return a(t,e),t.prototype.handleChange=function(e){var t=this.props,n=t.activeZoneId,r=t.dispatch;e=e===!0?"on":"off",r((0,_.asyncZoneUpdateSetting)(x,n,e))},t.prototype.render=function(){var e=this.props,t=e.activeZone,n=e.zones,r=e.modifiedDate,o=n[t.name],i=this.props.intl.formatMessage;return c.default.createElement("div",null,c.default.createElement(p.Card,null,c.default.createElement(p.CardSection,null,c.default.createElement(p.CardContent,{title:i({id:"container.waf.title"}),footerMessage:(0,g.getLastModifiedDate)(this.props.intl,r)},c.default.createElement(f.FormattedMessage,{id:"container.waf.description"})),c.default.createElement(v.default,{minimumPlan:E,currentPlan:o.plan.legacy_id,indentifier:x},c.default.createElement(h.default,{label:"",value:"on"==this.props.WAFValue,onChange:this.handleChange.bind(this)})))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(C))},{"../../actions/zoneSettings":545,"../../components/CustomCardControl/CustomCardControl":550,"../../constants/Plans.js":555,"../../selectors/zoneSettings":616,"../../utils/utils":624,"cf-component-card":16,"cf-component-toggle":151,react:514,"react-intl":293,"react-redux":315}],596:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 a(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)}function s(e){return{activeZoneName:e.activeZone.name,config:e.config.config,zone:e.zones.entities.zones[e.activeZone.name],zoneDeleteIsFetching:e.zones.zoneDeleteIsFetching,zoneProvisionCnameIsFetching:e.zones.zoneProvisionCnameIsFetching,zoneProvisionFullIsFetching:e.zones.zoneProvisionFullIsFetching}}n.__esModule=!0;var u=e("react"),c=r(u),l=e("react-redux"),f=e("react-intl"),p=e("cf-component-button"),d=e("cf-component-modal"),h=e("cf-component-loading"),g=r(h),y=e("../../actions/zones"),m=e("../../actions/zoneProvision"),v=e("../../components/FeatureManager/FeatureManager"),_=r(v),b=function(e){function t(n){o(this,t);var r=i(this,e.call(this,n));return r.state={isModalOpen:!1},r}return a(t,e),t.prototype.isFetching=function(){var e=this.props,t=e.zoneDeleteIsFetching,n=e.zoneProvisionCnameIsFetching,r=e.zoneProvisionFullIsFetching;return t||n||r},t.prototype.handleFullZoneProvisioningButtonClick=function(){var e=this.props,t=e.dispatch,n=e.zone;t((0,m.asyncZoneProvisionFull)(n.name))},t.prototype.handleProvisionCNAMEZone=function(){var e=this.props,t=e.dispatch,n=e.zone;t((0,m.asyncZoneProvisionCname)(n.name))},t.prototype.handleDeprovisionZone=function(){this.handleRequestClose();var e=this.props,t=e.dispatch,n=e.zone;t((0,y.asyncZoneDelete)(n.id))},t.prototype.handleRequestOpen=function(){this.setState({isModalOpen:!0})},t.prototype.handleRequestClose=function(){this.setState({isModalOpen:!1})},t.prototype.render=function(){var e=this.props.zone,t="active"===e.status||"pending"===e.status,n=this.isFetching();return c.default.createElement("div",null,n?c.default.createElement(g.default,null):t?c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-16"},c.default.createElement(p.Button,{type:"warning",onClick:this.handleRequestOpen.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.button.deprovision"})))):c.default.createElement("div",null,c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-16"},c.default.createElement("a",{href:"https://support.cloudflare.com/hc/en-us/articles/203685674-Full-setup-versus-Partial-CNAME-setup",target:"_blank"},c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.provisionDifference"})))),c.default.createElement("div",{className:"row"},c.default.createElement("div",{className:"col-8"},c.default.createElement(p.Button,{type:"success",onClick:this.handleProvisionCNAMEZone.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.button.cname"}))),c.default.createElement("div",{className:"col-8"},c.default.createElement(_.default,{isEnabled:this.props.config.featureManagerIsFullZoneProvisioningEnabled},c.default.createElement(p.Button,{type:"success",onClick:this.handleFullZoneProvisioningButtonClick.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.button.full"})))))),c.default.createElement(d.Modal,{isOpen:this.state.isModalOpen,onRequestClose:this.handleRequestClose.bind(this)},c.default.createElement(d.ModalHeader,null,c.default.createElement(d.ModalTitle,null,c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.modal.title"})),c.default.createElement(d.ModalClose,{onClick:this.handleRequestClose.bind(this)})),c.default.createElement(d.ModalBody,null,c.default.createElement("p",null,c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.modal.description",values:{zoneName:this.props.activeZoneName}}))),c.default.createElement(d.ModalFooter,null,c.default.createElement(d.ModalActions,null,c.default.createElement(p.Button,{type:"warning",onClick:this.handleDeprovisionZone.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.button.deprovision"})),c.default.createElement(p.Button,{onClick:this.handleRequestClose.bind(this)},c.default.createElement(f.FormattedMessage,{id:"container.zoneProvision.modal.buttonCancel"}))))))},t}(u.Component);n.default=(0,f.injectIntl)((0,l.connect)(s)(b))},{"../../actions/zoneProvision":542,"../../actions/zones":546,"../../components/FeatureManager/FeatureManager":551,"cf-component-button":5,"cf-component-loading":88,"cf-component-modal":99,react:514,"react-intl":293,"react-redux":315}],597:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=e("react"),i=r(o),a=e("react-dom"),s=r(a),u=e("react-redux"),c=e("react-router"),l=e("./store/configureStore"),f=r(l),p=e("./routes"),d=r(p),h=e("history/lib/createHashHistory"),g=r(h),y=e("cf-util-http"),m=r(y),v=(0,g.default)(),_=(0,f.default)(v);m.default.beforeSend(RestProxyCallback),s.default.render(i.default.createElement(u.Provider,{store:_},i.default.createElement(c.Router,{history:v},d.default)),document.getElementById("root"))},{"./routes":612,"./store/configureStore":618,"cf-util-http":153,"history/lib/createHashHistory":172,react:514,"react-dom":279,"react-redux":315,"react-router":346}],598:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length<=0||void 0===arguments[0]?u:arguments[0],t=arguments[1];switch(t.type){case s.ZONES_SET_ACTIVE_ZONE:return i({},e,{id:t.zone.id,name:t.zone.name});default:return e}}n.__esModule=!0;var 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};n.activeZoneReducer=o;var a=e("../constants/ActionTypes"),s=r(a),u={id:"",name:""}},{"../constants/ActionTypes":554}],599:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length<=0||void 0===arguments[0]?u:arguments[0],t=arguments[1];switch(t.type){case s.APPLICATION_INIT:return i({},e,{isInitialized:!0});default:return e}}n.__esModule=!0;var 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};n.appReducer=o;var a=e("../constants/ActionTypes"),s=r(a),u={isInitialized:!1}},{"../constants/ActionTypes":554}],600:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e,t=arguments.length<=0||void 0===arguments[0]?u:arguments[0],n=arguments[1];switch(n.type){case s.CONFIG_FETCH:return i({},t,{isFetching:!0});case s.CONFIG_FETCH_SUCCESS:return i({},t,{config:n.config,isFetching:!1});case s.CONFIG_FETCH_ERROR:return i({},t,{isFetching:!1});case s.CONFIG_UPDATE_BY_KEY:return i({},t,{config:i({},t.config,(e={},e[n.key]=n.value,e))});default:return t}}n.__esModule=!0,n.ABSOLUTE_URL_BASE_KEY=void 0;var 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};n.configReducer=o;var a=e("../constants/ActionTypes"),s=r(a),u={config:{},isFetching:!1};n.ABSOLUTE_URL_BASE_KEY="absoluteUrlBase"},{"../constants/ActionTypes":554}],601:[function(e,t,n){"use strict";n.__esModule=!0;var r=e("redux"),o=e("redux-simple-router"),i=e("./activeZone"),a=e("./app"),s=e("./config"),u=e("./zoneDnsRecords.js"),c=e("./intl"),l=e("./notifications"),f=e("./user"),p=e("./zoneAnalytics"),d=e("./zonePurgeCache"),h=e("./zoneRailgun"),g=e("./zoneSettings"),y=e("./zones"),m=e("./pluginSettings"),v=(0,r.combineReducers)({activeZone:i.activeZoneReducer,app:a.appReducer,config:s.configReducer,intl:c.intlReducer,user:f.userReducer,notifications:l.notificationsReducer,routing:o.routeReducer,zones:y.zonesReducer,zoneAnalytics:p.zoneAnalyticsReducer,zoneDnsRecords:u.dnsRecordsReducer,zonePurgeCache:d.zonePurgeCacheReducer,zoneRailguns:h.zoneRailgunReducer,zoneSettings:g.zoneSettingsReducer,pluginSettings:m.pluginSettingsReducer});n.default=v},{"./activeZone":598,"./app":599,"./config":600,"./intl":602,"./notifications":603,"./pluginSettings":604,"./user":605,"./zoneAnalytics":606,"./zoneDnsRecords.js":607,"./zonePurgeCache":608,"./zoneRailgun":609,"./zoneSettings":610,"./zones":611,redux:523,"redux-simple-router":516}],602:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length<=0||void 0===arguments[0]?u:arguments[0],t=arguments[1];switch(t.type){case s.INTL_FETCH_TRANSLATIONS:return i({},e,{isFetching:!0});case s.INTL_FETCH_TRANSLATIONS_SUCCESS:return i({},e,{locale:t.locale,translations:t.translations,isFetching:!1});case s.INTL_FETCH_TRANSLATIONS_ERROR:return i({},e,{isFetching:!1});default:return e}}n.__esModule=!0;var 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};n.intlReducer=o;var a=e("../constants/ActionTypes"),s=r(a),u={locale:"",translations:{},isFetching:!1}},{"../constants/ActionTypes":554}],603:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length<=0||void 0===arguments[0]?s:arguments[0],t=arguments[1];switch(t.type){case a.NOTIFICATION_ADD:return[{key:Date.now(),level:t.level,message:t.message,localized:t.localized,persistant:t.persistant,delay:t.delay}].concat(e);case a.NOTIFICATION_REMOVE:return e.filter(function(e){return e.key!==t.key});default:return e}}n.__esModule=!0,n.notificationsReducer=o;var i=e("../constants/ActionTypes"),a=r(i),s=[]},{"../constants/ActionTypes":554}],604:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?d:arguments[0],t=arguments[1];switch(t.type){case f.PLUGIN_SETTINGS_FETCH:return s({},e,{isFetching:"FETCH ALL PLUGIN SETTINGS"});case f.PLUGIN_SETTINGS_FETCH_SUCCESS:var n=(0,p.normalizeZoneByIdGetAll)(t.zoneId,t.setting);return s({},e,{entities:c.default.merge(e.entities,n.entities),result:c.default.merge(e.result,n.result),isFetching:""});case f.PLUGIN_SETTINGS_FETCH_ERROR:return s({},e,{isFetching:""});case f.PLUGIN_SETTING_UPDATE:return s({},e,{entities:a(t.zoneId,t.setting,e),isFetching:t.setting.id});case f.PLUGIN_SETTING_UPDATE_SUCCESS:return s({},e,{entities:a(t.zoneId,t.setting,e),isFetching:""});case f.PLUGIN_SETTING_UPDATE_ERROR:return s({},e,{entities:a(t.zoneId,t.setting,e),isFetching:""});default:return e}}function a(e,t,n){var r=s({},n.entities);return r[e][t.id]=t,r}n.__esModule=!0;var s=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.pluginSettingsReducer=i;var u=e("lodash"),c=o(u),l=e("../constants/ActionTypes"),f=r(l),p=e("../constants/Schemas"),d={entities:{},result:[],isFetching:""}},{"../constants/ActionTypes":554,"../constants/Schemas":556,lodash:191}],605:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length<=0||void 0===arguments[0]?c:arguments[0],t=arguments[1];switch(t.type){case s.USER_LOGIN:return i({},e,{isFetching:!0});case s.USER_LOGIN_SUCCESS:return(0,u.setEmail)(t.email),i({},e,{isLoggedIn:!0,isFetching:!1});case s.USER_LOGIN_ERROR:return i({},e,{isFetching:!1});case s.USER_SIGNUP:return i({},e,{isFetching:!0});case s.USER_SIGNUP_SUCCESS:return i({},e,{isFetching:!1});case s.USER_SIGNUP_ERROR:return i({},e,{isFetching:!1});case s.USER_LOGOUT:return(0,u.setEmail)(""),i({},e,{isLoggedIn:!1});default:return e}}n.__esModule=!0;var 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};n.userReducer=o;var a=e("../constants/ActionTypes"),s=r(a),u=e("../utils/Auth/Auth"),c={isLoggedIn:!1,isFetching:!1}},{"../constants/ActionTypes":554,"../utils/Auth/Auth":619}],606:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(){var e=arguments.length<=0||void 0===arguments[0]?p:arguments[0],t=arguments[1];switch(t.type){case c.ZONE_FETCH_ANALYTICS:return s({},e,{isFetching:!0});case c.ZONE_FETCH_ANALYTICS_SUCCESS:var n={};return n[t.zoneId]=a(t.zoneAnalytics),s({},e,{entities:f.default.merge(e.entities,n),isFetching:!1});case c.ZONE_FETCH_ANALYTICS_ERROR:return s({},e,{isFetching:!1});default:return e}}function a(e){var t={totals:[],timeSeries:[],requests:[[],[]],bandwidth:[[],[]],threats:[[]],uniques:[[]]};return t.totals=f.default.clone(e.totals),e.timeseries.forEach(function(e){t.timeSeries.push(new Date(e.since)),"undefined"!=typeof e.requests&&(t.requests[0].push(e.requests.cached),t.requests[1].push(e.requests.uncached)),"undefined"!=typeof e.bandwidth&&(t.bandwidth[0].push(e.bandwidth.cached),t.bandwidth[1].push(e.bandwidth.uncached)),"undefined"!=typeof e.threats&&t.threats[0].push(e.threats.all),"undefined"!=typeof e.uniques&&t.uniques[0].push(e.uniques.all)}),t}n.__esModule=!0;var s=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.zoneAnalyticsReducer=i;var u=e("../constants/ActionTypes"),c=o(u),l=e("lodash"),f=r(l),p={entities:{},isFetching:!1}},{"../constants/ActionTypes":554,lodash:191}],607:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}function i(){var e=arguments.length<=0||void 0===arguments[0]?d:arguments[0],t=arguments[1];switch(t.type){case p.DNS_RECORD_CLEAR_ALL:var n=e.entities;return n[t.zoneId]={},s({},e,{entities:n});case p.DNS_RECORD_CREATE:return s({},e,{updateIsFetching:t.name});case p.DNS_RECORD_CREATE_SUCCESS:return s({},e,{entities:a(t.zoneId,e.entities,t.dnsRecord),updateIsFetching:""});case p.DNS_RECORD_CREATE_ERROR:return s({},e,{updateIsFetching:""});case p.DNS_RECORD_FETCH_LIST:return s({},e,{isFetching:!0});case p.DNS_RECORD_FETCH_LIST_SUCCESS:var r=new u.Schema(t.zoneId,{idAttribute:"name"}),o=(0,u.normalize)(t.dnsRecords,(0,u.arrayOf)(r));return s({},e,{entities:l.default.merge(e.entities,o.entities),result:l.default.merge(e.result,o.result),isFetching:!1});case p.DNS_RECORD_FETCH_LIST_ERROR:return s({},e,{isFetching:!1});case p.DNS_RECORD_UPDATE:return s({},e,{updateIsFetching:t.name});case p.DNS_RECORD_UPDATE_SUCCESS:return s({},e,{entities:a(t.zoneId,e.entities,t.dnsRecord),updateIsFetching:""});case p.DNS_RECORD_UPDATE_ERROR:return s({},e,{updateIsFetching:""});default:return e}}function a(e,t,n){return t[e][n.name]=n,t}n.__esModule=!0;var s=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.dnsRecordsReducer=i;var u=e("normalizr"),c=e("lodash"),l=o(c),f=e("../constants/ActionTypes"),p=r(f),d={entities:{},result:[],isFetching:!1,updateIsFetching:""}},{"../constants/ActionTypes":554,lodash:191,normalizr:195}],608:[function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(){var e=arguments.length<=0||void 0===arguments[0]?u:arguments[0],t=arguments[1];switch(t.type){case s.ZONE_PURGE_CACHE:return i({},e,{isFetching:!0});case s.ZONE_PURGE_CACHE_SUCCESS:return i({},e,{isFetching:!1});case s.ZONE_PURGE_CACHE_ERROR:return i({},e,{isFetching:!1});default:return e}}n.__esModule=!0;var 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};n.zonePurgeCacheReducer=o;var a=e("../constants/ActionTypes"),s=r(a),u={isFetching:!1}},{"../constants/ActionTypes":554}],6